/*
 * Signed-in inbox application shell.
 * This layer is intentionally scoped so the rest of the tenant application
 * keeps its existing layout while the inbox adopts the approved glass UI.
 */
.inbox-app-shell {
  --inbox-navy: #061b3d;
  --inbox-blue: var(--hd-blue, #2858f6);
  --inbox-blue-soft: #edf4ff;
  --inbox-line: rgba(110, 128, 158, .19);
  --inbox-glass: rgba(255, 255, 255, .82);
  --inbox-glass-strong: rgba(255, 255, 255, .94);
  --inbox-shadow: 0 18px 55px rgba(32, 49, 86, .10);
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 10%, rgba(196, 177, 255, .25), transparent 27%),
    radial-gradient(circle at 91% 13%, rgba(155, 222, 255, .24), transparent 29%),
    radial-gradient(circle at 58% 96%, rgba(255, 211, 221, .20), transparent 27%),
    linear-gradient(145deg, #f5f7fc 0%, #fbfcff 48%, #f6f9fd 100%);
}

.inbox-app-shell::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .32;
  background-image:
    linear-gradient(rgba(88, 105, 139, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 105, 139, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.inbox-app-shell .helpdesk-app-main {
  min-height: 100vh;
  margin-left: 0;
  background: transparent;
}

.inbox-app-shell .helpdesk-topbar {
  position: fixed;
  inset: 10px 12px auto;
  z-index: 45;
  height: 64px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 18px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 10px 34px rgba(35, 51, 83, .08), inset 0 1px 0 rgba(255, 255, 255, .86);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
}

.inbox-app-brand {
  position: absolute;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  height: 100%;
}

.inbox-window-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 3px;
}

.inbox-window-controls i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff6259;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07);
}

.inbox-window-controls i:nth-child(2) { background: #ffbd2e; }
.inbox-window-controls i:nth-child(3) { background: #28c840; }

.inbox-app-brand > a {
  display: flex;
  align-items: center;
}

.inbox-app-brand img {
  width: 112px;
  height: 31px;
  object-fit: contain;
}

.inbox-app-divider {
  width: 1px;
  height: 31px;
  background: rgba(88, 104, 132, .17);
}

.inbox-app-brand > strong {
  color: #17233a;
  font-size: 15px;
  white-space: nowrap;
}

.inbox-app-shell .topbar-tenant-wrap {
  position: absolute;
  left: 321px;
}

.inbox-app-shell .topbar-tenant {
  min-width: 0;
  height: 40px;
  gap: 8px;
  padding: 0 11px;
  border-color: rgba(112, 130, 161, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .58);
  color: #49566c;
}

.inbox-app-shell .topbar-tenant > span:first-child { display: none; }
.inbox-app-shell .topbar-tenant strong {
  max-width: 150px;
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-app-shell .global-search {
  width: min(510px, 32vw);
  height: 42px;
  border-color: rgba(109, 129, 162, .18);
  border-radius: 11px;
  background: rgba(255, 255, 255, .62);
  color: #7a8598;
  font-size: 13px;
}

.inbox-app-shell .global-search kbd {
  padding: 4px 7px;
  border-color: rgba(109, 129, 162, .15);
  background: rgba(245, 247, 252, .86);
  font-size: 10px;
}

.inbox-app-shell .helpdesk-topbar .topbar-actions { right: 16px; gap: 8px; }
.inbox-app-shell .topbar-copilot {
  min-height: 40px;
  padding-inline: 14px;
  border-color: rgba(82, 95, 242, .18);
  border-radius: 11px;
  background: rgba(255, 255, 255, .72);
  color: #234fdc;
  font-size: 12.5px;
}

.inbox-app-shell .topbar-icon {
  width: 40px;
  height: 40px;
  border-color: rgba(109, 129, 162, .16);
  border-radius: 11px;
  background: rgba(255, 255, 255, .66);
}

.inbox-app-shell .helpdesk-topbar .topbar-actions > img {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, .84);
  box-shadow: 0 4px 13px rgba(20, 35, 64, .13);
}

.inbox-app-shell .helpdesk-topbar .topbar-actions > span strong { font-size: 13px; }
.inbox-app-shell .helpdesk-topbar .topbar-actions > span small { font-size: 10px; }

.inbox-app-shell .helpdesk-sidebar {
  inset: 84px auto 12px 12px;
  width: 244px;
  height: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 40% 2%, rgba(64, 103, 190, .28), transparent 28%),
    linear-gradient(180deg, #08234b 0%, var(--inbox-navy) 58%, #071d40 100%);
  box-shadow: 0 22px 54px rgba(3, 19, 49, .22), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.inbox-app-shell .helpdesk-sidebar-head {
  height: 54px;
  min-height: 54px;
  border-bottom-color: rgba(255, 255, 255, .09);
}

.inbox-app-shell .helpdesk-sidebar-head .helpdesk-product { display: none; }
.inbox-app-shell .helpdesk-sidebar .sidebar-toggle {
  top: 11px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  color: #dfe8f8;
  font-size: 15px;
}

.inbox-app-shell .helpdesk-nav {
  padding: 10px 12px 18px;
  gap: 4px;
}

.inbox-app-shell .helpdesk-nav .nav-group > summary,
.inbox-app-shell .helpdesk-nav a {
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 10px;
  color: #c9d5e8;
  font-size: 14.5px;
  letter-spacing: -.01em;
}

.inbox-app-shell .helpdesk-nav .nav-group > summary { color: #91a5c4; }
.inbox-app-shell .helpdesk-nav .nav-group > summary b { font-size: 11px; }
.inbox-app-shell .helpdesk-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.inbox-app-shell .helpdesk-nav a.active {
  background: linear-gradient(135deg, #2f66ff, #2455e9);
  color: #fff;
  box-shadow: 0 10px 22px rgba(20, 68, 198, .34), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.inbox-app-shell .helpdesk-nav a.active .nav-glyph { color: #fff; }
.inbox-app-shell .helpdesk-nav a.active { box-shadow: 0 10px 22px rgba(20, 68, 198, .34); }
.inbox-app-shell .helpdesk-nav .nav-glyph {
  width: 23px !important;
  font-size: 17px !important;
  color: #a9bbd4;
}

.inbox-app-shell .helpdesk-nav a em {
  min-width: 23px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, .10);
  font-size: 10px;
}

.inbox-app-shell .sidebar-usage {
  margin: 0 12px 8px;
  border-color: rgba(255, 255, 255, .11);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
}

.inbox-app-shell .helpdesk-sidebar .sidebar-account {
  min-height: 66px;
  border-top-color: rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .035);
}

.inbox-app-shell .helpdesk-sidebar .sidebar-account strong { font-size: 14px; }
.inbox-app-shell .helpdesk-sidebar .sidebar-account small { font-size: 11px; }
.inbox-app-shell .persistent-integration-rail { display: none; }

.inbox-app-shell #app-view {
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  padding: 84px 12px 12px 268px;
}

.inbox-app-shell .helpdesk-inbox {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: clamp(300px, 19vw, 350px) minmax(520px, 1fr) clamp(330px, 22vw, 400px);
  grid-template-rows: minmax(0, 1fr);
  gap: 10px;
  overflow: visible;
  background: transparent;
  transition: grid-template-columns .22s ease;
}

.inbox-app-shell .helpdesk-inbox.context-panel-collapsed {
  grid-template-columns: clamp(300px, 19vw, 350px) minmax(620px, 1fr);
}

.inbox-app-shell:has(.helpdesk-sidebar.collapsed) #app-view { padding-left: 90px; }

.inbox-app-shell .conversation-queue,
.inbox-app-shell .ticket-workspace,
.inbox-app-shell .customer-context {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 18px;
  background: var(--inbox-glass);
  box-shadow: var(--inbox-shadow), inset 0 1px 0 rgba(255, 255, 255, .92);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.inbox-app-shell .conversation-queue { border-right: 1px solid rgba(255, 255, 255, .88); }
.inbox-app-shell .queue-header {
  min-height: 70px;
  padding: 17px 17px 11px;
}

.inbox-app-shell .queue-header h1 {
  color: #16233a;
  font: 800 24px/1.1 "Urbanist", sans-serif;
  letter-spacing: -.025em;
}

.inbox-app-shell .queue-controls button {
  min-height: 40px;
  border-color: var(--inbox-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.inbox-app-shell .queue-search {
  min-height: 46px;
  margin: 2px 14px 12px;
  border-color: var(--inbox-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .58);
}

.inbox-app-shell .queue-search input { font-size: 14px; }
.inbox-app-shell .queue-list {
  padding: 0 7px 10px;
  scrollbar-color: rgba(92, 113, 149, .24) transparent;
}

.inbox-app-shell .queue-select-row { border-radius: 12px; }
.inbox-app-shell .queue-item {
  min-height: 104px;
  margin: 3px 0;
  padding: 15px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
}

.inbox-app-shell .queue-item:hover { background: rgba(255, 255, 255, .67); }
.inbox-app-shell .queue-item.active {
  margin: 3px 0;
  border-color: rgba(71, 94, 255, .68);
  background: linear-gradient(145deg, rgba(238, 243, 255, .96), rgba(247, 248, 255, .88));
  box-shadow: 0 10px 24px rgba(65, 77, 158, .10);
}

.inbox-app-shell img.queue-avatar {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, .90);
  box-shadow: 0 4px 12px rgba(36, 52, 82, .10);
}

.inbox-app-shell .queue-person strong { color: #172238; font-size: 16px; }
.inbox-app-shell .queue-person time { color: #77849a; font-size: 12px; }
.inbox-app-shell .queue-subject {
  color: #445169;
  font-size: 14.5px;
  line-height: 1.42;
}

.inbox-app-shell .queue-meta i { padding: 4px 7px; border-radius: 6px; font-size: 11.5px; }
.inbox-app-shell .queue-meta em { font-size: 16px; }
.inbox-app-shell .queue-unread {
  top: 49px;
  min-width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  color: transparent;
}

.inbox-app-shell .sample-data-control { background: transparent; }

.inbox-app-shell .conversation-queue .bulk-inbox-toolbar {
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 10px 11px;
  border-top-color: rgba(111, 129, 159, .14);
  background: rgba(249, 251, 255, .72);
}

.inbox-app-shell .conversation-queue .bulk-inbox-toolbar[hidden] { display: none; }
.inbox-app-shell .conversation-queue .bulk-inbox-toolbar label { min-height: 38px; }
.inbox-app-shell .conversation-queue .bulk-inbox-toolbar :is(select, input, button) {
  min-height: 38px;
  height: 38px;
  border-radius: 9px;
  font-size: 11.5px;
}

.inbox-app-shell .ticket-workspace {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .76);
}

.inbox-app-shell .ticket-header {
  min-height: 82px;
  padding: 0 18px 0 20px;
  border-bottom-color: var(--inbox-line);
  background: rgba(255, 255, 255, .48);
}

.inbox-app-shell .ticket-header h2 {
  margin-bottom: 8px;
  color: #111e35;
  font: 800 24px/1.1 "Urbanist", sans-serif;
}

.inbox-app-shell .ticket-header p { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.inbox-app-shell .ticket-header p span,
.inbox-app-shell .ticket-order-chip {
  min-height: 28px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(116, 132, 160, .13);
  border-radius: 999px;
  background: rgba(246, 248, 252, .86);
  color: #657188;
  font-size: 11.5px;
}

.inbox-app-shell .ticket-order-chip {
  color: #3650c9;
  background: #f3f5ff;
}

.inbox-app-shell .ticket-actions { gap: 6px; }
.inbox-app-shell .ticket-actions > button,
.inbox-app-shell .ticket-actions form button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-color: var(--inbox-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .62);
  font-size: 14px;
}

.inbox-app-shell .ticket-actions > button:hover,
.inbox-app-shell .ticket-actions form button:hover { background: #f1f4fa; }

.inbox-app-shell .ticket-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 32px;
  background:
    radial-gradient(circle at 48% 28%, rgba(239, 242, 255, .48), transparent 44%),
    rgba(253, 254, 255, .52);
  scrollbar-color: rgba(92, 113, 149, .23) transparent;
}

.inbox-app-shell .customer-message-card {
  max-width: min(82%, 760px);
  padding: 20px;
  border-color: var(--inbox-line);
  border-radius: 15px 15px 15px 5px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 24px rgba(40, 54, 82, .06);
}

.inbox-app-shell .customer-message-card img { width: 42px; height: 42px; }
.inbox-app-shell .customer-message-card strong { color: #19253b; font-size: 15px; }
.inbox-app-shell .customer-message-card small,
.inbox-app-shell .customer-message-card time { font-size: 12.5px; }
.inbox-app-shell .customer-message-card p,
.inbox-app-shell .conversation-reply-card > p {
  color: #27364e;
  font-size: 15.5px;
  line-height: 1.65;
}

.inbox-app-shell .conversation-reply-card {
  width: min(78%, 760px);
  padding: 19px;
  border-color: #c8daf7;
  border-radius: 15px 15px 5px 15px;
  background: linear-gradient(145deg, #edf6ff, #f4f9ff);
}

.inbox-app-shell .ticket-workspace > .ai-guidance-card {
  margin: 10px 20px;
  padding: 14px 16px 13px;
  border: 1px solid #ead485;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 248, 216, .96), rgba(255, 253, 240, .96));
  box-shadow: 0 10px 28px rgba(123, 94, 15, .08);
}

.inbox-app-shell .ai-guidance-card > header { gap: 11px; }
.inbox-app-shell .ai-guidance-card .ai-spark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffdbed, #ffb5d5);
  box-shadow: 0 6px 16px rgba(215, 78, 145, .16);
  color: inherit;
  font-size: 22px;
}

.inbox-app-shell .ai-guidance-card > header strong { color: #17243a; font-size: 16px; }
.inbox-app-shell .ai-guidance-card > header small { color: #7d6b30; font-size: 12.5px; }
.inbox-app-shell .ai-guidance-card .ai-response-copy {
  max-height: 48px;
  color: #4a432c;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
}

.inbox-app-shell .ai-response-preview { padding-bottom: 25px; }
.inbox-app-shell .ai-response-view { font-size: 11.5px; }
.inbox-app-shell .ai-guidance-card > footer { margin-top: 4px; }
.inbox-app-shell .ai-confidence,
.inbox-app-shell .ai-draft-state { font-size: 11.5px; }
.inbox-app-shell .regenerate-button,
.inbox-app-shell .ai-modify-button,
.inbox-app-shell .send-ai-button {
  min-height: 40px;
  border-radius: 9px;
  font-size: 12.5px;
}

.inbox-app-shell .send-ai-button {
  background: linear-gradient(135deg, #2f64ff, #2452e6);
  box-shadow: 0 7px 16px rgba(40, 83, 231, .20);
}

.inbox-app-shell .ticket-workspace > .reply-composer {
  min-height: 232px;
  margin: 0 20px 18px;
  overflow: visible;
  border-color: rgba(113, 131, 163, .20);
  border-radius: 14px;
  background: rgba(255, 255, 255, .83);
  box-shadow: 0 12px 32px rgba(31, 48, 81, .09);
  backdrop-filter: blur(18px);
}

.inbox-app-shell .composer-tabs {
  min-height: 56px;
  height: auto;
  padding: 5px 15px 0;
  gap: 18px;
  flex-wrap: wrap;
  border-bottom-color: rgba(115, 133, 163, .16);
}

.inbox-app-shell .composer-tabs > button {
  height: 46px;
  font-size: 14px;
}

.inbox-app-shell .composer-tabs .context-action-pills {
  width: 100%;
  order: 3;
  display: flex;
  gap: 8px;
  margin: -2px 0 8px;
  overflow-x: auto;
}

.inbox-app-shell .composer-tabs .context-action-pill,
.inbox-app-shell .composer-tabs .context-action-pill.analyze {
  min-height: 38px;
  height: 38px;
  padding: 0 13px;
  flex: 0 0 auto;
  border: 1px solid rgba(68, 99, 232, .18);
  border-radius: 999px;
  background: linear-gradient(145deg, #f4f6ff, #eef3ff);
  color: #3151c9;
  font-size: 12px;
  box-shadow: 0 5px 14px rgba(47, 76, 173, .06);
}

.inbox-app-shell .composer-tabs .context-action-pill span { color: #e05caa; }
.inbox-app-shell .composer-tabs .context-action-pill:hover,
.inbox-app-shell .composer-tabs .context-action-pill.analyze:hover {
  border-color: rgba(51, 82, 220, .32);
  background: #e9efff;
}

.inbox-app-shell .reply-composer > textarea {
  height: 110px;
  min-height: 110px;
  padding: 16px 18px;
  color: #26354c;
  font: 500 15.5px/1.6 "Urbanist", sans-serif;
}

.inbox-app-shell .composer-footer {
  min-height: 64px;
  padding: 7px 12px;
}

.inbox-app-shell .composer-footer button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 9px;
  color: #53627a;
  font-size: 18px;
}

.inbox-app-shell .composer-footer .composer-send {
  width: auto;
  min-width: 128px;
  height: 44px;
  border-radius: 10px 3px 3px 10px;
  background: linear-gradient(135deg, #2f64ff, #2452e6);
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(37, 80, 229, .22);
}

.inbox-app-shell .composer-footer .composer-send-options {
  height: 44px;
  border-radius: 3px 10px 10px 3px;
}

.inbox-app-shell .ticket-bottom-actions { display: none; }

.inbox-app-shell .customer-context {
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, .88);
  overflow-y: auto;
  background: rgba(255, 255, 255, .72);
  scrollbar-color: rgba(92, 113, 149, .22) transparent;
  transition: opacity .18s ease, transform .22s ease;
}

.inbox-app-shell .helpdesk-inbox.context-panel-collapsed .customer-context { display: none; }
.inbox-app-shell .context-panel-title {
  min-height: 62px;
  border-bottom-color: var(--inbox-line);
  background: rgba(255, 255, 255, .70);
  backdrop-filter: blur(22px);
}

.inbox-app-shell .context-panel-title strong { color: #16233a; font-size: 16px; }
.inbox-app-shell .context-panel-title a,
.inbox-app-shell .context-panel-title button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 18px;
}

.inbox-app-shell .customer-context > .customer-summary,
.inbox-app-shell .customer-context > .ai-insights-card,
.inbox-app-shell .customer-context > .csat-conversation-card,
.inbox-app-shell .customer-context > .inbox-review-card,
.inbox-app-shell .customer-context > .customer-timeline,
.inbox-app-shell .customer-context > .shopify-order-card,
.inbox-app-shell .customer-context > .customer-memory-card,
.inbox-app-shell .customer-context > .shopify-panel-orders {
  margin: 12px;
  border: 1px solid rgba(111, 129, 159, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 8px 24px rgba(40, 55, 84, .05);
  backdrop-filter: blur(14px);
}

.inbox-app-shell .customer-summary { padding: 17px; }
.inbox-app-shell .customer-name { align-items: flex-start; }
.inbox-app-shell .customer-name > img {
  width: 58px;
  height: 58px;
  border: 3px solid rgba(255, 255, 255, .9);
  box-shadow: 0 6px 16px rgba(35, 49, 76, .12);
}

.inbox-app-shell .customer-name h3 {
  margin-top: 2px;
  color: #172239;
  font-size: 17px;
}

.inbox-app-shell .customer-name h3 img { width: 19px; height: 19px; }
.inbox-app-shell .customer-name p { color: #66748b; font-size: 12.5px; line-height: 1.5; }
.inbox-app-shell .customer-shopify-tags { margin-bottom: 7px; }
.inbox-app-shell .customer-shopify-tags span,
.inbox-app-shell .customer-shopify-tags button { font-size: 10.5px; }

.inbox-app-shell .customer-stats {
  margin-top: 15px;
  border-color: var(--inbox-line);
  border-radius: 11px;
}

.inbox-app-shell .customer-stats > div { min-height: 66px; align-content: center; text-align: center; }
.inbox-app-shell .customer-stats strong { color: #162238; font-size: 17px; }
.inbox-app-shell .customer-stats span { font-size: 11px; }

.customer-memory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.customer-memory-chips > a,
.customer-memory-chips > span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(74, 94, 210, .15);
  border-radius: 999px;
  background: #f2f4ff;
  color: #4156b7;
  font-size: 10.5px;
  font-weight: 700;
}

.customer-memory-chips i { font-style: normal; }
.customer-memory-chips > :nth-child(2) { border-color: rgba(224, 92, 170, .15); background: #fff0f7; color: #b84387; }
.customer-memory-chips > :nth-child(3) { border-color: rgba(31, 152, 112, .15); background: #effaf6; color: #247d60; }

.inbox-app-shell .ai-insights-card { padding: 17px; }
.inbox-app-shell .ai-insights-card h3 { font-size: 15px; }
.inbox-app-shell .ai-insights-card dt,
.inbox-app-shell .ai-insights-card dd { font-size: 12.5px; }
.inbox-app-shell .intelligence-summary { font-size: 12.5px; line-height: 1.55; }

.inbox-app-shell .shopify-panel-orders { padding: 13px; }
.inbox-app-shell .shopify-panel-heading {
  min-height: 43px;
  padding: 0 2px 10px;
}

.inbox-app-shell .shopify-panel-heading span { color: #18243a; font-size: 14.5px; }
.inbox-app-shell .shopify-panel-heading img { width: 25px; height: 25px; }
.inbox-app-shell .shopify-panel-heading button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--inbox-line);
  border-radius: 9px;
  background: #fff;
  color: #3151ca;
  font-size: 11px;
}

.inbox-app-shell .shopify-panel-order {
  border-color: var(--inbox-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .76);
}

.inbox-app-shell .shopify-panel-order > summary { min-height: 64px; padding: 12px; }
.inbox-app-shell .shopify-panel-order summary strong { font-size: 14px; }
.inbox-app-shell .shopify-panel-order summary span { font-size: 10.5px; }
.inbox-app-shell .shopify-order-inline { padding: 12px; }
.inbox-app-shell .shopify-inline-actions { gap: 5px; }
.inbox-app-shell .shopify-inline-actions button {
  min-height: 42px;
  border-color: var(--inbox-line);
  border-radius: 8px;
  background: rgba(248, 250, 253, .90);
  font-size: 12px;
}

.inbox-app-shell .shopify-order-inline > dl { font-size: 12px; }

.shopify-fulfillment-tracker {
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid rgba(105, 125, 158, .17);
  border-radius: 12px;
  background: linear-gradient(145deg, #fbfcff, #f7faff);
}

.shopify-fulfillment-tracker > header {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(105, 125, 158, .13);
}

.shopify-fulfillment-tracker > header > div { display: grid; gap: 2px; }
.shopify-fulfillment-tracker > header strong { color: #18243a; font-size: 13px; }
.shopify-fulfillment-tracker > header small { color: #7c899d; font-size: 9.5px; }
.shopify-fulfillment-tracker > header > span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e7f8ef;
  color: #23805b;
  font-size: 9px;
  font-weight: 850;
  text-transform: capitalize;
}

.fulfillment-tracker-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, .72fr);
  gap: 10px;
  padding: 12px;
}

.fulfillment-tracker-body ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fulfillment-tracker-body li {
  position: relative;
  min-height: 50px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
}

.fulfillment-tracker-body li:not(:last-child)::after {
  position: absolute;
  top: 22px;
  bottom: -2px;
  left: 10px;
  width: 2px;
  content: "";
  background: #d8dfeb;
}

.fulfillment-tracker-body li i {
  z-index: 1;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #cbd4e2;
  border-radius: 50%;
  background: #fff;
  color: #8b98ab;
  font: 800 10px/1 "Urbanist", sans-serif;
}

.fulfillment-tracker-body li.complete i {
  border-color: #2db77d;
  background: #2db77d;
  color: #fff;
}

.fulfillment-tracker-body li.active i {
  border-color: #3d6aff;
  background: #eef2ff;
  color: #3159df;
}

.fulfillment-tracker-body li > span { display: grid; align-content: start; gap: 2px; padding-top: 2px; }
.fulfillment-tracker-body li strong { color: #253249; font-size: 11px; }
.fulfillment-tracker-body li small { color: #8490a2; font-size: 9px; }
.fulfillment-tracker-body aside {
  align-self: start;
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(105, 125, 158, .14);
  border-radius: 10px;
  background: #fff;
}

.fulfillment-tracker-body aside small,
.fulfillment-tracker-body aside span { color: #7e899a; font-size: 8.5px; }
.fulfillment-tracker-body aside strong { margin-bottom: 7px; color: #21815c; font-size: 11px; }
.fulfillment-tracker-body aside a {
  overflow: hidden;
  color: #3159df;
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-app-shell .shopify-inline-items article strong { font-size: 12.5px; }
.inbox-app-shell .shopify-inline-items article small,
.inbox-app-shell .shopify-inline-items article em,
.inbox-app-shell .shopify-inline-address address,
.inbox-app-shell .shopify-inline-note p { font-size: 11px; }

/* Dark mode keeps the same Klaxify colors and glass depth. */
html[data-theme="dark"] .inbox-app-shell {
  --inbox-glass: rgba(14, 25, 43, .86);
  --inbox-glass-strong: rgba(14, 25, 43, .95);
  --inbox-line: rgba(145, 167, 202, .17);
  background:
    radial-gradient(circle at 7% 10%, rgba(105, 81, 190, .20), transparent 28%),
    radial-gradient(circle at 91% 13%, rgba(44, 129, 169, .18), transparent 30%),
    #091321;
}

html[data-theme="dark"] .inbox-app-shell .helpdesk-topbar,
html[data-theme="dark"] .inbox-app-shell .conversation-queue,
html[data-theme="dark"] .inbox-app-shell .ticket-workspace,
html[data-theme="dark"] .inbox-app-shell .customer-context {
  border-color: rgba(148, 169, 202, .14);
  background: rgba(13, 24, 41, .84);
  color: #e8eef8;
}

html[data-theme="dark"] .inbox-app-shell .inbox-app-brand > strong,
html[data-theme="dark"] .inbox-app-shell .queue-header h1,
html[data-theme="dark"] .inbox-app-shell .queue-person strong,
html[data-theme="dark"] .inbox-app-shell .ticket-header h2,
html[data-theme="dark"] .inbox-app-shell .context-panel-title strong,
html[data-theme="dark"] .inbox-app-shell .customer-name h3 { color: #edf3fc; }
html[data-theme="dark"] .inbox-app-shell .inbox-app-brand img { filter: brightness(0) invert(1); }
html[data-theme="dark"] .inbox-app-shell .queue-item:hover { background: rgba(255, 255, 255, .05); }
html[data-theme="dark"] .inbox-app-shell .queue-item.active {
  border-color: #6377ff;
  background: linear-gradient(145deg, rgba(41, 56, 94, .96), rgba(31, 44, 72, .94));
}

html[data-theme="dark"] .inbox-app-shell .ticket-scroll { background: rgba(8, 16, 29, .34); }
html[data-theme="dark"] .inbox-app-shell .customer-message-card,
html[data-theme="dark"] .inbox-app-shell .ticket-workspace > .reply-composer,
html[data-theme="dark"] .inbox-app-shell .customer-context > section,
html[data-theme="dark"] .inbox-app-shell .customer-context > div {
  border-color: rgba(144, 166, 200, .16);
  background: rgba(20, 34, 55, .86);
  color: #e7eef9;
}

html[data-theme="dark"] .inbox-app-shell .customer-message-card p,
html[data-theme="dark"] .inbox-app-shell .conversation-reply-card > p { color: #dce6f4; }
html[data-theme="dark"] .inbox-app-shell .conversation-reply-card { border-color: #34537e; background: #152c48; }
html[data-theme="dark"] .inbox-app-shell .shopify-fulfillment-tracker,
html[data-theme="dark"] .inbox-app-shell .fulfillment-tracker-body aside {
  border-color: #304158;
  background: #142237;
}
html[data-theme="dark"] .inbox-app-shell .shopify-fulfillment-tracker strong,
html[data-theme="dark"] .inbox-app-shell .fulfillment-tracker-body li strong { color: #e3ebf7; }

@media (min-width: 1700px) {
  .inbox-app-shell .helpdesk-inbox {
    grid-template-columns: 350px minmax(600px, 1fr) 400px;
  }
  .inbox-app-shell .queue-person strong { font-size: 17px; }
  .inbox-app-shell .queue-subject,
  .inbox-app-shell .customer-message-card p,
  .inbox-app-shell .conversation-reply-card > p,
  .inbox-app-shell .reply-composer > textarea { font-size: 16px; }
  .inbox-app-shell .customer-context { font-size: 15px; }
}

@media (max-width: 1460px) {
  .inbox-app-shell .topbar-tenant-wrap { display: none; }
  .inbox-app-shell .helpdesk-inbox {
    grid-template-columns: 290px minmax(490px, 1fr) 318px;
  }
  .inbox-app-shell .helpdesk-sidebar { width: 224px; }
  .inbox-app-shell #app-view { padding-left: 248px; }
  .inbox-app-shell:has(.helpdesk-sidebar.collapsed) #app-view { padding-left: 82px; }
}

@media (max-width: 1350px) and (min-width: 761px) {
  .inbox-app-shell .inbox-app-brand > strong,
  .inbox-app-shell .inbox-app-divider,
  .inbox-app-shell .helpdesk-topbar .topbar-actions > span { display: none; }
  .inbox-app-shell .global-search { width: min(430px, 39vw); }
  .inbox-app-shell .helpdesk-inbox { grid-template-columns: 300px minmax(500px, 1fr); }
  .inbox-app-shell .customer-context {
    position: fixed;
    top: 84px;
    right: 12px;
    bottom: 12px;
    z-index: 38;
    width: 390px;
    display: block;
    box-shadow: -18px 20px 55px rgba(25, 39, 70, .18);
  }
  .inbox-app-shell .helpdesk-inbox.context-panel-collapsed .customer-context { display: none; }
}

@media (max-width: 760px) {
  .inbox-app-shell { overflow: auto; }
  .inbox-app-shell .helpdesk-topbar {
    inset: 0 0 auto;
    height: 58px;
    border-width: 0 0 1px;
    border-radius: 0;
  }
  .inbox-app-brand { left: 10px; }
  .inbox-window-controls,
  .inbox-app-divider,
  .inbox-app-brand > strong { display: none; }
  .inbox-app-brand img { width: 94px; }
  .inbox-app-shell .helpdesk-topbar .topbar-actions { right: 8px; }
  .inbox-app-shell .topbar-copilot { display: none; }
  .inbox-app-shell .topbar-icon { width: 38px; height: 38px; }
  .inbox-app-shell .helpdesk-sidebar {
    inset: 58px auto 0 0;
    width: 60px;
    border: 0;
    border-radius: 0;
  }
  .inbox-app-shell .helpdesk-sidebar-head { display: none; }
  .inbox-app-shell .helpdesk-nav { padding-inline: 8px; }
  .inbox-app-shell .helpdesk-nav .nav-group > summary,
  .inbox-app-shell .helpdesk-nav a { min-height: 44px; padding: 0; justify-content: center; }
  .inbox-app-shell #app-view { height: 100vh; padding: 58px 0 0 60px; }
  .inbox-app-shell .helpdesk-inbox {
    height: calc(100vh - 58px);
    display: block;
    overflow: hidden;
  }
  .inbox-app-shell .conversation-queue {
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .inbox-app-shell .ticket-workspace,
  .inbox-app-shell .customer-context { display: none; }
}
