/* Shared visual system for the merchant, sample and verification experiences.
   Component layout stays in workspace.css and merchant.css. */
:root {
  --ink: #292929;
  --muted: #6d6d6d;
  --green: #292929;
  --lime: #efefef;
  --paper: #fafafa;
  --line: #e5e5e5;
  --white: #ffffff;
  --surface-soft: #f5f5f5;
  --text-secondary: #646464;
  --success: #286342;
  --success-surface: #edf6ef;
  --warning: #865613;
  --warning-surface: #fff9ed;
  --danger: #a33b36;
  --danger-surface: #fff3f2;
}
body {
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
}
h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
:is(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid #737e78;
  outline-offset: 3px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.app-shell .topbar {
  height: 66px;
  background: var(--white);
  border-color: var(--line);
  font-size: 13px;
}
.app-shell .topbar strong {
  font-weight: 500;
}
.app-shell .breadcrumb,
.app-shell .topbar-right {
  color: var(--muted);
  font-size: 12px;
}
.app-shell .profile-avatar {
  background: #eee;
  color: #555;
  font-size: 12px;
}
.app-shell .live-dot,
.app-shell .green-dot {
  background: #558c67;
}
.app-shell .main-content {
  padding: 30px 32px 40px;
  max-width: 1520px;
  margin-inline: auto;
}
.app-shell .page-heading {
  margin-bottom: 25px;
}
.app-shell .page-heading h1 {
  font-size: 27px;
  font-weight: 600;
}
.app-shell .eyebrow {
  color: #5f5f5f;
  font-size: 11px;
  letter-spacing: 0.8px;
  line-height: 1.6;
}
.app-shell .page-heading .eyebrow {
  font-size: 11px;
  margin-bottom: 7px;
}
.app-shell .sample-banner {
  background: #f3f3f3;
  border-color: var(--line);
  color: var(--text-secondary);
  padding: 12px 15px;
  font-size: 12px;
}
.app-shell .sample-banner strong,
.app-shell .sample-banner > span:first-child {
  color: #4d4d4d;
}
.app-shell .sample-badge {
  border-color: #d8d8d8;
  font-size: 11px;
  background: #fafafa;
}
.app-shell .panel {
  background: var(--white);
  border-color: var(--line);
  border-radius: 10px;
  padding: 25px;
}
.app-shell .main-content > .panel {
  margin-bottom: 20px;
}
.app-shell .panel h2 {
  font-size: 19px;
  margin-bottom: 16px;
}
.app-shell .panel h3 {
  font-size: 14px;
}
.app-shell .panel p {
  line-height: 1.7;
}
.app-shell .muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.app-shell .hint,
.app-shell .form-footer > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.app-shell .inline-link {
  color: #4f6458;
  font-size: 12px;
  text-underline-offset: 3px;
}
.button {
  border-color: #ddd;
  border-radius: 7px;
  background: #fff;
  color: #333;
  min-height: 38px;
  padding: 9px 14px;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.button:hover:not(:disabled) {
  background: #f2f2f2;
  border-color: #ccc;
}
.button.primary {
  background: #292929;
  border-color: #292929;
  color: #fff;
}
.button.primary:hover:not(:disabled) {
  background: #444;
  border-color: #444;
}
.button.secondary {
  background: #fff;
  border-color: #dcdcdc;
  color: #333;
}
.button.danger {
  color: var(--danger);
  background: #fff;
  border-color: #e8c9c6;
}
.button.danger:hover:not(:disabled) {
  background: var(--danger-surface);
  border-color: #d7b0ac;
}
.icon-button {
  background: #fff;
  border-color: var(--line);
  color: #777;
}
.app-shell .settings-actions {
  gap: 10px;
  margin: 20px 0;
}
.app-shell .stats {
  gap: 14px;
  margin: 20px 0 24px;
}
.app-shell .stats > div {
  background: #fff;
  border-color: var(--line);
  padding: 18px;
  border-radius: 9px;
}
.app-shell .stats > div > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.app-shell .stats strong {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 30px;
  font-weight: 500;
  color: #303030;
  letter-spacing: -0.8px;
}
.app-shell .stats small {
  color: #737373;
  font-size: 11px;
  line-height: 1.5;
}
.app-shell .stats .sync-date {
  font-size: 18px;
  letter-spacing: 0;
}
:is(.main-content, dialog, .welcome) label {
  color: #505050;
  font-size: 13px;
  line-height: 1.5;
}
:is(.main-content, dialog, .welcome) input:not([type='checkbox']):not([type='radio']),
:is(.main-content, dialog, .welcome) select,
:is(.main-content, dialog, .welcome) textarea {
  color: var(--ink);
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 7px;
  font:
    400 14px/1.5 'DM Sans',
    system-ui,
    sans-serif;
  padding: 10px 12px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
:is(.main-content, dialog, .welcome) input:not([type='checkbox']):not([type='radio']),
:is(.main-content, dialog, .welcome) select {
  min-height: 40px;
}
:is(.main-content, dialog, .welcome) textarea {
  resize: vertical;
}
:is(.main-content, dialog, .welcome) input::placeholder,
:is(.main-content, dialog, .welcome) textarea::placeholder {
  color: #848484;
}
:is(.main-content, dialog, .welcome) input:disabled,
:is(.main-content, dialog, .welcome) select:disabled,
:is(.main-content, dialog, .welcome) textarea:disabled {
  background: #f5f5f5;
  color: #777;
}
input[type='checkbox'],
input[type='radio'] {
  accent-color: #343d37;
}
.app-shell .toggle-row strong {
  color: #383838;
  font-size: 13px;
}
.app-shell .toggle-row small {
  color: #737373;
  font-size: 12px;
}
.app-shell .policy-summary,
.app-shell .policy-automation p {
  font-size: 13px;
}
.app-shell .policy-callout,
.app-shell .intro-note,
.app-shell .setup-note {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--text-secondary);
}
.app-shell .policy-callout p,
.app-shell .intro-note p {
  color: var(--text-secondary);
  font-size: 13px;
}
.app-shell .intro-note > span {
  color: #777;
}
.app-shell .pending-note {
  background: var(--warning-surface);
  border-color: #ecdfc5;
  color: var(--warning);
  font-size: 12px;
  line-height: 1.7;
}
.app-shell .pending-note .button {
  font-size: 12px;
}
.app-shell .cancellation-panel,
.app-shell .followup-reminder,
.app-shell .case-history,
.app-shell .knowledge-evidence {
  background: #fafafa;
  border-color: var(--line);
  border-radius: 8px;
}
.app-shell .inquiry-message,
.app-shell .customer-message {
  background: #f5f5f5;
  border-color: #e9e9e9;
  color: #383838;
  font-size: 14px;
  line-height: 1.75;
  border-radius: 8px;
}
.app-shell .reply-triage,
.app-shell .search-preview {
  background: #f5f5f5;
  border-color: #aaa;
}
.app-shell .reply-triage.needs-attention {
  background: var(--warning-surface);
  border-color: #b38c4f;
  color: var(--warning);
}
.app-shell .tag-list span {
  background: #f0f0f0;
  color: #555;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
}
.app-shell .conversation-choice {
  background: #fff;
  border-color: #e4e4e4;
}
.app-shell .conversation-choice:hover {
  background: #f8f8f8;
}
.app-shell .conversation-choice.selected {
  background: #f0f0f0;
  border-color: #c9c9c9;
}
.app-shell .conversation-choice > span,
.app-shell .conversation-priority {
  color: #5f5f5f;
  font-size: 12px;
}
.app-shell .conversation-choice strong {
  color: #333;
  font-size: 14px;
}
.app-shell .status {
  background: #f0f0f0;
  color: #626262;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 5px;
}
.app-shell .status.new {
  background: #f0f0f0;
  color: #626262;
}
.app-shell .status.ready,
.app-shell .status.resolved {
  background: var(--success-surface);
  color: var(--success);
}
.app-shell .status.review {
  background: var(--warning-surface);
  color: var(--warning);
}
.app-shell .merchant-order-layout,
.app-shell .inbox-layout {
  border-color: var(--line);
  background: #fff;
}
.app-shell .ticket-list,
.app-shell .list-heading {
  background: #fcfcfc;
}
.app-shell .list-heading {
  font-size: 12px;
}
.app-shell .list-heading > span {
  color: #666;
  font-size: 11px;
}
.app-shell .ticket.selected {
  background: #efefef;
}
.app-shell .ticket.selected:before {
  background: #747474;
}
.app-shell .ticket:hover {
  background: #f4f4f4;
}
.app-shell .ticket-top strong,
.app-shell .ticket h2,
.ticket .ticket-title {
  font-size: 13px;
}
.app-shell .ticket > p,
.app-shell .ticket-bottom {
  color: #5f5f5f;
  font-size: 11px;
}
.app-shell .person-avatar,
.app-shell .item-icon,
.app-shell .integration-icon {
  background: #eee;
  color: #6a6a6a;
}
.app-shell .channel-icon {
  color: #7b7b7b;
}
.app-shell .merchant-facts dt {
  color: #737373;
  font-size: 12px;
}
.app-shell .merchant-facts dd,
.app-shell .merchant-items strong,
.app-shell .merchant-items p,
.app-shell .merchant-items article > span:last-child {
  font-size: 13px;
}
.app-shell .merchant-items p,
.app-shell .merchant-items small {
  color: #6d6d6d;
}
.app-shell .merchant-items small {
  font-size: 11px;
}
.app-shell .order-toolbar .button {
  font-size: 12px;
}
.app-shell .conversation-header h2 {
  font-size: 14px;
}
.app-shell .conversation-header p,
.app-shell .message-meta {
  color: #6b6b6b;
  font-size: 12px;
}
.app-shell .message-meta > span:last-child {
  color: #6d6d6d;
  font-size: 11px;
}
.app-shell .concierge-meta {
  font-size: 13px;
}
.app-shell .concierge-meta > span {
  color: #6b6b6b;
  background: #eee;
  font-size: 9px;
}
.app-shell .order-context {
  background: #fcfcfc;
}
.app-shell .customer-profile strong {
  font-size: 13px;
}
.app-shell .customer-profile > span:last-child {
  color: #6d6d6d;
  font-size: 11px;
}
.app-shell .order-title,
.app-shell .product-variant {
  color: #737373;
  font-size: 12px;
}
.app-shell .order-context h3 {
  font-size: 13px;
}
.app-shell .order-facts {
  font-size: 11px;
}
.app-shell .order-facts dt,
.app-shell .order-title > span {
  color: #737373;
}
.app-shell .context-note {
  color: #737373;
  font-size: 11px;
}
.app-shell .product-thumb {
  background: #f1f1f1;
}
.app-shell .waiting-card {
  background: #fafafa;
  border-color: #ddd;
}
.app-shell .waiting-card > span {
  color: #858585;
}
.app-shell .waiting-card h3 {
  font-size: 14px;
}
.app-shell .waiting-card p {
  color: #737373;
  font-size: 13px;
}
.app-shell .waiting-card small {
  color: #737373;
  font-size: 11px;
}
.app-shell .decision-card {
  background: #fafafa;
  border-color: #dedede;
}
.app-shell .decision-symbol {
  background: #eee;
  color: #555;
}
.app-shell .decision-top strong {
  font-size: 13px;
}
.app-shell .decision-top p {
  color: #737373;
  font-size: 12px;
}
.app-shell .checks {
  font-size: 12px;
}
.app-shell .checks li {
  color: #666;
}
.app-shell .checks .pass > span {
  color: var(--success);
}
.app-shell .checks .fail {
  color: var(--warning);
}
.app-shell .decision-foot {
  color: #737373;
  font-size: 10px;
  border-color: var(--line);
}
.app-shell .trace {
  color: #737373;
  font-size: 12px;
}
.app-shell .trace p {
  font-size: 12px;
}
.app-shell .trace pre {
  background: #f5f5f5;
  font-size: 11px;
}
.app-shell .sample-reply {
  background: #fff;
  border-color: var(--line);
}
.app-shell .sample-reply p {
  font-size: 13px;
}
.app-shell .conversation-actions .button {
  font-size: 13px;
}
.app-shell .order-note {
  color: var(--success);
  background: var(--success-surface);
  font-size: 12px;
}
.app-shell .completed-label {
  color: var(--success);
  font-size: 12px;
}
.app-shell .preview-row p,
.app-shell .preview-row small {
  color: #737373;
  font-size: 12px;
}
.app-shell .timeline-icon {
  background: #f0f0f0;
  color: #737373;
  flex-shrink: 0;
}
.app-shell .timeline strong {
  font-size: 13px;
}
.app-shell .timeline p {
  color: #737373;
  font-size: 13px;
}
.app-shell .timeline time {
  color: #6d6d6d;
  font-size: 11px;
}
.app-shell .integration-row strong {
  font-size: 14px;
}
.app-shell .integration-row p,
.app-shell .integration-row > a {
  color: #737373;
  font-size: 12px;
}
.app-shell .empty {
  color: #737373;
}
.app-shell .empty h2,
.app-shell .empty h3 {
  color: #404040;
  font-size: 18px;
}
.app-shell .empty p {
  font-size: 13px;
  max-width: 440px;
}
.app-shell .app-footer {
  font-size: 11px;
  color: #6d6d6d;
}
.welcome {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.welcome h1 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 42px;
  letter-spacing: -1.3px;
}
.welcome .eyebrow,
.welcome > p:not(.eyebrow),
.welcome-facts,
.welcome .back-link,
.welcome .welcome-note {
  color: #6d6d6d;
}
.welcome .setup-note {
  background: #f5f5f5;
  border-color: var(--line);
}
.welcome .setup-note p {
  color: #6d6d6d;
}
.welcome .welcome-note {
  font-size: 12px !important;
}
.welcome .back-link,
.welcome-facts {
  font-size: 13px;
}
.merchant-welcome form > label {
  color: #555;
  font-size: 13px;
}
dialog {
  background: #fff;
  border-color: #ddd;
  color: #333;
  border-radius: 12px;
  box-shadow: 0 20px 90px #0002;
}
dialog::backdrop {
  background: #20202066;
  backdrop-filter: blur(2px);
}
#toast {
  background: #303732;
  border-color: #4b554e;
  color: #fff;
  box-shadow: 0 5px 24px #0002;
  font-size: 13px;
}
#toast.error {
  background: #843e36;
  border-color: #a75b52;
}
@media (max-width: 1000px) {
  .app-shell .main-content {
    padding: 25px 24px 32px;
  }
  .app-shell .panel {
    padding: 22px;
  }
  .app-shell .page-heading h1 {
    font-size: 25px;
  }
}
@media (max-width: 580px) {
  .app-shell .main-content {
    padding: 22px 14px 28px;
  }
  .app-shell .panel {
    padding: 20px 17px;
  }
  .app-shell .page-heading h1 {
    font-size: 23px;
  }
  .app-shell .page-heading .eyebrow {
    font-size: 11px;
  }
  .app-shell .topbar {
    height: 56px;
  }
  .app-shell .sample-banner {
    padding: 12px;
  }
  .app-shell .sample-banner p {
    font-size: 11px;
  }
  .app-shell .stats {
    gap: 10px;
  }
  .app-shell .stats > div {
    padding: 14px;
  }
  .app-shell .stats > div > span {
    font-size: 11px;
  }
  .app-shell .stats strong {
    font-size: 27px;
  }
  .app-shell .stats .sync-date {
    font-size: 16px;
  }
  .app-shell .stats small {
    font-size: 11px;
  }
  .app-shell .button,
  .app-shell .page-heading .button {
    font-size: 12px;
    min-height: 40px;
  }
  .app-shell .settings-actions > .button {
    max-width: 100%;
  }
  .app-shell .app-footer {
    font-size: 11px;
  }
  .welcome {
    margin: 20px 14px;
    padding: 28px 20px;
  }
  .welcome h1,
  .merchant-welcome h1 {
    font-size: 34px;
  }
  .welcome input:not([type='checkbox']),
  .welcome select,
  .welcome textarea,
  .app-shell .main-content input:not([type='checkbox']),
  .app-shell .main-content select,
  .app-shell .main-content textarea {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Navigation shares the same neutral surfaces and icon system in both apps. */
.app-shell {
  grid-template-columns: 260px minmax(0, 1fr);
}
.app-shell .sidebar {
  background: #fbfbfb;
  border-right: 1px solid #e7e7e7;
  padding: 24px 16px 16px;
  height: 100dvh;
  min-height: 0;
  color: #292929;
  gap: 0;
}
.app-shell .sidebar .brand {
  font-size: 23px;
  letter-spacing: -1px;
  padding: 0 8px;
  margin-bottom: 25px;
  color: #303c34;
  flex-shrink: 0;
}
.app-shell .sidebar-search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  margin: 0 0 18px;
  min-width: 0;
  flex-shrink: 0;
}
.app-shell .sidebar-search:focus-within {
  outline: 2px solid #737e78;
  outline-offset: 2px;
}
.app-shell .sidebar-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 13px;
}
.app-shell .sidebar-search input::placeholder {
  color: #858585;
}
.app-shell .sidebar-search kbd {
  font-family: inherit;
  font-size: 12px;
  color: #777;
  background: #f1f1f1;
  padding: 1px 5px;
  border-radius: 3px;
}
.app-shell .store-switch {
  display: flex;
  margin: 0 0 20px;
  padding: 10px;
  background: #efefef;
  border: 0;
  border-radius: 8px;
  gap: 10px;
  flex-shrink: 0;
}
.app-shell .store-avatar {
  width: 30px;
  height: 30px;
  border: 1px solid #dcdcdc;
  background: #fafafa;
  color: #5d655f;
  font:
    500 13px 'DM Sans',
    sans-serif;
  border-radius: 6px;
  flex-shrink: 0;
}
.app-shell .store-switch strong {
  max-width: 175px;
  font-size: 13px;
  font-weight: 500;
  color: #303030;
}
.app-shell .store-switch div span {
  font-size: 11px;
  color: #5f5f5f;
  margin-top: 3px;
}
.app-shell .sidebar nav {
  display: block;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
  margin: 0 -5px 0 0;
  padding: 0 5px 4px 0;
}
.app-shell .sidebar-nav-group {
  margin: 0 0 21px;
}
.app-shell .nav-label {
  display: block;
  margin: 0 0 8px;
  padding: 0 10px;
  color: #737373;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.app-shell .sidebar-nav-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-left: 9px;
  padding-left: 7px;
  border-left: 1px solid #e8e8e8;
}
.app-shell .nav-item {
  width: 100%;
  min-height: 39px;
  padding: 9px 10px;
  gap: 11px;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: #383838;
  background: transparent;
}
.app-shell .nav-item:hover {
  background: #f1f1f1;
  color: #171717;
}
.app-shell .nav-item.active {
  background: #eaeaea;
  color: #222;
  font-weight: 500;
}
.app-shell .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: #858585;
}
.app-shell .nav-icon svg {
  width: 19px;
  height: 19px;
  display: block;
}
.app-shell .nav-item.active .nav-icon {
  color: #333;
}
.app-shell .sidebar-bottom {
  display: block;
  margin-top: 12px;
  padding: 12px 8px 0;
  border-top: 1px solid #e7e7e7;
  flex-shrink: 0;
}
.app-shell .sidebar-access {
  font-size: 11px;
  color: #6d6d6d;
  line-height: 1.7;
}
.app-shell .sidebar-access summary {
  cursor: pointer;
}
.app-shell .sidebar-access p {
  margin: 10px 0;
  max-height: 130px;
  overflow: auto;
}
.app-shell .access-link {
  font-size: 11px;
  color: #737373;
  margin: 10px 0 8px;
}
.app-shell .privacy-link {
  font-size: 11px;
  color: #6d6d6d;
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.app-shell .sidebar-empty {
  font-size: 12px;
  color: #777;
  padding: 12px 10px;
}
@media (max-width: 1150px) and (min-width: 851px) {
  .app-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .app-shell .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 850px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .app-shell .sidebar {
    height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid #e7e7e7;
    padding: 16px 16px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 1fr);
    align-items: center;
    gap: 14px 12px;
  }
  .app-shell .sidebar .brand {
    font-size: 22px;
    margin: 0;
    padding: 0;
  }
  .app-shell .sidebar .brand img {
    width: 25px;
    height: 25px;
  }
  .app-shell .sidebar-search {
    margin: 0;
    padding: 8px;
    gap: 7px;
  }
  .app-shell .sidebar-search input {
    font-size: 12px;
  }
  .app-shell .sidebar-search kbd,
  .app-shell .store-switch,
  .app-shell .sidebar-bottom {
    display: none;
  }
  .app-shell .sidebar nav {
    grid-column: 1/-1;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0;
    padding: 2px 0 5px;
    min-width: 0;
    scrollbar-width: thin;
  }
  .app-shell .sidebar-nav-group,
  .app-shell .sidebar-nav-items {
    display: contents;
  }
  .app-shell .nav-label {
    display: none;
  }
  .app-shell .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    font-size: 12px;
    white-space: nowrap;
    padding: 8px 10px;
    gap: 8px;
  }
  .app-shell .sidebar-empty {
    margin: 0;
    padding: 8px;
  }
}
.app-shell .sidebar .brand img {
  width: 28px;
  height: 28px;
}
.app-shell .nav-item b {
  background: #e1e1e1;
  color: #555;
  font-size: 11px;
}
.app-shell .beta-meter {
  background: #f5f5f5;
  border-color: #e5e5e5;
}
.app-shell .beta-meter small {
  color: #5f5f5f;
  font-size: 11px;
}
.app-shell .beta-meter > div {
  font-size: 12px;
}
.app-shell .beta-meter progress {
  accent-color: #66766a;
}

.welcome em {
  font-family: inherit;
  font-style: normal;
  font-weight: 600;
}

/* Keep daily conversation work close to the customer message. */
.queue-page .page-heading {
  margin-bottom: 20px;
}
.queue-page .page-heading h1 {
  font-size: clamp(24px, 2.4vw, 32px);
}
.queue-page .queue-controls {
  padding: 20px;
}
.queue-controls h2 {
  font-size: 17px;
}
.queue-triage-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.queue-triage-shortcuts .button {
  gap: 10px;
  padding: 8px 12px;
  font-size: 12px;
}
.queue-triage-shortcuts strong {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--paper);
}
.queue-triage-shortcuts [aria-pressed='true'] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.queue-triage-shortcuts [aria-pressed='true'] strong {
  background: #484848;
}
.queue-controls #queue-live-status {
  font-size: 12px;
  margin: 8px 0;
}
.queue-controls .queue-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin: 12px 0;
}
.queue-controls .queue-search-query {
  grid-column: auto;
}
.queue-controls .queue-search > .settings-actions {
  align-items: center;
}
.queue-search-options {
  grid-column: 1 / -1;
}
.queue-search-options summary,
.queue-help summary {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.queue-search-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
}
.queue-controls > .settings-actions {
  align-items: end;
}
.queue-controls > .settings-actions label {
  min-width: 180px;
}
.queue-controls > p[role='status']:not(#queue-live-status) {
  font-size: 12px;
  margin: 8px 0;
}
.queue-controls .queue-help {
  margin-bottom: 0;
}
.queue-disclosure {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 16px 0;
  padding: 14px 16px;
}
.queue-disclosure > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
}
.queue-disclosure[open] > summary {
  margin-bottom: 16px;
}
.queue-disclosure .cancellation-panel {
  margin-bottom: 14px;
}
.case-management > form > fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.case-management > form label {
  margin: 0;
}
.case-management > form button {
  justify-self: start;
}
.case-support > .inquiry-message {
  background: var(--paper);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.queue-case-detail .case-support {
  margin-top: 20px;
}
.queue-case-detail .knowledge-email {
  margin: 12px 0;
}
.queue-case-detail .case-notes {
  margin-bottom: 0;
}
@media (min-width: 1101px) {
  .queue-page .queue-conversations {
    position: sticky;
    top: 20px;
  }
  .queue-page .conversation-buttons {
    max-height: calc(100dvh - 190px);
  }
}
@media (max-width: 850px) {
  .queue-controls .queue-search {
    grid-template-columns: minmax(0, 1fr);
  }
  .queue-search-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .queue-triage-shortcuts {
    gap: 6px;
  }
  .case-management > form > fieldset {
    grid-template-columns: minmax(0, 1fr);
  }
  .queue-disclosure {
    padding: 12px;
  }
}
@media (max-width: 400px) {
  .queue-search-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .queue-controls > .settings-actions label {
    min-width: 0;
    width: 100%;
  }
}
.app-shell [hidden] {
  display: none !important;
}
.queue-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}
.queue-controls .queue-search > .settings-actions {
  grid-column: auto;
}
.queue-toolbar > .settings-actions {
  margin-top: 12px;
  align-items: end;
  flex-wrap: nowrap;
}
.queue-toolbar > .settings-actions label {
  margin: 0;
}
.queue-toolbar > .settings-actions select {
  margin: 6px 0 0;
  padding: 9px;
}
.queue-toolbar .button {
  padding: 10px 12px;
}
@media (max-width: 1300px) {
  .queue-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .queue-toolbar > .settings-actions {
    margin-top: 0;
  }
}
@media (max-width: 850px) {
  .queue-controls .queue-search > .settings-actions {
    flex-wrap: wrap;
  }
  .queue-toolbar > .settings-actions {
    flex-wrap: wrap;
  }
}

.sender-history-list {
  display: grid;
  gap: 12px;
}
.sender-history-list > article {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  min-width: 0;
}
.sender-history-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.app-shell .sender-history-heading h3 {
  margin: 0;
  overflow-wrap: anywhere;
}
.sender-history-heading .status {
  flex-shrink: 0;
}
.sender-history-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.sender-history-list details {
  margin: 12px 0;
}
.sender-history-list details summary {
  cursor: pointer;
  font-size: 13px;
}
.queue-case-detail > [data-case-return] {
  margin-bottom: 12px;
}
@media (max-width: 400px) {
  .sender-history-heading {
    flex-wrap: wrap;
  }
}

.case-action-bar {
  border-block: 1px solid var(--line);
  margin: 20px 0;
  padding: 14px 0;
}
.case-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.case-navigation > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-action-bar .button {
  font-size: 12px;
  padding: 9px 12px;
}
.case-action-bar .settings-actions {
  margin: 12px 0;
}
.case-action-bar .hint {
  margin-bottom: 0;
}
.case-action-bar .button:disabled {
  opacity: 0.45;
  cursor: default;
}

.knowledge-batch {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}
.knowledge-batch .import-source {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  margin: 16px 0;
  min-width: 0;
}
.knowledge-batch .import-source.imported {
  background: var(--paper);
}
.app-shell .knowledge-batch .import-source h3 {
  margin-top: 0;
}
.knowledge-batch input:not([type='checkbox']),
.knowledge-batch textarea {
  width: 100%;
}
@media (max-width: 600px) {
  .knowledge-batch .import-source {
    padding: 12px;
  }
}

.attention-list {
  display: grid;
}
.attention-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.attention-item > div {
  min-width: 0;
}
.app-shell .attention-item h3 {
  margin: 0 0 6px;
}
.attention-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.attention-item .button {
  flex-shrink: 0;
}
.attention-count {
  display: inline-block;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--paper);
  margin-left: 5px;
}
.attention-item.urgent .attention-count {
  background: #fbe9e5;
  color: #873f33;
}
.attention-item.warning .attention-count {
  background: #fff2d9;
  color: #765823;
}
.attention-more > summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 13px;
}
.attention-empty {
  padding: 18px;
  background: var(--paper);
  border-radius: 8px;
}
.support-overview-stats .overview-stat {
  text-align: left;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.overview-stat span {
  color: var(--muted);
  font-size: 13px;
}
.overview-stat strong {
  font-size: 28px;
  font-weight: 600;
}
.overview-stat small {
  color: var(--muted);
  font-size: 12px;
}
.overview-stat:hover {
  background: var(--paper);
  border-color: #c8c8c8;
}
.knowledge-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}
.knowledge-filter-bar label {
  min-width: 190px;
}
@media (max-width: 600px) {
  .attention-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

/* Merchant launch, reviewed actions and outcome reporting share the app theme. */
.launch-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.launch-steps article {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 10px;
}
.launch-step-number {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #f1f1f1;
  border-radius: 50%;
  font-size: 12px;
}
.launch-step-number.done {
  background: #e7f0eb;
  color: #275e40;
}
.growth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.growth-case section {
  margin: 16px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #e9e9e9;
}
.growth-table-wrap {
  overflow-x: auto;
}
.growth-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.growth-table-wrap th,
.growth-table-wrap td {
  padding: 12px;
  border-bottom: 1px solid #e9e9e9;
  font-size: 13px;
  vertical-align: top;
}
.growth-table-wrap .inline-link {
  text-align: left;
  white-space: normal;
}
.action-checks {
  padding-left: 20px;
  line-height: 1.9;
}
form[data-growth-form] label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}
form[data-growth-form] label.ai-consent {
  flex-direction: row;
}
form[data-growth-form] input,
form[data-growth-form] select,
form[data-growth-form] textarea {
  max-width: 100%;
}
.launch-steps h3 {
  margin: 0;
}
.launch-steps p {
  font-size: 13px;
}
.growth-launch .launch-steps article div {
  min-width: 0;
}
@media (max-width: 700px) {
  .launch-steps,
  .growth-grid {
    grid-template-columns: 1fr;
  }
  .growth-table-wrap td,
  .growth-table-wrap th {
    padding: 8px;
    font-size: 12px;
  }
  .growth-table-wrap table {
    min-width: 450px;
  }
}

.outcome-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.growth-table-wrap button.inline-link {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 700px) {
  .outcome-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Keep setup and action details readable inside a conversation. */
.launch-next {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 12px;
  background: var(--surface-muted, #f4f6f3);
}
.growth-case .growth-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
}
.growth-case .panel {
  padding: 1rem;
  margin: 1rem 0;
}
.return-workflow {
  margin-top: 1.5rem;
  border-top: 1px solid #e3e7e3;
  padding-top: 1rem;
}
.return-workflow li {
  margin: 0.5rem 0;
  overflow-wrap: anywhere;
}
.growth-table-wrap code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.sidebar-tools > summary {
  cursor: pointer;
  padding: 12px;
  color: #626b65;
  font-size: 12px;
}
.sidebar-tools .nav-label {
  display: none;
}
.growth-case form,
.growth-case fieldset {
  min-width: 0;
}

/* External connections */
.connector-scope {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
}
.connector-scope input {
  width: auto !important;
  flex: none;
  margin-top: 3px;
}
.connector-secret,
.connector-consent {
  border: 1px solid var(--line, #ddd);
  padding: 24px;
  border-radius: 12px;
}
.connector-secret {
  margin-top: 20px;
}
.connector-grant {
  border-top: 1px solid #e8e8e8;
  padding: 16px 0;
}
.connector-grant p,
.connector-consent p {
  overflow-wrap: anywhere;
}
.developer-docs {
  max-width: 900px;
  margin: auto;
  padding: 40px 24px;
}
.developer-docs pre {
  overflow: auto;
  background: #f3f3f3;
  padding: 20px;
  border-radius: 10px;
}
.developer-docs section {
  margin: 32px 0;
}

.worklist-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.worklist-case {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid #e5e5e5;
}
.worklist-case > div {
  min-width: 0;
}
.worklist-case p,
.worklist-case h3 {
  overflow-wrap: anywhere;
}
.worklist-case > button {
  flex-shrink: 0;
}
.worklist-case details {
  margin: 16px 0;
}
.worklist-case h3 {
  margin: 8px 0;
}
@media (max-width: 650px) {
  .worklist-case {
    flex-direction: column;
  }
}

/* Pilot metrics remain readable with direct conversation drill-down controls. */
.pilot-report .outcome-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pilot-report .outcome-stats > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.pilot-report .outcome-stats .button {
  margin-top: auto;
  min-height: 44px;
}
.pilot-report .overview-aging dd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}
.pilot-report .overview-aging .button {
  min-height: 44px;
}
#pilot-report-results-title:focus {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
@media (max-width: 1100px) {
  .pilot-report .outcome-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .pilot-report .overview-aging dd {
    flex-direction: column;
    align-items: flex-end;
  }
  .pilot-report .overview-aging .button {
    max-width: 145px;
  }
}

.main-content.feedback-main {
  max-width: 600px;
  margin: 5vh auto;
}
.app-shell summary,
.app-shell .inline-link,
.welcome .back-link {
  min-height: 24px;
}
.app-shell .inline-link,
.welcome .back-link {
  display: inline-flex;
  align-items: center;
}
