/* Real-product workbench treatment */
.wb-page {
  background: #edf1f6;
}

.wb-page .demo-app {
  position: relative;
  background: #f4f6f9;
}

.wb-page button,
.wb-page input,
.wb-page textarea {
  font-family: inherit;
}

.wb-page button {
  cursor: pointer;
}

.wb-page button:focus-visible,
.wb-page input:focus-visible,
.wb-page textarea:focus-visible {
  outline: 2px solid #2777ef;
  outline-offset: 1px;
}

.wb-topbar {
  height: 62px;
  padding: 0 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(28, 50, 80, .06);
}

.wb-account {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
}

.wb-account-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #dce5f2;
  border-radius: 50%;
  background: #f4f8ff;
  box-shadow: 0 5px 14px rgba(26, 67, 132, .1);
}

.wb-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wb-account b {
  display: block;
  color: #1c2a42;
  font-size: 13px;
  letter-spacing: -.01em;
}

.wb-account small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: #8a97aa;
  font-size: 9px;
}

.wb-account small em {
  padding: 0;
  color: #d59b13;
  background: transparent;
  font-size: 8px;
  font-style: normal;
  font-weight: 650;
}

.wb-top-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 18px;
  padding-left: 20px;
  border-left: 1px solid #edf0f5;
  color: #8794a7;
  font-size: 9px;
}

.wb-top-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.wb-top-stats span:first-child i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #23bd91;
  box-shadow: 0 0 0 3px rgba(35, 189, 145, .1);
}

.wb-top-stats b {
  color: #354764;
  font-size: 10px;
}

.wb-actions {
  gap: 7px;
}

.wb-add-store {
  height: 38px;
  padding: 0 17px;
  border-radius: 7px 0 0 7px;
  background: #1651e8;
  box-shadow: 0 8px 20px rgba(35, 116, 238, .2);
  font-size: 11px;
  font-weight: 650;
}

.wb-add-store:hover {
  background: #0d3dc4;
}

.wb-add-group {
  display: flex;
  margin-right: 30px;
}

.wb-add-store-square {
  width: 34px;
  height: 38px;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .24);
  border-radius: 0 7px 7px 0;
  color: #fff;
  background: #1651e8;
  font-size: 15px;
}

.wb-add-store-square:hover {
  background: #0d3dc4;
}

.wb-tool {
  padding: 0;
  border: 0;
  background: transparent;
}

.wb-tool i {
  width: 34px;
  height: 34px;
  border-color: #e5e9f0;
  color: #64748a;
  background: #fff;
  font-size: 10px;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.wb-tool svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.wb-tool span {
  display: none;
}

.wb-tool:hover i {
  border-color: #bdd2f3;
  color: #256fdc;
  background: #f5f9ff;
}

.wb-quota {
  gap: 8px;
  padding: 0 3px 0 8px;
}

.wb-quota i {
  width: 31px;
  height: 31px;
  border-width: 4px;
  border-color: #317aed;
  border-right-color: #dce7f8;
  transform: rotate(20deg);
}

.wb-quota div {
  display: flex;
  min-width: 50px;
  flex-direction: column;
}

.wb-quota b {
  color: #365176;
  font-size: 10px;
}

.wb-quota small {
  margin-top: 2px;
  color: #98a4b5;
  font-size: 7px;
}

.demo-window-controls {
  margin-left: 14px;
}

.wb-workspace {
  grid-template-columns: 205px 245px minmax(0, 1fr) 238px;
  min-height: 0;
  overflow: hidden;
}

.wb-store-pane,
.wb-inbox-pane,
.wb-context-pane {
  min-height: 0;
  flex-direction: column;
}

.wb-store-pane {
  display: flex;
  padding: 0 8px 8px;
  border-right: 1px solid #dfe5ee;
  background: #f5f7fa;
}

.wb-pane-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 5px;
}

.wb-pane-heading > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.wb-pane-heading b {
  color: #263650;
  font-size: 12px;
}

.wb-pane-heading span {
  color: #97a3b4;
  font-size: 8px;
}

.wb-pane-heading > button {
  padding: 4px;
  border: 0;
  color: #8090a6;
  background: transparent;
  font-size: 10px;
}

.wb-store-tabs {
  gap: 4px;
  padding: 3px;
  border: 1px solid #e2e7ef;
  border-radius: 7px;
  background: #edf1f6;
}

.wb-store-tabs button {
  height: 31px;
  border-radius: 5px;
  color: #77869b;
  font-size: 10px;
}

.wb-store-tabs button b {
  min-width: 16px;
  height: 15px;
  font-size: 7px;
}

.wb-store-tabs button.is-active {
  color: #1f5fac;
  background: #fff;
  box-shadow: 0 2px 8px rgba(27, 54, 94, .08);
}

.wb-search {
  height: 31px;
  padding: 0 9px;
  margin: 8px 0 6px;
  border-radius: 6px;
  background: #fff;
}

.wb-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #46566d;
  background: transparent;
  font-size: 8px;
}

.wb-search input::placeholder {
  color: #a6b0be;
}

.wb-store-list {
  display: flex;
  min-height: 0;
  padding-right: 1px;
  overflow-y: auto;
  flex-direction: column;
  scrollbar-width: none;
}

.wb-store-list::-webkit-scrollbar {
  display: none;
}

.wb-store-row {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 58px;
  margin-bottom: 2px;
  border: 1px solid transparent;
  border-radius: 7px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.wb-store-list .wb-store-row:nth-child(1) {
  order: 0;
}

.wb-store-list .wb-store-row:nth-child(2) {
  order: -2;
}

.wb-store-list .wb-store-row:nth-child(3) {
  order: -1;
}

.wb-store-row:hover {
  background: rgba(255, 255, 255, .72);
}

.wb-store-row.is-selected {
  border-color: #cfdff6;
  background: #fff;
  box-shadow: 0 5px 15px rgba(28, 61, 111, .08);
}

.wb-store-row.is-selected::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: -1px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  content: "";
  background: #2d7af0;
}

.wb-store-main {
  display: grid;
  min-width: 0;
  flex: 1;
  padding: 8px 0 7px 8px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  grid-template-columns: 32px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 7px;
}

.wb-store-main img {
  width: 32px;
  height: 32px;
  border: 1px solid #eef1f5;
  border-radius: 7px;
  object-fit: contain;
  background: #fff;
}

.wb-store-copy {
  min-width: 0;
}

.wb-store-copy > b {
  display: block;
  overflow: hidden;
  color: #35445c;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-store-copy small {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  overflow: hidden;
  color: #94a0b1;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-store-copy small i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #20bf92;
}

.wb-store-copy small i.busy {
  background: #edae38;
}

.wb-store-copy small i.offline {
  background: #a9b3c1;
}

.wb-unread {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  background: #ed5260;
  font-size: 7px;
  font-style: normal;
}

.wb-ai-toggle {
  align-self: flex-end;
  width: 25px;
  height: 14px;
  padding: 0;
  margin: 0 6px 8px 2px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #c9d1dc;
  font-size: 6px;
  font-weight: 700;
}

.wb-ai-toggle.is-on {
  background: #387ff0;
}

.wb-store-foot {
  min-height: 28px;
  padding: 4px 5px 0;
  font-size: 7px;
}

.wb-store-foot button {
  font-size: 7px;
}

.wb-inbox-pane {
  display: flex;
  border-right: 1px solid #e1e6ee;
  background: #fff;
}

.wb-inbox-pane .wb-pane-heading {
  min-height: 45px;
  padding: 0 12px;
  border-bottom: 1px solid #edf0f4;
}

.wb-inbox-pane .wb-pane-heading span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  color: #fff;
  background: #ec5964;
  font-size: 7px;
}

.wb-inbox-tabs {
  display: flex;
  padding: 0 10px;
  border-bottom: 1px solid #edf0f4;
}

.wb-inbox-tabs button {
  position: relative;
  height: 36px;
  padding: 0 10px;
  border: 0;
  color: #7f8da1;
  background: transparent;
  font-size: 9px;
}

.wb-inbox-tabs button b {
  margin-left: 3px;
  font-size: 7px;
}

.wb-inbox-tabs button.is-active {
  color: #246bd6;
  font-weight: 650;
}

.wb-inbox-tabs button.is-active::after {
  position: absolute;
  right: 9px;
  bottom: -1px;
  left: 9px;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: #2e7aec;
}

.wb-thread-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}

.wb-thread {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 72px;
  padding: 10px 11px;
  border: 0;
  border-bottom: 1px solid #f0f2f6;
  color: inherit;
  background: #fff;
  text-align: left;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
}

.wb-thread:hover {
  background: #f7faff;
}

.wb-thread.is-selected {
  background: #eef5ff;
}

.wb-thread.is-selected::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: #2d77e9;
}

.wb-buyer-avatar,
.wb-msg-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
}

.wb-buyer-avatar {
  width: 34px;
  height: 34px;
  font-size: 10px;
  box-shadow: 0 4px 10px rgba(25, 47, 80, .1);
}

.avatar-peach {
  background: linear-gradient(145deg, #ffc397, #f48b83);
}

.avatar-blue {
  background: linear-gradient(145deg, #8ac5ff, #4989e9);
}

.avatar-mint {
  background: linear-gradient(145deg, #72ddc3, #32aa99);
}

.avatar-orange {
  background: linear-gradient(145deg, #ffd36e, #ee9b3d);
}

.avatar-violet {
  background: linear-gradient(145deg, #bba7ff, #7e67da);
}

.wb-thread-copy {
  min-width: 0;
}

.wb-thread-copy > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wb-thread-copy b {
  color: #34435a;
  font-size: 9px;
}

.wb-thread-copy time {
  color: #a1acbb;
  font-size: 7px;
}

.wb-thread-copy small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #78879b;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-thread-copy em {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 5px;
  border-radius: 3px;
  color: #4479bf;
  background: #edf4ff;
  font-size: 6px;
  font-style: normal;
}

.wb-thread-copy em.is-warning {
  color: #c37a23;
  background: #fff4e6;
}

.wb-thread-unread {
  position: absolute;
  right: 10px;
  bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  color: #fff;
  background: #ed5964;
  font-size: 6px;
  font-style: normal;
}

.wb-inbox-foot {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-top: 1px solid #edf0f4;
  color: #8d9aad;
  background: #fbfcfe;
  font-size: 7px;
}

.wb-inbox-foot span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wb-inbox-foot i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #25be92;
}

.wb-chat-pane {
  display: flex;
  min-width: 0;
  min-height: 0;
  background: #fff;
  flex-direction: column;
}

.wb-store-banner {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 14px;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, .08), transparent 42%),
    linear-gradient(120deg, #57456f, #706099);
}

.wb-store-banner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 12px rgba(30, 18, 47, .18);
}

.wb-store-banner-logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.wb-store-banner > div:nth-child(2) {
  min-width: 0;
  margin-left: 9px;
}

.wb-store-banner b {
  display: block;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-store-banner small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: rgba(238, 242, 252, .68);
  font-size: 7px;
}

.wb-store-banner small i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #50ddb5;
}

.wb-store-banner-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.wb-store-banner-actions button {
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 5px;
  color: #f3f5fb;
  background: rgba(255, 255, 255, .08);
  font-size: 7px;
}

.wb-store-banner-actions button:last-child {
  width: 27px;
  padding: 0;
}

.wb-chat-metrics {
  display: grid;
  min-height: 67px;
  border-bottom: 1px solid #e8ecf2;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 92px;
}

.wb-chat-metrics div {
  display: flex;
  justify-content: center;
  padding: 11px 10px;
  border-right: 1px solid #edf0f4;
  flex-direction: column;
}

.wb-chat-metrics span {
  color: #8b97a9;
  font-size: 7px;
  white-space: nowrap;
}

.wb-chat-metrics b {
  margin-top: 5px;
  color: #2b3b55;
  font-size: 17px;
  font-weight: 750;
}

.wb-chat-metrics em {
  margin-left: 2px;
  color: #6e7f94;
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
}

.wb-chat-metrics > button {
  align-self: center;
  padding: 0;
  border: 0;
  color: #3474ce;
  background: transparent;
  font-size: 7px;
}

.wb-chat-metrics > button i {
  margin-left: 2px;
  font-style: normal;
}

.wb-chat-toolbar {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  border-bottom: 1px solid #edf0f4;
}

.wb-buyer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wb-buyer-meta .wb-buyer-avatar {
  width: 31px;
  height: 31px;
}

.wb-buyer-meta b {
  display: block;
  color: #35445c;
  font-size: 9px;
}

.wb-buyer-meta small {
  display: block;
  margin-top: 3px;
  color: #98a3b4;
  font-size: 7px;
}

.wb-chat-actions {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.wb-chat-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 28px;
  height: 27px;
  padding: 0 8px;
  border: 1px solid #e2e7ef;
  border-radius: 5px;
  color: #68778c;
  background: #fff;
  font-size: 7px;
}

.wb-chat-actions button i {
  font-size: 11px;
  font-style: normal;
}

.wb-chat-actions button:first-child {
  color: #2870d8;
  border-color: #cbddf8;
  background: #f7faff;
}

.wb-chat-actions button.is-done {
  color: #198767;
  border-color: #bfe9da;
  background: #effbf7;
}

.wb-chat-alert {
  display: flex;
  align-items: center;
  min-height: 29px;
  padding: 0 12px;
  border-bottom: 1px solid #f3dfb1;
  color: #845d1d;
  background: #fff9e8;
  font-size: 7px;
}

.wb-chat-alert b {
  color: #6e4a0d;
}

.wb-chat-alert button {
  padding: 0;
  border: 0;
  color: #8d784e;
  background: transparent;
  font-size: 7px;
}

.wb-chat-alert button:nth-last-child(2) {
  margin-left: auto;
  color: #3e76c9;
}

.wb-chat-alert button:last-child {
  margin-left: 9px;
  font-size: 12px;
}

.wb-messages {
  min-height: 0;
  padding: 13px 16px 12px;
  overflow-y: auto;
  background:
    linear-gradient(rgba(247, 249, 252, .88), rgba(247, 249, 252, .88)),
    repeating-linear-gradient(135deg, #eef2f8 0 1px, transparent 1px 18px);
  flex: 1;
}

.wb-time {
  margin: 0 0 10px;
  color: #a3adbb;
  font-size: 6px;
}

.wb-system-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
  color: #8997aa;
  font-size: 6px;
}

.wb-system-note span {
  color: #3f85e9;
}

.wb-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.wb-message > div {
  max-width: 76%;
}

.wb-msg-avatar {
  width: 29px;
  height: 29px;
  font-size: 8px;
}

.wb-msg-avatar.agent {
  color: #fff;
  background: linear-gradient(145deg, #4d94ff, #246ce0);
}

.wb-msg-author {
  display: block;
  margin: 0 0 4px 2px;
  color: #8b97a8;
  font-size: 6px;
}

.wb-msg-author em {
  margin-left: 4px;
  color: #3a9a7d;
  font-style: normal;
}

.wb-message p {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #e2e8f1;
  border-radius: 4px 10px 10px 10px;
  color: #445269;
  background: #fff;
  font-size: 8px;
  line-height: 1.65;
  box-shadow: 0 4px 12px rgba(39, 60, 91, .04);
}

.wb-message small {
  display: block;
  margin-top: 4px;
  color: #a2acba;
  font-size: 6px;
}

.wb-message.wb-buyer p {
  color: #fff;
  border-color: #4d8df0;
  background: linear-gradient(135deg, #4d8ff4, #347ce6);
}

.wb-message.wb-buyer {
  flex-direction: row-reverse;
}

.wb-message.wb-buyer > div {
  text-align: right;
}

.wb-message.wb-buyer .wb-msg-author {
  margin-right: 2px;
  text-align: right;
}

.wb-message.wb-agent {
  flex-direction: row-reverse;
}

.wb-message.wb-agent > div {
  text-align: right;
}

.wb-message.wb-agent .wb-msg-author {
  margin-right: 2px;
  color: #4d79bd;
  text-align: right;
}

.wb-message.wb-agent p {
  border-color: #cfe0f8;
  color: #39516f;
  background: #eef6ff;
}

.wb-ai-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 1px 0 9px;
  color: #8495ab;
  font-size: 6px;
}

.wb-ai-note i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 14px;
  padding: 0 5px;
  border-radius: 7px;
  color: #3877d8;
  background: #e8f2ff;
  font-size: 6px;
  font-style: normal;
  font-weight: 700;
}

.wb-product-message {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  margin: 3px 37px 10px auto;
  width: 78%;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(34, 57, 91, .05);
}

.wb-product-image,
.wb-recommend-image {
  position: relative;
  width: 44px;
  height: 50px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .45), transparent 38%),
    linear-gradient(160deg, #e7d8c9, #bfae9e 55%, #f3ede7);
}

.wb-product-image::after,
.wb-recommend-image::after {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 21px;
  height: 28px;
  border-radius: 10px 10px 5px 5px;
  content: "";
  background: linear-gradient(160deg, #fffaf2, #e1d0bf);
  box-shadow: 0 4px 8px rgba(117, 87, 63, .16);
}

.wb-product-image i,
.wb-recommend-image i {
  position: absolute;
  z-index: 1;
  top: 3px;
  right: 3px;
  padding: 1px 3px;
  border-radius: 2px;
  color: #fff;
  background: #e86e5f;
  font-size: 4px;
  font-style: normal;
}

.wb-product-message > div {
  min-width: 0;
}

.wb-product-message b {
  display: block;
  overflow: hidden;
  color: #34445d;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-product-message small {
  display: block;
  margin-top: 4px;
  color: #8e9aab;
  font-size: 6px;
}

.wb-product-message em {
  display: block;
  margin-top: 3px;
  color: #dd5b4e;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.wb-product-message button,
.wb-ai-suggestion button {
  height: 23px;
  padding: 0 7px;
  margin-left: auto;
  border: 1px solid #bcd3f5;
  border-radius: 4px;
  color: #3474d3;
  background: #f7faff;
  font-size: 6px;
  white-space: nowrap;
}

.wb-ai-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 83%;
  padding: 7px 9px;
  margin-left: auto;
  border: 1px dashed #bcd4f5;
  border-radius: 6px;
  background: rgba(239, 246, 255, .92);
}

.wb-ai-suggestion > div {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.wb-ai-suggestion > div > i {
  color: #3d82e7;
  font-size: 10px;
  font-style: normal;
}

.wb-ai-suggestion p {
  min-width: 0;
  margin: 0;
}

.wb-ai-suggestion b {
  display: block;
  color: #3d5c83;
  font-size: 7px;
}

.wb-ai-suggestion small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #8495aa;
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-ai-suggestion button.is-used {
  color: #198767;
  border-color: #bee8da;
  background: #f0fbf7;
}

.wb-reply-box {
  padding: 6px 12px 9px;
  border-top: 1px solid #e5eaf1;
  background: #fff;
}

.wb-composer-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
}

.wb-composer-tools button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #6f7f93;
  background: transparent;
  font-size: 12px;
}

.wb-composer-tools button:hover {
  color: #3277df;
  background: #eff5ff;
}

.wb-composer-form {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.wb-composer-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 9px 11px;
  border: 1px solid #dfe5ee;
  border-radius: 6px;
  outline: none;
  resize: none;
  color: #405068;
  background: #fafbfd;
  font-size: 8px;
  line-height: 1.5;
}

.wb-composer-form textarea:focus {
  border-color: #9bbff1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46, 122, 240, .08);
}

.wb-composer-form > button {
  width: 49px;
  height: 31px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #2a72df;
  font-size: 8px;
}

.wb-context-pane {
  display: flex;
  border-left: 1px solid #dfe5ee;
  background: #f8fafc;
}

.wb-context-tabs {
  display: grid;
  min-height: 45px;
  border-bottom: 1px solid #e7ebf1;
  background: #fff;
  grid-template-columns: 1fr 1fr;
}

.wb-context-tabs button {
  position: relative;
  border: 0;
  color: #7d8b9f;
  background: transparent;
  font-size: 9px;
}

.wb-context-tabs button.is-active {
  color: #246bd8;
  font-weight: 650;
}

.wb-context-tabs button.is-active::after {
  position: absolute;
  right: 27px;
  bottom: 0;
  left: 27px;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: #2e79eb;
}

.wb-context-panel {
  min-height: 0;
  padding: 12px;
  overflow-y: auto;
  flex: 1;
}

.wb-context-panel[hidden] {
  display: none;
}

.wb-context-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.wb-context-heading b {
  color: #34445c;
  font-size: 9px;
}

.wb-context-heading span {
  color: #98a4b5;
  font-size: 7px;
}

.wb-recommend-card {
  display: flex;
  width: 100%;
  padding: 8px;
  border: 1px solid #e1e7f0;
  border-radius: 7px;
  color: inherit;
  background: #fff;
  text-align: left;
  gap: 9px;
}

.wb-recommend-card:hover {
  border-color: #b9d1f2;
  box-shadow: 0 6px 16px rgba(31, 63, 110, .07);
}

.wb-recommend-image {
  width: 52px;
  height: 58px;
}

.wb-recommend-card > span:last-child {
  min-width: 0;
}

.wb-recommend-card b {
  display: block;
  overflow: hidden;
  color: #3a4960;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-recommend-card small,
.wb-recommend-card em {
  display: block;
  margin-top: 5px;
  color: #8e9aab;
  font-size: 7px;
  font-style: normal;
}

.wb-recommend-card em {
  color: #dc5c50;
  font-weight: 700;
}

.wb-context-block {
  padding: 11px 10px;
  margin-top: 10px;
  border: 1px solid #e4e9f1;
  border-radius: 7px;
  background: #fff;
}

.wb-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wb-block-title b {
  color: #46566d;
  font-size: 8px;
}

.wb-block-title span {
  color: #8e9bac;
  font-size: 7px;
}

.wb-knowledge,
.wb-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
  border-bottom: 1px dashed #edf0f4;
  color: #8b97a8;
  font-size: 7px;
}

.wb-knowledge:last-child,
.wb-order-row:last-child {
  border-bottom: 0;
}

.wb-knowledge b,
.wb-order-row b {
  overflow: hidden;
  color: #4e5d72;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-knowledge b,
.wb-order-row b.green {
  color: #1d9a76;
}

.wb-context-suggestion {
  margin: 0;
  color: #738196;
  font-size: 7px;
  line-height: 1.75;
}

.wb-quick-actions {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  grid-template-columns: 1fr 1fr;
}

.wb-quick-actions button {
  height: 28px;
  border: 1px solid #dfe6f0;
  border-radius: 5px;
  color: #52647c;
  background: #fff;
  font-size: 7px;
}

.wb-quick-actions button:hover {
  color: #2d70d7;
  border-color: #b9d1f4;
  background: #f8fbff;
}

.wb-order-summary {
  padding: 14px 12px;
  margin-bottom: 10px;
  border: 1px solid #e4e9f1;
  border-radius: 7px;
  background:
    radial-gradient(circle at 100% 0, rgba(86, 147, 241, .12), transparent 55%),
    #fff;
}

.wb-order-state {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  color: #be7a22;
  background: #fff2dd;
  font-size: 6px;
}

.wb-order-summary b {
  display: block;
  margin-top: 9px;
  color: #293b55;
  font-size: 20px;
}

.wb-order-summary small {
  display: block;
  margin-top: 5px;
  color: #93a0b1;
  font-size: 7px;
}

.wb-order-detail {
  width: 100%;
  height: 30px;
  margin-top: 10px;
  border: 1px solid #c9dbf5;
  border-radius: 5px;
  color: #2d72d6;
  background: #f7faff;
  font-size: 7px;
}

/* Compact canvas optimized for the homepage product window */
html,
.wb-page,
.wb-page .demo-app {
  width: 900px;
  height: 555px;
}

.wb-page .wb-topbar {
  height: 56px;
}

.wb-page .wb-account {
  width: 190px;
  min-width: 190px;
  height: 56px;
  padding-left: 2px;
  border-right: 1px solid #e5e9f0;
}

.wb-page .wb-account-avatar {
  width: 34px;
  height: 34px;
}

.wb-page .wb-account b {
  font-size: 12px;
}

.wb-page .wb-account small {
  font-size: 8px;
}

.wb-page .wb-top-stats {
  display: none;
}

.wb-page .wb-actions {
  flex: 1;
  margin-left: 20px;
}

.wb-page .wb-quota {
  margin-left: auto;
}

.wb-page .wb-add-store {
  height: 34px;
}

.wb-page .wb-add-store-square {
  height: 34px;
}

.wb-page .wb-tool i {
  width: 30px;
  height: 30px;
}

.wb-page .wb-quota i {
  width: 27px;
  height: 27px;
}

.wb-page .wb-workspace {
  grid-template-columns: 190px 210px minmax(0, 1fr) 140px;
}

.wb-page .demo-statusbar {
  height: 27px;
  font-size: 8px;
}

.wb-page .wb-store-pane {
  padding: 0 6px 6px;
}

.wb-page .wb-pane-heading {
  min-height: 42px;
}

.wb-page .wb-store-pane > .wb-pane-heading,
.wb-page .wb-inbox-pane > .wb-pane-heading {
  display: none;
}

.wb-page .wb-store-tabs {
  margin-top: 12px;
}

.wb-page .wb-store-tabs button {
  height: 28px;
}

.wb-page .wb-store-row {
  min-height: 52px;
}

.wb-page .wb-store-main {
  padding: 6px 0 6px 6px;
  grid-template-columns: 29px minmax(0, 1fr) 14px;
  gap: 6px;
}

.wb-page .wb-store-main img {
  width: 29px;
  height: 29px;
}

.wb-page .wb-store-copy > b {
  font-size: 9px;
}

.wb-page .wb-store-copy small {
  font-size: 7px;
}

.wb-page .wb-ai-toggle {
  margin-bottom: 6px;
}

.wb-page .wb-inbox-pane .wb-pane-heading {
  min-height: 42px;
  padding: 0 10px;
}

.wb-page .wb-inbox-tabs button {
  height: 32px;
}

.wb-page .wb-thread {
  min-height: 64px;
  padding: 8px 9px;
}

.wb-page .wb-thread-copy small {
  font-size: 7px;
}

.wb-page .wb-store-banner {
  min-height: 57px;
  padding: 0 11px;
}

.wb-page .wb-chat-metrics {
  min-height: 59px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 74px;
}

.wb-page .wb-chat-metrics div {
  padding: 8px 7px;
}

.wb-page .wb-chat-metrics b {
  margin-top: 4px;
  font-size: 15px;
}

.wb-page .wb-chat-toolbar {
  min-height: 44px;
  padding: 0 11px;
}

.wb-page .wb-chat-alert {
  min-height: 26px;
  padding: 0 9px;
}

.wb-page .wb-messages {
  padding: 10px 11px;
}

.wb-page .wb-reply-box {
  padding: 4px 9px 7px;
}

.wb-page .wb-composer-tools {
  height: 21px;
}

.wb-page .wb-composer-form textarea {
  min-height: 43px;
  padding: 7px 9px;
}

.wb-page .wb-context-panel {
  padding: 9px;
}

.wb-page .wb-context-tabs {
  min-height: 40px;
}

.wb-page .wb-product-message {
  margin-right: 25px;
}

.wb-page .demo-window-controls {
  display: flex;
  gap: 3px;
  margin-left: 8px;
}

.wb-page .demo-window-controls i {
  width: 24px;
  height: 24px;
  font-size: 9px;
}

.wb-toast {
  position: fixed;
  z-index: 20;
  bottom: 47px;
  left: 50%;
  max-width: 420px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px;
  color: #fff;
  background: rgba(15, 31, 53, .92);
  box-shadow: 0 12px 28px rgba(9, 22, 40, .2);
  font-size: 10px;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.wb-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Source-aligned canvas: build at native desktop dimensions, scale as one unit. */
html,
.wb-page,
.wb-page .demo-app {
  width: 1280px;
  height: 720px;
}

html.is-standalone-demo {
  display: flex;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(73, 139, 241, .13), transparent 40%),
    #e9eef5;
}

html.is-standalone-demo .wb-page {
  flex: 0 0 auto;
  box-shadow: 0 30px 90px rgba(24, 49, 88, .2);
}

.wb-page .wb-topbar {
  height: 70px;
  padding: 0 12px 0 0;
  border-bottom: 2px solid #e6e8eb;
  box-shadow: none;
}

.wb-page .wb-account {
  width: 280px;
  min-width: 280px;
  height: 70px;
  padding-left: 20px;
  border-right: 2px solid #e6e8eb;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  gap: 11px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.wb-page .wb-account-avatar {
  width: 44px;
  height: 44px;
}

.wb-page .wb-account b {
  font-size: 16px;
}

.wb-page .wb-account small {
  margin-top: 5px;
  font-size: 10px;
}

.wb-page .wb-account-chevron {
  display: none;
}

.wb-account-menu {
  position: absolute;
  z-index: 40;
  top: 76px;
  left: 16px;
  width: 180px;
  padding: 4px 0;
  visibility: hidden;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(27, 43, 69, .16);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.wb-account-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.wb-account-expire {
  padding: 8px 16px;
}

.wb-account-expire small,
.wb-account-expire b {
  display: block;
}

.wb-account-expire small {
  color: #929dac;
  font-size: 12px;
  line-height: 16px;
}

.wb-account-expire b {
  margin-top: 8px;
  color: #70757d;
  font-size: 12px;
  font-weight: 500;
}

.wb-account-menu > button {
  display: flex;
  width: 100%;
  min-height: 36px;
  padding: 8px 16px;
  align-items: center;
  gap: 0;
  border: 0;
  border-radius: 0;
  color: #1c1e23;
  background: transparent;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
}

.wb-account-menu > button:hover {
  color: #1c1e23;
  background: rgba(46, 48, 56, .05);
}

.wb-account-menu > button i {
  display: inline-flex;
  width: 12px;
  height: 12px;
  margin-right: 9px;
  flex: 0 0 12px;
  align-items: center;
  justify-content: center;
  color: #6b7075;
  font-style: normal;
  text-align: center;
}

.wb-account-menu > button i svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.wb-account-menu > button.tertiary {
  color: #6b7075;
}

.wb-account-menu > button.tertiary:hover {
  color: #6b7075;
}

.wb-account-menu > button em {
  margin-left: auto;
  color: #929ba8;
  font-size: 13px;
  font-style: normal;
}

.wb-account-menu > button.danger {
  color: #ff3f33;
}

.wb-account-menu > button.danger:hover {
  color: #ff3f33;
  background: rgba(255, 63, 51, .06);
}

.wb-account-menu-divider {
  height: 1px;
  margin: 4px 0;
  background: rgba(28, 30, 35, .08);
}

.wb-page .wb-actions {
  margin-left: 20px;
}

.wb-page .wb-add-store {
  width: 120px;
  height: 32px;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
}

.wb-page .wb-add-store-square {
  width: 32px;
  height: 32px;
  border-radius: 0 8px 8px 0;
  font-size: 16px;
}

.wb-page .wb-actions {
  gap: 10px;
}

.wb-page .wb-tool i {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(29, 33, 41, .045);
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.wb-page .wb-tool svg {
  width: 19px;
  height: 19px;
}

.wb-page .wb-tool:hover i {
  transform: translateY(-2px);
}

.wb-page .wb-tool-blue:hover i {
  color: #165dff;
  border-color: rgba(22, 93, 255, .24);
  background: rgba(22, 93, 255, .09);
  box-shadow: 0 7px 16px rgba(22, 93, 255, .1);
}

.wb-page .wb-tool-orange:hover i {
  color: #ff7d00;
  border-color: rgba(255, 125, 0, .24);
  background: rgba(255, 125, 0, .09);
  box-shadow: 0 7px 16px rgba(255, 125, 0, .1);
}

.wb-page .wb-tool-violet:hover i {
  color: #722ed1;
  border-color: rgba(114, 46, 209, .24);
  background: rgba(114, 46, 209, .09);
  box-shadow: 0 7px 16px rgba(114, 46, 209, .1);
}

.wb-page .wb-tool-cyan:hover i {
  color: #05a4b6;
  border-color: rgba(5, 164, 182, .24);
  background: rgba(5, 164, 182, .09);
  box-shadow: 0 7px 16px rgba(5, 164, 182, .1);
}

.wb-page .wb-quota {
  margin-left: 0;
  gap: 9px;
  padding-left: 14px;
}

.wb-page .wb-actions {
  flex: 0 1 auto;
}

.wb-page .wb-quota-ring {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
}

.wb-page .wb-quota-ring svg {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
  transform: rotate(-90deg);
}

.wb-page .wb-quota-track,
.wb-page .wb-quota-value {
  fill: none;
  stroke-width: 4;
}

.wb-page .wb-quota-track {
  stroke: #e4e7ec;
}

.wb-page .wb-quota-value {
  stroke: #165dff;
  stroke-dasharray: 62.832;
  stroke-dashoffset: 31.416;
  stroke-linecap: round;
}

.wb-page .wb-quota-label {
  color: #8d96a4;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.wb-page .wb-quota b {
  font-size: 12px;
}

.wb-page .wb-quota small {
  font-size: 8px;
}

.wb-page .demo-window-controls i {
  width: 34px;
  height: 30px;
  font-size: 11px;
}

.wb-page .demo-window-controls {
  margin-left: auto;
}

.wb-page .wb-workspace {
  grid-template-columns: 280px 315px minmax(0, 1fr) 187px;
}

.wb-page .demo-statusbar {
  height: 26px;
  padding: 0 16px;
  font-size: 9px;
}

.wb-page .wb-store-pane {
  padding: 0 12px 10px;
}

.wb-page .wb-store-tabs {
  height: 44px;
  margin: 18px 0 8px;
  padding: 4px;
}

.wb-page .wb-store-tabs button {
  height: 34px;
  font-size: 13px;
}

.wb-page .wb-store-tabs button b {
  min-width: 18px;
  height: 17px;
  font-size: 9px;
}

.wb-page .wb-search {
  height: 38px;
  margin: 8px 0 10px;
  padding: 0 11px;
}

.wb-page .wb-search input {
  font-size: 10px;
}

.wb-page .wb-store-row {
  min-height: 72px;
  margin-bottom: 3px;
}

.wb-page .wb-store-main {
  padding: 10px 0 9px 10px;
  grid-template-columns: 46px minmax(0, 1fr) 16px;
  gap: 9px;
}

.wb-page .wb-store-main img {
  width: 46px;
  height: 46px;
  border-radius: 9px;
}

.wb-page .wb-store-copy > b {
  font-size: 14px;
}

.wb-page .wb-store-copy small {
  margin-top: 7px;
  font-size: 10px;
}

.wb-page .wb-unread {
  width: 16px;
  height: 16px;
  font-size: 8px;
}

.wb-page .wb-ai-toggle {
  width: 28px;
  height: 16px;
  margin: 0 9px 12px 4px;
  font-size: 7px;
}

.wb-page .wb-store-foot {
  min-height: 29px;
  font-size: 8px;
}

.wb-page .wb-store-foot button {
  font-size: 8px;
}

.wb-page .wb-inbox-tabs {
  min-height: 51px;
  padding: 0 14px;
}

.wb-page .wb-inbox-tabs button {
  height: 50px;
  padding: 0 13px;
  font-size: 11px;
}

.wb-page .wb-thread {
  min-height: 86px;
  padding: 12px 12px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
}

.wb-page .wb-buyer-avatar {
  width: 38px;
  height: 38px;
  font-size: 11px;
}

.wb-page .wb-thread-copy b {
  font-size: 12px;
}

.wb-page .wb-thread-copy time {
  font-size: 8px;
}

.wb-page .wb-thread-copy small {
  margin-top: 6px;
  font-size: 9px;
}

.wb-page .wb-thread-copy em {
  margin-top: 7px;
  font-size: 7px;
}

.wb-page .wb-inbox-foot {
  min-height: 35px;
  padding: 0 14px;
  font-size: 8px;
}

.wb-page .wb-store-banner {
  min-height: 96px;
  padding: 0 18px;
}

.wb-page .wb-store-banner-logo {
  width: 48px;
  height: 48px;
}

.wb-page .wb-store-banner-logo img {
  width: 38px;
  height: 38px;
}

.wb-page .wb-store-banner b {
  font-size: 16px;
}

.wb-page .wb-store-banner small {
  margin-top: 6px;
  font-size: 9px;
}

.wb-page .wb-store-banner-actions button {
  height: 31px;
  padding: 0 11px;
  font-size: 9px;
}

.wb-page .wb-chat-metrics {
  min-height: 72px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 102px;
}

.wb-page .wb-chat-metrics div {
  padding: 10px 14px;
}

.wb-page .wb-chat-metrics span {
  font-size: 9px;
}

.wb-page .wb-chat-metrics b {
  margin-top: 5px;
  font-size: 22px;
}

.wb-page .wb-chat-metrics > button {
  font-size: 8px;
}

.wb-page .wb-chat-toolbar {
  min-height: 57px;
  padding: 0 17px;
}

.wb-page .wb-buyer-meta .wb-buyer-avatar {
  width: 36px;
  height: 36px;
}

.wb-page .wb-buyer-meta b {
  font-size: 11px;
}

.wb-page .wb-buyer-meta small {
  font-size: 8px;
}

.wb-page .wb-chat-actions button {
  min-width: 34px;
  height: 31px;
  font-size: 9px;
}

.wb-page .wb-chat-alert {
  min-height: 34px;
  padding: 0 14px;
  font-size: 9px;
}

.wb-page .wb-chat-alert button {
  font-size: 9px;
}

.wb-page .wb-messages {
  padding: 16px 18px 14px;
}

.wb-page .wb-time,
.wb-page .wb-system-note,
.wb-page .wb-ai-note {
  font-size: 8px;
}

.wb-page .wb-message p {
  padding: 11px 13px;
  font-size: 11px;
  line-height: 1.7;
}

.wb-page .wb-message small,
.wb-page .wb-msg-author {
  font-size: 8px;
}

.wb-page .wb-msg-avatar {
  width: 34px;
  height: 34px;
  font-size: 10px;
}

.wb-page .wb-product-message {
  width: 72%;
  padding: 10px;
  margin-right: 48px;
}

.wb-page .wb-product-message b,
.wb-page .wb-ai-suggestion b {
  font-size: 10px;
}

.wb-page .wb-product-message small,
.wb-page .wb-product-message em,
.wb-page .wb-ai-suggestion small,
.wb-page .wb-ai-suggestion button,
.wb-page .wb-product-message button {
  font-size: 8px;
}

.wb-page .wb-reply-box {
  padding: 7px 14px 11px;
}

.wb-page .wb-composer-tools {
  height: 27px;
}

.wb-page .wb-composer-tools button {
  width: 28px;
  height: 25px;
  font-size: 14px;
}

.wb-page .wb-composer-form textarea {
  min-height: 56px;
  padding: 10px 12px;
  font-size: 10px;
}

.wb-page .wb-composer-form > button {
  width: 58px;
  height: 36px;
  font-size: 10px;
}

.wb-page .wb-context-tabs {
  min-height: 52px;
}

.wb-page .wb-context-tabs button {
  font-size: 10px;
}

.wb-page .wb-context-panel {
  padding: 12px 10px;
}

.wb-page .wb-context-heading b,
.wb-page .wb-block-title b {
  font-size: 10px;
}

.wb-page .wb-context-heading span,
.wb-page .wb-block-title span {
  font-size: 8px;
}

.wb-page .wb-recommend-card {
  padding: 8px 7px;
  gap: 8px;
}

.wb-page .wb-recommend-image {
  width: 47px;
  height: 56px;
}

.wb-page .wb-recommend-card b,
.wb-page .wb-knowledge,
.wb-page .wb-order-row,
.wb-page .wb-knowledge b,
.wb-page .wb-order-row b,
.wb-page .wb-context-suggestion,
.wb-page .wb-quick-actions button,
.wb-page .wb-order-detail {
  font-size: 8px;
}

.wb-page .wb-context-block {
  padding: 10px 8px;
}

/* Welcome screen from src/pages/index/index.tsx */
.wb-page .wb-workspace {
  grid-template-columns: 280px minmax(0, 1fr);
  background: #fbfcfe;
}

.wb-page .wb-tool-blue {
  --tool-color: #165dff;
}

.wb-page .wb-tool-orange {
  --tool-color: #ff7d00;
}

.wb-page .wb-tool-violet {
  --tool-color: #722ed1;
}

.wb-page .wb-tool-cyan {
  --tool-color: #05a4b6;
}

.wb-page .wb-tool i {
  color: var(--tool-color, #64748a);
}

.wb-page .wb-quota-label {
  display: block;
  color: #667085;
  font-size: 10px;
  white-space: nowrap;
}

.wb-sidebar {
  display: flex;
  min-height: 0;
  padding: 18px 12px 10px 8px;
  border-right: 2px solid #e6e8eb;
  background: #fff;
  flex-direction: column;
}

.wb-sidebar .wb-store-tabs {
  display: flex;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 6px;
}

.wb-sidebar .wb-store-tabs button {
  flex: 1;
  height: 42px;
  border-radius: 8px;
  color: #6f7785;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
}

.wb-sidebar .wb-store-tabs button.is-active {
  color: #165dff;
  background: #edf3ff;
  box-shadow: none;
}

.wb-sidebar-empty {
  min-height: 0;
  flex: 1;
}

.wb-sidebar .wb-store-list {
  display: flex;
  min-height: 0;
  padding: 10px 2px 0 0;
  overflow-y: auto;
  flex: 1;
  flex-direction: column;
  scrollbar-width: thin;
}

.wb-sidebar .wb-store-row {
  order: 0 !important;
  min-height: 70px;
  flex: 0 0 auto;
}

.wb-sidebar .wb-store-row[hidden] {
  display: none !important;
}

.wb-sidebar .wb-store-main {
  min-width: 0;
  flex: 1;
  padding: 9px 44px 9px 9px;
  grid-template-columns: 46px minmax(0, 1fr) 16px;
  gap: 9px;
}

.wb-sidebar .wb-store-copy small strong {
  flex: 0 0 auto;
  color: #1d9f7c;
  font-size: 9px;
  font-weight: 500;
}

.wb-sidebar .wb-store-copy small:has(i.busy) strong {
  color: #d6922b;
}

.wb-sidebar .wb-store-copy small span {
  min-width: 0;
  overflow: hidden;
  color: #9aa5b4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-sidebar .wb-store-copy small i.info {
  background: #2f81e9;
}

.wb-sidebar .wb-store-copy small i.consult {
  background: #e2569a;
}

.wb-sidebar .wb-ai-toggle {
  position: absolute;
  top: 13px;
  right: 10px;
  display: block;
  width: 30px;
  height: 18px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 9px;
  color: #777a80;
  background: #f4f4f5;
  font-size: 9px;
  line-height: 18px;
  text-align: center;
  transition: color .18s ease, background-color .18s ease;
}

.wb-sidebar .wb-ai-toggle::before {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  content: "";
  background: #fff;
  box-shadow: 0 1px 3px rgba(27, 36, 52, .22);
  transition: transform .18s ease;
}

.wb-sidebar .wb-ai-toggle > span {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 20px;
  height: 18px;
  line-height: 18px;
  text-align: center;
}

.wb-sidebar .wb-ai-toggle.is-on {
  color: #fff;
  background: #1651e8;
}

.wb-sidebar .wb-ai-toggle.is-on:hover {
  background: #0d3dc4;
}

.wb-sidebar .wb-ai-toggle.is-on::before {
  transform: translateX(12px);
}

.wb-sidebar .wb-ai-toggle.is-on > span {
  right: auto;
  left: 0;
}

.wb-sidebar .wb-store-row > time {
  position: absolute;
  right: 12px;
  bottom: 11px;
  color: #9ba6b4;
  font-size: 9px;
}

.wb-sidebar .wb-store-row.is-selected {
  background: #edf3ff;
  border-color: #dce8fb;
  box-shadow: none;
}

.wb-sidebar .wb-store-row.is-selected::before {
  top: 7px;
  bottom: 7px;
  left: -1px;
}

.wb-welcome {
  position: relative;
  min-width: 0;
  overflow-y: auto;
  background: #f8fafc;
}

.wb-welcome-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(127, 127, 127, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 127, 127, .055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .5) 70%, transparent 100%);
  pointer-events: none;
}

.wb-welcome-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 100%;
  max-width: 1050px;
  padding: 20px 34px 16px;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

.wb-welcome-head {
  text-align: center;
}

.wb-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(22, 93, 255, .16);
  border-radius: 999px;
  color: #165dff;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 18px rgba(22, 93, 255, .08);
  font-size: 12px;
  font-weight: 650;
}

.wb-ready-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00b42a;
  box-shadow: 0 0 0 4px rgba(0, 180, 42, .12);
}

.wb-welcome h1 {
  margin: 10px 0 0;
  color: transparent;
  background: linear-gradient(105deg, #165dff, #26a8cc);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(30px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.wb-welcome-head p {
  margin: 6px 0 0;
  color: #7d8797;
  font-size: 14px;
}

.wb-feature-grid {
  display: grid;
  gap: 14px 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wb-feature-card {
  position: relative;
  min-height: 150px;
  padding: 17px 19px;
  border: 1px solid #e5e9ef;
  border-radius: 8px;
  color: #1f2937;
  background: #fff;
  box-shadow: 0 8px 28px rgba(29, 33, 41, .055);
  text-align: left;
}

.wb-feature-card:hover {
  border-color: color-mix(in srgb, var(--accent) 32%, #e5e9ef);
  transform: translateY(-3px);
  box-shadow: 0 15px 32px color-mix(in srgb, var(--accent) 12%, transparent);
}

.wb-feature-num {
  position: absolute;
  top: 15px;
  right: 17px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  opacity: .62;
}

.wb-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 50%;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
}

.wb-feature-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.wb-feature-card > b {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
  font-weight: 700;
}

.wb-feature-card > small {
  display: block;
  color: #7c8797;
  font-size: 11px;
  line-height: 1.65;
}

.wb-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #485467;
  font-size: 11px;
}

.wb-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.wb-trust-row i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #165dff;
  background: #edf3ff;
  font-size: 9px;
  font-style: normal;
}

.wb-welcome-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.wb-welcome-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  height: 38px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  gap: 7px;
}

.wb-welcome-actions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.wb-welcome-primary {
  border: 0;
  color: #fff;
  background: #165dff;
  box-shadow: 0 8px 20px rgba(22, 93, 255, .2);
}

.wb-welcome-secondary {
  border: 1px solid #165dff;
  color: #165dff;
  background: rgba(255, 255, 255, .9);
}

.wb-welcome-tip {
  margin: -4px 0 0;
  color: #8b96a7;
  font-size: 10px;
  text-align: center;
}

.wb-service-fab {
  position: absolute;
  z-index: 5;
  right: 18px;
  top: 50%;
  display: flex;
  width: 54px;
  height: 54px;
  padding: 7px;
  margin: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid #e1e7f0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 33, 41, .14);
  transform: translateY(-50%);
}

.wb-service-fab img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.wb-service-fab span {
  position: absolute;
  right: calc(100% + 8px);
  padding: 6px 9px;
  border-radius: 6px;
  color: #fff;
  background: #1f2937;
  font-size: 9px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity .16s ease, transform .16s ease;
}

.wb-service-fab:hover span,
.wb-service-fab:focus-visible span {
  opacity: 1;
  transform: translateX(0);
}

.wb-modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease, visibility .2s ease;
}

.wb-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.wb-modal-mask {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, .42);
}

.wb-platform-dialog,
.wb-support-dialog {
  position: relative;
  z-index: 1;
  width: 328px;
  padding: 22px;
  border: 1px solid #e4e8ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 32, 60, .24);
}

.wb-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #7b8797;
  background: transparent;
  font-size: 18px;
}

.wb-modal-close:hover {
  background: #f2f4f7;
}

.wb-platform-dialog h2,
.wb-support-dialog h2 {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
  text-align: center;
}

.wb-platform-dialog > p,
.wb-support-dialog > p {
  margin: 5px 0 17px;
  color: #8b96a7;
  font-size: 10px;
  text-align: center;
}

.wb-platform-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wb-platform-grid button {
  display: flex;
  min-height: 76px;
  padding: 8px 4px;
  border: 0;
  border-radius: 8px;
  color: #566276;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
}

.wb-platform-grid button:hover {
  color: #165dff;
  background: #f0f5ff;
}

.wb-platform-grid img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.wb-support-dialog {
  width: 300px;
  text-align: center;
}

.wb-support-dialog > img {
  width: min(220px, 100%);
  aspect-ratio: 1;
  margin: 10px auto 12px;
  border: 1px solid #e5e9ef;
  border-radius: 8px;
  object-fit: contain;
}

.wb-page.modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .wb-page *,
  .wb-page *::before,
  .wb-page *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
