.gcb-api-widget {
  background: linear-gradient(150deg, #0b1630 0%, #0c274f 45%, #0e2d5f 70%, #0ea5e9 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  color: #e0f2fe;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gcb-api-widget__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gcb-api-widget__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: #7dd3fc;
  opacity: 0.9;
}

.gcb-api-widget__title {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.gcb-api-widget__body {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.gcb-api-widget__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gcb-api-widget__button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #e0f2fe;
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.gcb-api-widget__button:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.22);
}

.gcb-api-widget__button.is-active {
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(56, 189, 248, 0.6);
  color: #ecfeff;
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.3);
}

.gcb-api-widget__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gcb-api-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #e0f2fe;
}

.gcb-api-chip.is-internal {
  background: rgba(94, 234, 212, 0.16);
  border-color: rgba(94, 234, 212, 0.5);
}

.gcb-api-chip.is-external {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.5);
}

.gcb-api-chip.is-settings {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.5);
}

.gcb-api-overlay {
  position: absolute;
  inset: 0;
  z-index: 8200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.26s ease;
}

.gcb-api-overlay.is-visible {
  opacity: 1;
}

.gcb-api-overlay.is-off-desktop {
  opacity: 0;
}

.gcb-api-panel {
  position: absolute;
  top: calc(var(--gcb-menubar-height, 36px) + 18px);
  left: 22px;
  right: calc(var(--gcb-widget-tray-width, 320px) + 22px);
  bottom: calc(var(--gcb-taskbar-height, 48px) + 18px);
  max-width: min(940px, calc(100vw - var(--gcb-widget-tray-width, 320px) - 72px));
  min-height: 360px;
  background: linear-gradient(160deg, #0a0f1d 0%, #0f162a 30%, #0f1f3b 60%, #0b274c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.32);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  pointer-events: auto;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.32s ease;
}

.gcb-api-overlay.is-visible .gcb-api-panel {
  transform: translateY(0);
  opacity: 1;
}

.gcb-api-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gcb-api-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.gcb-api-panel__badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #e0f2fe;
}

.gcb-api-panel__close {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.gcb-api-panel__close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.gcb-api-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px;
}

.gcb-api-tab {
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.1s ease;
}

.gcb-api-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

.gcb-api-tab.is-active {
  background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 48%, #2563eb 100%);
  color: #0b1224;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.35);
}

.gcb-api-views {
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
}

.gcb-api-view {
  flex: 1;
  display: none;
  height: 100%;
}

.gcb-api-view.is-active {
  display: block;
}

.gcb-api-view__inner {
  padding: 18px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #e2e8f0;
  line-height: 1.5;
}

.gcb-api-view[data-view="internal"] {
  background: linear-gradient(150deg, #0b1221 0%, #0f1b31 40%, #102b4a 100%);
}

.gcb-api-view[data-view="external"] {
  background: linear-gradient(150deg, #0b1d1c 0%, #0e2e35 40%, #14586a 100%);
}

.gcb-api-view[data-view="settings"] {
  background: linear-gradient(150deg, #1c1028 0%, #26163c 40%, #3a1f6a 100%);
}

.gcb-api-pillrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gcb-api-pill {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.gcb-api-view__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gcb-api-status {
  font-size: 12px;
  color: #cbd5e1;
  opacity: 0.85;
}

.gcb-api-status.is-error {
  color: #fca5a5;
}
