@font-face {
  font-family: "Douyin Meihao";
  src: url("../assets/fonts/DouyinMeihao-brand.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 1200px;
  height: 740px;
  margin: 0;
  overflow: hidden;
}

body {
  color: #23314a;
  background: #f8fafc;
  font-family: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  color: inherit;
  font: inherit;
}

button,
img {
  -webkit-user-drag: none;
}

.demo-app {
  display: flex;
  width: 1200px;
  height: 740px;
  background: #f6f8fc;
  flex-direction: column;
}

.demo-window-controls {
  display: flex;
  gap: 5px;
  margin-left: 20px;
}

.demo-window-controls i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border: 1px solid #e0e6ef;
  border-radius: 7px;
  color: #69788d;
  background: #fff;
  font-size: 11px;
  font-style: normal;
}

.demo-window-controls i:last-child {
  color: #d8505d;
}

.demo-statusbar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 30px;
  padding: 0 20px;
  border-top: 1px solid #e5eaf2;
  color: #8b98aa;
  background: #fbfcfe;
  font-size: 10px;
}

.demo-statusbar span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-statusbar span:first-child i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25bd8e;
}

.demo-statusbar b {
  margin-left: auto;
  color: #3d75c8;
  font-weight: 600;
}

/* Customer-service workbench */
.wb-topbar {
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid #e5eaf2;
  background: #fff;
}

.wb-brand,
.as-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 230px;
}

.wb-brand img,
.as-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: contain;
}

.wb-brand b,
.as-brand b {
  font-family: "Douyin Meihao", "PingFang SC", sans-serif;
  font-size: 19px;
  font-weight: 400;
}

.wb-brand span,
.as-brand span {
  padding-left: 10px;
  border-left: 1px solid #e2e7ef;
  color: #98a4b6;
  font-size: 10px;
}

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

.wb-add-store {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #2878ed;
  font-size: 12px;
}

.wb-add-store i {
  font-size: 17px;
  font-style: normal;
}

.wb-tool {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #69778d;
  font-size: 9px;
}

.wb-tool i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e2e7ef;
  border-radius: 8px;
  color: #557395;
  background: #fff;
  font-size: 9px;
  font-style: normal;
}

.wb-quota {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #3d5b80;
  font-size: 10px;
}

.wb-quota i {
  width: 16px;
  height: 16px;
  border: 3px solid #3b7ef2;
  border-right-color: #dde7f6;
  border-radius: 50%;
}

.wb-workspace {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 265px;
  min-height: 0;
  flex: 1;
}

.wb-store-pane {
  display: flex;
  min-height: 0;
  padding: 13px 10px 10px;
  border-right: 1px solid #e4e9f1;
  background: #f7f9fc;
  flex-direction: column;
}

.wb-store-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wb-store-tabs button {
  height: 42px;
  border: 0;
  border-radius: 8px;
  color: #78859a;
  background: transparent;
  font-size: 12px;
}

.wb-store-tabs button b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 17px;
  margin-left: 3px;
  border-radius: 9px;
  font-size: 8px;
}

.wb-store-tabs button.is-active {
  color: #2676e9;
  background: #fff;
  box-shadow: 0 7px 20px rgba(27, 64, 125, .08);
  font-weight: 700;
}

.wb-store-tabs button.is-active b {
  color: #fff;
  background: #2e7cf0;
}

.wb-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  margin: 12px 0 9px;
  border: 1px solid #e3e8f0;
  border-radius: 7px;
  color: #9ca8b9;
  background: #fff;
  font-size: 9px;
}

.wb-search span {
  font-size: 15px;
}

.wb-store-list {
  min-height: 0;
  overflow: hidden;
}

.wb-store {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 67px;
  padding: 10px 44px 10px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #26344b;
  background: transparent;
  text-align: left;
}

.wb-store.is-selected {
  border-color: #dce7f8;
  background: #fff;
  box-shadow: 0 7px 20px rgba(29, 68, 131, .08);
}

.wb-store.is-selected::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -10px;
  width: 3px;
  border-radius: 3px;
  content: "";
  background: #2e7df0;
}

.wb-store > img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

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

.wb-store-copy b {
  display: block;
  overflow: hidden;
  color: #3c4a61;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-store-copy small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #96a2b4;
  font-size: 8px;
}

.wb-store-copy small i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25c597;
}

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

.wb-unread {
  position: absolute;
  top: 14px;
  right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  color: #fff;
  background: #ef5360;
  font-size: 8px;
  font-style: normal;
}

.wb-ai {
  position: absolute;
  right: 15px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 14px;
  border-radius: 8px;
  color: #fff;
  background: #d8dee8;
  font-size: 7px;
  font-style: normal;
}

.wb-ai.is-on {
  background: #4386ee;
}

.wb-store-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 5px 8px 0;
  border-top: 1px solid #e8ecf2;
  color: #9aa6b8;
  font-size: 8px;
}

.wb-store-foot button {
  padding: 0;
  border: 0;
  color: #3d7cdf;
  background: transparent;
  font-size: 8px;
}

.wb-chat {
  display: flex;
  min-width: 0;
  padding: 0 18px;
  background: #fff;
  flex-direction: column;
}

.wb-chat-head {
  display: flex;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid #edf0f5;
}

.wb-current-store {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wb-current-store img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.wb-current-store b {
  display: block;
  font-size: 11px;
}

.wb-current-store small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: #98a3b4;
  font-size: 8px;
}

.wb-current-store small i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25c596;
}

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

.wb-chat-actions button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid #e2e7ef;
  border-radius: 6px;
  color: #66768d;
  background: #fff;
  font-size: 8px;
}

.wb-chat-actions button:nth-child(2) {
  color: #3278e4;
  border-color: #cdddf7;
  background: #f5f9ff;
}

.wb-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 65px;
  border-bottom: 1px solid #edf0f5;
}

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

.wb-metrics div:last-child {
  border-right: 0;
}

.wb-metrics span {
  color: #8b98aa;
  font-size: 8px;
}

.wb-metrics b {
  margin-top: 6px;
  color: #253650;
  font-size: 19px;
  letter-spacing: -.03em;
}

.wb-metrics b small {
  font-size: 10px;
}

.wb-chat-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 38px;
  border-bottom: 1px solid #edf0f5;
}

.wb-chat-tabs button {
  height: 38px;
  padding: 0;
  border: 0;
  color: #8b97a8;
  background: transparent;
  font-size: 9px;
}

.wb-chat-tabs button.is-active {
  border-bottom: 2px solid #2e7cf0;
  color: #2b6fd1;
  font-weight: 700;
}

.wb-chat-tabs span {
  margin-left: auto;
  color: #8592a4;
  font-size: 8px;
}

.wb-chat-tabs span b {
  color: #eb5964;
}

.wb-messages {
  display: flex;
  min-height: 0;
  padding: 16px 8px 10px;
  background: #fbfcfe;
  flex: 1;
  flex-direction: column;
}

.wb-time {
  margin-bottom: 11px;
  color: #abb4c2;
  font-size: 8px;
  text-align: center;
}

.wb-message {
  display: flex;
  gap: 8px;
  max-width: 82%;
}

.wb-message > div {
  padding: 10px 12px;
  border-radius: 4px 9px 9px 9px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(31, 54, 93, .05);
}

.wb-message p {
  margin: 0;
  color: #526077;
  font-size: 10px;
  line-height: 1.65;
}

.wb-message small {
  display: block;
  margin-top: 5px;
  color: #a0aabb;
  font-size: 7px;
}

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

.wb-message.wb-buyer > div {
  border-radius: 9px 4px 9px 9px;
  background: #e5f0ff;
}

.wb-message.wb-agent {
  margin-top: 12px;
}

.wb-message.wb-agent > div > span {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  color: #2c73df;
  font-size: 8px;
  font-weight: 700;
}

.wb-message.wb-agent > div > span::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 12px;
  border-radius: 3px;
  content: "AI";
  color: #fff;
  background: #337dec;
  font-size: 6px;
}

.wb-msg-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #e89978, #d8725e);
  font-size: 9px;
  flex: 0 0 auto;
}

.wb-msg-avatar.agent {
  background: #337dec;
}

.wb-ai-note {
  width: fit-content;
  padding: 6px 9px;
  margin: 12px 0 0 39px;
  border: 1px solid #dbe7f9;
  border-radius: 6px;
  color: #6e84a3;
  background: #f5f9ff;
  font-size: 8px;
}

.wb-ai-note i {
  margin-right: 4px;
  color: #317af0;
  font-style: normal;
}

.wb-product-message {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 70%;
  padding: 9px;
  margin: 10px 0 0 39px;
  border: 1px solid #e2e8f1;
  border-radius: 8px;
  background: #fff;
}

.wb-product-image,
.wb-recommend-image {
  position: relative;
  width: 43px;
  height: 43px;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(145deg, #d6cbd9, #f4eff2);
  flex: 0 0 auto;
}

.wb-product-image::after,
.wb-recommend-image::after {
  position: absolute;
  top: 8px;
  left: 12px;
  width: 19px;
  height: 27px;
  border-radius: 9px 9px 4px 4px;
  content: "";
  background: linear-gradient(100deg, #9d899e, #e3dae0);
}

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

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

.wb-product-message small {
  display: block;
  margin-top: 4px;
  color: #98a3b4;
  font-size: 7px;
}

.wb-product-message em {
  display: block;
  margin-top: 4px;
  color: #e56e59;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.wb-product-message button,
.wb-ai-suggestion button {
  padding: 6px 8px;
  margin-left: auto;
  border: 1px solid #cfe0f9;
  border-radius: 5px;
  color: #2e77e5;
  background: #f4f8ff;
  font-size: 7px;
}

.wb-ai-suggestion {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  margin: 10px 0 0 39px;
  border: 1px solid #dbe7f8;
  border-radius: 8px;
  background: #f5f9ff;
}

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

.wb-ai-suggestion > div > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #fff;
  background: #347ef0;
  font-size: 9px;
  font-style: normal;
}

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

.wb-ai-suggestion b {
  display: block;
  color: #496484;
  font-size: 8px;
}

.wb-ai-suggestion small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #8e9cad;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-composer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 12px;
  margin: 0 8px 12px;
  border: 1px solid #e1e7f0;
  border-radius: 9px;
  color: #a0aaba;
  background: #fff;
  font-size: 8px;
}

.wb-composer-tools {
  display: flex;
  gap: 9px;
  color: #7f8da0;
}

.wb-composer-tools i {
  font-size: 12px;
  font-style: normal;
}

.wb-composer > span {
  flex: 1;
}

.wb-composer > button {
  height: 30px;
  padding: 0 15px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #2f7dec;
  font-size: 9px;
}

.wb-context {
  padding: 0 16px 16px;
  border-left: 1px solid #e4e9f1;
  background: #fafbfd;
}

.wb-context-tabs {
  display: flex;
  gap: 20px;
  height: 53px;
  border-bottom: 1px solid #e8ecf2;
}

.wb-context-tabs button {
  height: 53px;
  padding: 0;
  border: 0;
  color: #8e9aab;
  background: transparent;
  font-size: 10px;
}

.wb-context-tabs button.is-active {
  border-bottom: 2px solid #2f79e9;
  color: #2f73d9;
  font-weight: 700;
}

.wb-recommend-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  margin-top: 14px;
  border: 1px solid #e3e8f0;
  border-radius: 9px;
  background: #fff;
}

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

.wb-recommend-image::after {
  top: 10px;
  left: 16px;
  width: 22px;
  height: 32px;
}

.wb-recommend-card b {
  display: block;
  color: #445469;
  font-size: 10px;
}

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

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

.wb-context-block {
  padding: 13px;
  margin-top: 12px;
  border: 1px solid #e5eaf1;
  border-radius: 9px;
  background: #fff;
}

.wb-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f5;
}

.wb-block-title b {
  color: #4c5b71;
  font-size: 9px;
}

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

.wb-order-row,
.wb-knowledge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  color: #8d99aa;
  font-size: 8px;
}

.wb-order-row b,
.wb-knowledge b {
  color: #5b6c82;
  font-size: 8px;
  font-weight: 500;
}

.wb-order-row b.green {
  color: #1da87d;
}

.wb-quick-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.wb-quick-actions button {
  flex: 1;
  height: 31px;
  border: 1px solid #e0e6ef;
  border-radius: 6px;
  color: #61728a;
  background: #fff;
  font-size: 8px;
}

/* After-sales console */
.as-topbar {
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid #e5eaf2;
  background: #fff;
}

.as-system-state {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #718198;
  font-size: 9px;
}

.as-system-state > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27bd8f;
}

.as-system-state span {
  color: #dce2ea;
}

.as-workspace {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 0;
  flex: 1;
}

.as-sidebar {
  display: flex;
  padding: 16px 12px 13px;
  border-right: 1px solid #e4e9f1;
  background: #f7f9fc;
  flex-direction: column;
}

.as-nav-group {
  display: flex;
  margin-bottom: 17px;
  flex-direction: column;
}

.as-nav-group > span {
  padding: 0 9px 7px;
  color: #9ba7b8;
  font-size: 8px;
}

.as-nav-group button {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  color: #69788f;
  background: transparent;
  font-size: 10px;
  text-align: left;
}

.as-nav-group button i {
  width: 15px;
  color: #8294ab;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.as-nav-group button.is-active {
  color: #276fd9;
  background: #e8f1ff;
  font-weight: 700;
}

.as-nav-group button.is-active i {
  color: #2e77e4;
}

.as-nav-group button b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 17px;
  margin-left: auto;
  border-radius: 9px;
  color: #fff;
  background: #357eea;
  font-size: 7px;
}

.as-store-summary {
  padding: 12px 10px;
  margin-top: auto;
  border: 1px solid #e3e9f1;
  border-radius: 9px;
  background: #fff;
}

.as-store-summary > span {
  display: block;
  margin-bottom: 8px;
  color: #98a4b5;
  font-size: 8px;
}

.as-store-summary > div {
  display: grid;
  grid-template-columns: 24px 1fr 6px;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
}

.as-store-summary img {
  width: 23px;
  height: 23px;
  border-radius: 6px;
}

.as-store-summary b {
  overflow: hidden;
  color: #617087;
  font-size: 8px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-store-summary i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27be91;
}

.as-main {
  min-width: 0;
  padding: 20px 22px 17px;
  background:
    linear-gradient(rgba(91, 122, 164, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 122, 164, .035) 1px, transparent 1px),
    #fbfcfe;
  background-size: 45px 45px;
}

/* Compact canvas for the embedded after-sales preview. */
.as-page,
.as-page .as-app {
  height: 660px;
}

.as-page .as-main {
  padding: 14px 18px 11px;
}

.as-page .as-head h1 {
  margin: 5px 0 2px;
  font-size: 20px;
}

.as-page .as-store-tabs {
  margin-top: 10px;
}

.as-page .as-store-tabs button {
  height: 32px;
}

.as-page .as-kpis {
  margin-top: 9px;
}

.as-page .as-kpis > div {
  padding: 10px 12px;
}

.as-page .as-kpis b {
  margin-top: 4px;
  font-size: 20px;
}

.as-page .as-content {
  margin-top: 8px;
}

.as-page .as-panel-head {
  min-height: 39px;
}

.as-page .as-table-head {
  padding: 8px 14px;
}

.as-page .as-action-row {
  min-height: 54px;
  padding: 6px 14px;
}

.as-page .as-score {
  padding: 14px 16px;
}

.as-page .as-score > b {
  margin: 4px 0;
  font-size: 30px;
}

.as-page .as-progress {
  margin-top: 9px;
}

.as-page .as-flow {
  padding: 6px 15px;
}

.as-page .as-flow > span {
  padding: 6px 0;
}

.as-page .as-rule-panel > button {
  height: 29px;
  margin-bottom: 10px;
}

.as-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.as-head > div > span {
  color: #7e91a9;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
}

.as-head h1 {
  margin: 6px 0 3px;
  color: #23334d;
  font-size: 22px;
  letter-spacing: -.04em;
}

.as-head p {
  margin: 0;
  color: #8e9bad;
  font-size: 9px;
}

.as-head > button {
  height: 31px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #347aea;
  font-size: 9px;
}

.as-store-tabs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.as-store-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 35px;
  padding: 0 10px;
  border: 1px solid #e4e9f1;
  border-radius: 7px;
  color: #5f6f86;
  background: #fff;
  font-size: 8px;
}

.as-store-tabs button.is-active {
  border-color: #c6d9f5;
  background: #f4f8ff;
}

.as-store-tabs img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.as-store-tabs i {
  padding: 3px 5px;
  border-radius: 4px;
  color: #1da87e;
  background: #e8faf3;
  font-size: 6px;
  font-style: normal;
}

.as-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 12px;
}

.as-kpis > div {
  padding: 12px 13px;
  border: 1px solid #e3e9f1;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
}

.as-kpis span {
  display: block;
  color: #8d9aac;
  font-size: 8px;
}

.as-kpis b {
  display: inline-block;
  margin-top: 6px;
  color: #243650;
  font-size: 22px;
}

.as-kpis small {
  margin-left: 6px;
  color: #9aa6b7;
  font-size: 7px;
}

.as-kpis em {
  color: #1ba77d;
  font-style: normal;
}

.as-content {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr);
  gap: 10px;
  margin-top: 11px;
}

.as-panel {
  overflow: hidden;
  border: 1px solid #e3e9f1;
  border-radius: 9px;
  background: rgba(255, 255, 255, .96);
}

.as-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid #edf0f5;
}

.as-panel-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.as-panel-head b {
  color: #44546b;
  font-size: 9px;
}

.as-panel-head span {
  color: #93a0b2;
  font-size: 7px;
}

.as-panel-head > button {
  padding: 0;
  border: 0;
  color: #3779da;
  background: transparent;
  font-size: 7px;
}

.as-panel-head > i {
  color: #9ca8b8;
  font-size: 12px;
  font-style: normal;
}

.as-table-head {
  display: grid;
  grid-template-columns: 1fr 1fr .7fr .52fr;
  gap: 8px;
  padding: 10px 14px;
  color: #9aa6b7;
  background: #f8fafd;
  font-size: 7px;
}

.as-action-row {
  display: grid;
  grid-template-columns: 31px minmax(0, 1.45fr) 1fr .6fr;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  padding: 8px 14px;
  border-top: 1px solid #eff2f6;
}

.as-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: #fff;
  font-size: 7px;
}

.as-icon.refund { background: #f18b66; }
.as-icon.return { background: #6ca3ed; }
.as-icon.parcel { background: #5fb8b1; }
.as-icon.compensate { background: #a88bdc; }
.as-icon.order { background: #e6a14e; }

.as-action-row > div {
  min-width: 0;
}

.as-action-row b {
  display: block;
  color: #4a5a71;
  font-size: 8px;
}

.as-action-row small,
.as-action-row > span:nth-child(3) {
  color: #96a2b4;
  font-size: 7px;
  line-height: 1.5;
}

.as-action-row > span:nth-child(3) {
  white-space: nowrap;
}

.as-tag {
  width: fit-content;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 6px;
  white-space: nowrap;
}

.as-tag.blue { color: #2d75de; background: #eaf2ff; }
.as-tag.green { color: #1ba47a; background: #e8faf3; }
.as-tag.orange { color: #d88738; background: #fff3e7; }

.as-score {
  padding: 18px 16px;
  border-bottom: 1px solid #edf0f5;
  background: linear-gradient(140deg, #f1f7ff, #fbfdff);
}

.as-score > span {
  display: block;
  color: #8091a8;
  font-size: 8px;
}

.as-score > b {
  display: block;
  margin: 6px 0;
  color: #245ea9;
  font-size: 34px;
  letter-spacing: -.05em;
}

.as-score > b small {
  font-size: 13px;
}

.as-score > em {
  color: #1da67c;
  font-size: 7px;
  font-style: normal;
}

.as-progress {
  height: 6px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 4px;
  background: #dce7f6;
}

.as-progress i {
  display: block;
  width: 92.4%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #307eec, #36b7e8);
}

.as-flow {
  display: flex;
  padding: 10px 15px;
  flex-direction: column;
}

.as-flow > span {
  display: grid;
  grid-template-columns: 21px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eff2f6;
}

.as-flow > span:last-child {
  border-bottom: 0;
}

.as-flow i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #2e75dc;
  background: #edf4ff;
  font-size: 7px;
  font-style: normal;
}

.as-flow b {
  color: #55677f;
  font-size: 8px;
}

.as-flow em {
  color: #9ca7b6;
  font-size: 6px;
  font-style: normal;
}

.as-rule-panel > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 30px);
  height: 33px;
  padding: 0 10px;
  margin: 2px 15px 14px;
  border: 1px solid #dce5f1;
  border-radius: 6px;
  color: #3d78d2;
  background: #fff;
  font-size: 7px;
}

.as-page button {
  cursor: pointer;
}

.as-page button:focus-visible,
.as-action-row:focus-visible {
  outline: 2px solid #2d74e7;
  outline-offset: 2px;
}

.as-action-row {
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}

.as-action-row:hover,
.as-action-row.is-selected {
  background: #f5f9ff;
  box-shadow: inset 3px 0 #4c88eb;
}

.as-toast {
  position: fixed;
  z-index: 20;
  bottom: 42px;
  left: 50%;
  padding: 9px 16px;
  border-radius: 7px;
  color: #fff;
  background: rgba(10, 30, 58, .94);
  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;
}

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