/* [project]/src/components/layout/ThemeToggle.module.css [app-client] (css) */
.ThemeToggle-module__gv9_OW__toggle {
  border-radius: var(--radius-md);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  cursor: pointer;
  width: 40px;
  height: 40px;
  transition: all var(--duration-fast);
  justify-content: center;
  align-items: center;
  display: flex;
  overflow: hidden;
}

.ThemeToggle-module__gv9_OW__toggle:hover {
  background: var(--color-bg-elevated);
  border-color: var(--color-amber);
}

.ThemeToggle-module__gv9_OW__iconWrapper {
  width: 18px;
  height: 18px;
  transition: transform .5s var(--ease-out);
  position: relative;
}

.ThemeToggle-module__gv9_OW__sun, .ThemeToggle-module__gv9_OW__moon {
  transition: all .5s var(--ease-out);
  position: absolute;
  top: 0;
  left: 0;
}

.ThemeToggle-module__gv9_OW__light .ThemeToggle-module__gv9_OW__sun {
  opacity: 1;
  color: var(--color-amber);
  transform: translateY(0);
}

.ThemeToggle-module__gv9_OW__light .ThemeToggle-module__gv9_OW__moon {
  opacity: 0;
  transform: translateY(24px);
}

.ThemeToggle-module__gv9_OW__dark .ThemeToggle-module__gv9_OW__sun {
  opacity: 0;
  transform: translateY(-24px);
}

.ThemeToggle-module__gv9_OW__dark .ThemeToggle-module__gv9_OW__moon {
  opacity: 1;
  color: var(--color-indigo-light);
  transform: translateY(0);
}

.ThemeToggle-module__gv9_OW__placeholder {
  width: 40px;
  height: 40px;
}

/* [project]/src/components/layout/Navbar.module.css [app-client] (css) */
.Navbar-module__cRh5nW__navbar {
  width: 100%;
  height: var(--navbar-height);
  z-index: var(--z-sticky);
  transition: all var(--duration-normal) var(--ease-out);
  background: none;
  position: sticky;
  top: 0;
}

.Navbar-module__cRh5nW__scrolled {
  background: var(--color-bg-card);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-sm);
}

.Navbar-module__cRh5nW__navContent {
  justify-content: space-between;
  align-items: center;
  height: 100%;
  display: flex;
}

.Navbar-module__cRh5nW__fullWidthContainer {
  width: 100%;
  padding: 0 var(--space-6);
}

.Navbar-module__cRh5nW__logo {
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  transition: opacity var(--duration-fast);
  letter-spacing: -.02em;
  flex-shrink: 0;
  font-weight: 800;
  display: flex;
}

.Navbar-module__cRh5nW__logo:hover {
  opacity: .8;
}

.Navbar-module__cRh5nW__logoIcon {
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  border-radius: var(--radius-md);
  width: 36px;
  height: 36px;
  font-size: var(--text-base);
  color: var(--color-text-on-amber);
  box-shadow: 0 0 12px var(--color-amber-glow);
  justify-content: center;
  align-items: center;
  display: flex;
}

.Navbar-module__cRh5nW__logoImage {
  -o-object-fit: contain;
  object-fit: contain;
  width: auto;
  height: 30px;
}

.Navbar-module__cRh5nW__logoText {
  letter-spacing: -.01em;
}

.Navbar-module__cRh5nW__logoDot {
  color: var(--color-amber);
}

.Navbar-module__cRh5nW__navLinks {
  align-items: center;
  gap: var(--space-1);
  display: flex;
}

.Navbar-module__cRh5nW__navLink {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  font-weight: 500;
  position: relative;
}

.Navbar-module__cRh5nW__navLink:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
}

.Navbar-module__cRh5nW__navLinkActive {
  font-weight: 600;
  color: var(--color-amber) !important;
}

.Navbar-module__cRh5nW__activeIndicator {
  background: var(--color-amber);
  border-radius: var(--radius-full);
  width: 16px;
  height: 2px;
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
}

.Navbar-module__cRh5nW__navActions {
  align-items: center;
  gap: var(--space-3);
  display: flex;
}

.Navbar-module__cRh5nW__guestBadge {
  height: 28px;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-tertiary);
  background: var(--color-bg-secondary);
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
}

.Navbar-module__cRh5nW__menuToggle {
  flex-direction: column;
  gap: 5px;
  width: 22px;
  padding: 3px 0;
  display: none;
}

.Navbar-module__cRh5nW__menuToggle span {
  background: var(--color-text-primary);
  border-radius: var(--radius-full);
  width: 100%;
  height: 2px;
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
  display: block;
}

.Navbar-module__cRh5nW__menuOpen span:first-child {
  transform: rotate(45deg)translateY(5px);
}

.Navbar-module__cRh5nW__menuOpen span:nth-child(2) {
  opacity: 0;
}

.Navbar-module__cRh5nW__menuOpen span:nth-child(3) {
  transform: rotate(-45deg)translateY(-5px);
}

.Navbar-module__cRh5nW__mobileMenu {
  padding: var(--space-4) var(--space-6) var(--space-6);
  background: var(--color-bg-card);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-subtle);
  animation: Navbar-module__cRh5nW__g-fade-in-up .25s var(--ease-out);
  flex-direction: column;
  display: none;
}

.Navbar-module__cRh5nW__mobileLink {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  font-weight: 500;
  display: block;
}

.Navbar-module__cRh5nW__mobileLink:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.Navbar-module__cRh5nW__mobileLinkActive {
  color: var(--color-amber);
  background: var(--color-amber-glow);
}

.Navbar-module__cRh5nW__mobileDivider {
  background: var(--color-border-subtle);
  height: 1px;
  margin: var(--space-3) 0;
}

.Navbar-module__cRh5nW__mobileGuest {
  margin: 0 var(--space-4) var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  color: var(--color-text-tertiary);
  background: var(--color-bg-tertiary);
  font-size: var(--text-sm);
  font-weight: 600;
}

.Navbar-module__cRh5nW__mobileRegister {
  margin-top: var(--space-3);
  text-align: center;
}

.Navbar-module__cRh5nW__userProfileWrap {
  position: relative;
}

.Navbar-module__cRh5nW__userProfile {
  align-items: center;
  gap: var(--space-3);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast);
  padding: 3px 4px 3px 12px;
  display: flex;
}

.Navbar-module__cRh5nW__userProfile:hover {
  border-color: var(--color-border);
  background: var(--color-bg-tertiary);
}

.Navbar-module__cRh5nW__menuChevron {
  color: var(--color-text-tertiary);
  transition: transform var(--duration-fast);
}

.Navbar-module__cRh5nW__menuChevronOpen {
  transform: rotate(180deg);
}

.Navbar-module__cRh5nW__userDropdown {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  width: 260px;
  box-shadow: var(--shadow-lg);
  animation: Navbar-module__cRh5nW__g-fade-in-up .2s var(--ease-out);
  z-index: 100;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
}

.Navbar-module__cRh5nW__userDropdownHeader {
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  display: flex;
}

.Navbar-module__cRh5nW__userDropdownAvatar {
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  width: 36px;
  height: 36px;
  color: var(--color-text-on-amber);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: flex;
}

.Navbar-module__cRh5nW__userDropdownName {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  font-weight: 600;
}

.Navbar-module__cRh5nW__userDropdownDivider {
  background: var(--color-border-subtle);
  height: 1px;
  margin: 0;
}

.Navbar-module__cRh5nW__userDropdownItem {
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast);
  background: none;
  border: none;
  text-decoration: none;
  display: flex;
}

.Navbar-module__cRh5nW__userDropdownItem:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.Navbar-module__cRh5nW__userDropdownItem svg {
  opacity: .7;
  flex-shrink: 0;
}

.Navbar-module__cRh5nW__avatar {
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  width: 28px;
  height: 28px;
  color: var(--color-text-on-amber);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-xs);
  justify-content: center;
  align-items: center;
  display: flex;
}

.Navbar-module__cRh5nW__userInfo {
  flex-direction: column;
  line-height: 1.2;
  display: flex;
}

.Navbar-module__cRh5nW__userName {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  font-weight: 600;
}

.Navbar-module__cRh5nW__userRole {
  color: var(--color-text-tertiary);
  letter-spacing: .05em;
  font-size: 10px;
}

@media (max-width: 768px) {
  .Navbar-module__cRh5nW__navLinks, .Navbar-module__cRh5nW__navActions {
    display: none;
  }

  .Navbar-module__cRh5nW__menuToggle, .Navbar-module__cRh5nW__mobileMenu {
    display: flex;
  }
}

/* [project]/src/app/paipan/qimen/QimenClient.module.css [app-client] (css) */
.QimenClient-module__8Z65vG__wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
}

.QimenClient-module__8Z65vG__leftPanelToggle {
  z-index: 10;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-subtle);
  cursor: pointer;
  border-radius: 0 6px 6px 0;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 56px;
  transition: left .3s, background .15s;
  display: flex;
  position: absolute;
  top: 50%;
  left: 380px;
  transform: translateY(-50%);
}

.QimenClient-module__8Z65vG__leftPanelToggle:hover {
  background: var(--color-bg-tertiary);
}

.QimenClient-module__8Z65vG__leftCollapsed .QimenClient-module__8Z65vG__leftPanelToggle {
  border-left: none;
  border-radius: 6px 0 0 6px;
  left: 0;
}

.QimenClient-module__8Z65vG__toggleIcon {
  color: var(--color-text-secondary);
  font-size: 10px;
  line-height: 1;
}

.QimenClient-module__8Z65vG__leftPanel {
  background: var(--color-bg-secondary);
  border-right: 1px solid var(--color-border-subtle);
  width: 380px;
  min-width: 380px;
  padding: var(--space-6);
  gap: var(--space-6);
  flex-direction: column;
  flex-shrink: 0;
  transition: width .3s, min-width .3s, padding .3s;
  display: flex;
  overflow-y: auto;
}

.QimenClient-module__8Z65vG__leftPanelClosed {
  border-right: none;
  width: 0;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.QimenClient-module__8Z65vG__leftHeader {
  margin-bottom: var(--space-2);
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.QimenClient-module__8Z65vG__leftTitle {
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin: 0;
  font-weight: 700;
}

.QimenClient-module__8Z65vG__leftActions {
  gap: var(--space-2);
  display: flex;
}

.QimenClient-module__8Z65vG__historyBtn {
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: all var(--duration-fast);
  padding: 4px 12px;
  font-weight: 600;
}

.QimenClient-module__8Z65vG__historyBtn:hover {
  color: var(--color-amber);
  border-color: var(--color-amber);
}

.QimenClient-module__8Z65vG__optionsPanel {
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-subtle);
  flex-direction: column;
  display: flex;
}

.QimenClient-module__8Z65vG__optionRow {
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  display: flex;
}

.QimenClient-module__8Z65vG__optionLabel {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  min-width: 48px;
  font-weight: 600;
}

.QimenClient-module__8Z65vG__segmentGroup {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-tertiary);
  gap: 2px;
  padding: 3px;
  display: inline-flex;
}

.QimenClient-module__8Z65vG__segmentBtn {
  color: var(--color-text-tertiary);
  transition: all var(--duration-fast);
  white-space: nowrap;
  background: none;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
}

.QimenClient-module__8Z65vG__segmentBtn:hover {
  color: var(--color-text-primary);
}

.QimenClient-module__8Z65vG__segmentBtnActive {
  background: var(--color-bg-card);
  color: var(--color-amber);
  box-shadow: 0 1px 2px #00000026;
}

.QimenClient-module__8Z65vG__rightPanel {
  background: var(--color-bg-primary);
  flex-direction: column;
  flex: 1;
  display: flex;
  overflow: visible;
}

.QimenClient-module__8Z65vG__chartArea {
  padding: var(--space-4) var(--space-6);
  align-items: flex-start;
  gap: var(--space-4);
  flex-direction: column;
  flex: 1;
  width: 100%;
  display: flex;
  overflow: auto;
}

.QimenClient-module__8Z65vG__chartSummary {
  align-items: flex-start;
  gap: var(--space-8);
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: var(--chart-content-max-width, 960px);
  flex-wrap: wrap;
  display: flex;
}

.QimenClient-module__8Z65vG__summaryBlock {
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
  display: flex;
}

.QimenClient-module__8Z65vG__summaryLabel {
  color: var(--color-text-tertiary);
  font-size: 11px;
  font-weight: 600;
}

.QimenClient-module__8Z65vG__summaryBigValue {
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  font-weight: 800;
  line-height: 1.3;
}

.QimenClient-module__8Z65vG__summaryDesc {
  color: var(--color-text-tertiary);
  font-size: 11px;
}

.QimenClient-module__8Z65vG__pillarsInline {
  gap: var(--space-2);
  margin-left: auto;
  display: flex;
}

.QimenClient-module__8Z65vG__pillarSmall {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-width: 44px;
  transition: all var(--duration-fast);
  flex-direction: column;
  align-items: center;
  padding: 4px 10px;
  display: flex;
}

.QimenClient-module__8Z65vG__pillarSmall:hover {
  border-color: var(--color-amber);
}

.QimenClient-module__8Z65vG__pillarSmallActive {
  border-color: var(--color-amber);
  background: var(--color-amber-glow);
}

.QimenClient-module__8Z65vG__pillarSmallLabel {
  color: var(--color-text-tertiary);
  font-size: 10px;
  font-weight: 600;
}

.QimenClient-module__8Z65vG__pillarSmallGZ {
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1.3;
}

.QimenClient-module__8Z65vG__palaceGrid {
  width: 100%;
  max-width: var(--chart-content-max-width, 960px);
  --qm-hero: clamp(1.15rem, 1.6vw, 1.5rem);
  --qm-primary: clamp(.95rem, 1.15vw, 1.15rem);
  --qm-secondary: clamp(.82rem, .98vw, .98rem);
  --qm-tertiary: clamp(.7rem, .82vw, .82rem);
  --qm-quaternary: clamp(.62rem, .72vw, .72rem);
  --qm-hidden: clamp(.75rem, .88vw, .88rem);
  flex: 1;
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 0;
  padding: 4rem 5rem;
  display: grid;
}

.QimenClient-module__8Z65vG__palaceCard {
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  flex-direction: column;
  gap: 3px;
  min-height: 155px;
  padding: 8px;
  display: flex;
  position: relative;
  overflow: visible;
}

.QimenClient-module__8Z65vG__palaceCard:hover {
  border-color: var(--color-amber);
  box-shadow: var(--shadow-sm);
}

.QimenClient-module__8Z65vG__palaceZhiFu {
  border-color: var(--color-crimson);
  border-width: 2px;
}

.QimenClient-module__8Z65vG__palaceZhiShi {
  border-color: var(--color-amber);
}

.QimenClient-module__8Z65vG__palaceCenter {
  background: var(--color-bg-subtle);
  border-style: dashed;
  justify-content: center;
  align-items: center;
}

.QimenClient-module__8Z65vG__palaceHeader {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2px;
  display: flex;
}

.QimenClient-module__8Z65vG__palaceLocation {
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
  display: flex;
}

.QimenClient-module__8Z65vG__palaceDirection {
  font-size: var(--qm-quaternary);
  color: var(--color-text-tertiary);
}

.QimenClient-module__8Z65vG__palaceNameText {
  font-size: var(--qm-tertiary);
  color: var(--color-text-primary);
  font-weight: 700;
}

.QimenClient-module__8Z65vG__palaceBadges {
  flex-shrink: 0;
  gap: 3px;
  display: flex;
}

.QimenClient-module__8Z65vG__badge {
  font-size: var(--qm-tertiary);
  border-radius: 3px;
  justify-content: center;
  align-items: center;
  padding: 1px 6px;
  font-weight: 700;
  line-height: 1.5;
  display: inline-flex;
}

.QimenClient-module__8Z65vG__badgeHorse {
  background: var(--color-crimson-glow);
  color: var(--color-crimson);
}

.QimenClient-module__8Z65vG__badgeKong {
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
}

.QimenClient-module__8Z65vG__palaceGod {
  font-size: var(--qm-secondary);
  color: var(--color-text-primary);
  text-align: center;
  font-weight: 700;
}

.QimenClient-module__8Z65vG__starDoorRow {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.QimenClient-module__8Z65vG__starBlock {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  display: flex;
}

.QimenClient-module__8Z65vG__starName {
  font-size: var(--qm-secondary);
  color: var(--color-sky);
  font-weight: 700;
}

.QimenClient-module__8Z65vG__hostedStarTag {
  font-size: var(--qm-tertiary);
  background: var(--color-emerald-glow);
  color: var(--color-emerald);
  border-radius: 2px;
  padding: 0 4px;
  font-weight: 600;
}

.QimenClient-module__8Z65vG__doorBlock {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  display: flex;
}

.QimenClient-module__8Z65vG__doorName {
  font-size: var(--qm-secondary);
  color: var(--color-emerald);
  font-weight: 700;
}

.QimenClient-module__8Z65vG__stateTag {
  font-size: var(--qm-tertiary);
  border-radius: 3px;
  align-items: center;
  padding: 0 5px;
  font-weight: 600;
  line-height: 1.5;
  display: inline-flex;
}

.QimenClient-module__8Z65vG__stateStar {
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
}

.QimenClient-module__8Z65vG__stateDoorForce {
  background: var(--color-crimson-glow);
  color: var(--color-crimson);
}

.QimenClient-module__8Z65vG__stateDoor {
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
}

.QimenClient-module__8Z65vG__stateHarmony {
  background: var(--color-emerald-glow);
  color: var(--color-emerald);
}

.QimenClient-module__8Z65vG__statePhase {
  background: var(--color-amber-glow);
  color: var(--color-amber);
}

.QimenClient-module__8Z65vG__stateGen {
  background: var(--color-indigo-glow);
  color: var(--color-indigo-light);
}

.QimenClient-module__8Z65vG__stemSection {
  border-top: 1px solid var(--color-border-subtle);
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  padding-top: 3px;
  display: flex;
}

.QimenClient-module__8Z65vG__stemLine {
  align-items: center;
  gap: 6px;
  display: flex;
}

.QimenClient-module__8Z65vG__stem {
  font-size: var(--qm-primary);
  align-items: baseline;
  gap: 3px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
}

.QimenClient-module__8Z65vG__stemHeaven {
  color: var(--color-crimson);
}

.QimenClient-module__8Z65vG__stemEarth {
  color: var(--color-text-primary);
}

.QimenClient-module__8Z65vG__stemHidden {
  font-size: var(--qm-hidden);
  color: var(--color-text-secondary);
}

.QimenClient-module__8Z65vG__stemHosted {
  color: var(--color-crimson) !important;
}

.QimenClient-module__8Z65vG__stemGrowth {
  font-size: var(--qm-tertiary);
  color: var(--color-text-tertiary);
  font-weight: 500;
  line-height: 1;
}

.QimenClient-module__8Z65vG__hiddenStemRow {
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 2px;
  display: flex;
}

.QimenClient-module__8Z65vG__hiddenLabel {
  font-size: var(--qm-quaternary);
  color: var(--color-text-tertiary);
  min-width: 14px;
  font-weight: 600;
}

.QimenClient-module__8Z65vG__centerContent {
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 6px;
  display: flex;
}

.QimenClient-module__8Z65vG__centerStem {
  font-size: var(--qm-hero);
  color: var(--color-text-primary);
  font-weight: 700;
}

.QimenClient-module__8Z65vG__centerArrow {
  font-size: var(--qm-tertiary);
  color: var(--color-text-tertiary);
}

.QimenClient-module__8Z65vG__centerHost {
  font-size: var(--qm-secondary);
  color: var(--color-text-secondary);
  font-weight: 600;
}

.QimenClient-module__8Z65vG__emptyState {
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-12);
  flex-direction: column;
  flex: 1;
  display: flex;
}

.QimenClient-module__8Z65vG__emptyIcon {
  color: var(--color-emerald);
  opacity: .5;
  font-size: 4rem;
  font-weight: 800;
  font-family: var(--font-serif);
}

.QimenClient-module__8Z65vG__emptyTitle {
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin: 0;
  font-weight: 700;
}

.QimenClient-module__8Z65vG__emptyDesc {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  max-width: 320px;
  margin: 0;
  line-height: 1.6;
}

.QimenClient-module__8Z65vG__errorMsg {
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-crimson-glow);
  color: var(--color-crimson-light);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
}

@media (max-width: 768px) {
  .QimenClient-module__8Z65vG__wrapper {
    flex-direction: column;
  }

  .QimenClient-module__8Z65vG__leftPanelToggle {
    display: none;
  }

  .QimenClient-module__8Z65vG__leftPanel {
    border-right: none;
    border-bottom: 1px solid var(--color-border-subtle);
    width: 100%;
    min-width: 100%;
    max-height: none;
    padding: var(--space-4);
  }

  .QimenClient-module__8Z65vG__leftPanelClosed {
    width: 0;
    min-width: 0;
  }

  .QimenClient-module__8Z65vG__rightPanel {
    min-height: 0;
  }

  .QimenClient-module__8Z65vG__chartArea {
    padding: var(--space-3) var(--space-2);
    overflow-x: auto;
  }

  .QimenClient-module__8Z65vG__palaceGrid {
    gap: 6px;
    min-width: max(100%, 46rem);
    padding: 3rem 4rem;
  }

  .QimenClient-module__8Z65vG__palaceCard {
    min-height: 11.5rem;
  }

  .QimenClient-module__8Z65vG__chartSummary {
    gap: var(--space-3);
    flex-direction: column;
  }

  .QimenClient-module__8Z65vG__pillarsInline {
    margin-left: 0;
    margin-top: var(--space-2);
  }
}

.QimenClient-module__8Z65vG__datePickerRow {
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-3);
  display: flex;
}

.QimenClient-module__8Z65vG__dateInput, .QimenClient-module__8Z65vG__timeInput {
  font-size: var(--text-xs);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  transition: border-color var(--duration-fast);
  padding: 6px 10px;
  font-weight: 600;
}

.QimenClient-module__8Z65vG__dateInput:focus, .QimenClient-module__8Z65vG__timeInput:focus {
  border-color: var(--color-amber);
  outline: none;
}

.QimenClient-module__8Z65vG__palaceGridWrapper {
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-height: 0;
  display: flex;
}

.QimenClient-module__8Z65vG__outerZhi {
  z-index: 3;
  font-size: var(--qm-secondary);
  color: var(--color-base-content, var(--color-text-primary));
  white-space: nowrap;
  pointer-events: none;
  font-weight: 800;
  line-height: 1;
  position: absolute;
}

.QimenClient-module__8Z65vG__outerZhiTop {
  top: -6px;
  left: 50%;
  transform: translate(-50%, -100%);
}

.QimenClient-module__8Z65vG__outerZhiRight {
  top: 50%;
  right: -6px;
  transform: translate(100%, -50%);
}

.QimenClient-module__8Z65vG__outerZhiBottom {
  bottom: -6px;
  left: 50%;
  transform: translate(-50%, 100%);
}

.QimenClient-module__8Z65vG__outerZhiLeft {
  top: 50%;
  left: -6px;
  transform: translate(-100%, -50%);
}

.QimenClient-module__8Z65vG__outerLayerGrid {
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  align-items: center;
  gap: .16rem .18rem;
  display: grid;
}

.QimenClient-module__8Z65vG__outerZhiTop .QimenClient-module__8Z65vG__outerLayerGrid, .QimenClient-module__8Z65vG__outerZhiBottom .QimenClient-module__8Z65vG__outerLayerGrid {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.QimenClient-module__8Z65vG__outerZhiTop .QimenClient-module__8Z65vG__outerLayerGrid {
  bottom: calc(100% + 4px);
}

.QimenClient-module__8Z65vG__outerZhiBottom .QimenClient-module__8Z65vG__outerLayerGrid {
  top: calc(100% + 4px);
}

.QimenClient-module__8Z65vG__outerZhiRight .QimenClient-module__8Z65vG__outerLayerGrid, .QimenClient-module__8Z65vG__outerZhiLeft .QimenClient-module__8Z65vG__outerLayerGrid {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.QimenClient-module__8Z65vG__outerZhiRight .QimenClient-module__8Z65vG__outerLayerGrid {
  left: calc(100% + 4px);
}

.QimenClient-module__8Z65vG__outerZhiLeft .QimenClient-module__8Z65vG__outerLayerGrid {
  right: calc(100% + 4px);
}

.QimenClient-module__8Z65vG__outerZhiLeft .QimenClient-module__8Z65vG__outerLayerSource, .QimenClient-module__8Z65vG__outerZhiLeft .QimenClient-module__8Z65vG__outerTag, .QimenClient-module__8Z65vG__outerZhiRight .QimenClient-module__8Z65vG__outerLayerSource, .QimenClient-module__8Z65vG__outerZhiRight .QimenClient-module__8Z65vG__outerTag {
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.QimenClient-module__8Z65vG__outerZhiLeft .QimenClient-module__8Z65vG__outerLayerChip {
  grid-template-columns: auto;
  grid-template-areas: "source"
                       "jianchu"
                       "value-god";
}

.QimenClient-module__8Z65vG__outerZhiRight .QimenClient-module__8Z65vG__outerLayerChip {
  grid-template-columns: auto;
  grid-template-areas: "source"
                       "value-god"
                       "jianchu";
}

.QimenClient-module__8Z65vG__outerLayerChip {
  background: var(--color-bg-card);
  box-shadow: inset 0 0 0 1px var(--color-border-subtle);
  opacity: .9;
  border-radius: 4px;
  grid-template-columns: auto auto auto;
  grid-template-areas: "source jianchu value-god";
  place-items: center;
  gap: .16rem;
  padding: .08rem .18rem;
  display: grid;
}

.QimenClient-module__8Z65vG__outerZhiTop .QimenClient-module__8Z65vG__outerLayerChip {
  grid-template-areas: "source value-god jianchu";
}

.QimenClient-module__8Z65vG__outerLayerSource {
  background: var(--color-indigo-glow);
  width: 1rem;
  height: 1rem;
  color: var(--color-indigo-light);
  font-size: var(--qm-quaternary);
  border-radius: 999px;
  grid-area: source;
  justify-content: center;
  align-items: center;
  font-weight: 900;
  display: inline-flex;
}

.QimenClient-module__8Z65vG__outerZhiMain {
  min-width: 1.42rem;
  min-height: 1.42rem;
  color: var(--color-text-primary);
  text-shadow: 0 1px 0 var(--color-bg-primary);
  justify-content: center;
  align-items: center;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  display: inline-flex;
}

.QimenClient-module__8Z65vG__outerTag {
  font-size: var(--qm-tertiary);
  letter-spacing: 0;
  border-radius: 3px;
  padding: 0 5px;
  font-weight: 600;
  line-height: 1.6;
}

.QimenClient-module__8Z65vG__outerItemQualityGreen {
  background: var(--color-emerald-glow);
  color: var(--color-emerald);
}

.QimenClient-module__8Z65vG__outerItemQualityGreenLight {
  background: var(--color-indigo-glow);
  color: var(--color-indigo-light);
}

.QimenClient-module__8Z65vG__outerItemQualityRed {
  background: var(--color-crimson-glow);
  color: var(--color-crimson);
}

.QimenClient-module__8Z65vG__outerTop, .QimenClient-module__8Z65vG__outerBottom {
  justify-content: center;
  gap: 8px;
  width: 100%;
  display: flex;
}

.QimenClient-module__8Z65vG__palaceGridMiddle {
  flex: 1;
  gap: 4px;
  min-height: 0;
  display: flex;
}

.QimenClient-module__8Z65vG__outerLeft, .QimenClient-module__8Z65vG__outerRight {
  gap: var(--space-6);
  flex-direction: column;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: flex;
}

.QimenClient-module__8Z65vG__outerSlot {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  display: flex;
}

.QimenClient-module__8Z65vG__outerSlotLeft {
  align-items: flex-end;
}

.QimenClient-module__8Z65vG__outerSlotRight {
  align-items: flex-start;
}

.QimenClient-module__8Z65vG__outerSlotTop, .QimenClient-module__8Z65vG__outerSlotBottom {
  justify-content: center;
}

.QimenClient-module__8Z65vG__outerItem {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  white-space: nowrap;
  border-radius: 4px;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.4;
  display: flex;
}

.QimenClient-module__8Z65vG__outerItemSource {
  background: var(--color-indigo-glow);
  min-width: 16px;
  height: 16px;
  color: var(--color-indigo-light);
  border-radius: 3px;
  justify-content: center;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
}

.QimenClient-module__8Z65vG__outerItemZhi {
  color: var(--color-text-primary);
  font-weight: 700;
  font-family: var(--font-serif);
  margin: 0 1px;
  font-size: 13px;
}

.QimenClient-module__8Z65vG__outerItemTag {
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  border-radius: 3px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
}

.QimenClient-module__8Z65vG__wrapper.QimenClient-module__8Z65vG__drawerOpen .QimenClient-module__8Z65vG__rightPanel {
  margin-right: calc(var(--chat-drawer-width, 480px) + var(--left-panel-saved, 0px));
  transition: margin-right .4s;
}

.QimenClient-module__8Z65vG__wrapper.QimenClient-module__8Z65vG__drawerOpen .QimenClient-module__8Z65vG__chartArea {
  overflow-x: auto;
}

/* [project]/src/components/AIChatRoom/AIChatDrawer.module.css [app-client] (css) */
.AIChatDrawer-module__ABCN4W__professionalToolbar {
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border-subtle);
  z-index: 20;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  display: flex;
  position: relative;
}

.AIChatDrawer-module__ABCN4W__toolbarLeft {
  flex: 1;
  min-width: 0;
}

.AIChatDrawer-module__ABCN4W__personaSelector {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  max-width: fit-content;
  padding: 4px 10px;
  transition: all .2s;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__personaSelector:hover {
  border-color: var(--color-amber);
  background: var(--color-bg-tertiary);
}

.AIChatDrawer-module__ABCN4W__avatarWrapper {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.AIChatDrawer-module__ABCN4W__avatarImg {
  -o-object-fit: cover;
  object-fit: cover;
  border: 1.5px solid var(--color-amber-glow);
  border-radius: 50%;
  width: 100%;
  height: 100%;
}

.AIChatDrawer-module__ABCN4W__avatarPlaceholder {
  background: var(--color-bg-tertiary);
  width: 100%;
  height: 100%;
  color: var(--color-amber);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__emojiAvatar {
  background: color-mix(in srgb, var(--color-amber) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-amber) 25%, transparent);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: 16px;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__selectGroup {
  align-items: center;
  gap: 4px;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__personaSelect {
  appearance: none;
  color: var(--color-text-primary);
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
}

.AIChatDrawer-module__ABCN4W__chevron {
  color: var(--color-text-tertiary);
  opacity: .6;
}

.AIChatDrawer-module__ABCN4W__toolbarRight {
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__modelSelectBox {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-subtle);
  height: 28px;
  color: var(--color-text-tertiary);
  border-radius: 6px;
  align-items: center;
  gap: 5px;
  max-width: 170px;
  padding: 0 8px;
  transition: all .2s;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__modelSelectBox:hover {
  border-color: var(--color-amber);
  background: color-mix(in srgb, var(--color-amber) 10%, var(--color-bg-tertiary));
}

.AIChatDrawer-module__ABCN4W__modelSelectLabel {
  letter-spacing: .06em;
  color: var(--color-amber);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.AIChatDrawer-module__ABCN4W__compactSelect {
  appearance: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  text-overflow: ellipsis;
  background: none;
  border: none;
  outline: none;
  min-width: 0;
  max-width: 108px;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
}

.AIChatDrawer-module__ABCN4W__compactSelect:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.AIChatDrawer-module__ABCN4W__aiAssistantWrap {
  flex-shrink: 0;
  position: relative;
}

.AIChatDrawer-module__ABCN4W__aiAssistantBtn {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-subtle);
  height: 28px;
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  border-radius: 6px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  transition: all .2s;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__aiAssistantBtn:hover {
  border-color: var(--color-amber);
  background: color-mix(in srgb, var(--color-amber) 10%, var(--color-bg-tertiary));
  color: var(--color-amber);
}

.AIChatDrawer-module__ABCN4W__aiAssistantBtn:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.AIChatDrawer-module__ABCN4W__aiAssistantBtn svg:first-child {
  color: var(--color-amber);
}

.AIChatDrawer-module__ABCN4W__aiMenuChevron {
  color: var(--color-text-tertiary);
  opacity: .5;
  flex-shrink: 0;
  transition: transform .2s;
}

.AIChatDrawer-module__ABCN4W__aiMenuChevronOpen {
  transform: rotate(180deg);
}

.AIChatDrawer-module__ABCN4W__aiMenuDropdown {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  z-index: 2147483647;
  border-radius: 8px;
  flex-direction: column;
  gap: 2px;
  min-width: 200px;
  max-width: 280px;
  padding: 4px;
  display: flex;
  position: fixed;
  box-shadow: 0 8px 24px #00000040;
}

.AIChatDrawer-module__ABCN4W__aiMenuItem {
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  transition: background .15s;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__aiMenuItem:hover {
  background: var(--color-bg-tertiary);
}

.AIChatDrawer-module__ABCN4W__aiMenuItemActive {
  background: color-mix(in srgb, var(--color-amber) 8%, var(--color-bg-card));
}

.AIChatDrawer-module__ABCN4W__aiMenuItemIcon {
  background: var(--color-bg-secondary);
  border-radius: 6px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  display: flex;
  overflow: hidden;
}

.AIChatDrawer-module__ABCN4W__aiMenuItemIcon img {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.AIChatDrawer-module__ABCN4W__aiMenuEmoji {
  font-size: 16px;
  line-height: 1;
}

.AIChatDrawer-module__ABCN4W__aiMenuItemName {
  color: var(--color-text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
}

.AIChatDrawer-module__ABCN4W__aiMenuItemActive .AIChatDrawer-module__ABCN4W__aiMenuItemName {
  color: var(--color-amber);
}

.AIChatDrawer-module__ABCN4W__aiMenuItemLabel {
  color: var(--color-text-tertiary);
  opacity: .5;
  background: var(--color-bg-secondary);
  border-radius: 3px;
  flex-shrink: 0;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 600;
}

.AIChatDrawer-module__ABCN4W__aiMenuItemDisabled {
  opacity: .6;
  cursor: default;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__actionGroup {
  align-items: center;
  gap: 2px;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__iconBtn {
  width: 28px;
  height: 28px;
  color: var(--color-text-tertiary);
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  transition: all .2s;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__iconBtn:hover:not(:disabled) {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.AIChatDrawer-module__ABCN4W__toast {
  z-index: 2000;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #0000000d;
  border-radius: 20px;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  animation: .3s ease-out AIChatDrawer-module__ABCN4W__slideInDown;
  display: flex;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 15px #00000026;
}

@keyframes AIChatDrawer-module__ABCN4W__slideInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%);
  }
}

.AIChatDrawer-module__ABCN4W__toast.AIChatDrawer-module__ABCN4W__info {
  color: var(--color-primary);
  border-left: 3px solid var(--color-primary);
}

.AIChatDrawer-module__ABCN4W__toast.AIChatDrawer-module__ABCN4W__success {
  color: #27ae60;
  border-left: 3px solid #27ae60;
}

.AIChatDrawer-module__ABCN4W__toast.AIChatDrawer-module__ABCN4W__error {
  color: #e74c3c;
  border-left: 3px solid #e74c3c;
}

.AIChatDrawer-module__ABCN4W__messageList {
  background: var(--color-bg-primary);
  flex-direction: column;
  flex: 1;
  gap: 16px;
  min-height: 0;
  padding: 12px 10px;
  display: flex;
  overflow-y: auto;
}

.AIChatDrawer-module__ABCN4W__messageItem {
  gap: 8px;
  width: 100%;
  min-width: 0;
  animation: .3s ease-out AIChatDrawer-module__ABCN4W__slideInLeft;
  display: flex;
}

@keyframes AIChatDrawer-module__ABCN4W__slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.AIChatDrawer-module__ABCN4W__aiMessage {
  align-self: flex-start;
}

.AIChatDrawer-module__ABCN4W__userMessage {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.AIChatDrawer-module__ABCN4W__assistantAvatar {
  background: var(--color-bg-tertiary);
  width: 28px;
  height: 28px;
  color: var(--color-amber);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__assistantAvatar img {
  -o-object-fit: cover;
  object-fit: cover;
  border: 1.5px solid var(--color-amber-glow);
  border-radius: 50%;
  width: 100%;
  height: 100%;
}

.AIChatDrawer-module__ABCN4W__messageBubble {
  overflow-wrap: break-word;
  word-break: break-word;
  background-color: #f8f4ff;
  border: 1px solid #8e44ad26;
  border-radius: 12px;
  width: fit-content;
  min-width: 120px;
  max-width: calc(100% - 44px);
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.7;
  position: relative;
  box-shadow: 0 2px 12px #0000000a;
  color: #2c3e50 !important;
}

.AIChatDrawer-module__ABCN4W__userMessage .AIChatDrawer-module__ABCN4W__messageBubble {
  background-color: #fff9e6;
  border: 1px solid #d4af3733;
  border-radius: 12px 12px 4px;
  color: #5d4037 !important;
}

.AIChatDrawer-module__ABCN4W__userMessage .AIChatDrawer-module__ABCN4W__messageBubble p {
  margin-bottom: 0;
}

.AIChatDrawer-module__ABCN4W__aiMessage .AIChatDrawer-module__ABCN4W__messageBubble {
  border-radius: 12px 12px 12px 4px;
}

.AIChatDrawer-module__ABCN4W__bubbleBranding {
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #8e44ad4d;
  margin-bottom: 15px;
  padding-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  display: none;
  color: #8e44ad !important;
}

.AIChatDrawer-module__ABCN4W__isCapturing .AIChatDrawer-module__ABCN4W__bubbleBranding {
  display: block;
}

.AIChatDrawer-module__ABCN4W__bubbleActions {
  z-index: 10;
  border-top: 1px dashed #0000001a;
  gap: 12px;
  margin-top: 15px;
  padding-top: 10px;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__iconActionBtn {
  background: var(--color-primary);
  cursor: pointer;
  border: none;
  border-radius: 6px;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  transition: all .2s;
  display: flex;
  box-shadow: 0 2px 6px #8e44ad4d;
  color: #fff !important;
}

.AIChatDrawer-module__ABCN4W__iconActionBtn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #8e44ad66;
}

.AIChatDrawer-module__ABCN4W__isSpeaking {
  animation: 1.5s infinite AIChatDrawer-module__ABCN4W__voicePulse;
  background: #c1121f !important;
  box-shadow: 0 4px 15px #c1121f66 !important;
}

@keyframes AIChatDrawer-module__ABCN4W__voicePulse {
  0% {
    opacity: 1;
    transform: scale(1)translateY(-2px);
  }

  50% {
    opacity: .7;
    transform: scale(.95)translateY(-2px);
  }

  100% {
    opacity: 1;
    transform: scale(1)translateY(-2px);
  }
}

.AIChatDrawer-module__ABCN4W__isCapturing {
  color: #000 !important;
  box-shadow: none !important;
  background: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 40px !important;
}

.AIChatDrawer-module__ABCN4W__isCapturing * {
  color: #000 !important;
}

.AIChatDrawer-module__ABCN4W__isCapturing .AIChatDrawer-module__ABCN4W__tagAuspicious, .AIChatDrawer-module__ABCN4W__isCapturing .AIChatDrawer-module__ABCN4W__tagInauspicious, .AIChatDrawer-module__ABCN4W__isCapturing .AIChatDrawer-module__ABCN4W__tagShishen, .AIChatDrawer-module__ABCN4W__isCapturing .AIChatDrawer-module__ABCN4W__metaphysicalTag {
  background: none !important;
  border: 1px solid #ccc !important;
  padding: 2px 6px !important;
}

.AIChatDrawer-module__ABCN4W__isCapturing .AIChatDrawer-module__ABCN4W__bubbleActions {
  display: none !important;
}

.AIChatDrawer-module__ABCN4W__messageBubble h1, .AIChatDrawer-module__ABCN4W__messageBubble h2, .AIChatDrawer-module__ABCN4W__messageBubble h3 {
  color: #1a1a1a;
  margin: 1.2em 0 .6em;
  font-weight: 600;
}

.AIChatDrawer-module__ABCN4W__messageBubble h2 {
  border-bottom: 2px solid #8e44ad1a;
  padding-bottom: 2px;
  font-size: 1.15rem;
  display: inline-block;
}

.AIChatDrawer-module__ABCN4W__messageBubble p {
  margin-bottom: .8em;
}

.AIChatDrawer-module__ABCN4W__messageBubble table {
  border-collapse: collapse;
  table-layout: auto;
  border: 1px solid #00000014;
  width: 100%;
  margin: 1em 0;
  font-size: 13px;
}

.AIChatDrawer-module__ABCN4W__messageBubble th, .AIChatDrawer-module__ABCN4W__messageBubble td {
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  padding: 6px 8px;
}

.AIChatDrawer-module__ABCN4W__messageBubble th {
  text-align: left;
  background: #8e44ad0d;
  padding: 8px;
}

.AIChatDrawer-module__ABCN4W__messageBubble td {
  border-top: 1px solid #0000000d;
  padding: 8px;
}

.AIChatDrawer-module__ABCN4W__messageBubble .AIChatDrawer-module__ABCN4W__katex-display {
  margin: .6em 0;
  padding: 8px 4px;
  overflow: auto hidden;
}

.AIChatDrawer-module__ABCN4W__messageBubble .AIChatDrawer-module__ABCN4W__katex-display > .AIChatDrawer-module__ABCN4W__katex {
  padding: 0;
}

.AIChatDrawer-module__ABCN4W__messageBubble .AIChatDrawer-module__ABCN4W__katex {
  font-size: .95em;
}

.AIChatDrawer-module__ABCN4W__messageBubble strong {
  color: #1a1a1a;
  font-weight: 700;
}

.AIChatDrawer-module__ABCN4W__tagAuspicious {
  color: #fff;
  text-shadow: 0 1px 2px #0003;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  border-radius: 4px;
  margin: 0 2px;
  padding: 2px 8px;
  font-weight: 800;
  animation: 2s ease-in-out infinite AIChatDrawer-module__ABCN4W__pulseGold;
  display: inline-block;
  box-shadow: 0 2px 4px #e74c3c33;
}

.AIChatDrawer-module__ABCN4W__tagInauspicious {
  color: #ecf0f1;
  background: #34495e;
  border-radius: 4px;
  margin: 0 2px;
  padding: 2px 8px;
  font-weight: 800;
  display: inline-block;
  box-shadow: 0 2px 4px #0000001a;
}

@keyframes AIChatDrawer-module__ABCN4W__pulseGold {
  0% {
    box-shadow: 0 0 #e74c3c66;
  }

  70% {
    box-shadow: 0 0 0 6px #e74c3c00;
  }

  100% {
    box-shadow: 0 0 #e74c3c00;
  }
}

.AIChatDrawer-module__ABCN4W__metaphysicalTag {
  border: 1px solid #0000000d;
  border-radius: 4px;
  margin: 0 2px;
  padding: 1px 6px;
  font-size: .95em;
  font-weight: 700;
  display: inline-block;
}

.AIChatDrawer-module__ABCN4W__tagShishen {
  color: #fff;
  background: linear-gradient(135deg, #6c5ce7 0%, #5f50a8 100%);
  border-radius: 4px;
  margin: 0 2px;
  padding: 2px 8px;
  font-weight: 800;
  display: inline-block;
  box-shadow: 0 2px 4px #6c5ce740;
}

.AIChatDrawer-module__ABCN4W__professionalQuote {
  background: rgba(var(--color-primary-rgb), .03);
  border-radius: 0 12px 12px 0;
  gap: 15px;
  margin: 1.5em 0;
  padding: 12px 20px;
  display: flex;
  position: relative;
}

.AIChatDrawer-module__ABCN4W__quoteBar {
  background: var(--color-primary);
  border-radius: 2px;
  flex-shrink: 0;
  width: 4px;
}

.AIChatDrawer-module__ABCN4W__tableWrapper {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin: 1.5em 0;
  overflow-x: auto;
}

.AIChatDrawer-module__ABCN4W__proTable {
  border-collapse: collapse;
  background: #fff;
  width: 100%;
}

.AIChatDrawer-module__ABCN4W__proTable th {
  text-align: left;
  color: #444;
  border-bottom: 2px solid var(--color-border);
  background: #f8f9fa;
  padding: 12px;
  font-weight: 600;
}

.AIChatDrawer-module__ABCN4W__proTable td {
  color: #333;
  border-bottom: 1px solid #f1f1f1;
  padding: 12px;
}

.AIChatDrawer-module__ABCN4W__inputArea {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border-subtle);
  flex-shrink: 0;
  padding: 12px 16px;
}

.AIChatDrawer-module__ABCN4W__suggestions {
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 2px;
  display: flex;
  overflow-x: auto;
}

.AIChatDrawer-module__ABCN4W__suggestions::-webkit-scrollbar {
  display: none;
}

.AIChatDrawer-module__ABCN4W__suggestionChip {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  white-space: nowrap;
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  transition: all .2s;
}

.AIChatDrawer-module__ABCN4W__suggestionChip:hover:not(:disabled) {
  border-color: var(--color-amber);
  color: var(--color-amber);
  background: var(--color-amber-glow);
}

.AIChatDrawer-module__ABCN4W__inputWrapper {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 10px 14px;
  transition: border-color .2s, box-shadow .2s;
  display: flex;
  position: relative;
  box-shadow: inset 0 1px 2px #0000000d;
}

.AIChatDrawer-module__ABCN4W__inputMain {
  align-items: flex-end;
  gap: 10px;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__inputWrapper:focus-within {
  border-color: var(--color-amber);
  box-shadow: 0 0 0 2px var(--color-amber-glow);
}

.AIChatDrawer-module__ABCN4W__input {
  color: var(--color-text-primary);
  resize: none;
  background: none;
  border: none;
  outline: none;
  flex: 1;
  min-height: 20px;
  max-height: 150px;
  padding: 2px 0;
  font-size: 14px;
  line-height: 1.5;
}

.AIChatDrawer-module__ABCN4W__sendBtn {
  background: var(--color-amber);
  color: #000;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 1px;
  transition: all .2s;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__sendBtn:hover:not(:disabled) {
  opacity: .9;
  transform: scale(1.05);
}

.AIChatDrawer-module__ABCN4W__attachmentGallery {
  scrollbar-width: none;
  gap: 10px;
  padding: 4px 0 12px;
  display: flex;
  overflow-x: auto;
}

.AIChatDrawer-module__ABCN4W__attachmentGallery::-webkit-scrollbar {
  display: none;
}

.AIChatDrawer-module__ABCN4W__attachmentItem {
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-tertiary);
  width: 60px;
  height: 60px;
  animation: AIChatDrawer-module__ABCN4W__slideUp .3s var(--ease-out);
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.AIChatDrawer-module__ABCN4W__attachmentPreview {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.AIChatDrawer-module__ABCN4W__fileIcon {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 4px;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__fileExt {
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
}

.AIChatDrawer-module__ABCN4W__attachmentRemove {
  color: #fff;
  cursor: pointer;
  z-index: 2;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #0009;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  transition: all .2s;
  display: flex;
  position: absolute;
  top: 2px;
  right: 2px;
}

.AIChatDrawer-module__ABCN4W__attachmentRemove:hover {
  background: var(--color-red);
}

.AIChatDrawer-module__ABCN4W__inputActions {
  align-items: center;
  gap: 4px;
  margin-right: 4px;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__attachBtn {
  width: 30px;
  height: 30px;
  color: var(--color-text-tertiary);
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  transition: all .2s;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__attachBtn:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-amber);
}

@keyframes AIChatDrawer-module__ABCN4W__slideUp {
  from {
    opacity: 0;
    transform: translateY(10px)scale(.9);
  }

  to {
    opacity: 1;
    transform: translateY(0)scale(1);
  }
}

.AIChatDrawer-module__ABCN4W__messageAttachments {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__msgAttachmentItem {
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-tertiary);
  border-radius: 6px;
  max-width: 140px;
  overflow: hidden;
}

.AIChatDrawer-module__ABCN4W__msgAttachmentImg {
  cursor: zoom-in;
  width: 100%;
  height: auto;
  transition: opacity .2s;
  display: block;
}

.AIChatDrawer-module__ABCN4W__msgAttachmentImg:hover {
  opacity: .9;
}

.AIChatDrawer-module__ABCN4W__msgAttachmentFile {
  color: var(--color-text-secondary);
  background: var(--color-bg-card);
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 12px;
  text-decoration: none;
  display: flex;
}

.AIChatDrawer-module__ABCN4W__msgAttachmentFile:hover {
  color: var(--color-amber);
}

.AIChatDrawer-module__ABCN4W__msgAttachmentFile span {
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 80px;
  overflow: hidden;
}

.AIChatDrawer-module__ABCN4W__drawer, .AIChatDrawer-module__ABCN4W__embeddedPanel {
  background: var(--color-bg-card);
  flex-direction: column;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
}

.AIChatDrawer-module__ABCN4W__drawer {
  width: var(--drawer-base-width, 480px);
  z-index: 1000;
  min-width: 360px;
  max-width: 85vw;
  height: 100vh;
  transition: width .4s var(--ease-out);
  position: fixed;
  top: 0;
  right: 0;
  box-shadow: -10px 0 30px #0000004d;
}

.AIChatDrawer-module__ABCN4W__drawer:not(.AIChatDrawer-module__ABCN4W__drawerOpen) {
  right: calc(-1 * var(--drawer-base-width, 480px));
}

.AIChatDrawer-module__ABCN4W__drawer.AIChatDrawer-module__ABCN4W__drawerOpen {
  width: calc(var(--drawer-base-width, 480px) + var(--left-panel-saved, 0px));
}

.AIChatDrawer-module__ABCN4W__fab {
  background: var(--color-amber);
  color: #000;
  width: 50px;
  height: 50px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  bottom: 24px;
  right: 24px;
}

.AIChatDrawer-module__ABCN4W__loadingSpinner {
  color: var(--primary);
  margin-right: 8px;
  animation: 2s linear infinite AIChatDrawer-module__ABCN4W__spin;
  display: inline-block;
}

@keyframes AIChatDrawer-module__ABCN4W__spin {
  100% {
    transform: rotate(360deg);
  }
}

.AIChatDrawer-module__ABCN4W__thinkingCard {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  border-radius: 12px;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 12px 20px;
  font-size: 13px;
  animation: 2s ease-in-out infinite AIChatDrawer-module__ABCN4W__pulse;
  display: flex;
}

@keyframes AIChatDrawer-module__ABCN4W__pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .6;
  }
}

.AIChatDrawer-module__ABCN4W__resizer {
  cursor: col-resize;
  z-index: 30;
  background: none;
  width: 4px;
  height: 100%;
  transition: background .2s;
  position: absolute;
  top: 0;
  left: 0;
}

.AIChatDrawer-module__ABCN4W__resizer:hover {
  background: var(--color-amber);
}

.AIChatDrawer-module__ABCN4W__isResizing {
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.AIChatDrawer-module__ABCN4W__isResizing .AIChatDrawer-module__ABCN4W__resizer {
  background: var(--color-amber);
}

.AIChatDrawer-module__ABCN4W__modelIcon {
  color: var(--color-text-tertiary);
}

.AIChatDrawer-module__ABCN4W__sseStreamingCursor {
  background: var(--color-amber);
  vertical-align: text-bottom;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  animation: .8s step-end infinite AIChatDrawer-module__ABCN4W__blink;
  display: inline-block;
}

@keyframes AIChatDrawer-module__ABCN4W__blink {
  50% {
    opacity: 0;
  }
}

/*# sourceMappingURL=src_0hwzfvk._.css.map*/