/* Frontier Lab sidebar + apitokens.rent scraped UI layout */
:root {
  --gd-accent: #ffffff;
  --gd-accent-soft: #a8c4e0;
  --gd-bg: #0a1628;
  --gd-border: rgba(255, 255, 255, 0.16);
  --gd-text: #ffffff;
  --gd-muted: #9db0c9;
  --gd-soft: #dce6f2;
  --gd-font-sans: var(--font-plex-sans, "IBM Plex Sans"), ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

.gd-shell {
  display: flex !important;
  min-height: 100vh;
  background: var(--gd-bg);
  color: var(--gd-text);
  font-family: var(--gd-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gd-inference-root {
  font-family: var(--gd-font-sans);
}

.gd-inference-root .card,
.gd-inference-root .label,
.gd-inference-root .h1,
.gd-inference-root .h3,
.gd-inference-root .btn,
.gd-inference-root .segment,
.gd-inference-root p,
.gd-inference-root button,
.gd-inference-root a {
  font-family: var(--gd-font-sans);
}

.gd-inference-root .tnum {
  font-variant-numeric: tabular-nums;
}

.gd-side {
  display: flex !important;
  flex-direction: column !important;
  width: 16rem;
  min-width: 16rem;
  flex-shrink: 0;
  border-right: 1px solid var(--gd-border);
  background: #0c1a2e;
  padding: 1rem 0.65rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
}

.gd-side-nav-body {
  flex: 1;
  min-height: 0;
}

/* Mobile drawer lives in /site-chrome.css so the sidebar can be dismissed. */

.gd-brand {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.45rem 0.7rem 1rem;
  color: inherit;
  text-decoration: none;
}

.gd-brand img,
.gd-brand .gd-brand-wordmark {
  display: block;
  height: 1.25rem;
  width: auto;
  max-width: 7.25rem;
  object-fit: contain;
  object-position: left center;
}

.gd-nav-label {
  padding: 0.55rem 0.7rem 0.2rem;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d0d3d8;
  text-decoration: none;
  display: block;
}

.gd-nav-label.gd-nav-ref {
  margin-top: auto;
}

.gd-nav-home {
  padding-bottom: 0.15rem;
  margin-bottom: 0.1rem;
}

.gd-sidebar-ref-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: start;
  column-gap: 0.85rem;
  row-gap: 0.55rem;
  margin-top: auto;
  padding: 0.85rem 0.75rem 0.35rem;
  border-top: 1px solid var(--gd-border);
}

.gd-sidebar-ref-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  font-size: 0.75rem;
  color: #d0d3d8;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  transition: color 0.15s;
}

.gd-sidebar-ref-link:hover {
  color: #d0d3d8;
}

.gd-sidebar-ref-link .gd-nav-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  opacity: 1;
}

.gd-sidebar-ref-link:hover .gd-nav-icon {
  opacity: 1;
}

.gd-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.7rem;
  border-radius: 3px;
  color: #d0d3d8;
  font-family: var(--gd-font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
}

.gd-nav-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 1;
  color: #d0d3d8;
  filter: brightness(0) invert(84%);
}

.gd-nav a.active .gd-nav-icon,
.gd-nav a:hover .gd-nav-icon {
  opacity: 1;
}

.gd-nav a:hover,
.gd-nav a.active {
  background: rgba(255, 255, 255, 0.07);
  color: #d0d3d8;
}

.gd-inference-root {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
}

.gd-inference-root > header {
  position: sticky;
  top: 0;
  z-index: 30;
}

.gd-inference-root .btn-primary {
  background: var(--gd-accent) !important;
  border-color: transparent !important;
  color: #0a1628 !important;
}

.gd-inference-root .btn-primary:hover {
  filter: brightness(1.05);
}

.gd-inference-root a[href="/lab/inference"] img {
  border-radius: 4px;
}

.gd-inf-header-bar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.gd-inf-header-actions {
  margin-left: 0 !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gd-inf-wallet-wrap {
  position: relative;
}

.gd-inf-wallet.is-connected {
  background: rgba(168, 196, 224, 0.18) !important;
  color: #e8eef3 !important;
  border: 1px solid rgba(168, 196, 224, 0.35);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.gd-inf-wallet:disabled {
  opacity: 0.7;
  cursor: wait;
}

.gd-inf-wallet-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 40;
  width: min(260px, calc(100vw - 2rem));
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #12151a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.gd-inf-wallet-menu-addr {
  font-size: 0.72rem;
  line-height: 1.35;
  word-break: break-all;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem;
}

.gd-inf-wallet-menu-note {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.42);
}

.gd-inf-wallet-menu-title {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f4f4ef;
}

.gd-inf-wallet-menu-btn.primary {
  background: rgba(168, 196, 224, 0.2);
  color: #e8eef3;
  margin-bottom: 0.2rem;
}

.gd-inf-wallet-menu-btn.primary:hover:not(:disabled) {
  background: rgba(168, 196, 224, 0.3);
}

.gd-inf-wallet-menu-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gd-inf-wallet-menu-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #e8eaed;
  font: inherit;
  font-size: 0.8rem;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.gd-inf-wallet-menu-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.gd-inf-wallet-menu-btn.danger {
  color: #f87171;
}

.gd-inf-docs-link {
  border-radius: 8px;
  padding: 0.375rem 0.625rem;
  font-size: 13px;
  font-weight: 500;
  color: #8a9099;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.gd-inf-docs-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f2f3f0;
}

.gd-inf-docs-link.gd-inf-docs-active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.gd-inf-chart-host {
  width: 100%;
}

.gd-inf-chart-svg {
  display: block;
}

.gd-inf-axis-label {
  fill: rgba(255, 255, 255, 0.38);
  font-size: 9px;
  font-family: var(--gd-font-sans);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.gd-inf-stat-val {
  letter-spacing: -0.02em;
}

.gd-inf-dash {
  gap: 0.75rem !important;
  align-items: stretch !important;
}

@media (min-width: 1024px) {
  .gd-inf-dash {
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.85fr) !important;
  }
}

.gd-inf-chart-card,
.gd-inf-side-card {
  font-family: var(--gd-font-sans);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(10, 12, 14, 0.92) !important;
  overflow: hidden;
}

.gd-inf-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1rem 1.1rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.gd-inf-head-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  flex: 1;
  min-width: 0;
}

.gd-inf-stat {
  min-width: 4.5rem;
}

.gd-inf-head-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.gd-inf-head-value {
  margin-top: 0.15rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #f4f4ef;
  font-variant-numeric: tabular-nums;
}

.gd-inf-range {
  margin-left: auto;
  flex-shrink: 0;
}

.gd-inf-chart-body {
  padding: 0.85rem 1.1rem 1rem;
}

.gd-inf-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.35rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gd-inf-legend-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  min-width: 0;
}

.gd-inf-legend-group-title {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
  margin-right: 0.15rem;
}

.gd-inf-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(244, 244, 239, 0.78);
  white-space: nowrap;
}

.gd-inf-swatch {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.gd-inf-chart-note {
  margin-top: 0.65rem;
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.34);
}

.gd-inf-side-card {
  padding: 1rem 1.05rem 1.05rem !important;
  display: flex;
  flex-direction: column;
}

.gd-inf-side-title {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.gd-inf-side-metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.gd-inf-side-group {
  display: flex;
  flex-direction: column;
}

.gd-inf-side-group + .gd-inf-side-group {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.gd-inf-side-group-title {
  margin-bottom: 0.35rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.gd-inf-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border: 0;
  background: transparent;
  min-width: 0;
}

.gd-inf-metric + .gd-inf-metric {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.gd-inf-metric-copy {
  min-width: 0;
}

.gd-inf-metric-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: rgba(244, 244, 239, 0.82);
  line-height: 1.25;
}

.gd-inf-metric-value {
  margin-top: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #f4f4ef;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.gd-inf-metric.is-positive .gd-inf-metric-value {
  color: #86efac;
}

.gd-inf-metric-help {
  margin-top: 0.08rem;
  font-size: 0.68rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.34);
}

.gd-docs-panel {
  padding: 1.5rem 0 2rem;
  max-width: 42rem;
}

.gd-docs-wrap h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.gd-docs-lede {
  margin: 0 0 1.75rem;
  color: var(--gd-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.gd-docs-section {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.85rem 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--gd-border);
}

.gd-docs-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 1rem;
  padding-bottom: 0;
}

.gd-docs-num {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #66707a;
  padding-top: 0.15rem;
}

.gd-docs-section h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gd-docs-section p {
  margin: 0;
  color: #b4b8bf;
  font-size: 0.875rem;
  line-height: 1.65;
}

.gd-docs-note {
  margin: 0 0 1rem;
  color: var(--gd-muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.gd-docs-ext {
  display: inline-block;
  color: var(--gd-accent);
  font-size: 0.8125rem;
  text-decoration: none;
  font-weight: 500;
}

.gd-docs-ext:hover {
  text-decoration: underline;
}

.gd-inference-funding .gd-deployed-model {
  display: none !important;
}

/* Chat view */
.gd-chat-mount {
  min-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
}

.gd-chat-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: calc(100vh - 8rem);
  max-width: 48rem;
  margin: 0 auto;
  width: 100%;
}

.gd-chat-shell.is-gated .gd-chat-composer,
.gd-chat-shell.is-gated .gd-composer-dock {
  opacity: 0.32;
  pointer-events: none;
  filter: grayscale(0.2);
}

.gd-chat-gate {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 10, 12, 0.78);
  backdrop-filter: blur(10px);
}

.gd-chat-gate[hidden] {
  display: none;
}

.gd-chat-gate-card {
  width: min(26rem, 100%);
  text-align: center;
  border: 1px solid var(--gd-border);
  background: rgba(14, 16, 20, 0.94);
  border-radius: 16px;
  padding: 1.45rem 1.25rem 1.25rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.gd-chat-gate-card img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: block;
  margin: 0 auto 0.85rem;
}

.gd-chat-gate-card h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--gd-text);
}

.gd-chat-gate-card p {
  margin: 0.45rem 0 0;
  color: var(--gd-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.gd-chat-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.gd-chat-gate-actions .gd-btn {
  margin: 0;
}

.gd-chat-gate-addr {
  margin-top: 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  color: var(--gd-accent);
}

.gd-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0 1rem;
  border-bottom: 1px solid var(--gd-border);
}

.gd-chat-back {
  border: 0;
  background: transparent;
  color: var(--gd-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem 0.25rem 0;
}

.gd-chat-back:hover {
  color: #fff;
}

.gd-chat-head-meta h2 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gd-chat-head-meta p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--gd-muted);
  font-family: ui-monospace, Menlo, monospace;
}

.gd-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 320px;
}

.gd-chat-empty {
  margin: auto;
  text-align: center;
  max-width: 22rem;
  color: var(--gd-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.gd-chat-empty strong {
  color: #f2f3f0;
  font-weight: 500;
}

.gd-chat-empty-sub {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #66707a;
}

.gd-chat-msg {
  display: flex;
}

.gd-chat-msg-user {
  justify-content: flex-end;
}

.gd-chat-msg-assistant {
  justify-content: flex-start;
}

.gd-chat-bubble {
  max-width: min(100%, 36rem);
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.gd-chat-msg-user .gd-chat-bubble {
  background: rgba(168, 196, 224, 0.18);
  color: #f2f3f0;
  border: 1px solid rgba(168, 196, 224, 0.25);
}

.gd-chat-msg-assistant .gd-chat-bubble {
  background: rgba(255, 255, 255, 0.04);
  color: #e8eaed;
  border: 1px solid var(--gd-border);
}

.gd-chat-thinking {
  color: var(--gd-muted);
  font-style: italic;
}

.gd-chat-composer {
  padding: 0.75rem 0 1.5rem;
  border-top: 1px solid var(--gd-border);
}

.gd-chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.55rem 0.55rem 0.55rem 0.85rem;
  border: 1px solid var(--gd-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.gd-chat-input-wrap:focus-within {
  border-color: rgba(168, 196, 224, 0.45);
  box-shadow: 0 0 0 1px rgba(168, 196, 224, 0.15);
}

.gd-chat-input-wrap textarea {
  flex: 1;
  border: 0;
  background: transparent;
  color: #f2f3f0;
  font-family: var(--gd-font-sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  resize: none;
  min-height: 1.5rem;
  max-height: 160px;
  padding: 0.35rem 0;
  outline: none;
}

.gd-chat-send {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: var(--gd-accent);
  color: #0a1628;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gd-chat-send:hover {
  filter: brightness(1.05);
}

.gd-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gd-chat-foot {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #66707a;
  text-align: center;
}

/* Landing-page rainbow hero (defined-hero.mp4) replaces ASCII banner */
.gd-inference-hero {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--gd-border);
  background: #0a1628;
  min-height: clamp(148px, 24vw, 260px);
}

.gd-inference-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.94;
  pointer-events: none;
  filter: grayscale(0.58) sepia(1) hue-rotate(190deg) saturate(1.45) brightness(0.66) contrast(1.18);
}

.gd-inference-hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 32%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.5) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .gd-inference-hero-video {
    display: none;
  }
  .gd-inference-hero {
    background:
      url("/landing/backgrounds/defined-hero-poster.jpg") center / cover no-repeat,
      #0a1628;
  }
}

/* Run modal */
.gd-run-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.gd-run-overlay.open {
  display: flex;
}

.gd-run-modal {
  width: min(640px, 100%);
  border: 1px solid var(--gd-border);
  border-radius: 10px;
  background: #122033;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.gd-run-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gd-border);
}

.gd-run-modal header h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.gd-run-modal .gd-close {
  border: 0;
  background: transparent;
  color: var(--gd-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.gd-run-body {
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #c8ccd3;
}

.gd-run-body .prompt {
  color: var(--gd-accent);
}

.gd-run-body textarea {
  width: 100%;
  min-height: 120px;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--gd-border);
  border-radius: 6px;
  background: #0a1628;
  color: #f2f3f0;
  font: inherit;
  resize: vertical;
}

.gd-run-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.gd-run-actions button {
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.gd-run-actions .secondary {
  border: 1px solid var(--gd-border);
  background: transparent;
  color: var(--gd-muted);
}

.gd-run-actions .primary {
  border: 0;
  background: var(--gd-accent);
  color: #0a1628;
  font-weight: 600;
}

.gd-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 110;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--gd-border);
  background: #111419;
  color: #e8eaed;
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.gd-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Deployed models + API keys demo */
.gd-deployed-model {
  border-color: rgba(168, 196, 224, 0.35) !important;
}

.gd-api-keys-panel {
  padding: 1.5rem 0 2rem;
}

.gd-inf-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--gd-border);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--gd-muted);
}

.gd-inf-pipeline .done {
  color: #8a9099;
}

.gd-inf-pipeline .active {
  color: var(--gd-accent);
  font-weight: 500;
}

.gd-api-keys-wrap h2,
.gd-api-empty h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gd-api-keys-wrap p,
.gd-api-empty p {
  margin: 0 0 1.25rem;
  color: var(--gd-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.gd-api-key-card {
  border: 1px solid var(--gd-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.gd-api-key-highlight {
  border-color: rgba(168, 196, 224, 0.5);
  box-shadow: 0 0 0 1px rgba(168, 196, 224, 0.2);
}

.gd-api-key-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.gd-api-key-slug {
  font-size: 0.75rem;
  color: var(--gd-accent);
  font-family: ui-monospace, Menlo, monospace;
}

.gd-api-key-field {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--gd-border);
  border-radius: 6px;
  background: #0a1628;
  color: #f2f3f0;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
}

.gd-api-key-meta {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--gd-muted);
}

.gd-api-key-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.gd-api-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  background: var(--gd-accent);
  color: #0a1628;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}

.gd-run-output {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--gd-border);
  border-radius: 6px;
  background: #0a1628;
  color: #c8ccd3;
  font: inherit;
  white-space: pre-wrap;
  max-height: 200px;
  overflow: auto;
}
