/* Shared A workspace navigation; enabled only on redesigned pages. */
body.hb-shell-a-active { --hb-home-accent: var(--hb-primary); --hb-home-ink: #172846; --hb-home-muted: #8594ad; background: #f3f6fd; }
.hb-shell-a-active .main-layout { min-height: 100svh; font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; color: #172846; background: #f3f6fd; }
.hb-shell-a-active .main-layout .main-header {
  height: 76px; margin-left: 232px; width: calc(100% - 232px); padding: 0 28px;
  background: #fff; border-bottom: 1px solid #e6ebf5; box-shadow: none; overflow: visible;
}
.hb-shell-a-active .main-header > .ant-space { justify-content: flex-end; gap: 22px !important; }
.hb-shell-a-active .main-header > .ant-space > .ant-space-item:nth-child(2) { display: none; }
.hb-shell-a-active .main-header > .ant-space > .ant-space-item:first-child {
  position: fixed; top: 0; left: 0; display: flex; align-items: center; width: 232px; height: 76px; padding: 0 24px;
  background: #fff; border-right: 1px solid #e6ebf5;
}
.hb-shell-a-active .main-header > .ant-space > .ant-space-item:first-child > div { gap: 12px; }
.hb-shell-a-active .main-header > .ant-space > .ant-space-item:first-child img { height: 34px !important; margin: 0 !important; float: none !important; }
.hb-shell-a-active .main-header > .ant-space > .ant-space-item:first-child img[src*="default.haasiot.logo.png"] { display: none; }
.hb-shell-a-active .main-header > .ant-space > .ant-space-item:first-child > div > div { margin: 0 !important; font-size: 24px !important; font-weight: 650 !important; color: #172846; }
.hb-shell-a-brandmark { display: none; }
.hb-shell-a-active .hb-shell-a-brandmark { display: flex; align-items: center; flex: 0 0 auto; width: 34px; height: 34px; }
.hb-shell-a-active .main-header > .ant-space > .ant-space-item:first-child .hb-shell-a-brandmark img { width: 100%; height: 100% !important; object-fit: contain; }
.hb-shell-a-active .main-header .ant-avatar { width: 34px; height: 34px; line-height: 34px; background: #edf1ff; color: var(--hb-primary); }
.hb-shell-a-active .main-header > .ant-space > .ant-space-item:nth-child(4) .ant-space { width: auto; gap: 10px; color: #42516d; font-size: 13px; }
.hb-shell-a-active .main-header .anticon-question-circle { color: #8594ad; font-size: 18px; }
.hb-shell-a-active #hb-i18n-switch .hb-i18n-trigger { width: 34px; height: 34px; border-color: #e6ebf5; border-radius: 8px; color: #8594ad; box-shadow: none; }
.hb-shell-a-crumb { position: absolute; left: 30px; top: 0; display: flex; align-items: center; height: 76px; gap: 9px; color: #8594ad; font-size: 12px; pointer-events: none; }
.hb-shell-a-crumb span:last-child { color: #42516d; }
.hb-shell-a-active .main-body { display: block; margin: 0; background: #f3f6fd; }
.hb-shell-a-active .main-body .main-container { width: calc(100% - 232px); margin-left: 232px !important; min-width: 0; background: #f3f6fd; transition: none; }
.hb-shell-a-active .main-view { min-height: calc(100svh - 76px); height: auto; padding: 0; overflow: visible; }
.hb-shell-a-active .main-layout .main-sider { top: 76px; flex-basis: 232px !important; width: 232px !important; max-width: 232px !important; min-width: 232px !important; padding-bottom: 44px; border-right: 1px solid #e6ebf5; box-shadow: none; background: #fff; }
.hb-shell-a-active .main-sider .ant-layout-sider-children { height: 100%; }
.hb-shell-a-active .main-sider .ant-menu-root { padding: 0 0 16px; min-height: 0 !important; background: #fff; }
.hb-shell-a-active .main-sider .ant-menu-root::before { content: "WORKSPACE"; display: block; padding: 26px 24px 17px; color: #98a6bc; font: 500 10px/18px "Segoe UI", sans-serif; letter-spacing: 1.8px; }
.hb-shell-a-active .main-sider .ant-menu-item, .hb-shell-a-active .main-sider .ant-menu-submenu-title { height: 44px; line-height: 44px; margin: 4px 12px; width: calc(100% - 24px); padding-left: 18px !important; border-radius: 9px; color: #7d8ca4; font-size: 13px; }
.hb-shell-a-active .main-sider .ant-menu-item .anticon, .hb-shell-a-active .main-sider .ant-menu-submenu-title .anticon { font-size: 17px; }
.hb-shell-a-active .main-sider .ant-menu-submenu-arrow { color: #98a6bc; }
.hb-shell-a-active .main-sider .ant-menu-item-selected { background: var(--hb-primary) !important; color: #fff !important; }
.hb-shell-a-active .main-sider .ant-menu-item-selected::after { display: none; }
.hb-shell-a-active .main-sider .ant-menu-item:not(.ant-menu-item-selected):hover, .hb-shell-a-active .main-sider .ant-menu-submenu-title:hover { background: #f3f6fd; color: var(--hb-primary); }
.hb-shell-a-active .main-sider .ant-menu-sub { background: #f8faff !important; }
.hb-shell-a-active .main-sider .ant-menu-sub .ant-menu-item { padding-left: 42px !important; height: 39px; line-height: 39px; font-size: 12px; }
.hb-shell-a-active .main-sider .ant-layout-sider-trigger { width: 232px !important; height: 44px; line-height: 44px; color: #98a6bc; background: #fff; border-top: 1px solid #edf1f8; }
.hb-shell-a-active .main-layout .main-sider.ant-layout-sider-collapsed { flex-basis: 80px !important; width: 80px !important; max-width: 80px !important; min-width: 80px !important; }
.hb-shell-a-active .main-sider.ant-layout-sider-collapsed + .main-container { width: calc(100% - 80px); margin-left: 80px !important; }
.hb-shell-a-active .main-sider.ant-layout-sider-collapsed .ant-layout-sider-trigger { width: 80px !important; }
.hb-shell-a-active .main-sider.ant-layout-sider-collapsed .ant-menu-root::before { content: ""; padding: 14px 0 0; }
.hb-shell-a-active .main-sider.ant-layout-sider-collapsed .ant-menu-item, .hb-shell-a-active .main-sider.ant-layout-sider-collapsed .ant-menu-submenu-title { padding-inline: 18px !important; }
.hb-shell-a-active:has(.main-sider.ant-layout-sider-collapsed) .main-header { margin-left: 80px; width: calc(100% - 80px); }
.hb-shell-a-active:has(.main-sider.ant-layout-sider-collapsed) .main-header > .ant-space > .ant-space-item:first-child { width: 80px; padding: 0 23px; }
.hb-shell-a-active:has(.main-sider.ant-layout-sider-collapsed) .main-header > .ant-space > .ant-space-item:first-child > div > div { display: none; }
.hb-shell-a-menu-toggle, .hb-shell-a-backdrop { display: none; }
@media (max-width: 900px) {
  .hb-shell-a-active .main-layout .main-header, .hb-shell-a-active:has(.main-sider.ant-layout-sider-collapsed) .main-header { height: 68px; width: 100%; margin-left: 0; padding: 0 17px; }
  .hb-shell-a-active .main-header > .ant-space { gap: 14px !important; }
  .hb-shell-a-active .main-header > .ant-space > .ant-space-item:first-child, .hb-shell-a-active:has(.main-sider.ant-layout-sider-collapsed) .main-header > .ant-space > .ant-space-item:first-child { position: absolute; left: 52px; height: 68px; width: auto; padding: 0; border: 0; }
  .hb-shell-a-active .main-header > .ant-space > .ant-space-item:first-child > div > div, .hb-shell-a-active:has(.main-sider.ant-layout-sider-collapsed) .main-header > .ant-space > .ant-space-item:first-child > div > div { display: block; font-size: 20px !important; }
  .hb-shell-a-active .hb-shell-a-brandmark { width: 29px; height: 29px; }
  .hb-shell-a-crumb { display: none; }
  .hb-shell-a-active .main-body .main-container, .hb-shell-a-active .main-sider.ant-layout-sider-collapsed + .main-container { width: 100%; margin-left: 0 !important; }
  .hb-shell-a-active .main-view { min-height: calc(100svh - 68px); }
  .hb-shell-a-active .main-layout .main-sider { top: 68px; z-index: 1001; transform: translateX(-100%); visibility: hidden; pointer-events: none; }
  .hb-shell-a-active.hb-shell-a-menu-open .main-layout .main-sider { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .hb-shell-a-menu-toggle { position: absolute; left: 12px; top: 19px; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 4px; border: 0; border-radius: 6px; background: transparent; color: #637695; cursor: pointer; }
  .hb-shell-a-menu-toggle svg { width: 21px; height: 21px; }
  .hb-shell-a-menu-open .hb-shell-a-backdrop { position: fixed; inset: 68px 0 0; z-index: 1000; display: block; width: 100%; height: calc(100svh - 68px); border: 0; background: #17284645; cursor: pointer; }
}
@media (max-width: 760px) {
  .hb-shell-a-active .main-header > .ant-space > .ant-space-item:nth-child(3), .hb-shell-a-active .main-header > .ant-space > .ant-space-item:nth-child(4) .ant-space-item:last-child { display: none; }
}
.hb-shell-a-menu-toggle:focus-visible { outline: 3px solid var(--hb-primary-focus); outline-offset: 3px; }

/* Header tools and their menus share the same A workspace surface. */
.hb-shell-a-active .main-layout .main-header { padding-inline: 30px; }
.hb-shell-a-active .main-header > .ant-space { width: 100%; height: 100%; gap: 12px !important; }
.hb-shell-a-active .main-header .hb-shell-a-help-slot { display: flex; align-items: center; }
.hb-shell-a-active .main-header .anticon-question-circle {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 1px solid #e6ebf5; border-radius: 10px; background: #fff; color: #7485a0; font-size: 18px;
}
.hb-shell-a-active .hb-shell-a-crumb { max-width: calc(100% - 370px); gap: 12px; font-size: 13px; white-space: nowrap; }
.hb-shell-a-active .hb-shell-a-crumb::before {
  content: ""; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; background: #eff3ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%233d5bee' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center no-repeat;
}
.hb-shell-a-active .hb-shell-a-crumb > span:nth-child(2) {
  flex: 0 0 6px; width: 6px; height: 6px; overflow: hidden; font-size: 0; border-top: 1px solid #acb8cd; border-right: 1px solid #acb8cd; transform: rotate(45deg); margin-right: 2px;
}
.hb-shell-a-active .hb-shell-a-crumb > span:last-child { overflow: hidden; text-overflow: ellipsis; color: #263b5c; font-weight: 600; }
.hb-shell-a-active .main-header .hb-shell-a-account-slot {
  display: flex; align-items: center; padding-left: 16px; margin-left: 4px; border-left: 1px solid #e6ebf5;
}
.hb-shell-a-active .main-header .hb-shell-a-account-trigger {
  max-width: 220px; border: 1px solid #e9edf6; border-radius: 12px; background: #f8faff; color: #42516d; cursor: pointer;
}
.hb-shell-a-active .main-header .hb-shell-a-account-trigger > .ant-spin-container { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 5px 13px 5px 6px; }
.hb-shell-a-active .main-header .hb-shell-a-account-trigger .ant-space { width: auto; gap: 10px !important; font-size: 13px; line-height: 20px; }
.hb-shell-a-active .main-header .hb-shell-a-account-trigger .ant-space-item:last-child > div { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-shell-a-active .main-header .hb-shell-a-account-trigger .hb-shell-a-account-chevron {
  content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-right: 1.5px solid #8594ad; border-bottom: 1.5px solid #8594ad; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease;
}
.hb-shell-a-active .main-header .hb-shell-a-account-trigger:hover,
.hb-shell-a-active .main-header .hb-shell-a-account-trigger[aria-expanded="true"] { border-color: var(--hb-primary-focus); background: #eff3ff; color: var(--hb-primary); }
.hb-shell-a-active .main-header .hb-shell-a-account-trigger[aria-expanded="true"] .hb-shell-a-account-chevron { transform: translateY(2px) rotate(225deg); }
.hb-shell-a-active .main-header .ant-avatar { width: 32px; height: 32px; line-height: 32px; border: 2px solid #fff; box-shadow: 0 0 0 1px #e6ebf5; }
.hb-shell-a-active .main-header #hb-i18n-switch { margin: 0; }
.hb-shell-a-active .main-header #hb-i18n-switch .hb-i18n-trigger {
  width: 38px; height: 38px; border: 1px solid #e6ebf5; border-radius: 10px; background: #fff; color: #7485a0;
}
.hb-shell-a-active .main-header #hb-i18n-switch .hb-i18n-trigger:hover,
.hb-shell-a-active .main-header #hb-i18n-switch.hb-i18n-open .hb-i18n-trigger { border-color: var(--hb-primary-focus); background: #eff3ff; color: var(--hb-primary); }
.hb-shell-a-active .hb-i18n-switch.hb-i18n-header .hb-i18n-menu {
  top: calc(100% + 12px); width: 174px; padding: 6px; border: 1px solid #e6ebf5; border-radius: 12px; background: #fff; box-shadow: 0 12px 36px #1728461a, 0 3px 8px #17284606;
}
.hb-shell-a-active .hb-i18n-switch.hb-i18n-header .hb-i18n-menu::before {
  content: "选择语言"; display: block; padding: 7px 10px 10px; margin-bottom: 5px; border-bottom: 1px solid #edf1f8; color: #8594ad; font-size: 11px; letter-spacing: .4px;
}
html[lang="en"] .hb-shell-a-active .hb-i18n-switch.hb-i18n-header .hb-i18n-menu::before { content: "LANGUAGE"; }
.hb-shell-a-active .hb-i18n-switch.hb-i18n-header .hb-i18n-option {
  height: 38px; padding: 0 34px 0 12px; border-radius: 8px; color: #42516d; font-family: inherit; font-size: 13px;
}
.hb-shell-a-active .hb-i18n-switch.hb-i18n-header .hb-i18n-option:hover,
.hb-shell-a-active .hb-i18n-switch.hb-i18n-header .hb-i18n-option:focus-visible { background: #f3f6fd; color: var(--hb-primary); }
.hb-shell-a-active .hb-i18n-switch.hb-i18n-header .hb-i18n-option[aria-checked="true"] { background: #eff3ff; color: var(--hb-primary); font-weight: 600; }
.hb-shell-a-active .hb-i18n-switch.hb-i18n-header .hb-i18n-option[aria-checked="true"]::before { left: auto; right: 13px; top: 15px; }
.hb-shell-a-active .ant-dropdown:has([data-menu-id$="-logout"]) {
  left: auto !important; right: 30px !important; width: 218px; min-width: 218px !important; max-width: calc(100vw - 24px); padding: 6px; border: 1px solid #e6ebf5; border-radius: 14px; background: #fff; box-shadow: 0 12px 36px #1728461a, 0 3px 8px #17284606; font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}
.hb-shell-a-active .ant-dropdown:has([data-menu-id$="-logout"]) .ant-dropdown-arrow { display: none; }
.hb-shell-a-active .ant-dropdown:has([data-menu-id$="-logout"]) .ant-dropdown-menu { padding: 0; border: 0; border-radius: 9px; box-shadow: none; background: transparent; }
.hb-shell-a-account-caption { padding: 8px 10px 12px; margin-bottom: 5px; border-bottom: 1px solid #edf1f8; }
.hb-shell-a-account-caption > span { display: block; color: #8594ad; font-size: 11px; line-height: 18px; }
.hb-shell-a-account-caption > strong { display: block; max-width: 184px; overflow: hidden; text-overflow: ellipsis; color: #263b5c; font-size: 13px; line-height: 22px; font-weight: 600; white-space: nowrap; }
.hb-shell-a-active .ant-dropdown:has([data-menu-id$="-logout"]) .ant-dropdown-menu-item {
  position: relative; display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 11px; border-radius: 8px; color: #42516d; font-size: 13px;
}
.hb-shell-a-active .ant-dropdown:has([data-menu-id$="-logout"]) .ant-dropdown-menu-title-content > div::after { content: ""; position: absolute; inset: 0; }
.hb-shell-a-active .ant-dropdown:has([data-menu-id$="-logout"]) .ant-dropdown-menu-item::before {
  content: ""; flex: 0 0 17px; width: 17px; height: 17px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M5 21v-2a7 7 0 0 1 14 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hb-shell-a-active .ant-dropdown:has([data-menu-id$="-logout"]) .ant-dropdown-menu-item:hover,
.hb-shell-a-active .ant-dropdown:has([data-menu-id$="-logout"]) .ant-dropdown-menu-item:focus-visible,
.hb-shell-a-active .ant-dropdown:has([data-menu-id$="-logout"]) .ant-dropdown-menu-item-active { background: #eff3ff; color: var(--hb-primary); outline: none; }
.hb-shell-a-active .ant-dropdown:has([data-menu-id$="-logout"]) [data-menu-id$="-logout"] { color: #d15b65; }
.hb-shell-a-active .ant-dropdown:has([data-menu-id$="-logout"]) [data-menu-id$="-logout"]::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M14 8l4 4-4 4M8 12h13'/%3E%3C/svg%3E"); }
.hb-shell-a-active .ant-dropdown:has([data-menu-id$="-logout"]) [data-menu-id$="-logout"]:hover,
.hb-shell-a-active .ant-dropdown:has([data-menu-id$="-logout"]) [data-menu-id$="-logout"]:focus-visible,
.hb-shell-a-active .ant-dropdown:has([data-menu-id$="-logout"]) [data-menu-id$="-logout"].ant-dropdown-menu-item-active { background: #fff1f2; color: #c84453; }
.hb-shell-a-active .main-header .hb-shell-a-account-trigger:focus-visible,
.hb-shell-a-active .main-header #hb-i18n-switch .hb-i18n-trigger:focus-visible { outline: 3px solid var(--hb-primary-focus); outline-offset: 3px; }
html:has(body.hb-shell-a-active), body.hb-shell-a-active, .hb-shell-a-active .main-container { scrollbar-width: none; }
html:has(body.hb-shell-a-active)::-webkit-scrollbar, body.hb-shell-a-active::-webkit-scrollbar, .hb-shell-a-active .main-container::-webkit-scrollbar { display: none; }
@media (max-width: 1100px) and (min-width: 901px) {
  .hb-shell-a-active .hb-shell-a-crumb { max-width: calc(100% - 305px); }
  .hb-shell-a-active .hb-shell-a-crumb::before { display: none; }
  .hb-shell-a-active .main-header .hb-shell-a-account-trigger .ant-space-item:last-child > div { max-width: 90px; }
}
@media (max-width: 900px) {
  .hb-shell-a-active .main-layout .main-header { padding-inline: 16px; }
  .hb-shell-a-active .ant-dropdown:has([data-menu-id$="-logout"]) { right: 16px !important; }
  .hb-shell-a-active .main-header > .ant-space { gap: 9px !important; }
  .hb-shell-a-active .main-header .hb-shell-a-account-slot { padding-left: 10px; margin-left: 2px; }
  .hb-shell-a-active .main-header .hb-shell-a-account-trigger .ant-space-item:last-child { display: none; }
  .hb-shell-a-active .main-header .hb-shell-a-account-trigger > .ant-spin-container { min-height: 40px; gap: 10px; padding: 3px 10px 3px 4px; }
}
@media (max-width: 760px) {
  .hb-shell-a-active .main-header .hb-shell-a-help-slot { display: none; }
}
@media (max-width: 380px) {
  .hb-shell-a-active .main-layout .main-header { padding-inline: 12px; }
  .hb-shell-a-active .ant-dropdown:has([data-menu-id$="-logout"]) { right: 12px !important; }
  .hb-shell-a-active .main-header > .ant-space { gap: 7px !important; }
  .hb-shell-a-active .main-header .hb-shell-a-account-slot { padding-left: 8px; margin-left: 0; }
  .hb-shell-a-active .main-header .hb-shell-a-account-trigger > .ant-spin-container { gap: 0; padding: 3px; }
  .hb-shell-a-active .main-header .hb-shell-a-account-trigger .hb-shell-a-account-chevron { display: none; }
  .hb-shell-a-active .main-header > .ant-space > .ant-space-item:first-child > div { gap: 8px; }
  .hb-shell-a-active .main-header > .ant-space > .ant-space-item:first-child > div > div { font-size: 18px !important; }
}
@media (prefers-reduced-motion: reduce) { .hb-shell-a-active *, .hb-shell-a-active *::before, .hb-shell-a-active *::after { transition: none !important; scroll-behavior: auto !important; } }
