.debug-window {
  position: fixed;
  bottom: calc(var(--safe-area-inset-bottom, 0) + 96px);
  right: 40px;
  z-index: 10000;

  width: 80vw;
  max-width: 480px;
  min-width: 500px;
  height: 75vh;
  max-height: 75vh;

  display: flex;
  flex-direction: column;

  background: var(--colorNeutralBackground1, #fff);
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.debug-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 8px;
  border-bottom: 1px solid var(--colorNeutralStroke2, #e0e0e0);
  background: transparent;
}

.debug-tablist {
  display: flex;
  padding: 0 16px;
  margin: 0;
  border-bottom: 1px solid var(--colorNeutralStroke2, #e0e0e0);
  background: transparent;
}

.debug-tab-panel {
  flex: 1 1 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-debug-button {
  position: fixed;
  bottom: 20px;
  right: 60px;
  z-index: 10000;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  background: var(--colorBrandBackground, #2564cf);
  color: #fff;
  transition: box-shadow 0.18s;
}

.floating-debug-button:hover {
  box-shadow: 0 4px 24px rgba(37, 100, 207, 0.25);
}

.monospace {
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono',
    Menlo, monospace;
}