:root {
  color-scheme: light;
  font-family: "PingFang SC", "PingFang TC", "PingFang HK", "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #1d2129;
  background: #eef4fc;
  --blue: #4e53e0;
  --bright-blue: #2563eb;
  --muted: #86909c;
  --line: #eef0f3;
  --panel-bg: #fff;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  min-width: 1180px;
  overflow: hidden;
  background-color: #eef4fc;
  background-image: linear-gradient(rgba(238, 244, 252, 0.72), rgba(238, 244, 252, 0.72)),
    url("https://fr-static-new.oss-cn-hangzhou.aliyuncs.com/scrm-aidchat-workbench/png/bg-default-4c785301.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 740px 500px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(78, 83, 224, 0.35);
  outline-offset: 1px;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: transparent;
}

*:hover::-webkit-scrollbar-thumb {
  background: rgba(134, 144, 156, 0.3);
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 64.5px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 36px;
  background: rgba(238, 244, 252, 0.82);
}

.topbar-left,
.topbar-right,
.top-actions,
.top-action,
.gmv-pill,
.account-btn,
.service-btn {
  display: flex;
  align-items: center;
}

.topbar-left {
  height: 65px;
  gap: 24px;
}

.brand-logo {
  width: 90px;
  height: 64px;
  object-fit: contain;
}

.top-link {
  height: 32px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: #1d2129;
  white-space: nowrap;
}

.top-divider {
  width: 1px;
  height: 17px;
  margin-left: -12px;
  margin-right: -12px;
  background: #d9dee7;
}

.topbar-right {
  height: 100%;
  gap: 0;
}

.gmv-pill {
  width: 246px;
  height: 32px;
  justify-content: space-around;
  border-radius: 19px;
  background: #fff;
  font-size: 13px;
}

.gmv-pill b {
  margin-left: 7px;
  color: #2456a6;
  font-weight: 500;
}

.top-actions {
  width: 209px;
  height: 32px;
  margin-left: 10px;
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
}

.top-action {
  height: 32px;
  gap: 7px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 500;
}

.top-action + .top-action {
  border-left: 1px solid #e5e7eb;
}

.top-action .icon {
  font-size: 17px;
}

.service-btn {
  width: 96px;
  height: 32px;
  justify-content: center;
  gap: 7px;
  margin-left: 12px;
  padding: 0;
  border-radius: 18px;
  color: #fff;
  background: #3f65d9;
  font-size: 13px;
}

.round-icon {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
}

.service-btn + .round-icon {
  width: 24px;
  height: 24px;
  margin-left: 12px;
}

.round-icon.gray {
  width: 32px;
  height: 32px;
  margin-left: 12px;
  color: #fff;
  background: #8d96a3;
}

.round-icon.blue {
  margin-left: 16px;
  color: #fff;
  background: #2d63dc;
}

.notice-dot {
  position: absolute;
  top: 1px;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f36a65;
}

.account-btn {
  width: 133px;
  height: 32px;
  justify-content: flex-start;
  gap: 8px;
  margin-left: 16px;
  padding: 0 10px 0 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  white-space: nowrap;
}

.account-btn img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.chevron {
  color: #86909c;
  font-size: 12px;
}

.app-rail {
  position: fixed;
  z-index: 15;
  top: 76px;
  bottom: 14px;
  left: 10px;
  width: 48px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

#productNav {
  display: flex;
  height: calc(100% - 42px);
  flex-direction: column;
  padding: 4px;
  gap: 4px;
  overflow: hidden auto;
}

.product-nav-item {
  position: relative;
  display: grid;
  width: 40px;
  min-height: 40px;
  place-items: center;
  border-radius: 2px;
}

.product-nav-item.active {
  border: 1px solid #d8d9ff;
  background: #f6f5ff;
}

.product-nav-item img {
  width: 16px;
  height: 16px;
}

.product-nav-item.active img {
  filter: saturate(1.35);
}

.rail-collapse {
  position: absolute;
  bottom: 10px;
  left: 12px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 3px;
  color: #9aa2ad;
  background: #f7f8fa;
}

.page-shell {
  position: fixed;
  top: 76px;
  right: 16px;
  bottom: 10px;
  left: 66px;
  overflow: hidden;
}

.page-tabs {
  height: 44px;
  padding: 6px;
  background: #fff;
}

.page-tab {
  width: 80px;
  height: 32px;
  color: #3f5dac;
  background: #f4f6f9;
  font-size: 14px;
  font-weight: 500;
}

.workspace {
  position: absolute;
  top: 54px;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 64px 340px minmax(390px, 1fr) 458px;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  border-radius: 12px 0 0 12px;
}

.workspace > * {
  min-height: 0;
}

.workspace.chat-expanded {
  grid-template-columns: 64px 0 minmax(540px, 1fr) 0;
}

.workspace.chat-expanded .conversation-panel,
.workspace.chat-expanded .sales-panel {
  visibility: hidden;
}

.task-nav {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
  color: #d7dbea;
  background: #252e43;
}

.task-nav-item,
.task-nav-profile {
  position: relative;
  display: flex;
  width: 44px;
  height: 48px;
  min-height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 8px;
  color: #cdd3e1;
  font-size: 12px;
  white-space: nowrap;
}

.task-nav-item:hover,
.task-nav-item.active {
  color: #fff;
  background: #4f55df;
}

.task-nav-item .task-symbol {
  font-size: 16px;
  line-height: 18px;
}

.task-nav-item > span:not(.task-symbol):not(.count) {
  color: #c6cff9;
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
}

.task-nav-item .count {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  min-width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #ff7d2e;
  font-size: 9px;
}

.task-nav-item.active .count {
  background: #5961ba;
}

.task-divider {
  width: 44px;
  height: 16px;
  min-height: 16px;
  background: url("https://fr-static-new.oss-cn-hangzhou.aliyuncs.com/scrm-aidchat-workbench/svg/divider-6d8434c4.svg") center / 44px 16px no-repeat;
}

.task-nav-scroll {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  overflow: hidden auto;
}

.task-nav-profile {
  margin-top: auto;
}

.task-nav-profile img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.conversation-panel {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-right: 0;
  background: #fff;
}

.conversation-tabs {
  display: flex;
  height: 36px;
  min-height: 36px;
  gap: 4px;
  margin: 16px;
  padding: 2px;
  border-radius: 10px;
  background: #f5f7f8;
}

.conversation-tab {
  display: flex;
  height: 32px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  color: #5d6673;
  white-space: nowrap;
}

.conversation-tab.active {
  color: #4e53e0;
  background: #fff;
  font-weight: 500;
  line-height: 22px;
  box-shadow: 0 1px 6px rgba(40, 46, 80, 0.08);
}

.conversation-tab span {
  font-size: 16px;
}

.search-row {
  display: flex;
  height: 32px;
  gap: 8px;
  margin: 0 16px;
}

.search-box {
  display: flex;
  height: 32px;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #dfe2e7;
  border-radius: 8px;
  color: #aeb5bf;
  background: #fff;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  color: #1d2129;
  background: transparent;
  font-size: 12px;
}

.search-box input::placeholder {
  color: #c5cad1;
}

.filter-btn {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #5d6673;
  background: #fff;
}

.stage-filters {
  display: grid;
  height: 81px;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 10px 16px;
}

.stage-filter {
  height: 28px;
  overflow: hidden;
  padding: 0 7px;
  border-radius: 8px;
  color: #4e5969;
  background: #f5f7f9;
  font-size: 12px;
  white-space: nowrap;
}

.stage-filter.active {
  color: #2f3d73;
  background: #e8edff;
}

.conversation-list {
  min-height: 0;
  flex: 1;
  padding: 0 10px;
  overflow: hidden auto;
}

.conversation-card {
  height: 286px;
  overflow: hidden;
  border: 1px solid #cdd3f7;
  border-radius: 12px;
  background: rgba(232, 237, 255, 0.5);
}

.card-summary {
  display: grid;
  height: 78px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px 12px 8px;
}

.customer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.summary-main {
  min-width: 0;
}

.summary-title {
  overflow: hidden;
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin {
  color: #4ec3b4;
  font-size: 12px;
}

.summary-main p {
  margin: 5px 0 0;
  overflow: hidden;
  color: #86909c;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 11px;
  color: #d96868;
  font-size: 12px;
  white-space: nowrap;
}

.summary-meta small {
  color: #86909c;
  font-size: 11px;
}

.tag-row {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}

.tag-row button {
  height: 26px;
  padding: 0 7px;
  border-radius: 3px;
  color: #6673c6;
  background: #e9edff;
  font-size: 12px;
}

.tag-row .add-square {
  width: 25px;
  padding: 0;
  font-size: 18px;
}

.demand-name {
  height: 38px;
  margin: 0 8px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
}

.record-section,
.task-section {
  margin: 7px 12px 0;
}

.section-heading {
  display: flex;
  height: 22px;
  align-items: center;
  justify-content: space-between;
}

.section-heading b {
  font-weight: 600;
}

.section-heading button {
  color: #5d67d7;
  font-size: 18px;
}

.record-section p {
  margin: 2px 0 0;
  color: #aeb5bf;
  font-size: 12px;
}

.task-detail {
  display: flex;
  margin-top: 2px;
  justify-content: space-between;
  font-size: 12px;
}

.task-detail time {
  color: #9aa3ae;
}

.empty-conversations {
  padding: 100px 0;
  text-align: center;
  color: #aeb5bf;
}

.chat-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid #eff0f2;
  background: #fff;
}

.chat-header {
  position: relative;
  height: 103px;
  min-height: 103px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #eff1f4;
  background: #fff;
}

.chat-person {
  display: flex;
  gap: 10px;
}

.chat-person > img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-name {
  height: 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.chat-name small {
  margin-left: 8px;
  color: #8d96a3;
  font-size: 11px;
  font-weight: 400;
}

.offline-btn {
  padding: 0;
  color: #6b7480;
  font-size: 12px;
}

.chat-header-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.source-tag {
  height: 28px;
  padding: 5px 11px;
  border-radius: 14px;
  color: #d45c5c;
  background: #fff3f2;
  font-size: 12px;
}

.chat-header-actions button {
  font-size: 26px;
  line-height: 24px;
}

.expand-chat {
  position: absolute;
  right: 16px;
  bottom: 9px;
  color: #4e5969;
  font-size: 12px;
}

.message-list {
  min-height: 0;
  flex: 1;
  overflow: hidden auto;
  background: #fff;
}

.message-flow {
  min-height: 100%;
  padding: 20px 24px;
}

.time-line {
  margin: 12px 0;
  color: #9aa3ae;
  text-align: center;
  font-size: 12px;
}

.system-note {
  width: fit-content;
  max-width: 90%;
  margin: 12px auto;
  padding: 8px 14px;
  border: 1px solid #efbbb4;
  border-radius: 8px;
  color: #d5685d;
  background: #fff1ed;
  font-size: 13px;
}

.solution-message {
  width: 274px;
  margin: 10px auto 24px;
  overflow: hidden;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.solution-sender {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 6px;
  color: #6b7480;
  font-size: 11px;
}

.solution-sender img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.solution-message h4,
.solution-message p {
  margin: 0;
  padding: 0 0 8px;
}

.solution-message h4 {
  font-size: 16px;
}

.solution-message p {
  color: #4e5969;
  font-size: 13px;
}

.solution-visual {
  position: relative;
  display: grid;
  height: 220px;
  place-items: center;
  overflow: hidden;
  color: #8e4c35;
  background: linear-gradient(160deg, #f5eafa, #f8d9e3 40%, #ffd7c6 100%);
}

.solution-visual::after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -55px;
  left: -25px;
  height: 140px;
  transform: rotate(-3deg);
  background: repeating-linear-gradient(8deg, rgba(247, 103, 78, 0.35) 0 2px, transparent 2px 10px);
  opacity: 0.75;
}

.solution-visual div {
  z-index: 1;
  text-align: center;
}

.solution-visual strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}

.solution-visual button {
  margin-top: 12px;
  padding: 6px 17px;
  border-radius: 18px;
  color: #fff;
  background: #ef775f;
}

.outgoing-row {
  display: flex;
  margin: 14px 0;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
}

.outgoing-row .bubble-meta {
  margin-bottom: 6px;
  color: #8d96a3;
  text-align: right;
  font-size: 11px;
}

.outgoing-row .avatar-image {
  width: 32px;
  height: 32px;
  margin-top: 4px;
  border-radius: 50%;
  object-fit: cover;
}

.outgoing-row.card-row > div:first-child {
  transform: translateX(17px);
}

.outgoing-row.card-row .avatar-image {
  position: relative;
  z-index: 2;
  margin-top: 19px;
  transform: translateX(5px);
}

.outgoing-row.card-row .bubble-meta {
  font-size: 12px;
}

.outgoing-row.resource-row:not(.resource-last) {
  margin-bottom: -14px;
}

.text-bubble {
  max-width: 478px;
  padding: 14px;
  border: 1px solid #8390d7;
  border-radius: 11px;
  background: #f3f4ff;
  font-size: 14px;
  line-height: 1.75;
}

.guide-card {
  width: 300px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.guide-card .guide-copy {
  padding: 10px 14px 7px;
}

.guide-card strong,
.guide-card span {
  display: block;
}

.guide-card span {
  margin-top: 7px;
  color: #6b7480;
  font-size: 12px;
}

.guide-card img {
  display: block;
  width: 270px;
  height: 220px;
  margin: 0 15px;
  object-fit: cover;
}

.guide-card a {
  display: block;
  padding: 8px 14px;
  color: #4e73c5;
  font-size: 13px;
}

.new-resource-card {
  width: 300px;
  overflow: hidden;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.resource-footer {
  height: 28px;
  padding: 5px 16px 7px;
  color: #4e73c5;
  font-size: 12px;
}

.new-resource-card .resource-title {
  height: 46px;
  padding: 15px 16px 8px;
  border-bottom: 1px solid #eef0f2;
  font-size: 16px;
  font-weight: 600;
}

.new-resource-card .resource-description {
  height: 40px;
  padding: 14px 16px 6px;
  color: #6b7480;
  font-size: 12px;
}

.new-resource-card img {
  display: block;
  width: 270px;
  height: 220px;
  margin: 0 14px 12px 16px;
  border-radius: 8px;
  object-fit: cover;
}

.membership-mini-card {
  width: 300px;
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.membership-mini-copy {
  padding: 12px 15px 10px;
}

.membership-mini-copy > span {
  display: block;
  margin-bottom: 6px;
  color: #a76c45;
  font-size: 11px;
}

.membership-mini-copy h3 {
  margin: 0;
  color: #1d2129;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.membership-mini-card > img {
  display: block;
  width: 270px;
  height: 216px;
  margin: 0 15px;
  border-radius: 6px;
  object-fit: cover;
}

.membership-mini-footer {
  display: flex;
  height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  color: #8d96a3;
  font-size: 12px;
}

.membership-mini-footer span:last-child {
  color: #c2c7cf;
  font-size: 20px;
}

.composer {
  height: 152px;
  min-height: 152px;
  padding-top: 8px;
  border-top: 1px solid #f1f2f4;
  background: #fff;
}

.composer-toolbar {
  display: flex;
  height: 28px;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  color: #4e5969;
  white-space: nowrap;
}

.composer-toolbar > button {
  min-width: 16px;
  padding: 0;
  font-size: 16px;
}

.composer-toolbar .tool-text {
  font-size: 12px;
}

.editor-wrap {
  position: relative;
  height: 92px;
  margin: 8px 24px 16px;
  padding: 12px 22px 6px;
  border: 1px solid #e1e4e9;
  border-radius: 22px;
}

.editor-wrap textarea {
  width: calc(100% - 90px);
  height: 50px;
  resize: none;
  border: 0;
  outline: none;
  color: #1d2129;
  background: transparent;
  font-size: 13px;
}

.editor-wrap textarea::placeholder {
  color: #c3c8cf;
}

.send-button {
  position: absolute;
  right: 11px;
  bottom: 10px;
  display: flex;
  width: 76px;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  color: #fff;
  background: #4e53e0;
  font-size: 13px;
}

.send-button:disabled {
  color: rgba(255, 255, 255, 0.9);
  background: #ccd5f6;
  cursor: default;
}

.sales-panel {
  min-width: 0;
  overflow: hidden;
  box-shadow: inset 1px 0 #eff0f2;
  background: #fff;
}

.demand-card {
  position: relative;
  height: 219px;
  padding: 0 16px;
  border-bottom: 1px solid #edf0f4;
}

.demand-card .sales-title-row {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  height: 26px;
}

.sales-title-row,
.trip-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sales-title-row > div,
.trip-title-row > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sales-title-row strong,
.trip-title-row strong {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.sales-title-row button {
  padding: 2px 4px;
  font-size: 12px;
}

.status-tag {
  display: inline-block;
  height: 18px;
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 10px;
}

.blue-tag {
  color: #fff;
  background: #5570ca;
}

.green-tag {
  color: #439b58;
  border: 1px solid #9bd59a;
  background: #f1fff3;
}

.switch-btn {
  color: #4e5969;
  font-size: 12px;
}

.order-no,
.trip-no {
  height: 25px;
  padding-top: 7px;
  color: #6b7480;
  font-size: 12px;
}

.demand-card .order-no {
  position: absolute;
  top: 44px;
  right: 16px;
  left: 16px;
  height: 20px;
  padding-top: 0;
  line-height: 20px;
}

.order-no button,
.trip-no button {
  color: #9aa3ae;
}

.demand-grid {
  position: absolute;
  top: 82px;
  right: 16px;
  left: 16px;
  display: grid;
  grid-template-columns: 92px 1fr;
  grid-auto-rows: 20px;
  margin-top: 0;
  font-size: 12px;
}

.demand-grid span {
  color: #6b7480;
}

.demand-grid b {
  font-weight: 400;
}

.demand-grid b button {
  color: #4e5969;
  font-size: 12px;
}

.demand-actions {
  position: absolute;
  top: 174px;
  left: 16px;
  display: flex;
  height: 28px;
  align-items: center;
  gap: 12px;
}

.demand-actions button {
  height: 28px;
  padding: 0 12px;
  border-radius: 4px;
  background: #f6f7f9;
  font-size: 12px;
}

.demand-actions button:first-child {
  color: #4e53e0;
  background: #eceeff;
}

.trip-card {
  height: calc(100% - 219px);
  overflow: hidden;
}

.trip-title-row {
  height: 44px;
  padding: 16px 16px 4px;
}

.trip-add {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #516ad8;
  font-size: 17px;
}

.trip-no {
  height: 32px;
  padding: 0 16px 12px;
  line-height: 20px;
}

.assistant-tabs {
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: space-around;
  padding: 11px 8px;
  background: #f7f9fc;
}

.assistant-tab {
  height: 32px;
  padding: 0 8px;
  border-radius: 5px;
  color: #4e5969;
  font-size: 12px;
  white-space: nowrap;
}

.assistant-tab.active {
  color: #4e53e0;
  background: #fff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(50, 59, 100, 0.08);
}

.trip-content {
  height: calc(100% - 130px);
  overflow: hidden auto;
  padding-top: 0;
  background: #f6f9fe;
}

.trip-tools {
  display: none;
  min-width: 520px;
  height: 28px;
  gap: 24px;
  padding: 0 16px;
  color: #4e5969;
  font-size: 12px;
  white-space: nowrap;
}

.service-heading {
  display: flex;
  height: 36px;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  font-size: 12px;
}

.service-heading button {
  color: #4e5969;
  font-size: 12px;
}

.order-cards {
  padding: 0 28px 16px;
}

.order-card {
  width: 402px;
  min-height: 219px;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid #e8ebef;
  border-radius: 12px;
  background: #fff;
}

.order-card-title {
  display: flex;
  height: 24px;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

.order-card-title strong {
  max-width: 165px;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-tag {
  display: inline-block;
  height: 16px;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 9px;
  line-height: 16px;
}

.tag-purple {
  color: #5364b9;
  background: #eef0ff;
}

.tag-cyan {
  color: #4ba89f;
  background: #eafaf7;
}

.tag-red {
  color: #d35f60;
  background: #fff0ef;
}

.tag-green {
  color: #48a17a;
  background: #eaf8f0;
}

.order-date {
  height: 24px;
  color: #8d96a3;
  font-size: 11px;
}

.order-info {
  display: grid;
  grid-template-columns: 68px 1fr;
  grid-auto-rows: 22px;
  color: #4e5969;
  font-size: 12px;
}

.order-info > span:nth-child(odd) {
  color: #8d96a3;
}

.order-info .link-value {
  width: fit-content;
  border-bottom: 1px dotted #9aa3ae;
}

.order-info .amount {
  color: #3153b9;
}

.order-user-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.membership-action {
  position: relative;
  height: 22px;
}

.order-info .membership-send-trigger {
  height: 22px;
  padding: 0;
  color: #4e59cf;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}

.membership-confirm-popover {
  position: absolute;
  z-index: 30;
  right: -12px;
  bottom: 30px;
  width: 278px;
  padding: 16px;
  border: 1px solid #e5e8ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 33, 41, 0.16);
}

.membership-confirm-popover[hidden] {
  display: none;
}

.membership-confirm-popover::after {
  position: absolute;
  right: 31px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border-right: 1px solid #e5e8ed;
  border-bottom: 1px solid #e5e8ed;
  background: #fff;
  content: "";
}

.membership-confirm-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1d2129;
  font-size: 14px;
}

.membership-confirm-title > span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #f0a63a;
  font-size: 12px;
  font-weight: 600;
}

.membership-confirm-popover p {
  margin: 10px 0 16px 26px;
  color: #6b7480;
  font-size: 12px;
  line-height: 18px;
}

.membership-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.membership-confirm-actions button {
  min-width: 56px;
  height: 28px;
  padding: 0 14px;
  border: 1px solid #e1e4e9;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
}

.membership-confirm-actions .membership-confirm-send {
  border-color: #4e59cf;
  color: #fff;
  background: #4e59cf;
}

.order-card-actions {
  display: flex;
  height: 34px;
  align-items: flex-end;
  gap: 12px;
}

.order-card-actions button {
  height: 28px;
  padding: 0 12px;
  border-radius: 4px;
  background: #f6f7f9;
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 50;
  top: 80px;
  left: 50%;
  padding: 9px 16px;
  transform: translate(-50%, -12px);
  border-radius: 6px;
  color: #4e5969;
  background: #fff;
  box-shadow: 0 4px 18px rgba(34, 44, 78, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

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

@media (max-width: 1320px) {
  .gmv-pill {
    width: 210px;
  }

  .topbar-right {
    gap: 6px;
  }

  .top-action {
    padding: 0 10px;
  }

  .workspace {
    grid-template-columns: 64px 320px minmax(360px, 1fr) 420px;
  }

  .conversation-tabs,
  .search-row {
    margin-right: 12px;
    margin-left: 12px;
  }

  .stage-filters {
    padding-right: 12px;
    padding-left: 12px;
  }
}
