.apex-support-shell {
  position: fixed !important;
  inset: 0 !important;
  z-index: 12000 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  color: #edf3fc !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif !important;
}
.apex-support-shell[hidden] { display: flex !important; visibility: hidden !important; pointer-events: none !important; }
.apex-support-shell-backdrop { position: absolute; inset: 0; background: rgba(1, 7, 14, .62); }
.apex-support-shell-panel {
  position: relative;
  width: 440px;
  max-width: 100%;
  height: min(740px, calc(100vh - 48px));
  height: min(740px, calc(100dvh - 48px));
  min-height: 240px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #2b4358;
  border-radius: 16px;
  background: #0c1825;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .5);
  outline: none;
}
.apex-support-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 8px 16px;
  flex: 0 0 auto;
  box-sizing: border-box;
  border-bottom: 1px solid #263a4d;
  background: #0e1c2b;
}
.apex-support-shell-header h2 { margin: 0; padding: 0; color: #edf3fc; font-size: 16px; font-weight: 600; line-height: 1.5; }
.apex-support-shell-close {
  appearance: none !important;
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px;
  max-width: 65%;
  margin: 0 !important;
  padding: 9px 12px !important;
  border: 1px solid #34536a !important;
  border-radius: 8px !important;
  background: #152b3b !important;
  color: #a7e4e7 !important;
  font: 500 12px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif !important;
  cursor: pointer;
}
.apex-support-shell-close::after { display: none !important; }
.apex-support-shell-close:hover { background: #1b3b4e !important; }
.apex-support-shell-close:focus-visible, .apex-support-shell-status a:focus-visible { outline: 2px solid #5cd4dc; outline-offset: 2px; }
.apex-support-shell-status { padding: 12px 16px; border-bottom: 1px solid #263a4d; background: #102233; color: #9fb6ca; font-size: 12px; line-height: 1.6; }
.apex-support-shell-status[hidden], .apex-support-shell-status a[hidden] { display: none !important; }
.apex-support-shell-status a { display: block; width: fit-content; margin-top: 4px; color: #6de2df; text-decoration: underline; }
.apex-support-shell-frame { display: block; width: 100%; min-height: 0; flex: 1 1 auto; border: 0; margin: 0; padding: 0; background: #0c1825; }
@media (max-width: 640px) {
  .apex-support-shell { padding: 0 !important; align-items: stretch !important; }
  .apex-support-shell-panel { width: 100%; max-width: none; height: 100%; min-height: 0; border: 0; border-radius: 0; }
  .apex-support-shell-header { padding-top: max(8px, env(safe-area-inset-top)); }
}
