.merchant-welcome form {
  text-align: left;
  max-width: 390px;
  margin: 24px auto;
}
.merchant-welcome form > label {
  font-size: 12px;
  color: #526745;
}
.merchant-welcome form > .button {
  width: 100%;
  justify-content: center;
  margin-top: 5px;
}
.merchant-welcome > .back-link {
  display: inline-block;
  margin-top: 12px;
}
.setup-note {
  padding: 24px;
  background: #edf3e3;
  border: 1px solid #dce5cc;
  border-radius: 12px;
  margin: 25px 0;
}
.setup-note > strong {
  font-size: 15px;
}
.setup-note > p {
  font-size: 13px;
  line-height: 1.8;
  color: #596f4c;
}
.setup-note .inline-link {
  display: block;
  margin-top: 18px;
}
.merchant-shell .store-switch strong {
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.merchant-shell .beta-meter p {
  font-size: 11px;
  line-height: 1.8;
  color: #667a57;
}
.merchant-shell .sync-date {
  font-size: 18px;
  line-height: 1.5;
  margin-top: 16px;
}
.order-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 20px;
}
.order-toolbar input,
.order-toolbar select {
  margin: 0;
}
.search-field {
  flex: 1;
}
.order-toolbar .button {
  font-size: 10px;
  flex-shrink: 0;
}
.merchant-order-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
  min-height: 470px;
}
.merchant-order-layout .ticket-list {
  max-height: 850px;
  overflow-y: auto;
}
.merchant-order-layout .list-heading {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}
.merchant-order-layout .ticket-top {
  justify-content: space-between;
  font-size: 12px;
}
.merchant-order-layout .ticket-top strong {
  flex: 1;
}
.merchant-order-layout .ticket-bottom {
  text-transform: capitalize;
  gap: 8px;
}
.merchant-order-layout .ticket-bottom > span {
  white-space: normal;
  text-align: left;
}
.merchant-order-layout .order-detail {
  border: 0;
  border-radius: 0;
  min-width: 0;
}
.order-amount {
  font-size: 23px;
  font-weight: 500;
  white-space: nowrap;
}
.merchant-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
}
.merchant-facts dt {
  font-size: 10px;
  color: #637854;
  margin-bottom: 8px;
}
.merchant-facts dd {
  margin: 0;
  font-size: 12px;
  text-transform: capitalize;
}
.merchant-items article {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.item-icon {
  display: grid;
  place-items: center;
  background: #edf3e3;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}
.merchant-items article > div {
  flex: 1;
  min-width: 0;
}
.merchant-items strong {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.merchant-items p {
  font-size: 11px;
  color: #647952;
  margin: 6px 0 0;
}
.merchant-items article > span:last-child {
  font-size: 11px;
  white-space: nowrap;
}
.merchant-items small {
  display: block;
  font-size: 9px;
  color: #78896c;
  margin-top: 7px;
}
.merchant-shell .panel h3 {
  font-size: 13px;
  margin-top: 25px;
}
.merchant-shell fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.merchant-shell fieldset:disabled .button {
  opacity: 0.5;
}
.merchant-shell .integration-row strong {
  overflow-wrap: anywhere;
}
.merchant-shell .timeline strong,
.merchant-shell .page-heading h1 {
  overflow-wrap: anywhere;
}
.merchant-shell .page-heading .eyebrow {
  max-width: 650px;
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1150px) {
  .merchant-order-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .order-toolbar {
    flex-wrap: wrap;
  }
  .order-toolbar .search-field {
    min-width: 200px;
  }
  .merchant-facts {
    grid-template-columns: 1fr;
  }
  .order-amount {
    font-size: 20px;
  }
}
@media (max-width: 580px) {
  .merchant-order-layout {
    grid-template-columns: 1fr;
  }
  .merchant-order-layout .ticket-list {
    max-height: 300px;
  }
  .order-toolbar > label {
    width: 100%;
    min-width: 0 !important;
  }
  .order-toolbar .button {
    width: 100%;
    justify-content: center;
  }
  .merchant-shell .topbar-right .button {
    padding: 7px 12px;
    font-size: 10px;
  }
  .merchant-shell .sync-date {
    font-size: 14px;
  }
  .merchant-facts {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .order-detail .section-title {
    flex-direction: row;
    align-items: center;
  }
  .merchant-welcome h1 {
    font-size: 38px;
  }
  .merchant-welcome .setup-note {
    padding: 20px 15px;
  }
  .merchant-shell .stats > div {
    min-width: 0;
  }
  .merchant-shell .page-heading > .button {
    flex-shrink: 0;
  }
  .merchant-shell .page-heading h1 {
    font-size: 22px;
  }
}

.order-toolbar input[type='search'] {
  display: block;
  width: 100%;
  min-width: 0;
  background: #fcfdf8;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px 15px;
  font: inherit;
  font-size: 12px;
  color: var(--ink);
  outline-offset: 3px;
}
.order-toolbar input[type='search']::placeholder {
  color: #849475;
}
.merchant-welcome form > label {
  display: block;
  margin-bottom: 9px;
}
.merchant-welcome input[type='text'] {
  display: block;
  width: 100%;
  background: #fcfdf8;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px 15px;
  margin: 0 0 13px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  outline-offset: 3px;
}
.merchant-welcome input::placeholder {
  color: #849475;
}

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}
:is(.inquiry-layout, .case-support) label {
  display: block;
  margin: 16px 0;
}
:is(.inquiry-layout, .case-support) select,
:is(.inquiry-layout, .case-support) textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #d9dfd8;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  margin-top: 8px;
}
:is(.inquiry-layout, .case-support) fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
:is(.inquiry-layout, .case-support) .ai-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
}
.ai-consent input {
  margin-top: 4px;
}
.inquiry-history {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.inquiry-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f5ef;
  padding: 16px;
  border-radius: 10px;
}
.inquiry-checks {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.8;
}
:is(.inquiry-layout, .case-support) .section-title {
  flex-wrap: wrap;
}
:is(.inquiry-layout, .case-support) .panel {
  min-width: 0;
}
@media (max-width: 1000px) {
  .inquiry-layout {
    grid-template-columns: 1fr;
  }
}

.cancellation-panel {
  border: 1px solid #d9c5ac;
  background: #fffaf3;
  padding: 18px;
  border-radius: 12px;
  margin-top: 20px;
}
.cancellation-panel input[type='text'],
.cancellation-panel input:not([type]) {
  width: 100%;
  padding: 12px;
  border: 1px solid #d9dfd8;
  border-radius: 8px;
  box-sizing: border-box;
}
.cancellation-panel .inline-link {
  display: block;
  margin-top: 12px;
}

.queue-search {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.queue-search .queue-search-query,
.queue-search > .settings-actions,
.queue-search > .hint {
  grid-column: 1/-1;
}
.queue-search label {
  min-width: 0;
}
.queue-search input,
.queue-search select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.search-preview {
  padding: 12px;
  border-left: 3px solid #77945e;
  background: #f4f7ef;
  overflow-wrap: anywhere;
}
.search-preview p {
  white-space: pre-wrap;
}
@media (max-width: 580px) {
  .queue-search {
    grid-template-columns: 1fr;
  }
}

#saved-reply-editor label {
  display: block;
  margin: 16px 0;
}
#saved-reply-editor input,
#saved-reply-editor textarea,
.saved-reply-picker select {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  margin-top: 8px;
}
#saved-reply-editor textarea {
  resize: vertical;
}
.saved-reply-picker {
  margin: 18px 0;
}
.saved-reply-picker label {
  display: block;
}
.saved-reply-picker .button {
  margin-top: 10px;
}

.followup-reminder {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4f7ef;
}
.followup-reminder .settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reply-triage {
  padding: 14px;
  margin: 16px 0;
  border-left: 3px solid #77945e;
  background: #f4f7ef;
}
.reply-triage p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
}
.reply-triage.needs-attention {
  background: #fff4e5;
  border-color: #ab7139;
}

.support-overview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.overview-aging {
  margin: 24px 0;
}
.overview-aging > div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.overview-aging dd {
  font-weight: 600;
}
.overview-cases article {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.overview-cases article > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.overview-cases .button {
  flex-shrink: 0;
}
@media (max-width: 1000px) {
  .support-overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 580px) {
  .overview-cases article {
    align-items: flex-start;
    flex-direction: column;
  }
}

.case-tags {
  margin: 20px 0;
}
.case-tags label {
  display: block;
}
.case-tags input {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 8px;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.tag-list span {
  background: #e8eecf;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.case-history {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.case-history summary {
  cursor: pointer;
  font-weight: 600;
}
.case-history article {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.case-history p {
  margin: 8px 0;
  font-size: 12px;
  line-height: 1.6;
}

.queue-workspace {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.queue-case-detail,
.queue-conversations {
  min-width: 0;
}
.queue-conversations {
  padding: 18px;
}
.conversation-buttons {
  display: grid;
  gap: 8px;
  max-height: 650px;
  overflow: auto;
}
.conversation-choice {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  min-width: 0;
  overflow-wrap: anywhere;
}
.conversation-choice.selected {
  border-color: #526c3f;
  background: #edf3e3;
}
.conversation-choice > span {
  font-size: 11px;
}
.conversation-choice strong {
  font-size: 13px;
}
.conversation-priority {
  color: #62754f;
}
.queue-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.queue-workspace > .queue-case-detail:only-child {
  grid-column: 1/-1;
}
@media (max-width: 1100px) {
  .queue-workspace {
    grid-template-columns: 1fr;
  }
  .conversation-buttons {
    max-height: 320px;
  }
  .queue-conversations {
    padding: 16px;
  }
}

.queue-controls .queue-search {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.queue-controls .queue-search label {
  margin: 0;
}
.queue-controls .queue-search input,
.queue-controls .queue-search select {
  margin: 6px 0 0;
  padding: 9px;
}
.queue-controls .queue-search > .settings-actions {
  margin: 0;
}
.queue-controls .queue-search > .hint {
  margin: 0;
}
.queue-controls .stats {
  margin: 16px 0;
}
.queue-controls > .settings-actions {
  margin: 12px 0;
}
.queue-controls > .settings-actions label {
  margin: 0;
}
.queue-controls > .settings-actions select {
  margin: 6px 0 0;
}
.queue-help {
  margin: 12px 0;
  font-size: 12px;
}
.queue-help summary {
  cursor: pointer;
}
.queue-help p {
  margin: 12px 0;
  line-height: 1.6;
}
@media (max-width: 850px) {
  .queue-controls .queue-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 400px) {
  .queue-controls .queue-search {
    grid-template-columns: 1fr;
  }
}

.policy-automation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.policy-automation p,
.policy-summary {
  font-size: 12px;
  line-height: 1.8;
}
.policy-automation .button {
  flex-shrink: 0;
}
.policy-review {
  margin-top: 22px;
}
.policy-summary {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px 22px;
}
.policy-summary dt {
  font-weight: 600;
}
.policy-summary dd {
  margin: 0;
}
.policy-save-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#policy-edit-status {
  font-size: 11px;
  line-height: 1.7;
  margin: 8px 0 0;
}
#merchant-policy .toggle-row small {
  display: block;
  line-height: 1.7;
  margin-top: 6px;
}
#merchant-policy .form-footer {
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
@media (max-width: 850px) {
  .policy-automation {
    align-items: flex-start;
    flex-direction: column;
  }
  .policy-summary {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .policy-summary dd {
    margin-bottom: 12px;
  }
}

#merchant-policy .policy-grid {
  align-items: start;
}

.case-support {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.case-support > .inquiry-history {
  margin-top: 20px;
}
.case-support .merchant-facts {
  margin: 10px 0;
  padding: 16px 0;
}
.case-support .inquiry-message {
  overflow-wrap: anywhere;
}
.case-support .inquiry-history > .panel {
  padding: 20px;
}
.case-support .settings-actions {
  gap: 10px;
}

.agent-health {
  margin-bottom: 24px;
}
.agent-health .stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.agent-health .stats strong {
  font-size: 24px;
}
.agent-jobs article {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  overflow-wrap: anywhere;
}
.agent-jobs .button {
  margin: 8px 8px 0 0;
}
@media (max-width: 400px) {
  .agent-health .stats {
    grid-template-columns: 1fr;
  }
}

.knowledge-editor {
  margin: 24px 0;
}
.knowledge-editor fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
.knowledge-editor label {
  display: block;
  margin: 16px 0;
}
.knowledge-editor input:not([type='checkbox']),
.knowledge-editor textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font: inherit;
  margin-top: 8px;
}
.knowledge-editor .ai-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.6;
}
.knowledge-editor .ai-consent input {
  flex-shrink: 0;
}
.knowledge-evidence {
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.knowledge-source details {
  margin-top: 16px;
}
.knowledge-source summary,
.knowledge-evidence summary {
  cursor: pointer;
}
.knowledge-email {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  margin-top: 14px;
}
#pilot-settings .ai-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  margin: 16px 0;
}
#pilot-settings .ai-consent input {
  flex-shrink: 0;
}
.knowledge-gaps {
  margin: 24px 0;
}
.knowledge-gaps article {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.knowledge-gaps .settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.knowledge-gaps article p {
  overflow-wrap: anywhere;
}
#knowledge-import-preview {
  resize: vertical;
}

#answer-check-editor select {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font: inherit;
  margin-top: 8px;
}
.answer-check .settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.answer-check details {
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.answer-check summary {
  cursor: pointer;
}
.answer-check .section-title {
  flex-wrap: wrap;
}

/* Incoming requests stay separate from conversation resolution and assignment. */
.concierge-bell {
  position: relative;
  flex-shrink: 0;
}
.concierge-bell-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.concierge-bell-button:hover,
.concierge-bell-button[aria-expanded='true'] {
  background: var(--surface-soft);
}
.concierge-bell-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.concierge-bell-count {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 19px;
  padding: 2px 4px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
}
.concierge-bell-panel {
  position: absolute;
  z-index: 100;
  right: 0;
  top: calc(100% + 12px);
  width: min(380px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 16px 48px #0002;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  box-sizing: border-box;
  max-height: min(680px, 80vh);
  overflow: auto;
}
.concierge-bell-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.concierge-bell-heading h2 {
  font-size: 18px;
  margin: 0;
}
.concierge-bell-items {
  display: grid;
  margin-top: 16px;
}
.concierge-bell-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px 0;
  text-align: left;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  overflow-wrap: anywhere;
  white-space: normal;
}
.concierge-bell-item:hover {
  background: var(--surface-soft);
}
.concierge-bell-item span,
.concierge-bell-item small {
  color: var(--muted);
}
.concierge-bell-panel .settings-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.concierge-bell-panel .button {
  white-space: normal;
}
.concierge-bell-panel .hint {
  font-size: 12px;
  line-height: 1.5;
}
.concierge-bell .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 600px) {
  .concierge-bell-panel {
    position: fixed;
    top: 72px;
    right: 16px;
    max-height: calc(100dvh - 100px);
  }
  .merchant-shell .topbar-right {
    gap: 10px;
  }
  .merchant-shell .topbar-right > .live-dot {
    display: none;
  }
}
[data-checkpoint-review] .ai-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  margin: 16px 0;
}
[data-checkpoint-review] .ai-consent input {
  flex-shrink: 0;
}
[aria-label='Learning preparation filters'] [aria-pressed='true'] {
  background: var(--ink, #242424);
  color: var(--white, #fff);
  border-color: var(--ink, #242424);
}

.case-handoff {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  overflow-wrap: anywhere;
}
.case-handoff h3 {
  margin: 8px 0;
}
.case-handoff p {
  line-height: 1.6;
}
.case-handoff details {
  margin-top: 12px;
}
.case-handoff summary {
  cursor: pointer;
  font-weight: 600;
}
[data-handoff-target] {
  scroll-margin-top: 24px;
}

.first-reply-guide ol {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 10px;
}
.first-reply-guide li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.first-reply-guide li .muted {
  margin-left: auto;
  font-size: 12px;
}
[data-setup-target] {
  scroll-margin-top: 24px;
}

.outcome-views {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.outcome-views .button {
  white-space: normal;
}

.message-attachments {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  overflow-wrap: anywhere;
}
.message-attachments ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 12px;
}
.message-attachments li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.message-attachments li > div {
  flex: 1 1 180px;
  min-width: 0;
}
.message-attachments li p {
  margin: 4px 0;
}
.message-attachments .button {
  white-space: normal;
}

.merchant-shell .chat-list .ticket {
  display: block;
  width: 100%;
  text-align: left;
}
.merchant-shell .chat-list .ticket > strong {
  display: block;
  margin-bottom: 8px;
}
.merchant-shell .chat-list .ticket > p {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.merchant-shell .chat-list .ticket .status {
  display: inline-block;
  white-space: normal;
}

.merchant-store-choice p {
  overflow-wrap: anywhere;
}
.merchant-store-choice .setup-note .button {
  margin: 8px 4px;
  max-width: 100%;
  white-space: normal;
}

.review-time-panel {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
}
.review-time-panel h3 {
  margin-top: 0;
}
.review-time-panel .button {
  margin: 4px 4px 4px 0;
}
.voice-status {
  padding-left: 18px;
  line-height: 1.8;
}
.voice-calls {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}
.voice-calls .ticket {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 4px;
}
.voice-transcript {
  padding-left: 20px;
  line-height: 1.6;
}
.voice-transcript li {
  margin: 6px 0;
}
[data-voice-action='filter'][aria-pressed='true'] {
  background: #2d302c;
  border-color: #2d302c;
  color: #fff;
}
.quickstart .quickstart-steps {
  padding-left: 20px;
  line-height: 1.7;
  display: grid;
  gap: 10px;
}
.quickstart .quickstart-steps .done {
  color: #3f6b46;
}
.quickstart .quickstart-steps .done::marker {
  content: '✓  ';
}
.ai-source {
  display: grid;
  gap: 4px;
  margin: 6px 0;
}
.ai-source details {
  margin-left: 28px;
}
.ai-source-text {
  white-space: pre-wrap;
  max-height: 240px;
  overflow: auto;
  background: #f6f6f4;
  padding: 10px;
  border-radius: 6px;
}
.inbox-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 18px 0;
}
.inbox-search label {
  flex: 1 1 220px;
  margin: 0;
}
.inbox-search .button {
  flex: 0 0 auto;
}
.coverage-scroll {
  overflow-x: auto;
  margin: 12px 0;
}
.coverage-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.coverage-table th,
.coverage-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, 0.1));
  white-space: nowrap;
}
.coverage-table thead th {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.75;
}
.chat-photo {
  display: block;
  max-width: min(320px, 100%);
  max-height: 320px;
  margin: 6px 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: contain;
}
.autopilot-table td,
.autopilot-table th {
  white-space: normal;
  vertical-align: top;
}
.autopilot-table small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.75;
}
.autopilot-on {
  font-weight: 600;
}
.autopilot-off {
  opacity: 0.85;
}
.link-button {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}
.worklist-review {
  margin: 20px 0 4px;
  padding: 18px;
  border: 1px solid var(--line, #e5e5e5);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface, #fff) 88%, var(--accent, #6c5ce7));
}
.worklist-review h3 {
  margin: 6px 0;
}
.worklist-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.worklist-review-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.worklist-review-grid strong {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}
.worklist-review-grid span {
  font-size: 0.78rem;
  opacity: 0.75;
}
