/* BAIZE-115: logged-in header quick panel. Parent routes and data stay intact. */
body:not(.dark-theme) .header .sub-user-box.baize-header-user-panel,
body:not(.dark-theme) .navbar-top .sub-user-box.baize-header-user-panel {
  width: 356px !important;
  padding: 18px !important;
  border: 1px solid rgba(190, 214, 246, .95) !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(246,250,255,.99)) !important;
  box-shadow: 0 24px 62px rgba(38, 91, 163, .18) !important;
  color: #203452 !important;
}

body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__avatar,
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__avatar .avatar-img {
  flex: 0 0 52px;
  width: 52px !important;
  height: 52px !important;
}

body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__avatar .avatar-img {
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 8px 18px rgba(47,128,255,.15) !important;
}

body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__identity-copy { min-width: 0; flex: 1; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__name-row > strong { min-width: 0; flex: 1; overflow: hidden; color: #1d2f4c; font-size: 16px; font-weight: 800; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__level { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 21px; padding: 2px 7px; border-radius: 6px; background: #eaf4ff; color: #2878ed; font-size: 11px; font-weight: 800; letter-spacing: .1px; line-height: 1; white-space: nowrap; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__identity-copy p { overflow: hidden; margin: 4px 0 0; color: #7a8ba5; font-size: 12px; font-weight: 500; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }

body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__identity-tags { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 7px; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__identity-tag { display: inline-flex; align-items: center; gap: 4px; min-height: 21px; padding: 3px 7px; border-radius: 7px; font-size: 10px; font-weight: 750; line-height: 1; white-space: nowrap; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__identity-tag i { font-size: 10px; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__identity-tag.is-normal { background: #f1f5fa; color: #657891; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__identity-tag.is-cocreation { background: #eaf4ff; color: #2878ed; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__identity-tag.is-developer { background: #f1efff; color: #6d58c7; }

body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__membership { margin-top: 13px; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__membership .payvip-icon { min-height: 36px !important; display: flex !important; align-items: center; justify-content: center; gap: 7px; margin: 0 !important; padding: 7px 12px !important; border-radius: 12px !important; font-size: 12px !important; font-weight: 750 !important; line-height: 1.25; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__membership .vip-expdate-tag { margin-left: 2px !important; padding: 2px 5px !important; font-size: 10px !important; }

body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__asset { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 11px 13px; border: 1px solid rgba(203,221,247,.88); border-radius: 14px; background: #fff; box-shadow: 0 8px 20px rgba(47,96,164,.05); text-decoration: none; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__asset > span { color: #7587a2; font-size: 12px; font-weight: 700; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__asset > span i { margin-left: 4px; font-size: 11px; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__asset strong { display: inline-flex; align-items: baseline; gap: 4px; color: #2677ee; font-size: 21px; font-weight: 800; letter-spacing: -.4px; line-height: 1; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__asset strong b { font-size: 15px; font-weight: 750; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__asset strong em { font-style: normal; }

body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__divider { height: 1px; margin: 14px 0; background: linear-gradient(90deg, transparent, rgba(196,215,243,.95), transparent); }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__divider.is-bottom { margin-bottom: 8px; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px 8px; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 65px; padding: 7px 3px; border: 1px solid transparent; border-radius: 13px; color: #52708f; font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__link:hover { border-color: rgba(103,163,255,.22); background: #f7faff; color: #2878ed; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #ebf4ff; color: #2f80ff; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__icon i { font-size: 18px; line-height: 1; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__link.is-purple .baize-header-user-panel__icon,
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__link.is-cyan .baize-header-user-panel__icon,
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__link.is-amber .baize-header-user-panel__icon,
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__link.is-slate .baize-header-user-panel__icon { background: #ebf4ff; color: #2f80ff; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__logout { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; color: #8291a5; font-size: 12px; font-weight: 650; text-decoration: none; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__logout:hover { color: #51708f; }
body:not(.dark-theme) .sub-user-box.baize-header-user-panel .baize-header-user-panel__logout i { font-size: 14px; }

@media (max-width: 480px) {
  body:not(.dark-theme) .sub-user-box.baize-header-user-panel { width: min(356px, calc(100vw - 26px)) !important; }
}
