/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .start {
    inset-inline-start: var(--spacing);
  }
  .table {
    display: table;
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
}
.customer-read-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.customer-read-status.is-read {
  color: #2371b9;
}
[data-theme="dark"] .customer-read-status.is-read {
  color: #8fc7ff;
}
.customer-draft-preview {
  margin-bottom: 9px;
  padding: 10px 12px;
  border: 1px dashed #66a8e8;
  border-radius: 10px;
  background: var(--paper);
}
.customer-draft-preview > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  color: #2371b9;
}
.customer-draft-preview strong {
  font-size: 13px;
}
.customer-draft-preview span {
  font-size: 11px;
  color: var(--muted);
}
.customer-draft-preview p {
  margin: 6px 0 0;
  max-height: 80px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.draft-preview-notice {
  margin: 6px 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: #26262c;
  background: #f6f6f8;
  font-size: 13px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button, input, textarea, select {
  font: inherit;
}
button, a, select {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
  cursor: pointer;
  color: inherit;
  background: none;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
button:not(:disabled), a, select {
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
a {
  color: inherit;
  text-decoration: none;
}
input, textarea, select {
  min-width: 0;
  color: inherit;
}
:focus-visible {
  outline: 2px solid #8265f4;
  outline-offset: 3px;
}
button svg, a svg {
  flex-shrink: 0;
}
.inbox-app, .customer-page {
  --paper: #fff;
  --canvas: #f5f5f7;
  --nav: #f8f8fa;
  --line: #ededf0;
  --ink: #27272d;
  --muted: #767680;
  --soft: #555562;
  --hover: #f1f1f4;
  --purple: #7551e9;
  --purple-soft: #efebfd;
  color: var(--ink);
  background: var(--canvas);
}
.inbox-app[data-theme="dark"] {
  --paper: #222228;
  --canvas: #19191f;
  --nav: #1e1e24;
  --line: #34343d;
  --ink: #ededf2;
  --muted: #858590;
  --soft: #b1b1c0;
  --hover: #303039;
  --purple: #ad94ff;
  --purple-soft: #352a51;
  color-scheme: dark;
}
.inbox-app {
  height: 100dvh;
  min-height: 520px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 50px 165px 310px minmax(330px, 1fr) 282px;
  grid-template-rows: 64px minmax(0, 1fr);
}
.inbox-app.without-profile {
  grid-template-columns: 50px 165px 310px minmax(330px, 1fr);
}
.without-profile .customer-profile {
  display: none;
}
.app-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px 0 16px;
  position: relative;
  gap: 16px;
  background: var(--canvas);
}
.workspace-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--paper);
  padding: 6px 11px 6px 6px;
  border-radius: 20px;
  box-shadow: 0 1px 4px #00000006;
}
.workspace-brand strong {
  font-size: 14px;
  letter-spacing: -0.3px;
}
.brand-icon {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 28px;
  height: 28px;
  color: white;
  background: #7954ee;
  border-radius: 10px;
  font-weight: 800;
  font-size: 17px;
}
.space-switch {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  padding: 4px;
  gap: 4px;
  background: #e9e9ed;
  border-radius: 20px;
}
.space-switch button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 650;
  color: #888891;
  border-radius: 16px;
  padding: 6px 19px;
}
.space-switch button.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px #0000000a;
}
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 13px;
}
.test-badge {
  background: var(--hover);
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
  line-height: 19px;
  padding: 0 6px;
  font-weight: 500;
  white-space: nowrap;
}
.customer-preview-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--soft);
}
.customer-preview-link:hover {
  color: var(--purple);
}
.role-picker {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}
.role-picker select {
  appearance: none;
  border: 0;
  padding: 5px 14px 5px 0;
  outline: none;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}
.role-picker > svg {
  position: absolute;
  right: 0;
  pointer-events: none;
}
.icon-button {
  width: 31px;
  height: 31px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 7px;
  color: var(--soft);
  flex-shrink: 0;
}
.icon-button:hover:not(:disabled), .icon-button.is-active {
  background: var(--hover);
  color: var(--ink);
}
.icon-rail {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0 15px;
}
.icon-rail > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
.icon-rail .icon-button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #8c8c95;
}
.icon-rail .is-active {
  background: #e8e8ec;
  color: #33333c;
}
.inbox-navigation {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  background: var(--nav);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 12px 0 0 0;
  min-height: 0;
}
.nav-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 12px 13px 18px;
}
.nav-heading h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.5px;
}
.nav-scroll {
  overflow: auto;
  flex: 1;
  padding: 0 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.nav-group {
  border-bottom: 1px solid var(--line);
  padding: 7px 0 11px;
}
.nav-group:last-child {
  border-bottom: 0;
}
.nav-row {
  min-height: 35px;
  padding: 7px 9px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--soft);
  text-align: left;
}
.nav-row:hover {
  background: var(--hover);
}
.nav-row.selected {
  background: #eae9ef;
  color: var(--ink);
  font-weight: 650;
}
[data-theme="dark"] .nav-row.selected {
  background: #36343e;
}
.nav-row svg {
  width: 16px;
  color: #85858e;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.group-label {
  display: flex;
  justify-content: space-between;
  padding: 13px 10px 7px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}
.group-label > span {
  font-weight: 400;
}
.nav-row .avatar-small {
  width: 20px;
  height: 20px;
  font-size: 11px;
  border-radius: 6px;
}
.me-label {
  background: var(--hover);
  color: var(--soft);
  font-size: 10px;
  padding: 1px 3px;
  border-radius: 3px;
}
.tag-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #b2a5d9;
}
.tag-0 {
  background: #e9b952;
}
.tag-1 {
  background: #9779e4;
}
.tag-2 {
  background: #6fbaa9;
}
.tag-3 {
  background: #e29183;
}
.nav-footer {
  min-height: 51px;
  padding: 13px 17px;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--soft);
  border-top: 1px solid var(--line);
}
.nav-footer strong {
  font-weight: 500;
}
.nav-footer > span:last-child {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.online-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #32b780;
  flex-shrink: 0;
}
.thread-list {
  grid-column: 3;
  grid-row: 2;
  background: var(--paper);
  border: 1px solid var(--line);
  border-right: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.list-header {
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px 0 18px;
}
.list-header h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}
.list-header h2 span {
  background: var(--hover);
  color: var(--muted);
  padding: 1px 5px;
  font-size: 11px;
  border-radius: 4px;
}
.list-header .icon-button {
  color: var(--muted);
}
.list-search {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--nav);
  border-radius: 7px;
  margin: 0 13px 10px;
  padding: 7px 8px;
}
.list-search input {
  flex: 1;
  width: 80px;
  outline: none;
  border: none;
  background: transparent;
  font-size: 11px;
}
.list-search input::placeholder {
  color: #9999a3;
}
.list-search kbd {
  font-size: 10px;
  font-family: inherit;
  white-space: nowrap;
  color: #b4b4bc;
}
.list-toolbar {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  padding: 4px 17px 11px;
}
.list-toolbar button {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
}
.thread-list-scroll {
  min-height: 0;
  container-type: size;
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.thread-card {
  width: calc(100% - 12px);
  position: relative;
  display: flex;
  gap: 7px;
  text-align: left;
  height: clamp(58px, calc((100cqh - 20px) / 10), 76px);
  min-height: 58px;
  padding: 5px 8px;
  margin: 0 6px 2px;
  border-radius: 8px;
  align-items: flex-start;
}
.thread-card:hover {
  background: var(--nav);
}
.thread-card > .avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.thread-card.selected {
  background: #f0edf9;
}
[data-theme="dark"] .thread-card.selected {
  background: #332b48;
}
.avatar {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: #e9e3fc;
  color: #8463cc;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50%;
}
.avatar-mint {
  background: #def0e9;
  color: #50947d;
}
.avatar-peach {
  background: #f9e7df;
  color: #c48666;
}
.avatar-blue {
  background: #e4eefa;
  color: #6e95c6;
}
.avatar-small {
  width: 27px;
  height: 27px;
  font-size: 12px;
}
.thread-card-content {
  flex: 1;
  min-width: 0;
}
.thread-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin: 0 0 2px;
}
.thread-card-title strong {
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread-card-title time {
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
}
.thread-card-content > p {
  font-size: 11px;
  color: var(--soft);
  margin: 0;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.thread-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.thread-card-meta > span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.thread-card-meta .tag-dot {
  width: 4px;
  height: 4px;
}
.inbox-app .thread-card-title strong {
  font-size: 14px;
  font-weight: 750;
}
.inbox-app .thread-card-meta {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 5px;
  font-size: 12px;
  line-height: 1.3;
}
.inbox-app .thread-card-meta > span {
  max-width: 100%;
  padding: 1px 5px;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.inbox-app .thread-card-meta .thread-product {
  flex: 1;
  color: #5b21b6;
  background: #f0eaff;
  border-color: #dfd0fb;
}
.inbox-app .thread-assignee.assigned {
  flex-shrink: 0;
  color: #1e40af;
  background: #eaf2ff;
  border-color: #c3d8fa;
}
.inbox-app .thread-assignee.unassigned {
  flex-shrink: 0;
  color: #9a3412;
  background: #fff4e7;
  border-color: #f4d0a3;
}
.inbox-app[data-theme="dark"] .thread-product {
  color: #ddd0ff;
  background: #382a50;
  border-color: #644a87;
}
.inbox-app[data-theme="dark"] .thread-assignee.assigned {
  color: #bfdbfe;
  background: #233b5e;
  border-color: #41648f;
}
.inbox-app[data-theme="dark"] .thread-assignee.unassigned {
  color: #fed7aa;
  background: #493221;
  border-color: #805538;
}
.unread-dot {
  width: 5px;
  height: 5px;
  background: var(--purple);
  border-radius: 50%;
  position: absolute;
  right: 12px;
  top: 42px;
}
.list-footer {
  padding: 12px 16px;
  min-height: 39px;
  color: var(--muted);
  font-size: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.list-footer .online-dot {
  width: 4px;
  height: 4px;
}
.empty-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 14px 30px;
  text-align: center;
  color: #c0bdca;
}
.empty-list strong {
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
  margin-top: 17px;
}
.empty-list p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  max-width: 150px;
  margin: 6px 0 14px;
}
.empty-list a {
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
}
.conversation {
  grid-column: 4;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 0;
}
.conversation-header {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 10px 18px;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.conversation-title {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.conversation-title strong {
  font-size: 13px;
  letter-spacing: -0.2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.conversation-title > span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
}
.conversation-title .online-dot {
  width: 4px;
  height: 4px;
}
.conversation-actions {
  display: flex;
  gap: 3px;
  align-items: center;
}
.conversation-actions .icon-button {
  height: 27px;
  width: 27px;
}
.conversation-actions .light-button {
  padding: 5px 8px;
  font-size: 11px;
  min-height: 27px;
}
.light-button, .primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.light-button {
  border: 1px solid var(--line);
  background: var(--paper);
}
.light-button:hover:not(:disabled) {
  background: var(--hover);
}
.primary-button {
  background: #7652e9;
  color: #fff;
  border: 1px solid #7652e9;
}
.primary-button:hover:not(:disabled) {
  background: #6742d7;
}
.thread-subbar {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 19px;
  font-size: 10px;
  color: var(--muted);
}
.status-indicator {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #45b68a;
  margin-right: 1px;
}
.status-indicator.closed {
  background: #aaaab4;
}
.status-indicator.snoozed {
  background: #d4a153;
}
.divider-dot {
  padding: 0 2px;
  color: #ccccd2;
}
.product-chip {
  margin-left: 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  color: var(--soft);
  font-size: 10px;
}
.product-chip .tag-dot {
  width: 4px;
  height: 4px;
}
.claim-button {
  color: var(--purple);
  font-weight: 600;
  margin-left: auto;
  background: var(--purple-soft);
  border-radius: 5px;
  padding: 4px 8px;
}
.chat-history {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 10px 24px 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.date-separator {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  margin: 10px 0 32px;
}
.date-separator span {
  padding: 3px 8px;
  background: var(--nav);
  border-radius: 10px;
}
.message-row {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin: 0 0 20px;
}
.message-row > .avatar {
  margin-top: 20px;
  width: 24px;
  height: 24px;
  font-size: 10px;
}
.message-content {
  min-width: 0;
  max-width: 87%;
}
.message-byline {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  min-height: 12px;
  color: var(--muted);
  font-size: 10px;
}
.message-byline strong {
  color: var(--soft);
  font-size: 10px;
  font-weight: 550;
}
.message-byline time {
  color: #767680;
  font-size: 10px;
}
.message-bubble {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
}
.customer-message {
  justify-content: flex-end;
}
.customer-message .message-byline {
  justify-content: flex-end;
}
.customer-message .message-bubble {
  padding: 8px 13px;
  border-radius: 15px 15px 4px 15px;
  background: #f0f0f3;
}
[data-theme="dark"] .customer-message .message-bubble {
  background: #393941;
}
.customer-message .message-byline strong:empty {
  display: none;
}
.inbox-app .agent-message .message-byline, .inbox-app .customer-message .message-byline {
  flex-wrap: wrap;
  gap: 6px;
  min-height: 22px;
  margin-bottom: 7px;
}
.inbox-app .agent-message .message-byline strong, .inbox-app .customer-message .message-byline strong {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.inbox-app .agent-message .message-byline strong {
  color: #6d28d9;
}
.inbox-app .customer-message .message-byline strong {
  color: #1d4ed8;
}
.inbox-app .agent-message .message-byline time, .inbox-app .customer-message .message-byline time {
  font-size: 12px;
  color: var(--soft);
  white-space: nowrap;
}
.inbox-app .speaker-role {
  padding: 1px 5px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 650;
  color: var(--soft);
}
.inbox-app .agent-message:not(.note-message) {
  flex-direction: row-reverse;
  justify-content: flex-start;
}
.inbox-app .agent-message:not(.note-message) .message-byline {
  justify-content: flex-end;
}
.inbox-app .customer-message {
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.inbox-app .customer-message .message-byline {
  justify-content: flex-start;
}
.inbox-app .agent-message .message-bubble {
  padding: 10px 14px;
  border: 1px solid #dfd0fb;
  border-radius: 14px 4px 14px 14px;
  background: #f7f2ff;
}
.inbox-app .customer-message .message-bubble {
  border: 1px solid #c3d8fa;
  border-radius: 15px 15px 15px 4px;
  background: #edf5ff;
}
.inbox-app[data-theme="dark"] .agent-message .message-byline strong {
  color: #c4b5fd;
}
.inbox-app[data-theme="dark"] .customer-message .message-byline strong {
  color: #93c5fd;
}
.inbox-app[data-theme="dark"] .agent-message .message-bubble {
  background: #342746;
  border-color: #644a87;
}
.inbox-app[data-theme="dark"] .customer-message .message-bubble {
  background: #23364d;
  border-color: #41648f;
}
.note-message {
  display: block;
  padding: 12px 15px;
  margin: 6px 0 20px 31px;
  background: var(--purple-soft);
  border-radius: 9px;
  border-left: 2px solid #c9b7f9;
}
.note-message .message-content {
  max-width: 100%;
}
.note-message .message-byline, .note-message .message-byline strong {
  color: #9674d4;
}
.note-message .message-bubble {
  font-size: 12px;
  color: #79618c;
}
[data-theme="dark"] .note-message .message-bubble {
  color: #d4b9eb;
}
.edit-message {
  color: var(--muted);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  opacity: 0;
  margin-top: 4px;
}
.message-row:hover .edit-message, .edit-message:focus-visible {
  opacity: 1;
}
.menu-description {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
}
.receipt-card {
  display: flex;
  gap: 9px;
  padding: 10px 12px;
  margin-top: 9px;
  border: 1px solid #e1eee7;
  background: #f7fbf9;
  border-radius: 8px;
}
.receipt-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #4ba87c;
  background: #e4f3eb;
  border-radius: 50%;
}
.receipt-card strong {
  font-size: 11px;
  color: #48936c;
}
.receipt-card p {
  font-size: 11px;
  margin: 4px 0;
  color: #586e60;
}
.receipt-card small {
  font-size: 10px;
  color: #95a39a;
}
.history-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 23px;
  color: #b7b7c0;
  font-size: 10px;
}
.conversation-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.empty-symbol {
  display: grid;
  place-items: center;
  color: #a99ac9;
  width: 72px;
  height: 72px;
  background: var(--nav);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.conversation-empty h2 {
  font-size: 16px;
  font-weight: 650;
  margin: 22px 0 7px;
  letter-spacing: -0.4px;
}
.conversation-empty p {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 24px;
}
.conversation-empty .light-button {
  font-size: 12px;
}
.composer-wrap {
  padding: 0 16px 15px;
  position: relative;
}
.composer {
  border: 1px solid #e6e6eb;
  border-radius: 13px;
  padding: 9px 10px 7px;
  background: var(--paper);
  box-shadow: 0 2px 5px #00000002;
}
[data-theme="dark"] .composer {
  border-color: var(--line);
}
.composer:focus-within {
  border-color: #c6b6ef;
}
.composer-note {
  border-color: #e0d2f6;
  background: var(--purple-soft);
}
.composer-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
}
.composer-tabs button {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 550;
  padding: 4px 6px;
  border-radius: 5px;
  color: var(--muted);
}
.composer-tabs button.active {
  color: var(--ink);
  background: var(--hover);
}
.composer-note .composer-tabs button.active {
  background: #e2d8f6;
  color: #8060b3;
}
.composer-tabs > span {
  font-size: 10px;
  color: #ab8dca;
  margin-left: auto;
}
.composer textarea {
  resize: none;
  width: 100%;
  height: 72px;
  padding: 12px 3px 6px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 12px;
  line-height: 1.8;
  display: block;
}
.composer textarea::placeholder {
  color: #b0b0b9;
}
.composer textarea:focus-visible {
  outline: none;
}
.composer-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: space-between;
}
.toolbar-tools {
  display: flex;
  align-items: center;
  gap: 1px;
}
.toolbar-tools .icon-button {
  width: 28px;
  height: 27px;
  color: #9999a4;
}
.text-tool {
  font-size: 19px;
  font-weight: 400;
}
.composer-hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}
.send-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 27px;
  border-radius: 15px;
  color: white;
  background: #7854e8;
}
.send-button:disabled {
  background: #cccbd3;
  opacity: 1;
}
.composer-note .send-button {
  background: #9878cb;
}
.assignment-notice, .reopen-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  padding: 7px 0;
  margin: 0;
}
.inline-error {
  font-size: 11px;
  color: #c55065;
  background: #fff2f3;
  border-radius: 6px;
  margin: 0 0 8px;
  padding: 9px;
}
.editing-bar {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 6px 3px 0;
  color: var(--purple);
  font-size: 10px;
}
.editing-bar button {
  margin-left: auto;
  text-decoration: underline;
}
.popover-anchor {
  position: relative;
  display: inline-flex;
}
.popup-menu {
  position: absolute;
  z-index: 30;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px #21133f15;
  border-radius: 10px;
  padding: 6px;
  text-align: left;
}
.popup-up {
  bottom: 36px;
  left: -5px;
  width: 244px;
}
.popup-menu > button {
  width: 100%;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 5px;
  font-size: 12px;
}
.popup-menu > button:hover {
  background: var(--hover);
}
.popup-menu > p {
  font-size: 10px;
  color: var(--muted);
  padding: 2px 10px 7px;
  margin: 0;
}
.emoji-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  bottom: 34px;
  left: -15px;
  width: 182px;
}
.emoji-picker > button {
  font-size: 21px;
  width: 40px;
  justify-content: center;
  padding: 6px;
}
.templates-menu > strong {
  display: block;
  font-size: 11px;
  padding: 8px 10px;
  color: var(--muted);
}
.templates-menu > button {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}
.templates-menu b {
  font-weight: 550;
}
.templates-menu span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  max-width: 208px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-profile {
  grid-column: 5;
  grid-row: 2;
  background: var(--paper);
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0 12px 0 0;
}
.customer-profile > header {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
}
.customer-profile > header strong {
  font-size: 12px;
  font-weight: 650;
}
.customer-profile > header .icon-button {
  color: var(--muted);
}
.profile-scroll {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.profile-identity {
  padding: 24px 18px 19px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.profile-identity .avatar {
  height: 42px;
  width: 42px;
  font-size: 16px;
  border-radius: 14px;
}
.profile-identity h2 {
  font-size: 15px;
  letter-spacing: -0.4px;
  margin: 13px 0 7px;
  font-weight: 650;
}
.profile-identity .test-badge {
  font-size: 10px;
  line-height: 15px;
  padding: 0 4px;
}
.profile-section {
  padding: 17px 17px 16px;
  border-bottom: 1px solid var(--line);
}
.profile-section h3 {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 650;
  margin: 0 0 13px;
}
.profile-section h3 > small {
  font-size: 10px;
  margin-left: auto;
  color: var(--muted);
  font-weight: 400;
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  font-size: 11px;
}
.visitor-place {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.visitor-map-link {
  display: block;
  margin-top: 9px;
  border: 1px solid #dce5ee;
  border-radius: 9px;
  overflow: hidden;
  color: #6842b8;
  text-decoration: none;
}
.visitor-map {
  display: block;
  width: 100%;
  aspect-ratio: 2;
  background: #eaf4fa;
}
.visitor-map-link > span {
  display: block;
  padding: 6px 9px;
  text-align: right;
  font-size: 10px;
  background: #f8fafc;
}
.visitor-hint {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  margin: 8px 0 0;
}
.visitor-source {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: center;
  font-size: 13px;
  line-height: 1.6;
  color: #6543b4;
}
.visitor-source > span {
  background: #f1edfc;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 10px;
  color: #6543b4;
  font-weight: 500;
}
.visitor-details {
  margin: 10px 0 0;
  font-size: 11px;
}
.visitor-details > div {
  display: grid;
  grid-template-columns: 74px minmax(0,1fr);
  gap: 5px;
  padding: 5px 0;
  line-height: 1.5;
}
.visitor-details dt {
  color: var(--muted);
}
.visitor-details dd {
  margin: 0;
  color: var(--soft);
  overflow-wrap: anywhere;
}
.profile-row > span {
  width: 64px;
  flex-shrink: 0;
  color: var(--muted);
}
.profile-row > b {
  font-weight: 400;
  color: var(--soft);
  flex: 1;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-row > select {
  width: 150px;
  flex: 1;
  appearance: auto;
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 3px 2px;
  font-size: 11px;
  color: var(--soft);
}
.profile-row > select:not(:disabled):hover {
  background: var(--hover);
}
.profile-row > select:disabled {
  appearance: none;
  opacity: 1;
}
.status-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.status-value:before {
  content: "";
  height: 5px;
  width: 5px;
  display: inline-block;
  border-radius: 50%;
  background: #5dbd92;
}
.copy-small {
  color: #b7b7bf;
  opacity: 0;
  width: 16px;
  flex-shrink: 0;
  padding: 1px;
}
.profile-row:hover .copy-small, .copy-small:focus-visible {
  opacity: 1;
}
.profile-claim {
  margin: 5px 0 8px 68px;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}
.count-label {
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  background: var(--hover);
  border-radius: 3px;
  padding: 1px 4px;
}
.profile-muted {
  font-size: 11px;
  color: var(--muted);
  padding: 6px 0;
}
.profile-receipt {
  border: 1px solid var(--line);
  background: var(--nav);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.receipt-label {
  color: #69a78b;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
}
.profile-receipt > strong {
  font-weight: 550;
  font-size: 11px;
}
.profile-receipt > b {
  font-size: 18px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.profile-receipt > b small {
  font-size: 11px;
  font-weight: 400;
  margin-left: 2px;
}
.profile-receipt p {
  font-size: 10px;
  margin: 0;
  color: var(--muted);
}
.additional-product {
  margin-top: 11px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  font-size: 10px;
  color: var(--soft);
}
.additional-product:hover:not(:disabled) {
  background: var(--hover);
}
.receipt-history {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0;
}
.receipt-history > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.receipt-history strong {
  font-size: 11px;
  font-weight: 500;
}
.receipt-history span {
  font-size: 10px;
  color: var(--muted);
}
.receipt-history > svg {
  color: #81b49b;
}
.profile-footnote {
  font-size: 10px;
  color: #b2b2bc;
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 20px 0 0;
}
.empty-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 75%;
  color: #b9b5c6;
}
.empty-profile p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}
.global-error {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  max-width: 90vw;
  padding: 12px 18px;
  border: 1px solid #ecd9df;
  border-radius: 9px;
  box-shadow: 0 4px 20px #0001;
  background: #fff5f6;
  color: #bd586c;
  font-size: 12px;
}
.global-error button {
  margin-left: 15px;
  text-decoration: underline;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  z-index: 90;
  padding: 12px 19px;
  color: #fff;
  border-radius: 9px;
  background: #34323e;
  box-shadow: 0 5px 20px #0002;
  font-size: 12px;
}
.modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 80;
  inset: 0;
  background: #1d182f44;
  backdrop-filter: blur(3px);
  padding: 20px;
}
.settings-dialog {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 22px 25px;
  width: 440px;
  max-width: 100%;
  box-shadow: 0 10px 60px #0002;
}
.settings-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.settings-dialog h2 {
  font-size: 17px;
  margin: 0;
  font-weight: 700;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row > span {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.setting-row b {
  font-size: 13px;
  font-weight: 550;
}
.setting-row small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.setting-row input {
  accent-color: #7854e8;
  width: 16px;
  height: 16px;
}
.settings-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 15px 0 4px;
}
.settings-dialog ol {
  padding-left: 19px;
  font-size: 13px;
  line-height: 2.2;
  color: var(--soft);
}
.intake-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  width: 265px;
  max-width: 100%;
  padding: 13px;
  margin-top: 12px;
}
.intake-card fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.intake-card legend {
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 12px;
}
.category-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.category-buttons button {
  display: flex;
  width: 100%;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 9px;
  background: var(--paper);
  font-size: 12px;
}
.category-buttons button > svg {
  margin-left: auto;
  color: #b3abbf;
}
.category-buttons button.selected {
  border-color: #bba4f1;
  background: #f6f1ff;
  color: #7952c3;
}
.intake-card label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--soft);
}
.intake-card select, .amount-input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 9px 8px;
  background: var(--paper);
  border-radius: 5px;
  font-size: 12px;
  color: var(--ink);
}
.amount-input {
  display: flex;
  align-items: center;
  gap: 4px;
}
.amount-input input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  text-align: right;
}
.amount-input span {
  color: var(--muted);
  font-size: 10px;
}
.intake-card fieldset > small {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin: 10px 0;
}
.intake-card .primary-button {
  width: 100%;
  font-size: 12px;
  padding: 9px;
}
.customer-page {
  min-height: 100dvh;
  background: #f8f8fb;
}
.customer-page-header {
  max-width: 1150px;
  margin: auto;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.customer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.customer-brand strong {
  font-size: 15px;
  letter-spacing: -0.4px;
}
.customer-page-header > a:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--soft);
}
.customer-stage {
  max-width: 1000px;
  margin: 22px auto 0;
  padding: 25px 30px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}
.customer-intro {
  padding-bottom: 20px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.4px;
  color: #9c8fba;
  font-weight: 650;
}
.customer-intro h1 {
  font-size: 34px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: -1.2px;
  margin: 18px 0;
}
.customer-intro > p {
  font-size: 13px;
  line-height: 2;
  color: #888593;
}
.customer-instructions {
  font-size: 12px;
  color: #8c8896;
  line-height: 2.4;
  margin: 28px 0 24px;
}
.customer-instructions > span {
  display: inline-flex;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ede8f7;
  color: #9b87bc;
  font-size: 10px;
  margin-right: 7px;
}
.customer-intro > small {
  font-size: 10px;
  display: block;
  color: #afabb8;
  margin-top: 20px;
}
.customer-widget {
  width: 402px;
  height: min(740px, calc(100dvh - 150px));
  min-height: 500px;
  border-radius: 17px;
  overflow: hidden;
  border: 1px solid #e5e2ed;
  box-shadow: 0 17px 60px #48376b12, 0 3px 8px #48376b08;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: white;
}
.customer-widget .conversation {
  border: 0;
  flex: 1;
}
.customer-widget .conversation-header {
  padding: 17px 18px;
  min-height: 79px;
}
.customer-widget .conversation-title strong {
  font-size: 14px;
}
.customer-widget .conversation-title > span {
  font-size: 10px;
  margin-top: 2px;
}
.customer-widget .chat-history {
  padding: 10px 18px 20px;
}
.customer-widget .staff-message .message-bubble {
  border: 1px solid var(--line);
  background: #faf9fc;
  border-radius: 3px 13px 13px 13px;
  padding: 9px 12px;
  font-size: 12px;
}
.customer-widget .customer-message .message-bubble {
  background: #7954e8;
  color: white;
  font-size: 12px;
}
.customer-widget .message-content {
  max-width: 87%;
}
.customer-widget .message-row > .avatar {
  width: 22px;
  height: 22px;
  font-size: 10px;
}
.customer-widget .conversation-empty h2 {
  font-size: 17px;
}
.customer-widget .conversation-empty p {
  font-size: 12px;
}
.customer-widget .composer textarea {
  height: 52px;
  font-size: 12px;
}
.customer-widget .composer-wrap {
  padding: 0 12px 8px;
}
.customer-widget .composer {
  border-radius: 11px;
}
.widget-credit {
  font-size: 10px;
  color: #bbb7c5;
  text-align: center;
  padding: 8px 0 11px;
  background: white;
}
.mobile-back {
  display: none;
}
@media (min-width: 1650px) {
  .inbox-app {
    grid-template-columns: 54px 180px 330px minmax(480px, 1fr) 320px;
  }
  .inbox-app.without-profile {
    grid-template-columns: 54px 180px 330px minmax(480px, 1fr);
  }
  .nav-row {
    font-size: 13px;
    min-height: 38px;
  }
  .thread-card-title strong {
    font-size: 13px;
  }
  .thread-card-content > p {
    font-size: 12px;
  }
  .message-bubble {
    font-size: 13px;
  }
  .profile-row, .profile-row > b, .profile-row > select {
    font-size: 12px;
  }
  .chat-history {
    padding-left: 34px;
    padding-right: 34px;
  }
}
@media (max-width: 1250px) {
  .inbox-app {
    grid-template-columns: 50px 165px 235px minmax(300px, 1fr) 245px;
  }
  .inbox-app.without-profile {
    grid-template-columns: 50px 165px 235px minmax(300px, 1fr);
  }
  .topbar-right {
    gap: 9px;
  }
  .profile-section {
    padding: 15px 12px;
  }
  .conversation-header {
    padding: 10px 12px;
  }
  .conversation-actions .icon-button {
    width: 23px;
  }
  .nav-row {
    font-size: 12px;
    gap: 6px;
  }
  .chat-history {
    padding-left: 17px;
    padding-right: 17px;
  }
  .profile-row > span {
    width: 57px;
  }
}
@media (max-width: 1060px) {
  .inbox-app, .inbox-app.without-profile {
    grid-template-columns: 49px 170px 252px minmax(290px, 1fr);
  }
  .inbox-app .customer-profile {
    grid-column: 4;
    display: none;
  }
  .inbox-app.mobile-profile .customer-profile {
    display: flex;
  }
  .inbox-app.mobile-profile .conversation {
    display: none;
  }
  .inbox-app.mobile-profile .customer-profile .mobile-back {
    display: inline-flex;
  }
  .inbox-app.mobile-profile .customer-profile > header strong {
    flex: 1;
    margin-left: 6px;
  }
  .space-switch {
    left: 44%;
  }
  .customer-preview-link {
    font-size: 11px;
  }
  .customer-preview-link > svg {
    display: none;
  }
  .topbar-right > .test-badge {
    display: none;
  }
}
@media (max-width: 800px) {
  .inbox-app, .inbox-app.without-profile {
    grid-template-columns: 49px 225px minmax(285px, 1fr);
  }
  .inbox-navigation {
    display: none;
  }
  .thread-list {
    grid-column: 2;
  }
  .conversation, .inbox-app .customer-profile {
    grid-column: 3;
  }
  .list-header {
    height: 60px;
  }
  .list-header h2 {
    font-size: 13px;
  }
  .space-switch {
    left: 45%;
  }
  .space-switch button {
    padding: 6px 14px;
  }
  .customer-stage {
    gap: 30px;
    padding-top: 5px;
  }
  .customer-intro h1 {
    font-size: 27px;
  }
  .customer-widget {
    width: 360px;
  }
  .customer-intro > p {
    font-size: 12px;
  }
  .customer-instructions {
    font-size: 10px;
  }
  .topbar-right > .icon-button {
    display: none;
  }
}
@media (max-width: 600px) {
  .inbox-app, .inbox-app.without-profile {
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: 55px minmax(0, 1fr);
    min-height: 400px;
  }
  .app-topbar {
    padding: 0 10px;
    gap: 6px;
  }
  .workspace-brand {
    padding: 3px 6px 3px 3px;
    gap: 5px;
  }
  .workspace-brand > strong {
    font-size: 13px;
  }
  .workspace-brand > svg {
    display: none;
  }
  .brand-icon {
    width: 25px;
    height: 25px;
    font-size: 15px;
  }
  .space-switch {
    position: static;
    transform: none;
    margin-left: auto;
  }
  .space-switch button {
    font-size: 11px;
    padding: 4px 9px;
  }
  .space-switch button > svg {
    display: none;
  }
  .topbar-right {
    margin-left: 0;
    gap: 7px;
  }
  .customer-preview-link {
    font-size: 10px;
  }
  .role-picker select {
    font-size: 10px;
    max-width: 60px;
  }
  .role-picker .avatar {
    display: none;
  }
  .icon-rail {
    padding-top: 9px;
  }
  .icon-rail .icon-button {
    width: 30px;
    height: 33px;
  }
  .icon-rail > div {
    gap: 12px;
  }
  .thread-list, .conversation, .inbox-app .customer-profile {
    grid-column: 2;
  }
  .thread-list {
    border-radius: 10px 0 0 0;
  }
  .mobile-inbox .conversation, .mobile-inbox .customer-profile, .mobile-chat .thread-list, .mobile-chat .customer-profile, .mobile-profile .thread-list, .mobile-profile .conversation {
    display: none;
  }
  .mobile-profile .customer-profile {
    display: flex !important;
  }
  .conversation {
    border-radius: 10px 0 0 0;
    overflow: hidden;
  }
  .conversation-header {
    min-height: 58px;
    gap: 5px;
    padding: 9px;
  }
  .conversation-header > .avatar {
    display: none;
  }
  .conversation-title strong {
    font-size: 12px;
  }
  .conversation-title > span {
    font-size: 10px;
  }
  .mobile-back {
    display: inline-flex;
  }
  .conversation-actions .icon-button {
    width: 24px;
    height: 25px;
  }
  .conversation-actions .light-button {
    font-size: 10px;
    padding: 4px 6px;
    gap: 3px;
  }
  .conversation-actions .light-button > svg {
    display: none;
  }
  .conversation-actions {
    gap: 0;
  }
  .message-bubble {
    font-size: 12px;
  }
  .chat-history {
    padding: 6px 12px 20px;
  }
  .thread-subbar {
    padding: 8px 12px;
  }
  .composer-wrap {
    padding: 0 8px 10px;
  }
  .composer textarea {
    height: 66px;
    font-size: 11px;
  }
  .note-message {
    margin-left: 0;
  }
  .profile-identity {
    padding-top: 20px;
  }
  .customer-page-header {
    padding: 16px;
  }
  .customer-stage {
    display: block;
    padding: 0 12px 20px;
    margin-top: 2px;
  }
  .customer-intro {
    display: none;
  }
  .customer-widget {
    width: 100%;
    height: calc(100dvh - 82px);
    min-height: 400px;
    border-radius: 14px;
    box-shadow: 0 7px 30px #48376b0c;
  }
  .customer-widget .conversation-header {
    padding: 15px;
  }
  .customer-widget .conversation-header > .avatar {
    display: inline-flex;
  }
  .customer-widget .conversation-title strong {
    font-size: 13px;
  }
  .customer-page-header .customer-brand strong {
    font-size: 13px;
  }
  .customer-page-header > a:last-child {
    font-size: 11px;
  }
  .intake-card {
    width: 245px;
  }
  .popup-up {
    left: -9px;
    width: 228px;
  }
  .templates-menu {
    left: -65px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.message-bubble a {
  color: #7551e9;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.workflow-controls {
  margin-top: 14px;
  width: 270px;
  max-width: 100%;
}
.workflow-input {
  display: block;
  margin-bottom: 10px;
}
.workflow-input > label {
  display: block;
  font-size: 12px;
  color: var(--soft);
  margin-bottom: 7px;
}
.workflow-input > div {
  display: flex;
  gap: 6px;
}
.workflow-input input {
  flex: 1;
  min-width: 0;
  width: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 7px;
  outline-color: var(--purple);
  font-size: 13px;
}
.workflow-input button {
  display: flex;
  gap: 3px;
  align-items: center;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 7px;
  background: #7551e9;
  color: white;
  font-size: 12px;
}
.workflow-input small {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.workflow-choices {
  display: grid;
  gap: 7px;
}
.workflow-choices > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 11px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  color: var(--ink);
  text-align: left;
  line-height: 1.5;
}
.workflow-choices > button:hover:not(:disabled) {
  border-color: #b69ae9;
  background: var(--purple-soft);
}
.workflow-secondary {
  display: block;
  margin-top: 11px;
  padding: 7px 0;
  color: var(--purple);
  font-size: 11px;
  line-height: 1.6;
  text-align: left;
}
.flow-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  margin: 9px 0;
  font-size: 11px;
  line-height: 1.6;
}
.attachment-input {
  display: none;
}
.chat-image {
  display: block;
  border: 1px solid var(--line);
  margin-top: 8px;
  padding: 5px;
  border-radius: 10px;
  background: var(--paper);
}
.chat-image img {
  display: block;
  max-width: 230px;
  max-height: 240px;
  object-fit: contain;
  border-radius: 6px;
}
.chat-image span {
  display: block;
  padding: 5px;
  font-size: 10px;
  color: var(--muted);
}
.image-preview {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #17151ee8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 20px;
}
.image-preview > img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.image-preview > button {
  position: absolute;
  top: 20px;
  right: 25px;
  color: white;
  font-size: 15px;
  padding: 10px;
}
@media (max-width: 600px) {
  .workflow-controls {
    width: 245px;
  }
  .workflow-choices > button {
    padding: 10px;
  }
  .workflow-input input {
    width: 140px;
  }
  .chat-image img {
    max-width: 190px;
  }
}
.nav-subrow {
  padding-left: 31px;
  min-height: 30px;
  font-size: 11px;
}
.nav-subrow .tag-dot {
  width: 4px;
  height: 4px;
  opacity: 0.75;
}
.tag-filter-group + .tag-filter-group {
  margin-top: 5px;
}
.new-test-customer {
  margin-left: auto;
  margin-right: 18px;
  color: var(--soft);
  font-size: 11px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}
@media (max-width: 600px) {
  .new-test-customer {
    margin-right: 8px;
    padding: 6px 8px;
    font-size: 10px;
  }
}
.customer-page {
  padding: 0;
  min-height: 100dvh;
  display: block;
  background: white;
}
.customer-widget {
  width: 100%;
  max-width: none;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.customer-widget .conversation {
  flex: 1;
  min-height: 0;
}
.customer-widget .widget-credit {
  flex: none;
}
.setup-chat {
  position: fixed;
  z-index: 80;
  top: 65px;
  left: 50%;
  background: #4c37a2;
  color: white;
  padding: 12px;
  border-radius: 8px;
}
.customer-page .global-error {
  position: fixed;
  top: 50px;
  left: 12px;
  right: 12px;
  z-index: 100;
  background: #fff0ef;
  padding: 12px;
}
.inbox-app {
  --paper: #ffffff;
  --canvas: #f3f5f8;
  --nav: #f7f8fb;
  --line: #e2e7ee;
  --ink: #1d2939;
  --muted: #6c798c;
  --soft: #4c5e73;
  --hover: #edf1f7;
  --purple: #5c62c9;
  --purple-soft: #eef0ff;
}
.inbox-app[data-theme="dark"] {
  --paper: #1f242b;
  --canvas: #151a20;
  --nav: #1a2027;
  --line: #323a45;
  --ink: #edf2f7;
  --muted: #94a1b2;
  --soft: #c2ccd8;
  --hover: #29323d;
  --purple: #b3bdff;
  --purple-soft: #2c324b;
}
.inbox-app :focus-visible {
  outline-color: var(--purple);
}
.inbox-app .app-topbar {
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.inbox-app .workspace-brand {
  box-shadow: none;
  border: 1px solid var(--line);
}
.inbox-app .brand-icon {
  background: #5662bd;
  border-radius: 9px;
}
.inbox-app .space-switch {
  position: static;
  transform: none;
  flex-shrink: 0;
  background: var(--hover);
  padding: 3px;
}
.inbox-app .space-switch button {
  color: var(--muted);
  padding: 6px 14px;
}
.inbox-app .space-switch button.active {
  color: var(--ink);
  box-shadow: 0 1px 3px #00000010;
}
.inbox-app .topbar-right {
  min-width: 0;
  gap: 3px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.inbox-app .topbar-right > a, .inbox-app .topbar-right > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  min-height: 32px;
  padding: 5px 7px;
  border-radius: 7px;
  color: var(--soft);
  font-size: 11px;
  white-space: nowrap;
}
.inbox-app .topbar-right > a:hover, .inbox-app .topbar-right > button:hover {
  background: var(--hover);
  color: var(--ink);
}
.inbox-app .topbar-right > .icon-button {
  width: 31px;
  padding: 0;
}
.inbox-app .role-picker {
  flex-shrink: 0;
  padding-left: 7px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}
.inbox-app .nav-row {
  border-radius: 8px;
}
.inbox-app .nav-row.selected {
  background: var(--purple-soft);
  color: var(--purple);
}
.inbox-app .nav-row.selected svg {
  color: inherit;
}
.inbox-app .nav-count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.inbox-app .list-header {
  min-height: 54px;
}
.inbox-app .list-header h2 {
  font-size: 15px;
  letter-spacing: -.3px;
}
.inbox-app .list-search {
  min-height: 36px;
  margin-bottom: 9px;
  padding: 7px 10px;
  border-radius: 9px;
}
.inbox-app .list-search:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 2px var(--purple-soft);
}
.inbox-app .list-search input {
  font-size: 12px;
}
.inbox-app .list-search input::placeholder {
  color: var(--muted);
}
.inbox-app .thread-list-scroll {
  padding-top: 3px;
}
.inbox-app .thread-card {
  height: auto;
  min-height: 78px;
  margin-bottom: 5px;
  padding: 9px;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
}
.inbox-app .thread-card.selected {
  background: var(--purple-soft);
  border-color: #d7dcf4;
  box-shadow: inset 3px 0 0 #6571c7;
}
.inbox-app[data-theme="dark"] .thread-card.selected {
  border-color: #4b5676;
  box-shadow: inset 3px 0 0 #9daaff;
}
.inbox-app .thread-card > .avatar {
  width: 31px;
  height: 31px;
  border-radius: 11px;
}
.inbox-app .thread-card-title {
  margin-bottom: 3px;
}
.inbox-app .thread-card-title strong {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}
.inbox-app .thread-card-title time {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.inbox-app .thread-card-content > p {
  font-size: 12px;
  line-height: 1.45;
  color: var(--soft);
}
.inbox-app .thread-card-meta {
  margin-top: 5px;
  font-size: 10px;
  gap: 4px;
}
.inbox-app .thread-card-meta > span {
  padding: 2px 5px;
  border-radius: 5px;
  font-weight: 600;
}
.inbox-app .unread-dot {
  width: 7px;
  height: 7px;
  right: 10px;
  top: 13px;
  box-shadow: 0 0 0 3px var(--paper);
}
.inbox-app .conversation-header {
  min-height: 62px;
  padding: 10px 18px;
  gap: 10px;
}
.inbox-app .conversation-title strong {
  font-size: 15px;
  font-weight: 700;
}
.inbox-app .conversation-title > span {
  font-size: 11px;
  color: var(--muted);
}
.inbox-app .conversation-header > .avatar {
  border-radius: 12px;
}
.inbox-app .thread-subbar {
  min-height: 34px;
  font-size: 11px;
  padding: 6px 18px;
  background: var(--nav);
  border-bottom: 1px solid var(--line);
}
.inbox-app .chat-history {
  padding-top: 18px;
  padding-bottom: 18px;
  overscroll-behavior-y: contain;
}
.inbox-app .date-separator {
  margin: 3px 0 24px;
  font-size: 11px;
}
.inbox-app .date-separator span {
  padding: 5px 11px;
  background: var(--hover);
}
.inbox-app .message-row {
  margin-bottom: 18px;
  gap: 8px;
}
.inbox-app .message-content {
  max-width: min(86%, 54rem);
}
.inbox-app .message-row > .avatar {
  border-radius: 8px;
}
.inbox-app .agent-message .message-byline, .inbox-app .customer-message .message-byline {
  gap: 5px;
  min-height: 18px;
  margin-bottom: 5px;
}
.inbox-app .agent-message .message-byline strong, .inbox-app .customer-message .message-byline strong {
  font-size: 13px;
  font-weight: 700;
}
.inbox-app .agent-message .message-byline time, .inbox-app .customer-message .message-byline time {
  font-size: 11px;
  color: var(--muted);
}
.inbox-app .message-bubble {
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.inbox-app .message-bubble a {
  color: #3f64b8;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.inbox-app[data-theme="dark"] .message-bubble a {
  color: #a9c9ff;
}
.inbox-app .agent-message .message-bubble {
  background: #f2f3fc;
  border-color: #dce1f4;
  padding: 10px 14px;
}
.inbox-app .customer-message .message-bubble {
  background: #edf5fd;
  border-color: #c9dcef;
  padding: 10px 14px;
}
.inbox-app[data-theme="dark"] .agent-message .message-bubble {
  background: #2a3047;
  border-color: #4a5476;
}
.inbox-app[data-theme="dark"] .customer-message .message-bubble {
  background: #203549;
  border-color: #3c5a78;
}
.inbox-app .speaker-role {
  font-size: 10px;
  border-color: var(--line);
  border-radius: 4px;
}
.inbox-app .note-message {
  margin-left: 32px;
  padding: 11px 14px;
  background: #fff8e8;
  border-left-color: #b99542;
}
.inbox-app .note-message .message-bubble {
  background: transparent;
  border: 0;
  padding: 0;
  color: #725721;
  font-size: 13px;
}
.inbox-app .note-message .message-byline strong {
  color: #725721;
}
.inbox-app[data-theme="dark"] .note-message {
  background: #393224;
  border-left-color: #c4a35b;
}
.inbox-app[data-theme="dark"] .note-message .message-bubble {
  background: transparent;
  border: 0;
  padding: 0;
}
.inbox-app[data-theme="dark"] .note-message .message-bubble, .inbox-app[data-theme="dark"] .note-message .message-byline strong {
  color: #eadcba;
}
.inbox-app .composer-wrap {
  padding: 0 16px 14px;
  background: var(--paper);
  flex-shrink: 0;
}
.inbox-app .composer {
  border-color: var(--line);
  border-radius: 13px;
  box-shadow: 0 2px 6px #12213706;
}
.inbox-app .composer:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 2px var(--purple-soft);
}
.inbox-app .composer-tabs button {
  min-height: 28px;
  font-size: 12px;
  padding: 4px 8px;
}
.inbox-app .composer-tabs button.active {
  color: #235d97;
  background: #e9f2fc;
}
.inbox-app[data-theme="dark"] .composer-tabs button.active {
  color: #b5d8ff;
  background: #243a51;
}
.inbox-app .composer textarea {
  min-height: 80px;
  height: 124px;
  max-height: min(45dvh, 480px);
  resize: vertical;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.65;
}
.inbox-app .composer textarea::placeholder {
  color: var(--muted);
}
.inbox-app .composer-note {
  background: #fffaf0;
  border-color: #d7bb7a;
}
.inbox-app .composer-note .composer-tabs button.active {
  background: #f6e8c7;
  color: #74571f;
}
.inbox-app[data-theme="dark"] .composer-note {
  background: #302b20;
  border-color: #8a7343;
}
.inbox-app[data-theme="dark"] .composer-note .composer-tabs button.active {
  background: #4b3d24;
  color: #f3dc9f;
}
.inbox-app .send-button {
  width: 37px;
  height: 32px;
  border-radius: 10px;
  background: #5966c0;
}
.inbox-app .send-button:disabled {
  background: var(--hover);
  color: var(--muted);
}
.inbox-app .composer-note .send-button {
  background: #927335;
}
.inbox-app .composer-note .send-button:disabled {
  background: var(--hover);
  color: var(--muted);
}
.inbox-app .customer-profile > header {
  min-height: 62px;
}
.inbox-app .customer-profile > header strong {
  font-size: 13px;
}
.inbox-app .profile-identity {
  padding: 18px 17px 16px;
}
.inbox-app .profile-identity h2 {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
}
.inbox-app .profile-section {
  padding: 16px 17px;
}
.inbox-app .profile-section h3 {
  font-size: 13px;
  margin-bottom: 10px;
}
.inbox-app .profile-row {
  min-height: 32px;
  font-size: 12px;
}
.inbox-app .profile-row > b, .inbox-app .profile-row > select {
  font-size: 12px;
}
.inbox-app .profile-row > select {
  min-height: 30px;
  border: 1px solid var(--line);
  background: var(--nav);
  padding: 4px 6px;
}
.inbox-app .visitor-place {
  color: var(--ink);
}
.inbox-app .history-footnote {
  margin-top: 16px;
  color: var(--muted);
}
@media (max-width: 1250px) {
  .inbox-app .topbar-right > a, .inbox-app .topbar-right > button {
    padding-inline: 6px;
    font-size: 10px;
  }
  .inbox-app .profile-section {
    padding-inline: 13px;
  }
  .inbox-app .message-content {
    max-width: 90%;
  }
}
@media (max-width: 800px) {
  .inbox-app .app-topbar {
    gap: 8px;
    padding-inline: 10px;
  }
  .inbox-app .space-switch button {
    padding-inline: 9px;
  }
  .inbox-app .message-bubble {
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  .inbox-app, .inbox-app.without-profile {
    grid-template-rows: 96px minmax(0, 1fr);
  }
  .inbox-app .app-topbar {
    flex-wrap: wrap;
    align-content: center;
    row-gap: 5px;
    padding-block: 6px;
  }
  .inbox-app .space-switch {
    margin-left: auto;
  }
  .inbox-app .topbar-right {
    flex-basis: 100%;
    margin-left: 0;
  }
  .inbox-app .topbar-right > a, .inbox-app .topbar-right > button {
    min-height: 28px;
    font-size: 11px;
  }
  .inbox-app .conversation-header {
    min-height: 58px;
    padding-inline: 12px;
  }
  .inbox-app .thread-subbar {
    padding-inline: 12px;
    flex-wrap: wrap;
  }
  .inbox-app .chat-history {
    padding-inline: 12px;
  }
  .inbox-app .message-content {
    max-width: 91%;
  }
  .inbox-app .composer-wrap {
    padding-inline: 9px;
    padding-bottom: max(9px, env(safe-area-inset-bottom));
  }
  .inbox-app .thread-card {
    min-height: 80px;
  }
}
.inbox-app .avatar {
  display: none;
}
.macro-dialog {
  width: 720px;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.macro-dialog header {
  flex-shrink: 0;
}
.macro-search {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--nav);
  width: 100%;
  font-size: 16px;
}
.macro-groups {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-height: 100px;
  overflow: auto;
  margin: 12px 0;
}
.macro-groups button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}
.macro-groups .selected {
  background: var(--purple-soft);
  border-color: var(--purple);
  color: var(--purple);
}
.macro-note {
  font-size: 12px;
  color: var(--soft);
}
.macro-list {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.macro-list>button {
  flex-shrink: 0;
  text-align: left;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--paper);
}
.macro-list>button:hover {
  background: var(--hover);
}
.macro-list small {
  font-size: 11px;
  color: var(--purple);
}
.macro-list strong {
  font-size: 14px;
}
.macro-list span {
  white-space: pre-wrap;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.6;
  font-size: 12px;
  color: var(--soft);
}
.macro-fields {
  padding: 12px;
  border: 1px solid var(--purple);
  border-radius: 10px;
  margin-bottom: 12px;
  max-height: 210px;
  overflow: auto;
  flex-shrink: 0;
}
.macro-fields label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.macro-fields input {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: var(--paper);
}
.thread-context {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 5px 0;
}
.thread-context>span {
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 650;
}
.kind-new {
  background: #dff6e9;
  color: #16653c;
}
.kind-existing {
  background: #ffedd6;
  color: #8b4a0a;
}
.kind-unknown {
  background: var(--hover);
  color: var(--soft);
}
.source-badge {
  background: var(--hover);
  color: var(--soft);
}
.inbox-app .thread-product,.inbox-app .thread-assignee.assigned {
  border-width: 1px;
  border-style: solid;
}
.context-report {
  width: min(1000px,95vw);
  max-height: 80dvh;
  overflow: auto;
}
.context-report table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.context-report th,.context-report td {
  padding: 10px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.context-report th {
  background: var(--nav);
}
.inbox-status-tabs {
  display: flex;
  gap: 5px;
  padding: 0 12px 10px;
  flex-wrap: wrap;
}
.inbox-status-tabs button {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  color: var(--soft);
}
.inbox-status-tabs .selected {
  background: var(--purple-soft);
  color: var(--purple);
  border-color: var(--purple);
}
.customer-directory {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  width: min(1180px,96vw);
  height: min(88dvh,900px);
  border-radius: 16px;
  box-shadow: 0 16px 60px #0003;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.customer-directory>header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.customer-directory h2 {
  margin: 0;
  font-size: 20px;
}
.customer-directory header p {
  font-size: 12px;
  color: var(--soft);
  margin-bottom: 0;
}
.customer-directory header>div:last-child {
  display: flex;
  gap: 8px;
}
.directory-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0,1fr);
  flex: 1;
}
.directory-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  padding: 15px;
  background: var(--nav);
}
.directory-search {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.directory-search input {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 14px;
}
.directory-filters {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}
.directory-filters button {
  padding: 6px 9px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.directory-filters .selected {
  background: var(--purple-soft);
  color: var(--purple);
  border-color: var(--purple);
}
.directory-count {
  font-size: 11px;
  color: var(--soft);
}
.directory-list-scroll {
  overflow: auto;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.directory-contact {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}
.directory-contact.selected {
  border-color: var(--purple);
  background: var(--purple-soft);
}
.directory-contact strong {
  font-size: 14px;
}
.directory-contact span {
  font-size: 13px;
}
.directory-contact small,.directory-contact time {
  font-size: 11px;
  color: var(--soft);
}
.directory-detail {
  overflow: auto;
  padding: 20px 24px;
  min-width: 0;
}
.directory-detail section {
  border-bottom: 1px solid var(--line);
  padding: 0 0 20px;
  margin-bottom: 20px;
}
.directory-detail h3 {
  font-size: 15px;
}
.directory-detail p {
  font-size: 12px;
  color: var(--soft);
  line-height: 1.7;
}
.directory-profile {
  margin: 0;
}
.directory-profile>div {
  display: grid;
  grid-template-columns: 85px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.directory-profile dt {
  color: var(--muted);
}
.directory-profile dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.directory-section-title,.directory-history {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.directory-history {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0;
  font-size: 13px;
}
.directory-history strong {
  line-height: 1.6;
}
.directory-history p {
  margin: 5px 0 0;
}
.directory-history button {
  flex-shrink: 0;
}
.directory-profile-history {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin: 7px 0;
  font-size: 12px;
}
.directory-profile-history summary {
  cursor: pointer;
  font-weight: 650;
}
.directory-profile-history dl>div {
  display: grid;
  grid-template-columns: 80px minmax(0,1fr);
  gap: 10px;
  margin: 7px 0;
}
.directory-profile-history dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.empty-list>.light-button {
  margin-bottom: 8px;
}
@media (max-width:700px) {
  .customer-directory>header {
    padding: 12px;
  }
  .customer-directory header p {
    display: none;
  }
  .directory-body {
    grid-template-columns: 1fr;
    grid-template-rows: 240px minmax(0,1fr);
  }
  .directory-list {
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .directory-list-scroll {
    display: block;
    white-space: nowrap;
  }
  .directory-contact {
    display: inline-flex;
    width: 210px;
    margin-right: 7px;
    white-space: normal;
    vertical-align: top;
  }
  .directory-detail {
    padding: 15px;
  }
  .directory-profile>div {
    grid-template-columns: 65px minmax(0,1fr) auto;
    gap: 6px;
  }
  .directory-history {
    align-items: flex-start;
    flex-direction: column;
  }
}
.settings-dialog select {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
}
.blacklist-manager {
  width: min(760px,calc(100vw - 32px));
  max-width: 760px;
  max-height: 90dvh;
  overflow: auto;
}
.blacklist-manager header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.blacklist-manager header p {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0 0;
}
.blacklist-manager h3 {
  margin: 0 0 12px;
}
.blacklist-add,.blacklist-list {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.blacklist-add label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  font-size: 13px;
}
.blacklist-manager input,.blacklist-manager select,.blacklist-manager textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}
.blacklist-manager select option {
  background: var(--paper);
  color: var(--ink);
}
.blacklist-manager textarea {
  resize: vertical;
}
.blacklist-manager .blacklist-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.blacklist-manager .blacklist-entry>div {
  min-width: 0;
}
.blacklist-manager .blacklist-entry button {
  flex-shrink: 0;
}
.blacklist-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.blacklist-list-heading h3 {
  margin: 0;
}
.blacklist-list-filters {
  display: grid;
  grid-template-columns: minmax(0,1fr) 130px;
  gap: 8px;
  margin: 14px 0;
}
.blacklist-notice {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
@media (max-width:600px) {
  .blacklist-manager .blacklist-entry {
    align-items: flex-start;
    flex-direction: column;
  }
  .blacklist-list-filters {
    grid-template-columns: 1fr;
  }
  .blacklist-manager {
    max-height: 94dvh;
  }
}
.attribution-report {
  width: min(1100px,calc(100vw - 32px));
  max-height: 90dvh;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  color: var(--ink);
}
.attribution-report header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.attribution-report h2 {
  margin: 0;
  font-size: 20px;
}
.attribution-report header p,.attribution-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.attribution-controls {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin: 20px 0;
}
.attribution-controls label {
  display: grid;
  gap: 7px;
}
.attribution-controls input {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.attribution-summary {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin: 18px 0;
}
.attribution-summary>div {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.attribution-summary span {
  color: var(--muted);
}
.attribution-summary strong {
  font-size: 27px;
}
.attribution-summary small {
  font-size: 12px;
  margin-left: 5px;
  font-weight: 400;
}
.attribution-ad-status {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--purple-soft);
  line-height: 1.7;
}
.attribution-report h3 {
  font-size: 14px;
}
.attribution-ad-status h3 {
  margin: 0;
}
.attribution-ad-status p {
  margin: 8px 0 0;
}
.attribution-table-scroll {
  overflow: auto;
  margin: 20px 0;
}
.attribution-report table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
.attribution-report caption {
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  padding-bottom: 12px;
}
.attribution-report th,.attribution-report td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: right;
}
.attribution-report th:first-child {
  text-align: left;
}
.attribution-report details {
  border-top: 1px solid var(--line);
  padding: 15px 0;
  line-height: 1.6;
}
.attribution-report summary {
  cursor: pointer;
}
.attribution-report li {
  line-height: 1.8;
}
@media (max-width:600px) {
  .attribution-summary {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .attribution-report {
    padding: 16px;
  }
  .attribution-summary>div {
    padding: 12px;
  }
}
.message-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.message-actions .edit-message {
  opacity: 1;
  min-height: 28px;
  margin-top: 0;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  background: var(--paper);
}
.message-actions .message-delete,.danger-action {
  color: #c24b59;
}
.message-actions button:disabled {
  opacity: .45;
}
.message-change-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.message-bubble.deleted-message {
  font-style: italic;
  opacity: .65;
}
.message-delete-dialog {
  width: min(560px,calc(100vw - 32px));
  max-height: 90dvh;
  overflow: auto;
}
.message-delete-dialog h2 {
  font-size: 19px;
  margin-top: 0;
}
.message-delete-dialog p {
  font-size: 13px;
  line-height: 1.7;
}
.message-delete-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 180px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--nav);
}
.message-delete-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.blacklist-modes {
  margin: 10px 0 16px;
}
.blacklist-modes .selected {
  background: var(--purple-soft);
  border-color: var(--purple);
  color: var(--purple);
}
@media (max-height: 700px), (max-width: 700px) {
  .inbox-app .composer textarea {
    min-height: 68px;
    height: 94px;
    max-height: 40dvh;
  }
}
.authentication-confirmation {
  margin: 10px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}
.authentication-confirmation p {
  margin: 0 0 10px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.6;
}
.authentication-confirmation button {
  min-height: 44px;
  border: 1px solid #465cc5;
  border-radius: 7px;
  padding: 9px 13px;
  color: #fff;
  background: #465cc5;
  font-size: 12px;
  font-weight: 650;
}
.authentication-confirmation button:disabled {
  opacity: .5;
}
.customer-sms-status {
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.5;
}
.customer-sms-status.needs-setup {
  color: #9a5b11;
  background: #fff3db;
}
.customer-sms-status.is-configured {
  color: #237455;
  background: #eaf7ef;
}
.inbox-app .thread-subbar:has(.customer-sms-status) {
  flex-wrap: wrap;
}
.customer-sms-status {
  font-size: 12px;
  font-weight: 600;
}
.customer-sms-status.in-progress {
  color: #245787;
  background: #e9f3fc;
}
.sms-feedback-dialog {
  margin: auto;
  max-width: calc(100vw - 24px);
  max-height: 90dvh;
  overflow: auto;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.sms-feedback-dialog::backdrop {
  background: #1d182f55;
}
.sms-feedback-dialog .sms-feedback-message {
  margin-block: 12px;
  font-weight: 600;
}
.sms-receipt {
  margin-block: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.sms-receipt p {
  margin-block: 5px;
}
.sms-receipt button {
  margin-top: 6px;
}
.ssak-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #252e46;
  color: #fff;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 3px 9px #1c274214;
}
.ssak-brand-mark i {
  width: 8px;
  height: 8px;
  background: #d9b677;
  border: 2px solid #fff;
  border-radius: 50%;
  position: absolute;
  bottom: -1px;
  right: -1px;
}
.ssak-brand-mark.is-small {
  width: 26px;
  height: 26px;
  border-radius: 9px;
}
.latest-jump-wrap {
  position: relative;
  flex: none;
  height: 0;
  z-index: 5;
}
.latest-message-jump {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 9px 15px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 4px 18px #1018281a;
  white-space: nowrap;
  font-size: 12px;
}
.composer-shortcut {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}
.customer-page {
  --ink: #243047;
  --soft: #526178;
  --muted: #78859a;
  --line: #e5eaf1;
  --purple: #465cc5;
  --purple-soft: #eff2ff;
  background: #f7f9fc;
}
.customer-page .customer-widget {
  min-height: 0;
  background: #f7f9fc;
}
.customer-widget .conversation {
  background: #f7f9fc;
}
.customer-widget .conversation-header {
  min-height: 72px;
  padding: 12px 44px 12px 18px;
  gap: 11px;
  background: #fff;
  border-bottom: 1px solid #edf0f5;
  flex-shrink: 0;
}
.customer-widget .conversation-title strong {
  font-size: 16px;
  letter-spacing: -.4px;
  font-weight: 750;
}
.customer-widget .conversation-title > span {
  font-size: 10px;
  color: #6a778d;
  gap: 5px;
}
.customer-widget .online-dot {
  background: #3b9b80;
  box-shadow: none;
}
.customer-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border-bottom: 1px solid #edf0f5;
  flex: none;
}
.customer-progress > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  color: #8b96a7;
}
.customer-progress i {
  width: 17px;
  height: 17px;
  border: 1px solid #e0e6ee;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 9px;
}
.customer-progress .active {
  color: #4054ab;
}
.customer-progress .active i {
  color: #fff;
  border-color: #465cc5;
  background: #465cc5;
}
.customer-progress .complete {
  color: #387d6b;
}
.customer-progress .complete i {
  background: #e9f5f0;
  border-color: #e9f5f0;
}
.customer-widget .chat-history {
  padding: 10px 14px 22px;
  scrollbar-gutter: stable;
  scroll-padding-top: 12px;
  overscroll-behavior-y: contain;
}
.customer-widget .date-separator {
  margin: 5px 0 20px;
  font-size: 10px;
}
.customer-widget .date-separator span {
  background: transparent;
  color: #8994a6;
}
.customer-widget .message-row {
  margin-top: 17px;
  gap: 7px;
}
.customer-widget .message-row > .avatar {
  width: 24px;
  height: 24px;
  margin-top: 4px;
  border-radius: 9px;
  font-size: 10px;
  background: #e9edf8;
  color: #51618f;
}
.customer-widget .message-content {
  min-width: 0;
  max-width: calc(100% - 34px);
}
.customer-widget .message-byline {
  font-size: 10px;
  margin-bottom: 7px;
  color: #78859a;
  gap: 6px;
}
.customer-widget .message-byline strong {
  color: #526178;
  font-weight: 600;
}
.customer-widget .message-byline time {
  font-size: 9px;
}
.customer-widget .staff-message .message-bubble {
  background: #fff;
  color: #34425a;
  border: 1px solid #e4eaf2;
  border-radius: 5px 16px 16px 16px;
  box-shadow: 0 2px 5px #20375803;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.customer-widget .customer-message .message-bubble {
  background: #465cc5;
  color: #fff;
  border: 1px solid #465cc5;
  border-radius: 16px 5px 16px 16px;
  font-size: 13px;
  padding: 10px 13px;
  line-height: 1.65;
}
.customer-widget .customer-message > .avatar {
  display: none;
}
.customer-widget .customer-message .message-content {
  max-width: 88%;
}
.customer-widget .customer-guide h3 {
  margin: 0 0 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -.2px;
  white-space: normal;
}
.customer-guide h3 > span {
  display: inline-flex;
  color: #6876b3;
}
.customer-guide .guide-body {
  white-space: pre-wrap;
  line-height: 1.85;
}
.customer-widget .message-bubble .guide-link {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
  padding: 10px 11px;
  border-radius: 9px;
  border: 1px solid #e1e7f2;
  background: #f6f8fc;
  color: #465a9b;
  text-decoration: none;
  min-height: 48px;
  white-space: normal;
}
.guide-link > span {
  min-width: 0;
  flex: 1;
  font-size: 12px;
  font-weight: 600;
}
.guide-link small {
  display: block;
  color: #78859a;
  font-size: 10px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.customer-widget .workflow-controls {
  width: 100%;
  margin-top: 10px;
}
.customer-widget .workflow-choices {
  gap: 8px;
}
.customer-widget .workflow-choice {
  min-height: 54px;
  padding: 8px 12px;
  gap: 10px;
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  color: #34425a;
  box-shadow: 0 2px 5px #263c5a03;
  transition: border-color .12s, background .12s, transform .12s;
}
.customer-widget .workflow-choice:hover:not(:disabled) {
  border-color: #9daedf;
  background: #f4f6ff;
  transform: translateY(-1px);
}
.customer-widget .workflow-choice:active:not(:disabled) {
  transform: translateY(0);
}
.choice-symbol {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 10px;
  color: #5d6d9f;
  background: #eff2fb;
}
.choice-gift .choice-symbol, .choice-department .choice-symbol, .choice-otherGift .choice-symbol {
  background: #f9f1e3;
  color: #a18143;
}
.choice-small .choice-symbol, .choice-content .choice-symbol, .choice-onestore .choice-symbol {
  background: #eaf5f0;
  color: #428371;
}
.choice-other .choice-symbol {
  background: #edf2f7;
  color: #62758b;
}
.choice-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.choice-copy strong {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}
.choice-copy small {
  font-size: 10px;
  color: #8994a6;
  font-weight: 400;
  line-height: 1.5;
}
.customer-widget .workflow-choice > svg {
  color: #9aa6b8;
}
.customer-widget .workflow-input {
  background: #fff;
  padding: 13px;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
}
.customer-widget .workflow-input label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
}
.customer-widget .workflow-input input {
  width: 100%;
  min-height: 46px;
  padding: 10px;
  font-size: 16px;
  border-color: #dfe5ef;
  background: #fafbfd;
  border-radius: 8px;
}
.customer-widget .workflow-input input:focus {
  outline: 2px solid #a7b7ee;
  outline-offset: 1px;
  background: #fff;
}
.customer-widget .workflow-input button {
  min-height: 46px;
  padding: 10px 13px;
  background: #465cc5;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.customer-widget .workflow-input small {
  font-size: 10px;
  margin-top: 8px;
}
.customer-widget .workflow-secondary {
  color: #62749d;
  min-height: 40px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
}
.customer-widget .composer-wrap {
  flex: none;
  padding: 8px 12px 5px;
  background: #fff;
  border-top: 1px solid #e9edf4;
}
.customer-widget .composer {
  border-color: #e0e6ef;
  background: #fafbfd;
  border-radius: 12px;
}
.customer-widget .composer:focus-within {
  border-color: #a9b8e5;
  box-shadow: 0 0 0 3px #ecf0fc;
}
.customer-widget .composer textarea {
  font-size: 16px;
  line-height: 1.6;
  min-height: 56px;
  padding: 12px;
}
.customer-widget .composer-toolbar {
  padding: 0 8px 8px;
}
.customer-widget .toolbar-tools .icon-button {
  width: 44px;
  height: 44px;
}
.customer-widget .send-button {
  width: 44px;
  height: 44px;
  background: #465cc5;
  color: #fff;
}
.customer-widget .send-button:disabled {
  background: #d9dfe8;
  color: #fff;
  opacity: 1;
}
.customer-widget .draft-preview-notice {
  font-size: 9px;
  margin: 6px 2px 3px;
  color: #8994a6;
}
.customer-widget .widget-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0;
  background: #fff;
  color: #9aa6b8;
  font-size: 9px;
  letter-spacing: .3px;
}
@media (max-width: 360px) {
  .customer-progress {
    padding: 9px 12px;
    gap: 5px;
  }
  .customer-progress > span {
    font-size: 9px;
  }
  .customer-widget .chat-history {
    padding-inline: 9px;
  }
  .customer-widget .conversation-header {
    padding-left: 13px;
  }
  .choice-copy strong {
    font-size: 12px;
  }
  .customer-widget .workflow-input > div {
    flex-wrap: wrap;
  }
  .customer-widget .workflow-input button {
    justify-content: center;
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .customer-widget .workflow-choice {
    transition: none;
  }
}
.customer-widget .message-row[data-flow-current="true"] .message-content {
  width: calc(100% - 34px);
}
.ssak-brand-mark {
  overflow: hidden;
  background: #e8edf3;
}
.ssak-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 23%;
  transform: scale(1.8);
  transform-origin: 50% 25%;
}
.ssak-brand-mark i {
  display: none;
}
.workflow-navigation {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.workflow-navigation button {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--soft);
  background: var(--paper);
}
.blacklist-dialog {
  max-height: 80dvh;
  overflow: auto;
}
.blacklist-entry {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.blacklist-entry p {
  overflow-wrap: anywhere;
}
.blacklist-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.blacklist-actions button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c24b59;
}
.blacklist-reason {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.customer-widget .ssak-brand-mark {
  width: 72px;
  height: 48px;
  border-radius: 9px;
  background: white;
  box-shadow: none;
}
.customer-widget .ssak-brand-mark.is-small {
  width: 42px;
  height: 30px;
  border-radius: 6px;
}
.customer-widget .ssak-brand-mark img {
  object-fit: contain;
  object-position: center;
  transform: none;
}
.customer-guide h3>span {
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #edf2fb;
  color: #465cc5;
  flex-shrink: 0;
}
.customer-profile-form {
  padding: 15px;
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  color: #34425a;
}
.profile-form-intro {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.65;
  color: #68758a;
}
.customer-profile-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  min-width: 0;
}
.customer-profile-form legend {
  padding: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #34425a;
}
.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px 10px;
}
.profile-form-field {
  min-width: 0;
}
.profile-form-field.field-customerName, .profile-form-field.field-phone, .profile-form-field.field-bankName, .profile-form-field.field-accountNumber, .profile-form-field.field-accountHolder {
  grid-column: 1 / -1;
}
.profile-form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
}
.profile-form-field label > span {
  color: #8b95a5;
}
.profile-form-field input, .profile-form-field select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #fafbfd;
  padding: 10px;
  color: #34425a;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.profile-form-field select {
  padding-right: 24px;
}
.profile-form-field input:focus, .profile-form-field select:focus {
  outline: 2px solid #a7b7ee;
  outline-offset: 1px;
  background: #fff;
}
.profile-form-field small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.45;
  color: #78859a;
}
.field-carrier:has(.carrier-selection-example[open]) {
  grid-column: 1 / -1;
}
.carrier-selection-example {
  margin-top: 4px;
}
.carrier-selection-example summary {
  width: fit-content;
  padding: 6px 0;
  color: #465cc5;
  font-size: 12px;
  cursor: pointer;
}
.carrier-selection-example img {
  display: block;
  width: 100%;
  max-width: 453px;
  height: auto;
}
.profile-copy-name {
  margin-top: 7px;
  padding: 5px 8px;
  border: 1px solid #dfe5ef;
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
  color: #53679b;
}
.profile-form-submit {
  position: sticky;
  bottom: -1px;
  padding: 10px 0 0;
  background: #fff;
  z-index: 1;
}
.profile-form-submit > button {
  width: 100%;
  min-height: 48px;
  padding: 11px;
  background: #465cc5;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
.profile-form-submit > button:disabled {
  background: #e9edf6;
  color: #8c97b0;
}
.profile-form-error {
  margin: 0 0 8px;
  padding: 10px;
  border-radius: 8px;
  background: #fff4f3;
  color: #a43f41;
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 360px) {
  .customer-profile-form {
    padding: 12px;
  }
  .profile-form-grid {
    gap: 13px 8px;
  }
}
.customer-page.customer-mobile-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e9edf5;
}
.customer-mobile-preview .customer-widget {
  width: 100%;
  max-width: 390px;
  height: 100dvh;
  max-height: 844px;
  box-shadow: 0 8px 32px #24304718;
}
.customer-mobile-preview .global-error {
  left: 50%;
  right: auto;
  width: min(calc(100% - 24px), 366px);
  transform: translateX(-50%);
}
.customer-shortcut-trigger {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  color: #4054ab;
  white-space: nowrap;
  text-decoration: none;
}
.customer-shortcut-trigger:focus-visible {
  outline: 2px solid #465cc5;
}
.customer-shortcut-guide {
  box-sizing: border-box;
  width: min(23rem, calc(100% - 32px));
  max-height: 85vh;
  overflow: auto;
  margin: auto;
  padding: 22px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #243047;
  box-shadow: 0 12px 50px #17233b38;
  text-align: left;
}
.customer-shortcut-guide::backdrop {
  background: #18203670;
}
.customer-shortcut-guide h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.customer-shortcut-guide p, .customer-shortcut-guide label {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.65;
}
.customer-shortcut-guide input {
  display: block;
  width: 100%;
  padding: 8px;
  font-size: 16px;
}
.customer-shortcut-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.customer-shortcut-actions button {
  min-height: 44px;
}
.customer-shortcut-page {
  display: grid;
  min-height: 100dvh;
  align-items: center;
  background: #f7f9fc;
  color: #243047;
}
.customer-shortcut-page .customer-shortcut-guide > img {
  margin-bottom: 16px;
  border-radius: 12px;
}
.customer-shortcut-actions > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
@media (max-width: 600px), (pointer: coarse) {
  .customer-widget .customer-shortcut-trigger {
    padding-inline: 10px;
    border: 1px solid #e8b8bd;
    background: #fff1f2;
    color: #9d2035;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
  }
  .customer-widget .customer-shortcut-trigger:active {
    background: #fbdde1;
  }
  .customer-widget .customer-shortcut-trigger:focus-visible {
    outline: 2px solid #9d2035;
    outline-offset: 2px;
  }
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}
