@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* GridMind Energy — global theme.
 * Variables mirror src/tokens/index.ts. Apps import this file once at the root.
 * Light mode is opt-in per subtree via data-theme="light".
 */
:root {
  /* backgrounds */
  --gm-bg-primary: #0b1a2b;
  --gm-bg-secondary: #06121f;
  --gm-surface-card: rgba(11, 26, 43, 0.78);
  --gm-surface-input: rgba(6, 18, 31, 0.7);
  --gm-surface-elevated: rgba(11, 26, 43, 0.92);
  --gm-border-subtle: rgba(107, 140, 163, 0.18);
  --gm-border-strong: rgba(107, 140, 163, 0.35);

  /* primary palette */
  --gm-color-blue: #00a5ff;
  --gm-color-cyan: #00cfaf;
  --gm-color-green: #7ed957;
  --gm-color-yellow: #ffd84d;

  /* accents */
  --gm-accent-electric: #a3ff12;
  --gm-accent-highlight: #00e0ff;

  /* text */
  --gm-text-primary: #ffffff;
  --gm-text-secondary: #b3c7d6;
  --gm-text-muted: #6b8ca3;

  /* status */
  --gm-status-success: #00cfaf;
  --gm-status-warning: #ffd84d;
  --gm-status-error: #ff5c5c;
  --gm-status-info: #00a5ff;
  --gm-status-success-bg: rgba(0, 207, 175, 0.12);
  --gm-status-warning-bg: rgba(255, 216, 77, 0.14);
  --gm-status-error-bg: rgba(255, 92, 92, 0.12);
  --gm-status-info-bg: rgba(0, 165, 255, 0.12);
  --gm-status-neutral-bg: rgba(107, 140, 163, 0.14);

  /* gradients */
  --gm-gradient-primary: linear-gradient(45deg, #00a5ff, #00cfaf, #7ed957, #ffd84d);
  --gm-gradient-electric: linear-gradient(90deg, #00e0ff, #a3ff12);
  --gm-gradient-background: radial-gradient(circle at 50% 0%, #0b1a2b 0%, #06121f 100%);

  /* radii */
  --gm-radius-sm: 6px;
  --gm-radius-md: 10px;
  --gm-radius-lg: 16px;

  /* shadows / glows */
  --gm-shadow-soft: 0px 4px 20px rgba(0, 165, 255, 0.15);
  --gm-shadow-glow: 0px 0px 20px rgba(0, 207, 175, 0.4);
  --gm-glow-primary: rgba(0, 165, 255, 0.4);
  --gm-glow-secondary: rgba(0, 207, 175, 0.4);
  --gm-glow-accent: rgba(126, 217, 87, 0.4);

  /* fonts */
  --gm-font-primary: 'Inter', Helvetica, Arial, sans-serif;
  --gm-font-secondary: 'Poppins', Helvetica, Arial, sans-serif;
  --gm-font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* spacing */
  --gm-space-xxs: 4px;
  --gm-space-xs: 8px;
  --gm-space-sm: 12px;
  --gm-space-md: 16px;
  --gm-space-lg: 24px;
  --gm-space-xl: 32px;
  --gm-space-xxl: 48px;

  color-scheme: dark;
}
/* === Explicit dark reset ===
 * Useful when a dialog/popover lives inside a `[data-theme='light']` subtree
 * but must stay dark (e.g. modal rendered via portal). Mirrors :root defaults.
 */
[data-theme='dark'] {
  --gm-bg-primary: #0b1a2b;
  --gm-bg-secondary: #06121f;
  --gm-surface-card: rgba(11, 26, 43, 0.78);
  --gm-surface-input: rgba(6, 18, 31, 0.7);
  --gm-surface-elevated: rgba(11, 26, 43, 0.92);
  --gm-border-subtle: rgba(107, 140, 163, 0.18);
  --gm-border-strong: rgba(107, 140, 163, 0.35);
  --gm-text-primary: #ffffff;
  --gm-text-secondary: #b3c7d6;
  --gm-text-muted: #6b8ca3;
  --gm-status-success-bg: rgba(0, 207, 175, 0.12);
  --gm-status-warning-bg: rgba(255, 216, 77, 0.14);
  --gm-status-error-bg: rgba(255, 92, 92, 0.12);
  --gm-status-info-bg: rgba(0, 165, 255, 0.12);
  --gm-status-neutral-bg: rgba(107, 140, 163, 0.14);
  --gm-status-warning: #ffd84d;
  --gm-status-error: #ff5c5c;
  --gm-gradient-background: radial-gradient(circle at 50% 0%, #0b1a2b 0%, #06121f 100%);
  --gm-shadow-soft: 0px 4px 20px rgba(0, 165, 255, 0.15);
  --gm-shadow-glow: 0px 0px 20px rgba(0, 207, 175, 0.4);
  color-scheme: dark;
}
/* === Light mode (workspace only) ===
 * Applied via [data-theme="light"] on the workspace container. All chrome
 * (rail/sub-sidebar/topbar) lives outside this scope and stays dark. */
[data-theme='light'] {
  --gm-bg-primary: #f4f7fa;
  --gm-bg-secondary: #ffffff;
  --gm-surface-card: rgba(255, 255, 255, 0.95);
  --gm-surface-input: rgba(255, 255, 255, 0.9);
  --gm-surface-elevated: #ffffff;
  --gm-border-subtle: rgba(11, 26, 43, 0.08);
  --gm-border-strong: rgba(11, 26, 43, 0.16);

  --gm-text-primary: #0b1a2b;
  --gm-text-secondary: #43617d;
  --gm-text-muted: #7b95ab;

  --gm-status-success-bg: rgba(0, 207, 175, 0.15);
  --gm-status-warning-bg: rgba(255, 168, 0, 0.18);
  --gm-status-error-bg: rgba(220, 38, 38, 0.12);
  --gm-status-info-bg: rgba(0, 165, 255, 0.14);
  --gm-status-neutral-bg: rgba(11, 26, 43, 0.06);
  --gm-status-warning: #d97706;
  --gm-status-error: #dc2626;

  --gm-gradient-background: radial-gradient(
    circle at 50% 0%,
    #ffffff 0%,
    #eef3f8 70%,
    #e2eaf2 100%
  );
  --gm-shadow-soft: 0 6px 24px rgba(11, 26, 43, 0.08);
  --gm-shadow-glow: 0 0 0 1px rgba(0, 165, 255, 0.15), 0 8px 28px rgba(0, 165, 255, 0.12);

  color-scheme: light;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body,
#root {
  margin: 0;
  padding: 0;
  min-height: 100%;
}
/* === Scrollbars (brand-themed, thin) ===
 * Applied site-wide so every overflow panel matches. Uses standard
 * `scrollbar-*` for Firefox and `-webkit-scrollbar-*` for Chromium/Safari.
 * The thumb uses the brand electric gradient with a transparent border to
 * give it visual padding inside the track.
 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 207, 175, 0.55) transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background-image: linear-gradient(180deg, #00a5ff 0%, #00cfaf 60%, #7ed957 100%);
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 999px;
  min-height: 32px;
}
*::-webkit-scrollbar-thumb:hover {
  background-image: linear-gradient(180deg, #00e0ff 0%, #a3ff12 100%);
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}
/* In the light workspace, soften the gradient so it doesn't fight the
 * surrounding white surfaces. */
[data-theme='light'] *::-webkit-scrollbar-thumb {
  background-image: linear-gradient(180deg, #0066b3 0%, #00857b 100%);
}
/* === Shared utility: page toolbar ===
 * Right-aligned action row used by pages to host page-specific controls
 * (time-range picker, refresh, "add" buttons) inside the scrollable area.
 * The page TITLE / breadcrumb / description live in the shell's sticky
 * page-header bar and are NOT rendered by pages.
 */
.gm-page-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--gm-space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--gm-space-md);
}
body {
  font-family: var(--gm-font-primary);
  background: var(--gm-gradient-background);
  background-color: var(--gm-bg-primary);
  color: var(--gm-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
}
a {
  color: var(--gm-color-blue);
  text-decoration: none;
}
a:hover {
  color: var(--gm-accent-highlight);
}
button,
input,
select,
textarea {
  font-family: inherit;
}
/* === Branded native <select> ===
 * Native selects ignore most of our brand tokens by default — the OPEN
 * dropdown uses the platform's chrome (often white) which is unreadable on
 * our dark surfaces. Force `appearance: none`, draw a custom brand chevron
 * via inline SVG, and explicitly color the option list so each platform's
 * popup at least matches the workspace surface.
 */
select.gm-field__input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23B3C7D6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px 12px;
  padding-right: 22px;
  cursor: pointer;
  color: var(--gm-text-primary);
}
[data-theme='light'] select.gm-field__input {
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%2343617D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
}
/* The OPEN dropdown is rendered by the OS/browser. Most engines (Chromium,
 * Firefox on Windows/Linux) honor option { background, color }; macOS native
 * combobox overrides them. We do the best we can. */
select option,
select optgroup {
  background: var(--gm-bg-secondary);
  color: var(--gm-text-primary);
  padding: 6px 8px;
}
[data-theme='light'] select option,
[data-theme='light'] select optgroup {
  background: #FFFFFF;
  color: var(--gm-text-primary);
}
select option:checked,
select option:hover {
  background: rgba(0, 207, 175, 0.18);
  color: var(--gm-text-primary);
}
:focus-visible {
  outline: 2px solid var(--gm-accent-highlight);
  outline-offset: 2px;
  border-radius: var(--gm-radius-sm);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.gm-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gm-space-xs);
  border: none;
  border-radius: var(--gm-radius-md);
  font-family: var(--gm-font-primary);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 200ms ease, opacity 200ms ease, background 200ms ease;
  user-select: none;
}

.gm-btn:disabled,
.gm-btn--loading {
  cursor: not-allowed;
  opacity: 0.6;
}

.gm-btn:not(:disabled):active {
  transform: translateY(1px);
}

.gm-btn--full {
  width: 100%;
}

/* sizes */
.gm-btn--sm {
  padding: 8px 14px;
  font-size: 13px;
}
.gm-btn--md {
  padding: 12px 20px;
  font-size: 15px;
}
.gm-btn--lg {
  padding: 16px 28px;
  font-size: 17px;
}

/* primary */
.gm-btn--primary {
  background: var(--gm-gradient-electric);
  color: #06121f;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}
.gm-btn--primary:not(:disabled):hover {
  box-shadow: 0 0 24px var(--gm-glow-primary);
}

/* ghost */
.gm-btn--ghost {
  background: transparent;
  color: var(--gm-text-primary);
  border: 1px solid rgba(179, 199, 214, 0.25);
}
.gm-btn--ghost:not(:disabled):hover {
  border-color: var(--gm-accent-highlight);
  color: var(--gm-accent-highlight);
}

/* danger */
.gm-btn--danger {
  background: var(--gm-status-error);
  color: #fff;
}
.gm-btn--danger:not(:disabled):hover {
  filter: brightness(1.1);
  box-shadow: 0 0 18px rgba(255, 92, 92, 0.4);
}

/* spinner */
.gm-btn__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: gm-btn-spin 0.7s linear infinite;
}

@keyframes gm-btn-spin {
  to {
    transform: rotate(360deg);
  }
}
.gm-field {
  display: flex;
  flex-direction: column;
  gap: var(--gm-space-xxs);
  width: 100%;
}

.gm-field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gm-text-secondary);
  letter-spacing: 0.02em;
}

.gm-field__control {
  display: flex;
  align-items: center;
  gap: var(--gm-space-xs);
  padding: 10px 14px;
  background: var(--gm-surface-input);
  border: 1px solid var(--gm-border-strong);
  border-radius: var(--gm-radius-md);
  transition: border-color 160ms ease, box-shadow 200ms ease;
}

.gm-field__control:focus-within {
  border-color: var(--gm-color-blue);
  box-shadow: 0 0 0 3px rgba(0, 165, 255, 0.15);
}

.gm-field__control--error {
  border-color: var(--gm-status-error);
}
.gm-field__control--error:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 92, 92, 0.2);
}

.gm-field__slot {
  display: inline-flex;
  align-items: center;
  color: var(--gm-text-muted);
}

.gm-field__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--gm-text-primary);
  font-size: 15px;
  min-width: 0;
}

.gm-field__input::placeholder {
  color: var(--gm-text-muted);
}

.gm-field__hint {
  margin: 0;
  font-size: 12px;
  color: var(--gm-text-muted);
}

.gm-field__error {
  margin: 0;
  font-size: 12px;
  color: var(--gm-status-error);
}
.gm-card {
  background: var(--gm-surface-card);
  border: 1px solid var(--gm-border-subtle);
  border-radius: var(--gm-radius-lg);
  padding: var(--gm-space-xl);
  box-shadow: var(--gm-shadow-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gm-text-primary);
}

.gm-card--glow {
  position: relative;
}

.gm-card--glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gm-gradient-primary);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}
.gm-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gm-space-sm);
}

.gm-logo__iso {
  height: var(--gm-logo-size, 64px);
  width: auto;
  filter: drop-shadow(0 0 22px rgba(0, 207, 175, 0.35));
  -webkit-user-select: none;
  user-select: none;
}

.gm-logo__text {
  height: auto;
  width: auto;
  max-height: calc(var(--gm-logo-size, 64px) * 0.7);
  -webkit-user-select: none;
  user-select: none;
}

.gm-logo--text .gm-logo__text {
  max-height: var(--gm-logo-size, 64px);
}

.gm-logo--iso {
  gap: 0;
}

.gm-logo__tagline {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gm-text-muted);
  text-align: center;
}
.gm-spinner {
  display: inline-block;
  border-radius: 50%;
  border: 2px solid rgba(0, 224, 255, 0.2);
  border-top-color: var(--gm-accent-highlight);
  animation: gm-spinner-rotate 0.8s linear infinite;
}

@keyframes gm-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}
.gm-glow {
  position: relative;
  isolation: isolate;
}

.gm-glow__halo {
  position: absolute;
  inset: -40px;
  z-index: -1;
  pointer-events: none;
  background: var(--gm-gradient-primary);
  filter: blur(60px);
  border-radius: 50%;
  opacity: 0.25;
}

.gm-glow--strong .gm-glow__halo {
  opacity: 0.45;
  filter: blur(80px);
}

.gm-glow__inner {
  position: relative;
}
.gm-theme-toggle {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.gm-theme-toggle:focus-visible {
  outline: 2px solid var(--gm-accent-highlight);
  outline-offset: 2px;
}

.gm-theme-toggle__track {
  position: relative;
  width: 46px;
  height: 24px;
  background: rgba(107, 140, 163, 0.2);
  border: 1px solid rgba(107, 140, 163, 0.3);
  border-radius: 999px;
  transition: background 200ms ease, border-color 200ms ease;
}

.gm-theme-toggle[data-mode='light'] .gm-theme-toggle__track {
  background: rgba(255, 216, 77, 0.18);
  border-color: rgba(255, 216, 77, 0.45);
}

.gm-theme-toggle__thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gm-bg-secondary);
  color: var(--gm-accent-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 0 12px rgba(0, 224, 255, 0.35);
}

.gm-theme-toggle[data-mode='light'] .gm-theme-toggle__thumb {
  transform: translateX(22px);
  background: #fff;
  color: #d97706;
  box-shadow: 0 0 14px rgba(255, 168, 0, 0.5);
}
.gm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-family: var(--gm-font-primary);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
}

.gm-badge--sm {
  padding: 2px 8px;
  font-size: 11px;
}
.gm-badge--md {
  padding: 4px 10px;
  font-size: 12px;
}

.gm-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.gm-badge--success {
  background: var(--gm-status-success-bg);
  color: var(--gm-status-success);
  border-color: rgba(0, 207, 175, 0.3);
}
.gm-badge--warning {
  background: var(--gm-status-warning-bg);
  color: var(--gm-status-warning);
  border-color: rgba(255, 168, 0, 0.3);
}
.gm-badge--error {
  background: var(--gm-status-error-bg);
  color: var(--gm-status-error);
  border-color: rgba(255, 92, 92, 0.3);
}
.gm-badge--info {
  background: var(--gm-status-info-bg);
  color: var(--gm-status-info);
  border-color: rgba(0, 165, 255, 0.3);
}
.gm-badge--neutral {
  background: var(--gm-status-neutral-bg);
  color: var(--gm-text-secondary);
  border-color: var(--gm-border-subtle);
}
.gm-status-dot {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
}

.gm-status-dot--online {
  background: var(--gm-status-success);
  box-shadow: 0 0 8px var(--gm-status-success);
}
.gm-status-dot--degraded {
  background: var(--gm-status-warning);
  box-shadow: 0 0 8px var(--gm-status-warning);
}
.gm-status-dot--offline {
  background: var(--gm-status-error);
  box-shadow: 0 0 8px var(--gm-status-error);
}
.gm-status-dot--idle {
  background: var(--gm-text-muted);
}

.gm-status-dot--pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid currentColor;
  color: inherit;
  opacity: 0.6;
  animation: gm-status-pulse 1.6s ease-out infinite;
  pointer-events: none;
}
.gm-status-dot--pulse.gm-status-dot--online::after {
  border-color: var(--gm-status-success);
}
.gm-status-dot--pulse.gm-status-dot--degraded::after {
  border-color: var(--gm-status-warning);
}
.gm-status-dot--pulse.gm-status-dot--offline::after {
  border-color: var(--gm-status-error);
}

@keyframes gm-status-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
.gm-menu {
  position: relative;
  display: inline-block;
}

.gm-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--gm-radius-sm);
  color: var(--gm-text-secondary);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.gm-menu__trigger:hover {
  background: rgba(107, 140, 163, 0.12);
  color: var(--gm-text-primary);
  border-color: var(--gm-border-subtle);
}

.gm-menu__trigger[aria-expanded='true'] {
  background: rgba(0, 207, 175, 0.12);
  color: var(--gm-accent-highlight);
  border-color: rgba(0, 207, 175, 0.4);
}

.gm-menu__list {
  list-style: none;
  margin: 0;
  padding: 4px;
  position: absolute;
  top: calc(100% + 4px);
  min-width: 180px;
  background: var(--gm-surface-elevated);
  border: 1px solid var(--gm-border-subtle);
  border-radius: var(--gm-radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gm-menu__list--right {
  right: 0;
}
.gm-menu__list--left {
  left: 0;
}

.gm-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: var(--gm-radius-sm);
  color: var(--gm-text-primary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.gm-menu__item:hover:not(:disabled) {
  background: rgba(0, 165, 255, 0.1);
}

.gm-menu__item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gm-menu__item--danger {
  color: var(--gm-status-error);
}

.gm-menu__item--danger:hover:not(:disabled) {
  background: var(--gm-status-error-bg);
}
.gm-panel {
  background: var(--gm-surface-card);
  border: 1px solid var(--gm-border-subtle);
  border-radius: var(--gm-radius-md);
  padding: var(--gm-space-md) var(--gm-space-lg);
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--gm-text-primary);
}

.gm-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gm-space-md);
  margin-bottom: var(--gm-space-md);
  flex-shrink: 0;
}

.gm-panel__heading {
  min-width: 0;
}

.gm-panel__title {
  margin: 0;
  font-family: var(--gm-font-secondary);
  font-size: 14px;
  font-weight: 600;
  color: var(--gm-text-primary);
  line-height: 1.25;
}

.gm-panel__subtitle {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: var(--gm-text-muted);
  line-height: 1.4;
}

.gm-panel__actions {
  display: flex;
  align-items: center;
  gap: var(--gm-space-xs);
  flex-shrink: 0;
}

.gm-panel__body {
  min-width: 0;
}

/* Default: grow up to a viewport-aware cap, then scroll internally.
 * The cap accounts for the chrome above the workspace (topbar ~56 +
 * page-header ~100 + content padding ~40 + panel header ~60 + slack). */
.gm-panel__body--viewport {
  max-height: calc(100vh - 280px);
  overflow-y: auto;
}

/* Explicit numeric cap (max-height set inline). Always scrolls past it. */
.gm-panel__body--capped {
  overflow-y: auto;
}
.gm-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gm-text-secondary, #b3c7d6);
}

.gm-lang-switch__label {
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gm-lang-switch__select {
  background: rgba(6, 18, 31, 0.7);
  color: var(--gm-text-primary, #fff);
  border: 1px solid rgba(107, 140, 163, 0.35);
  border-radius: var(--gm-radius-sm, 6px);
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.gm-lang-switch__select:focus-visible {
  outline: 2px solid var(--gm-accent-highlight, #00e0ff);
  outline-offset: 2px;
}

.gm-lang-switch--buttons {
  background: rgba(6, 18, 31, 0.7);
  border: 1px solid rgba(107, 140, 163, 0.25);
  border-radius: var(--gm-radius-md, 10px);
  padding: 2px;
}

.gm-lang-switch__btn {
  background: transparent;
  border: none;
  color: var(--gm-text-secondary, #b3c7d6);
  padding: 4px 10px;
  font-size: 12px;
  border-radius: var(--gm-radius-sm, 6px);
  cursor: pointer;
}

.gm-lang-switch__btn--active {
  background: rgba(0, 207, 175, 0.15);
  color: var(--gm-text-primary, #fff);
}
.gm-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--gm-space-md) var(--gm-space-lg);
  background: var(--gm-surface-card);
  border: 1px solid var(--gm-border-subtle);
  border-radius: var(--gm-radius-md);
  min-width: 180px;
}

.gm-stat__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gm-text-muted);
}

.gm-stat__value {
  font-family: var(--gm-font-secondary);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  color: var(--gm-text-primary);
}

.gm-stat__hint {
  font-size: 12px;
  color: var(--gm-text-secondary);
}

.gm-stat--success .gm-stat__value {
  color: var(--gm-status-success);
}
.gm-stat--warning .gm-stat__value {
  color: var(--gm-status-warning);
}
.gm-stat--error .gm-stat__value {
  color: var(--gm-status-error);
}
.gm-table-wrap {
  background: var(--gm-surface-card);
  border: 1px solid var(--gm-border-subtle);
  border-radius: var(--gm-radius-md);
  overflow-x: auto;
}

.gm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--gm-text-primary);
}

.gm-table thead th {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gm-text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--gm-border-subtle);
  background: transparent;
  position: sticky;
  top: 0;
}

.gm-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gm-border-subtle);
  vertical-align: middle;
}

.gm-table tbody tr:last-child td {
  border-bottom: none;
}

.gm-table tbody tr:hover td {
  background: rgba(0, 165, 255, 0.04);
}

.gm-table__empty {
  text-align: center !important;
  color: var(--gm-text-muted);
  padding: 32px 16px;
}
.gm-dlg__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 18, 31, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gm-space-lg);
}

.gm-dlg {
  background: var(--gm-surface-elevated);
  border: 1px solid var(--gm-border-subtle);
  border-radius: var(--gm-radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 165, 255, 0.18);
  color: var(--gm-text-primary);
}

.gm-dlg__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--gm-space-lg) var(--gm-space-xl);
  border-bottom: 1px solid var(--gm-border-subtle);
}

.gm-dlg__crumb {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gm-text-muted);
}

.gm-dlg__title {
  margin: 4px 0 0 0;
  font-family: var(--gm-font-secondary);
  font-size: 22px;
  font-weight: 600;
  color: var(--gm-text-primary);
}

.gm-dlg__close {
  background: transparent;
  border: none;
  color: var(--gm-text-secondary);
  font-size: 24px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: var(--gm-radius-sm);
  cursor: pointer;
}

.gm-dlg__close:hover:not(:disabled) {
  color: var(--gm-text-primary);
  background: rgba(107, 140, 163, 0.12);
}

.gm-dlg__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--gm-space-lg) var(--gm-space-xl);
}

.gm-dlg__footer {
  display: flex;
  align-items: center;
  gap: var(--gm-space-xs);
  padding: var(--gm-space-md) var(--gm-space-xl);
  border-top: 1px solid var(--gm-border-subtle);
}

/* ------ plugin list ------ */

.gm-dlg__plugins {
  list-style: none;
  margin: var(--gm-space-md) 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gm-space-xs);
}

.gm-dlg__plugins-empty {
  text-align: center;
  color: var(--gm-text-muted);
  padding: var(--gm-space-xl);
}

.gm-dlg__plugin {
  display: flex;
  width: 100%;
  align-items: center;
  gap: var(--gm-space-md);
  background: rgba(11, 26, 43, 0.6);
  border: 1px solid var(--gm-border-subtle);
  border-radius: var(--gm-radius-md);
  padding: var(--gm-space-md);
  cursor: pointer;
  text-align: left;
  color: var(--gm-text-primary);
  transition: border-color 140ms ease, background 140ms ease;
}

.gm-dlg__plugin:hover {
  border-color: var(--gm-accent-highlight);
  background: rgba(0, 207, 175, 0.06);
}

.gm-dlg__plugin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--gm-radius-md);
  background: rgba(0, 207, 175, 0.12);
  color: var(--gm-accent-highlight);
  flex-shrink: 0;
}

.gm-dlg__plugin-text {
  flex: 1;
  min-width: 0;
}

.gm-dlg__plugin-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gm-dlg__plugin-proto {
  font-family: var(--gm-font-mono);
  font-size: 11px;
  color: var(--gm-text-secondary);
  background: var(--gm-status-neutral-bg);
  padding: 1px 6px;
  border-radius: 4px;
}

.gm-dlg__plugin-desc {
  margin-top: 4px;
  font-size: 13px;
  color: var(--gm-text-secondary);
  line-height: 1.4;
}

.gm-dlg__plugin-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--gm-text-muted);
}

/* ------ configure step ------ */

.gm-dlg__plugin-summary {
  display: flex;
  align-items: center;
  gap: var(--gm-space-sm);
  padding: var(--gm-space-sm) var(--gm-space-md);
  background: rgba(0, 207, 175, 0.08);
  border: 1px solid rgba(0, 207, 175, 0.25);
  border-radius: var(--gm-radius-md);
  color: var(--gm-accent-highlight);
  margin-bottom: var(--gm-space-md);
}

.gm-dlg__plugin-summary .gm-dlg__plugin-name {
  color: var(--gm-text-primary);
}

.gm-dlg__form {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gm-space-md);
}

.gm-dlg__form[disabled] {
  opacity: 0.6;
}

.gm-dlg__bool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gm-text-secondary);
  cursor: pointer;
}

.gm-dlg__form-error {
  margin-top: var(--gm-space-md);
  padding: 10px 12px;
  border: 1px solid var(--gm-status-error);
  border-radius: var(--gm-radius-md);
  color: var(--gm-status-error);
  font-size: 13px;
  background: var(--gm-status-error-bg);
}

/* ------ done step ------ */

.gm-dlg__done {
  text-align: center;
  padding: var(--gm-space-xl) 0;
}

.gm-dlg__done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gm-gradient-electric);
  color: var(--gm-bg-primary);
  box-shadow: 0 0 28px rgba(0, 224, 255, 0.5);
  margin-bottom: var(--gm-space-md);
}

.gm-dlg__done h3 {
  margin: 0 0 4px 0;
  font-family: var(--gm-font-secondary);
  font-weight: 600;
}
.gm-conn {
  display: flex;
  flex-direction: column;
}

.gm-conn__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gm-space-md);
  margin-bottom: var(--gm-space-lg);
}

.gm-conn__loading {
  display: flex;
  justify-content: center;
  padding: var(--gm-space-xxl);
}

.gm-conn__name {
  display: flex;
  align-items: center;
  gap: var(--gm-space-sm);
}

.gm-conn__name-text {
  font-weight: 500;
  color: var(--gm-text-primary);
  line-height: 1.2;
}

.gm-conn__kind {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gm-text-muted);
  margin-top: 2px;
}

.gm-conn__proto {
  font-family: var(--gm-font-mono);
  font-size: 12px;
  background: var(--gm-status-neutral-bg);
  border: 1px solid var(--gm-border-subtle);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--gm-text-secondary);
}

.gm-conn__num {
  font-variant-numeric: tabular-nums;
  color: var(--gm-text-primary);
}

.gm-conn__warn {
  font-variant-numeric: tabular-nums;
  color: var(--gm-status-warning);
  font-weight: 500;
}

.gm-conn__muted {
  color: var(--gm-text-muted);
  font-size: 12px;
}
.gm-rail {
  width: 64px;
  background: rgba(6, 18, 31, 0.92);
  border-right: 1px solid rgba(107, 140, 163, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--gm-space-md) 0;
  gap: var(--gm-space-md);
  flex-shrink: 0;
  z-index: 5;
}

.gm-rail__brand {
  padding: 4px 0 var(--gm-space-sm);
  border-bottom: 1px solid rgba(107, 140, 163, 0.12);
  width: 100%;
  display: flex;
  justify-content: center;
}

.gm-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  align-items: center;
}

.gm-rail__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--gm-radius-md);
  color: var(--gm-text-muted);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
  text-decoration: none;
}

.gm-rail__item:hover {
  color: var(--gm-text-primary);
  background: rgba(0, 165, 255, 0.08);
}

.gm-rail__item--active {
  color: var(--gm-bg-primary);
  background: var(--gm-gradient-electric);
  box-shadow: 0 0 22px rgba(0, 224, 255, 0.35);
}

.gm-rail__item--active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--gm-accent-highlight);
  box-shadow: 0 0 10px var(--gm-accent-highlight);
}

.gm-rail__tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--gm-bg-secondary);
  color: var(--gm-text-primary);
  padding: 6px 10px;
  border-radius: var(--gm-radius-sm);
  border: 1px solid rgba(107, 140, 163, 0.25);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.gm-rail__item:hover .gm-rail__tooltip {
  opacity: 1;
}
.gm-subsidebar {
  width: 248px;
  background: rgba(11, 26, 43, 0.65);
  border-right: 1px solid rgba(107, 140, 163, 0.12);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.gm-subsidebar__header {
  display: flex;
  gap: var(--gm-space-sm);
  align-items: flex-start;
  padding: var(--gm-space-lg) var(--gm-space-md) var(--gm-space-md);
  border-bottom: 1px solid rgba(107, 140, 163, 0.12);
}

.gm-subsidebar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--gm-radius-md);
  background: rgba(0, 207, 175, 0.12);
  color: var(--gm-accent-highlight);
  flex-shrink: 0;
}

.gm-subsidebar__heading {
  min-width: 0;
}

.gm-subsidebar__title {
  margin: 0;
  font-family: var(--gm-font-secondary);
  font-size: 16px;
  font-weight: 600;
  color: var(--gm-text-primary);
  line-height: 1.2;
}

.gm-subsidebar__desc {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: var(--gm-text-muted);
  line-height: 1.35;
}

.gm-subsidebar__list {
  list-style: none;
  margin: 0;
  padding: var(--gm-space-sm) var(--gm-space-xs);
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
}

.gm-subsidebar__item {
  display: flex;
  align-items: center;
  gap: var(--gm-space-sm);
  padding: 9px 12px;
  border-radius: var(--gm-radius-sm);
  color: var(--gm-text-secondary);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease;
  position: relative;
}

.gm-subsidebar__item:hover {
  color: var(--gm-text-primary);
  background: rgba(0, 165, 255, 0.08);
}

.gm-subsidebar__item--active {
  color: var(--gm-text-primary);
  background: rgba(0, 207, 175, 0.14);
}

.gm-subsidebar__item--active .gm-subsidebar__bullet {
  background: var(--gm-color-cyan);
  box-shadow: 0 0 10px var(--gm-color-cyan);
}

.gm-subsidebar__bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(107, 140, 163, 0.5);
  flex-shrink: 0;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.gm-subsidebar__chev {
  margin-left: auto;
  opacity: 0;
  transition: opacity 140ms ease, transform 140ms ease;
}

.gm-subsidebar__item:hover .gm-subsidebar__chev,
.gm-subsidebar__item--active .gm-subsidebar__chev {
  opacity: 1;
  transform: translateX(2px);
}
.gm-topbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 360px) minmax(280px, 1fr);
  align-items: center;
  gap: var(--gm-space-xl);
  padding: 12px var(--gm-space-xl);
  background: rgba(6, 18, 31, 0.7);
  border-bottom: 1px solid rgba(107, 140, 163, 0.12);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 4;
}

.gm-topbar__left {
  display: flex;
  align-items: center;
  gap: var(--gm-space-md);
  min-width: 0;
}

.gm-topbar__wordmark {
  flex-shrink: 0;
}

.gm-topbar__title-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gm-topbar__breadcrumb {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gm-text-muted);
}

.gm-topbar__title {
  margin: 0;
  font-family: var(--gm-font-secondary);
  font-weight: 500;
  font-size: 18px;
  color: var(--gm-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gm-topbar__center {
  display: flex;
  justify-content: center;
}

.gm-topbar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  padding: 8px 12px;
  background: rgba(11, 26, 43, 0.6);
  border: 1px solid rgba(107, 140, 163, 0.25);
  border-radius: var(--gm-radius-md);
  color: var(--gm-text-muted);
  transition: border-color 160ms ease, box-shadow 200ms ease;
}

.gm-topbar__search:focus-within {
  border-color: var(--gm-color-blue);
  box-shadow: 0 0 0 3px rgba(0, 165, 255, 0.15);
  color: var(--gm-text-primary);
}

.gm-topbar__search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--gm-text-primary);
  font-size: 13px;
  min-width: 0;
}

.gm-topbar__search input::placeholder {
  color: var(--gm-text-muted);
}

.gm-topbar__kbd {
  font-family: var(--gm-font-mono);
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(107, 140, 163, 0.12);
  border: 1px solid rgba(107, 140, 163, 0.2);
  border-radius: 4px;
  color: var(--gm-text-muted);
  flex-shrink: 0;
}

@media (max-width: 1320px) {
  .gm-topbar__kbd {
    display: none;
  }
}

.gm-topbar__right {
  display: flex;
  align-items: center;
  gap: var(--gm-space-md);
  justify-content: flex-end;
  padding-left: var(--gm-space-md);
}

.gm-topbar__user {
  display: flex;
  align-items: center;
  gap: var(--gm-space-xs);
}

.gm-topbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gm-gradient-electric);
  color: var(--gm-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 0 12px rgba(0, 224, 255, 0.4);
}

.gm-topbar__user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.gm-topbar__user-name {
  font-size: 13px;
  color: var(--gm-text-primary);
  font-weight: 500;
}

.gm-topbar__user-role {
  font-size: 11px;
  color: var(--gm-text-muted);
  text-transform: capitalize;
}

.gm-topbar__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(107, 140, 163, 0.25);
  border-radius: var(--gm-radius-md);
  color: var(--gm-text-secondary);
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease;
}

.gm-topbar__logout:hover {
  color: var(--gm-status-error);
  border-color: var(--gm-status-error);
}

@media (max-width: 1100px) {
  .gm-topbar {
    grid-template-columns: 1fr auto;
  }
  .gm-topbar__center {
    display: none;
  }
}
.gm-pagehead {
  flex-shrink: 0;
  padding: var(--gm-space-md) var(--gm-space-xl) var(--gm-space-sm);
  /* Inherits the same workspace tokens — `data-theme={mode}` flips palette in
   * sync with the scrollable area below. No border / no shadow so it reads as
   * one continuous surface. */
  background: var(--gm-bg-primary);
  background-image: var(--gm-gradient-background);
  color: var(--gm-text-primary);
  transition: background 240ms ease, color 240ms ease;
}

.gm-pagehead__crumb {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gm-text-muted);
  margin-bottom: 2px;
}

.gm-pagehead__title {
  margin: 0;
  font-family: var(--gm-font-secondary);
  font-weight: 600;
  font-size: 24px;
  color: var(--gm-text-primary);
  line-height: 1.15;
}

.gm-pagehead__desc {
  margin: 6px 0 0 0;
  color: var(--gm-text-secondary);
  font-size: 13px;
  max-width: 720px;
  line-height: 1.45;
}
.gm-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--gm-gradient-background);
  background-color: var(--gm-bg-primary);
}

.gm-shell__main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.gm-shell__content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--gm-space-lg) var(--gm-space-xl) var(--gm-space-xl);
  background: var(--gm-gradient-background);
  color: var(--gm-text-primary);
  transition: background 240ms ease, color 240ms ease;
}
.gm-placeholder {
  display: flex;
  flex-direction: column;
  gap: var(--gm-space-xl);
  max-width: 960px;
}

.gm-placeholder__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gm-placeholder__crumb {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gm-text-muted);
}

.gm-placeholder__title {
  margin: 0;
  font-family: var(--gm-font-secondary);
  font-weight: 600;
  font-size: 30px;
  color: var(--gm-text-primary);
  line-height: 1.15;
}

.gm-placeholder__desc {
  margin: 4px 0 0 0;
  color: var(--gm-text-secondary);
  font-size: 15px;
  max-width: 720px;
}

.gm-placeholder__glow {
  align-self: flex-start;
}

.gm-placeholder__card {
  display: flex;
  align-items: center;
  gap: var(--gm-space-lg);
  min-width: 480px;
}

.gm-placeholder__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--gm-radius-lg);
  background: var(--gm-gradient-electric);
  color: var(--gm-bg-primary);
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(0, 224, 255, 0.4);
}

.gm-placeholder__cta-title {
  margin: 0;
  font-family: var(--gm-font-secondary);
  font-size: 18px;
  font-weight: 600;
  color: var(--gm-text-primary);
}

.gm-placeholder__cta-desc {
  margin: 4px 0 0 0;
  color: var(--gm-text-secondary);
  font-size: 13px;
  max-width: 420px;
}

.gm-placeholder__siblings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gm-space-xs);
}

.gm-placeholder__sibling {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(107, 140, 163, 0.25);
  border-radius: 999px;
  font-size: 12px;
  color: var(--gm-text-muted);
}

.gm-placeholder__sibling--active {
  color: var(--gm-text-primary);
  border-color: rgba(0, 207, 175, 0.5);
  background: rgba(0, 207, 175, 0.1);
}

.gm-placeholder__sibling-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(107, 140, 163, 0.6);
}

.gm-placeholder__sibling--active .gm-placeholder__sibling-dot {
  background: var(--gm-color-cyan);
  box-shadow: 0 0 8px var(--gm-color-cyan);
}
