@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* --- @theme tokens (font families etc.) --- */
:root {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --animate-fade-in: fade-in 0.25s ease-out;
  --animate-fade-up: fade-up 0.4s ease-out;
  --animate-scale-in: scale-in 0.2s ease-out;
  --font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

/* --- app tokens (globals.css :root) --- */
:root {
  --radius: 0.875rem;

  
  --bg-void: #0a0e22;
  --bg-deep: #0d1228;
  --bg-rail: #101636;
  --bg-card: #151d40;
  --bg-card-2: #182148;
  --bg-input: #111736;
  --bd: rgba(140, 160, 220, 0.1);
  --bd-strong: rgba(140, 160, 220, 0.18);
  --bd-focus: rgba(120, 140, 255, 0.45);
  --tx: #e6eaf7;
  --tx-2: #a8b0d0;
  --tx-3: #6e769a;
  --tx-4: #4a5276;
  --blue: #5b8def;
  --violet: #9b7cff;
  --magenta: #c77cff;
  --grad: linear-gradient(135deg, #5b8def 0%, #9b7cff 50%, #c77cff 100%);
  --grad-2: linear-gradient(135deg, #6a8bff 0%, #a57cff 100%);
  --green: #34d399;
  --amber: #f5b458;
  --red: #f87171;

  
  --background: #0a0e22;
  --foreground: #e6eaf7;
  --card: #151d40;
  --card-foreground: #e6eaf7;
  --popover: #161e40;
  --popover-foreground: #e6eaf7;
  --primary: #7c7cff;
  --primary-foreground: #ffffff;
  --secondary: #161e40;
  --secondary-foreground: #e6eaf7;
  --muted: #161e40;
  --muted-foreground: #6e769a;
  --accent: #1b2550;
  --accent-foreground: #e6eaf7;
  --destructive: #f87171;
  --border: #1e2540;
  --input: #0f1530;
  --ring: #7c8cff;
  --chart-1: #5b8def;
  --chart-2: #9b7cff;
  --chart-3: #c77cff;
  --chart-4: #34d399;
  --chart-5: #f5b458;
  --sidebar: #0e1330;
  --sidebar-foreground: #e6eaf7;
  --sidebar-primary: #5b8def;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #1b2550;
  --sidebar-accent-foreground: #e6eaf7;
  --sidebar-border: #1e2540;
  --sidebar-ring: #7c8cff;
}

/* --- island base reset --- */
#opara-demo-root{font-family:var(--font-sans,system-ui,sans-serif);color:var(--tx);-webkit-font-smoothing:antialiased}
#opara-demo-root button,#opara-demo-root input,#opara-demo-root textarea,#opara-demo-root select{font-family:inherit;line-height:inherit}

/* --- .ob-* component layer (globals.css) --- */
.ob-scope {
  color: var(--tx);
  font-size: 14px;
  line-height: 1.45;
  width: 100%;
  max-width: 100%;
}
.ob-scope *,
.ob-scope *::before,
.ob-scope *::after {
  box-sizing: border-box;
}


.ob-scope .ob-card {
  background: linear-gradient(180deg, rgba(22, 30, 64, 0.78), rgba(19, 26, 56, 0.92));
  border: 1px solid var(--bd);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 40px -28px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}
.ob-scope .ob-card-2 {
  background: linear-gradient(180deg, rgba(27, 37, 80, 0.7), rgba(22, 30, 64, 0.92));
  border: 1px solid var(--bd);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 18px 40px -28px rgba(0, 0, 0, 0.6);
}
.ob-scope .ob-ring-hover {
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.ob-scope .ob-ring-hover:hover {
  border-color: var(--bd-strong);
}


.ob-scope .ob-airing {
  position: relative;
}
.ob-scope .ob-airing::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(91, 141, 239, 0.5),
    rgba(199, 124, 255, 0.3) 60%,
    transparent
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}


.ob-scope .ob-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--bd);
  background: rgba(255, 255, 255, 0.02);
  color: var(--tx);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.ob-scope .ob-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--bd-strong);
}
.ob-scope .ob-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ob-scope .ob-btn-primary {
  background: var(--grad-2);
  border: 0;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 24px -8px rgba(124, 124, 255, 0.6);
}
.ob-scope .ob-btn-primary:hover {
  filter: brightness(1.08);
}
.ob-scope .ob-btn-danger {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.25);
  color: var(--red);
}
.ob-scope .ob-btn-danger:hover {
  background: rgba(248, 113, 113, 0.14);
}
.ob-scope .ob-btn-sm {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}
.ob-scope .ob-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--bd);
  cursor: pointer;
  color: var(--tx-2);
  position: relative;
  flex-shrink: 0;
}
.ob-scope .ob-icon-btn:hover {
  color: var(--tx);
  border-color: var(--bd-strong);
  background: rgba(255, 255, 255, 0.05);
}


.ob-scope .ob-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.ob-scope .ob-badge .ob-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.ob-scope .ob-badge.green {
  color: var(--green);
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.25);
}
.ob-scope .ob-badge.amber {
  color: var(--amber);
  background: rgba(245, 180, 88, 0.14);
  border-color: rgba(245, 180, 88, 0.25);
}
.ob-scope .ob-badge.red {
  color: var(--red);
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.28);
}
.ob-scope .ob-badge.blue {
  color: var(--blue);
  background: rgba(91, 141, 239, 0.14);
  border-color: rgba(91, 141, 239, 0.28);
}
.ob-scope .ob-badge.violet {
  color: var(--violet);
  background: rgba(155, 124, 255, 0.14);
  border-color: rgba(155, 124, 255, 0.28);
}
.ob-scope .ob-badge.gray {
  color: var(--tx-2);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--bd);
}


.ob-scope .ob-av {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  flex-shrink: 0;
}


.ob-scope .ob-h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.ob-scope .ob-h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.ob-scope .ob-h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}
.ob-scope .ob-subtle {
  color: var(--tx-3);
  font-size: 13px;
}
.ob-scope .ob-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.ob-scope .ob-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--tx-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}


.ob-scope .ob-div {
  height: 1px;
  background: var(--bd);
}
.ob-scope .ob-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.15s ease;
}


.ob-scope .ob-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--bd);
  padding: 0 4px;
  flex-wrap: wrap;
}
.ob-scope .ob-tab {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--tx-3);
  cursor: pointer;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  transition: color 0.15s;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ob-scope .ob-tab.active {
  color: var(--tx);
  border-bottom-color: var(--blue);
}
.ob-scope .ob-tab:hover {
  color: var(--tx);
}


.ob-scope .ob-input,
.ob-scope .ob-textarea,
.ob-scope .ob-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--tx);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.ob-scope .ob-input:focus,
.ob-scope .ob-textarea:focus,
.ob-scope .ob-select:focus {
  border-color: var(--bd-focus);
}
.ob-scope .ob-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  line-height: 1.55;
}
.ob-scope .ob-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E769A' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.ob-scope .ob-search {
  height: 42px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--bd);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--tx-2);
  font-size: 14px;
}
.ob-scope .ob-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--tx);
}
.ob-scope input[type="checkbox"] {
  accent-color: var(--blue);
  width: 15px;
  height: 15px;
  cursor: pointer;
}


.ob-scope .ob-switch {
  position: relative;
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid var(--bd);
  padding: 0;
  flex-shrink: 0;
}
.ob-scope .ob-switch.on {
  background: var(--blue);
  border-color: transparent;
}
.ob-scope .ob-switch::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 1px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.2s;
}
.ob-scope .ob-switch.on::after {
  transform: translateX(16px);
}


.ob-scope .ob-skel {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.04)
  );
  background-size: 200% 100%;
  animation: ob-shimmer 1.4s infinite;
  border-radius: 8px;
}


.ob-scope .ob-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ob-scope .ob-row-flex {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ob-scope .ob-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ob-scope .ob-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ob-scope .ob-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .ob-scope .ob-grid-2,
  .ob-scope .ob-grid-3 {
    grid-template-columns: 1fr;
  }
}
.ob-scope .ob-with-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1280px) {
  .ob-scope .ob-with-rail {
    grid-template-columns: 1fr;
  }
}
.ob-scope .ob-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1100px) {
  .ob-scope .ob-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .ob-scope .ob-stats-grid {
    grid-template-columns: 1fr;
  }
}
.ob-scope .ob-apollo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 900px) {
  .ob-scope .ob-apollo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.ob-scope .ob-stack,
.ob-scope .ob-row-flex,
.ob-scope .ob-between,
.ob-scope .ob-grid-2,
.ob-scope .ob-grid-3,
.ob-scope .ob-with-rail,
.ob-scope .ob-stats-grid,
.ob-scope .ob-apollo-grid,
.ob-scope .ob-card,
.ob-scope .ob-card-2,
.ob-scope .ob-btn,
.ob-scope .ob-tab {
  min-width: 0;
}
.ob-scope .ob-grid-2 > *,
.ob-scope .ob-grid-3 > *,
.ob-scope .ob-with-rail > *,
.ob-scope .ob-stats-grid > *,
.ob-scope .ob-apollo-grid > * {
  min-width: 0;
}
.ob-scope .ob-table-shell {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--bd);
  background: rgba(9, 12, 30, 0.24);
  overflow: clip;
}
.ob-scope .ob-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.ob-scope .ob-table thead th {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--bd);
  text-align: left;
  padding: 13px 16px;
  vertical-align: middle;
}
.ob-scope .ob-table tbody td {
  padding: 16px;
  border-top: 1px solid var(--bd);
  vertical-align: top;
}
.ob-scope .ob-table tbody tr:first-child td {
  border-top: 0;
}
.ob-scope .ob-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.018);
}
.ob-scope .ob-table-cell-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tx);
}
.ob-scope .ob-table-cell-subtle {
  margin-top: 4px;
  color: var(--tx-3);
  font-size: 12px;
  line-height: 1.55;
}
.ob-scope .ob-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ob-scope .ob-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ob-scope .ob-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.ob-scope .ob-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ob-scope .ob-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ob-scope .ob-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.ob-scope .ob-fade {
  animation: ob-fade-in 0.35s ease both;
}
@media (max-width: 760px) {
  .ob-scope .ob-hide-sm {
    display: none;
  }
}

@keyframes ob-shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}
@keyframes ob-spin {
  to {
    transform: rotate(360deg);
  }
}


.ob-scope.ob-loader .ob-loader-crest {
  animation: ob-loader-glow 2.2s ease-in-out infinite;
}
.ob-scope.ob-loader .ob-card {
  opacity: 0;
  animation: ob-loader-rise 0.6s ease forwards;
  animation-delay: var(--ob-delay, 0ms);
}
@keyframes ob-loader-glow {
  0%,
  100% {
    box-shadow: 0 10px 28px -12px var(--ob-glow, rgba(155, 124, 255, 0.5)),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 16px 40px -10px var(--ob-glow, rgba(155, 124, 255, 0.5)),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
  }
}
@keyframes ob-loader-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ob-scope.ob-loader .ob-loader-crest,
  .ob-scope.ob-loader .ob-card {
    animation: none;
    opacity: 1;
  }
}
@keyframes ob-fade-in {
  from {
    transform: translateY(8px);
  }
  to {
    transform: translateY(0);
  }
}


::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(140, 160, 220, 0.12);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(140, 160, 220, 0.22);
  background-clip: padding-box;
}
* {
  scrollbar-color: rgba(140, 160, 220, 0.18) transparent;
  scrollbar-width: thin;
}


/* --- demo keyframes --- */
@keyframes dpb-blink{0%,to{opacity:1}50%{opacity:0}}@keyframes dpb-think{0%,to{opacity:.35;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}.dpb-grid{display:grid;grid-template-columns:minmax(0,40fr) minmax(0,60fr);gap:56px;align-items:stretch}.dpb-text-item{min-height:74vh;display:flex;flex-direction:column;justify-content:center}.dpb-sticky{position:sticky;top:13vh}@media(max-width:900px){.dpb-grid{grid-template-columns:1fr;gap:0}.dpb-demo-col{order:-1}.dpb-sticky{top:8px}.dpb-text-item{min-height:52vh;padding:24px 0 12px}}
