/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0d0d0e;
  --bg-card: #161618;
  --bg-input: #212124;
  --text-primary: #ececec;
  --text-secondary: #b4b4b4;
  --text-muted: #8a8a8a;
  --accent-goblin: #10b981;
  --accent-codicks: #3b82f6;
  --accent-asslas: #eab308;
  --accent-whora: #ec4899;
  --accent-chain: #a855f7;
  --accent-api: #f97316;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.16);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-section: 120px;
  --radius-card: 12px;
  --radius-pill: 9999px;
  --container: 1120px;
  --nav-h: 64px;
  --announce-h: 36px;
  --transition-smooth: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Rules --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #3d3d3d transparent;
}

html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  scroll-behavior: smooth;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: #3d3d3d transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
  background: transparent;
  border: 0;
  box-shadow: none;
}

*::-webkit-scrollbar-thumb {
  background: #3d3d3d;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: #525252;
  background-clip: padding-box;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* --- Ambient Particle Background --- */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}

/* --- Announcement Banner --- */
.announce-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 101;
  height: 36px;
  background: linear-gradient(90deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.announce-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.announce-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: #d4d4d4;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
  max-width: calc(100vw - 72px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announce-link:hover {
  color: #ffffff;
}

.announce-arrow {
  font-size: 14px;
  transition: transform 0.15s ease;
}

.announce-link:hover .announce-arrow {
  transform: translateX(2px);
}

.announce-close {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.announce-close:hover {
  color: #ffffff;
}

/* --- Header / Navbar --- */
.navbar {
  position: fixed;
  top: var(--announce-h);
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-goblin), var(--accent-codicks), var(--accent-whora));
  opacity: 0.85;
  pointer-events: none;
}

body.announce-dismissed .navbar {
  top: 0;
}

.nav-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-icon {
  font-family: var(--font-mono);
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, #555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: auto;
  margin-left: 28px;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #ececec;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 6px 0;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
}

.nav-search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}

.nav-search-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  color: #b4b4b4;
  transition: var(--transition-smooth);
}

.nav-search-trigger:hover .nav-search-icon {
  color: #ffffff;
}

.chevron {
  font-size: 10px;
  opacity: 0.6;
}

/* --- Dropdown Menu --- */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background-color: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 280px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Hover bridge to keep dropdown open during mouse travel */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-left-color: rgba(168, 85, 247, 0.5);
  padding-left: 16px;
}

.item-info {
  display: flex;
  flex-direction: column;
}

.item-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #d4d4d4;
  transition: color 0.15s ease;
}

.dropdown-item:hover .item-title {
  color: #ffffff;
}

.item-desc {
  font-size: 11px;
  color: #666;
  margin-top: 3px;
  transition: color 0.15s ease;
}

.dropdown-item:hover .item-desc {
  color: #888;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: #ffffff;
  color: #000000;
}

.btn-primary:hover {
  background-color: #e5e5e5;
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-login-link,
.nav-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
}

.nav-login-link {
  color: #fff;
  background: #2f2f2f;
  padding: 0 14px 0 16px;
  gap: 6px;
}

.nav-login-link::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
}

.nav-login-link:hover {
  background: #3a3a3a;
  color: #fff;
}

.nav-chat-btn {
  color: #000;
  background: #fff;
  padding: 0 16px;
  gap: 5px;
}

.nav-chat-btn:hover {
  background: #e8e8e8;
  color: #000;
}

.nav-chat-btn .nav-chat-arrow {
  font-size: 12px;
  line-height: 1;
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background-color: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.menu-open .mobile-menu-btn {
  gap: 0;
}

body.menu-open .mobile-menu-btn span:first-child {
  transform: rotate(45deg);
}

body.menu-open .mobile-menu-btn span:last-child {
  transform: rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

.mobile-overlay[hidden] {
  display: none !important;
}

.mobile-overlay {
  position: fixed;
  top: calc(var(--announce-h) + var(--nav-h));
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--announce-h) - var(--nav-h));
  background: #000;
  z-index: 99;
  padding: 8px 20px 24px;
  overflow-y: auto;
}

body.announce-dismissed .mobile-overlay {
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
}

.mobile-sheet {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-groups {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mobile-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-group summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  font-size: 17px;
  font-weight: 400;
  color: #fff;
  cursor: pointer;
}

.mobile-group summary::-webkit-details-marker {
  display: none;
}

.mobile-group summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #8a8a8a;
  border-bottom: 1.5px solid #8a8a8a;
  transform: rotate(45deg);
  margin-right: 4px;
}

.mobile-group[open] summary::after {
  transform: rotate(-135deg);
}

.mobile-group a {
  display: block;
  min-height: 44px;
  padding: 10px 0 10px 2px;
  color: #b4b4b4;
  text-decoration: none;
  font-size: 16px;
}

.mobile-group a:hover,
.mobile-group a:active {
  color: #fff;
}

.mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0 8px;
}

.mobile-cta .nav-login-link,
.mobile-cta .nav-chat-btn {
  width: 100%;
  height: 44px;
  display: inline-flex;
}

.mobile-cta .nav-login-link::after {
  display: none;
}

/* --- Main Views Container --- */
#app-content {
  margin-top: calc(var(--announce-h) + var(--nav-h));
  min-height: calc(100vh - var(--announce-h) - var(--nav-h) - 280px);
}

body.announce-dismissed #app-content {
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h) - 280px);
}

/* View transitions */
.fade-in-view {
  animation: viewEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes viewEnter {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Scroll-Reveal Animation System --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for child elements */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Navbar scrolled state */
.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* --- Page Layouts --- */

/* Home / Portal Page */
.hero-section {
  min-height: calc(85vh - 60px);
  padding: 60px 32px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center,
    rgba(168, 85, 247, 0.06) 0%,
    rgba(59, 130, 246, 0.03) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Route transition */
#app-content {
  transition: opacity 0.25s ease;
}
#app-content.route-exit {
  opacity: 0;
}

.hero-subtitle {
  font-family: var(--font-mono);
  color: var(--accent-chain);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.2vw, 92px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-title span {
  color: #ffffff;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.5;
  color: #b4b4b4;
  max-width: 600px;
  margin-bottom: 40px;
  letter-spacing: -0.015em;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* Intro Section Banner */
.intro-section {
  background-color: #000000;
  border-top: none;
  border-bottom: none;
  padding: 120px 32px;
  text-align: center;
  width: 100%;
  position: relative;
}

.intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
}

.intro-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-subtitle {
  font-family: var(--font-sans);
  color: var(--accent-chain);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.intro-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0;
}

.intro-desc {
  font-size: 17px;
  line-height: 1.7;
  color: #878787;
  margin-top: 28px;
  max-width: 640px;
  font-weight: 400;
}

/* Showcase Grid */
.grid-section {
  max-width: 1200px;
  margin: 0 auto 120px auto;
  padding: 0 32px;
}

.grid-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 48px;
  text-align: center;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.showcase-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, var(--card-glow, rgba(255,255,255,0.03)) 0%, transparent 60%);
  pointer-events: none;
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover, var(--border-focus));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
}

.card-icon {
  font-size: 24px;
  font-family: var(--font-mono);
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-body p {
  color: var(--text-secondary);
  font-size: 14px;
}

.card-link {
  margin-top: 32px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.showcase-card:hover .card-link {
  color: #fff;
}

/* Ecosystem ASCII Banner */
.ecosystem-section {
  background-color: #000000;
  border-top: none;
  border-bottom: none;
  padding: 100px 32px;
  text-align: center;
  position: relative;
}

.ecosystem-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.4), transparent);
}

.eco-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-api);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eco-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 16px;
}

.eco-desc {
  color: #878787;
  max-width: 580px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.arch-grid {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.arch-node {
  background: #0d0d0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s ease;
  min-width: 160px;
}

.arch-node:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.arch-node-core {
  border-color: rgba(16, 185, 129, 0.2);
}

.arch-node-infra {
  border-color: rgba(255, 255, 255, 0.06);
}

.arch-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: arch-pulse 2s ease-in-out infinite;
}

@keyframes arch-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.arch-node-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.arch-node-role {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #555;
  margin-left: auto;
}

.arch-connector-row {
  display: flex;
  gap: 80px;
  justify-content: center;
  padding: 0;
}

.arch-line {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

.arch-line-single {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

.arch-agents-row {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* --- GOBLIN GPT Chat View --- */
.app-container-full {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
  display: flex;
  gap: var(--space-8);
}

.app-container-full h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px) !important;
  font-weight: 500 !important;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.product-split {
  display: flex;
  gap: 32px;
  width: 100%;
  align-items: flex-start;
}

.chat-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-sidebar-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
}

.chat-panel {
  flex-grow: 1;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  height: 650px;
  overflow: hidden;
}

.chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.chat-msg {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  align-self: center !important;
}

.chat-msg.user {
  align-self: center !important;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-msg.goblin .msg-avatar {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--accent-goblin);
}

.chat-msg.user .msg-avatar {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.msg-content {
  padding: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #ececec;
  flex-grow: 1;
}

.chat-msg.goblin .msg-content {
  background-color: transparent !important;
  border: none !important;
}

.chat-msg.user .msg-content {
  background-color: transparent !important;
  color: #ffffff !important;
}

.chat-input-area {
  padding: 16px 20px 24px 20px;
  border-top: none;
  background-color: transparent;
  display: flex;
  justify-content: center;
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 720px;
  background-color: #212124;
  border-radius: 26px;
  padding: 6px 12px 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease;
}

.chat-form:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
}

.chat-input {
  flex-grow: 1;
  background-color: transparent !important;
  border: none !important;
  padding: 8px 0;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
}

.chat-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.chat-send-btn:hover {
  background-color: #e5e5e5;
}

.chat-send-btn:disabled {
  background-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}

.chat-send-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- CODICKS IDE Visualizer --- */
.ide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 600px;
  background-color: #0b0b0d;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.ide-sidebar {
  background-color: #0f0f12;
  border-right: 1px solid var(--border-light);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ide-title {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.file-tree {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-secondary);
}

.file-item.active {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.ide-main {
  display: grid;
  grid-template-rows: 1fr 180px;
}

.code-editor {
  background-color: #08080a;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #d4d4d8;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.5;
}

/* Syntax Highlighting */
.code-keyword { color: #f472b6; font-weight: 500; }
.code-string { color: #34d399; }
.code-comment { color: #71717a; font-style: italic; }
.code-number { color: #fb923c; }
.code-builtin { color: #60a5fa; }
.code-diff-del { background-color: rgba(239, 68, 68, 0.15); color: #f87171; display: block; padding-left: 4px; border-left: 2px solid #ef4444; }
.code-diff-add { background-color: rgba(16, 185, 129, 0.15); color: #34d399; display: block; padding-left: 4px; border-left: 2px solid #10b981; }

/* VS Code Tab styles */
.ide-tabs {
  display: flex;
  background-color: #0c0c0e;
  border-bottom: 1px solid var(--border-light);
  height: 35px;
}
.ide-tab {
  padding: 8px 16px;
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  border-right: 1px solid var(--border-light);
  cursor: pointer;
  background-color: #0e0e11;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}
.ide-tab.active {
  background-color: #08080a;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-codicks);
}

.ide-terminal {
  background-color: #030304;
  border-top: 1px solid var(--border-light);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #34d399;
  overflow-y: auto;
}

.ide-btn-run {
  background-color: var(--accent-codicks);
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

/* --- ASSLAS Browser Agent Simulator --- */
.browser-simulator {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}

.browser-bar {
  background-color: #121215;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.15);
}

.browser-address {
  flex-grow: 1;
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.browser-view {
  height: 400px;
  background-color: #fff;
  color: #333;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.agent-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(1px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.agent-log-card {
  background-color: #1c1917;
  color: #fff;
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cursor-mock {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--accent-asslas);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-asslas);
  transition: all 0.8s ease-in-out;
  pointer-events: none;
  z-index: 10;
}

/* --- WHORA Neural Video Generator --- */
.whora-simulator {
  display: grid;
  grid-template-columns: 320px 1fr;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
}

.whora-controls {
  padding: 24px;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.whora-display {
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 480px;
}

.canvas-container {
  width: 100%;
  height: 100%;
}

.whora-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- LEGS Developer Playground --- */
.api-playground {
  display: grid;
  grid-template-columns: 280px 1fr;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
}

.playground-nav {
  background-color: rgba(0, 0, 0, 0.15);
  border-right: 1px solid var(--border-light);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playground-nav-btn {
  padding: 10px 14px;
  border-radius: 8px;
  background: none;
  border: none;
  color: var(--text-secondary);
  text-align: left;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.playground-nav-btn.active {
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--accent-api);
}

.playground-main {
  padding: 32px;
}

.key-card {
  background-color: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  padding: 20px;
  border-radius: 12px;
  margin-top: 16px;
}

.key-display {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.key-input {
  flex-grow: 1;
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
}

/* Code Snippet Box */
.snippet-box {
  background-color: #0b0b0d;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #e4e4e7;
  overflow-x: auto;
  position: relative;
  margin-top: 16px;
}

/* --- OpenAI-Style Expanded Site Pages --- */
.page-shell {
  width: min(var(--container), calc(100vw - 48px));
  margin: 0 auto;
  padding: 24px 0 var(--space-section);
}

.page-hero {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 32px 0 56px;
}

.page-hero.small {
  min-height: 320px;
  padding-bottom: 32px;
}

.page-hero-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 52px;
  align-items: center;
  text-align: left;
}

.page-eyebrow,
.section-kicker,
.article-meta {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  max-width: 880px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.page-copy {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.page-actions.centered {
  justify-content: center;
}

.content-band,
.two-up-section {
  margin-top: 36px;
  padding: 48px 0;
  border-top: 1px solid var(--border-light);
}

.content-band.compact {
  padding: 24px 0;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title {
  max-width: 760px;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.text-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.text-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.replica-art {
  min-height: 340px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #0b0b0d;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.replica-art::before,
.replica-art::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.42;
  transform: rotate(12deg);
}

.replica-art::after {
  inset: 42% 10% 12% 44%;
  opacity: 0.3;
}

.replica-art-goblin::before { background: var(--accent-goblin); }
.replica-art-goblin::after { background: var(--accent-api); }
.replica-art-codicks::before { background: var(--accent-codicks); }
.replica-art-codicks::after { background: var(--accent-goblin); }
.replica-art-chain::before { background: var(--accent-chain); }
.replica-art-chain::after { background: var(--accent-codicks); }
.replica-art-safety::before { background: var(--accent-asslas); }
.replica-art-safety::after { background: var(--accent-whora); }
.replica-art-business::before { background: var(--accent-api); }
.replica-art-business::after { background: var(--accent-chain); }
.replica-art-api::before { background: var(--accent-codicks); }
.replica-art-api::after { background: var(--accent-asslas); }

.replica-art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 72%);
  opacity: 0.8;
  animation: artGridDrift 16s linear infinite;
}

.replica-art-core {
  position: absolute;
  inset: 34% 28%;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02)),
    rgba(0,0,0,0.2);
  box-shadow: 0 20px 90px rgba(0,0,0,0.45);
  animation: artCoreFloat 5.5s ease-in-out infinite;
}

.replica-art-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.article-grid,
.product-grid,
.enterprise-grid,
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.article-grid.three {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 0;
}

.article-card,
.product-tile,
.enterprise-card,
.usecase-grid > div,
.platform-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.article-card,
.product-tile,
.enterprise-card,
.compact-article-card {
  position: relative;
}

.article-card::after,
.product-tile::after,
.enterprise-card::after,
.compact-article-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.08) 45%, transparent 58%);
  transform: translateX(-120%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover::after,
.product-tile:hover::after,
.enterprise-card:hover::after,
.compact-article-card:hover::after {
  transform: translateX(120%);
}

.article-card,
.product-tile,
.job-row {
  color: inherit;
  text-decoration: none;
}

.article-card,
.enterprise-card,
.usecase-grid > div {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.article-card:hover,
.product-tile:hover,
.enterprise-card:hover,
.usecase-grid > div:hover,
.job-row:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.2);
}

.article-card .replica-art,
.product-tile .replica-art {
  min-height: 220px;
  border: 0;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
}

.has-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform: scale(1.01);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-cover-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.12) 42%, rgba(0, 0, 0, 0.62) 78%, rgba(0, 0, 0, 0.88) 100%);
}

.has-cover:hover .card-cover {
  transform: scale(1.06);
}

.has-cover::after {
  z-index: 3;
}

.article-card.has-cover,
.product-tile.has-cover,
.compact-article-card.has-cover,
.news-card.has-cover {
  background: #070708;
}

.article-card.has-cover {
  min-height: 340px;
}

.product-tile.has-cover {
  display: flex;
  grid-template-columns: none;
  min-height: 300px;
}

.compact-article-card.has-cover {
  display: flex;
  grid-template-columns: none;
  min-height: 210px;
  padding: 0;
}

.news-card.has-cover {
  min-height: 280px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
}

.article-card.has-cover .article-card-body,
.product-tile.has-cover .product-tile-copy,
.compact-article-card.has-cover .compact-card-copy,
.news-card.has-cover .news-card-body {
  position: relative;
  z-index: 2;
  padding: 20px 22px 22px;
  background: transparent;
}

.has-cover .article-meta,
.has-cover .news-tag {
  color: rgba(255, 255, 255, 0.72);
}

.article-card.has-cover h3,
.product-tile.has-cover h3,
.compact-article-card.has-cover h3,
.news-card.has-cover .news-title {
  color: #ffffff;
}

.article-card.has-cover p,
.product-tile.has-cover p {
  color: rgba(244, 244, 245, 0.78);
}

.product-tile.has-cover span {
  color: #ffffff;
}

.article-card-body,
.product-tile-copy,
.enterprise-card,
.usecase-grid > div,
.platform-panel {
  padding: 22px;
}

.article-card h3,
.product-tile h3,
.enterprise-card h3,
.usecase-grid h3,
.platform-panel h2,
.solution-row h3,
.release-row h3,
.job-row h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 8px 0;
}

.article-card p,
.product-tile p,
.enterprise-card p,
.usecase-grid p,
.platform-panel p,
.solution-row p,
.release-row p,
.job-row p,
.two-up-copy p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
}

.product-grid,
.enterprise-grid.pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-tile {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 220px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.product-tile .replica-art {
  min-height: 100%;
  border-bottom: 0;
  border-right: 1px solid var(--border-light);
}

.product-tile span {
  display: inline-block;
  margin-top: 18px;
  color: var(--text-primary);
  font-size: 14px;
}

.two-up-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.two-up-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  padding-right: 24px;
}

.two-up-copy h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.product-comparison {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.product-comparison div,
.model-row,
.release-row,
.solution-row,
.job-row {
  display: grid;
  gap: 18px;
  border-bottom: 1px solid var(--border-light);
  padding: 18px 20px;
}

.product-comparison div {
  grid-template-columns: 120px 1fr;
}

.product-comparison div:last-child,
.model-row:last-child,
.release-row:last-child,
.solution-row:last-child,
.job-row:last-child {
  border-bottom: 0;
}

.product-comparison span,
.model-row span:first-child,
.release-row > span,
.job-row > span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.check-list {
  margin-top: 18px;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
}

.metric-strip div {
  padding: 22px;
  border-right: 1px solid var(--border-light);
  background: rgba(255,255,255,0.025);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--text-primary);
}

.metric-strip span {
  color: var(--text-muted);
  font-size: 13px;
}

.model-table,
.release-timeline,
.solution-list,
.job-list {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.model-row {
  grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
  align-items: center;
}

.model-head {
  background: rgba(255,255,255,0.035);
}

.model-head span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.enterprise-grid,
.usecase-grid {
  margin-top: 26px;
}

.enterprise-card,
.usecase-grid > div {
  min-height: 190px;
}

.news-band {
  padding-top: 20px;
}

.filter-bar,
.job-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.news-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.news-controls .filter-bar {
  margin-bottom: 0;
}

.news-control-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.news-sort-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.news-sort-label select {
  min-height: 36px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  padding: 0 34px 0 12px;
  font: inherit;
  outline: none;
}

.filter-chip {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  padding: 8px 16px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-chip:hover,
.filter-chip.active {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
}

.news-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.news-layout.hide-media .article-card .replica-art,
.news-layout.hide-media .article-card .card-cover,
.news-layout.hide-media .article-card .card-cover-scrim {
  display: none;
}

.news-layout.hide-media .article-card.has-cover,
.news-layout.hide-media .article-card.has-cover:first-child {
  min-height: 0;
  background: var(--bg-secondary);
}

.news-layout.hide-media .article-card:first-child {
  grid-column: span 1;
  grid-row: span 1;
}

.load-more-btn {
  margin: 28px auto 0;
  min-height: 42px;
  width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.load-more-btn:hover {
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

@keyframes artGridDrift {
  from { background-position: 0 0; }
  to { background-position: 64px 32px; }
}

@keyframes artCoreFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.news-layout .article-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.news-layout .article-card.has-cover:first-child {
  min-height: 560px;
}

.solution-row {
  grid-template-columns: minmax(180px, 0.4fr) 1fr auto;
  align-items: center;
}

.solution-row a {
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
}

.solution-row a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.release-row {
  grid-template-columns: 150px 1fr;
}

.job-row {
  grid-template-columns: 140px 1fr;
  align-items: center;
  background: var(--bg-secondary);
}

.contact-form {
  width: min(460px, 100%);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 42px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 10px 12px;
  font: inherit;
  outline: none;
}

.contact-form textarea {
  min-height: 118px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--border-focus);
}

.contact-status {
  color: var(--text-muted);
  font-size: 12px;
}

.contact-status.submitted {
  color: var(--accent-goblin);
}

/* --- Global Footer Styles --- */
.footer {
  background-color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px 32px 0 32px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 24px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col a {
  color: #878787;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 32px;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo-link {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.footer-logo-link:hover {
  opacity: 0.7;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-copyright {
  font-size: 13px;
  color: #555;
  font-weight: 400;
}

.footer-socials {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-socials a {
  color: #878787;
  text-decoration: none;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
}

.footer-socials a:hover {
  color: #ffffff;
}

@media (max-width: 860px) {
  .nav-container {
    padding: 0 16px;
  }

  .nav-menu,
  .nav-actions .nav-login-link,
  .nav-actions .nav-chat-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-actions {
    gap: 4px;
  }

  .oa-hero {
    min-height: calc(70vh - 100px);
    padding: 48px 16px 32px;
  }

  .home-search-container {
    width: calc(100vw - 32px);
    min-height: 56px;
    border-radius: 24px;
    padding: 6px 6px 6px 16px;
  }

  .oa-feature,
  .oa-list-section,
  .oa-start {
    width: calc(100% - 32px);
  }

  .oa-feature {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
  }

  .oa-feature-side .oa-feature-media {
    aspect-ratio: 16 / 10;
  }

  .oa-list-item {
    grid-template-columns: 88px 1fr;
    gap: 12px;
  }

  .gpt-top-open,
  .gpt-top-new {
    display: inline-flex;
  }
}

/* --- Responsive Adaptations --- */
@media(max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .app-container-full {
    flex-direction: column;
  }
  .chat-sidebar {
    width: 100%;
  }
  .whora-simulator, .api-playground {
    grid-template-columns: 1fr;
  }
  .whora-controls {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .playground-nav {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    flex-direction: row;
    overflow-x: auto;
  }
  .page-hero-wide,
  .two-up-section {
    grid-template-columns: 1fr;
  }
  .page-hero-wide {
    gap: 28px;
  }
  .article-grid,
  .enterprise-grid,
  .usecase-grid,
  .news-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .news-controls {
    flex-direction: column;
  }
  .news-control-actions {
    justify-content: flex-start;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .news-layout .article-card:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-strip div:nth-child(2) {
    border-right: 0;
  }
  .model-row {
    grid-template-columns: 1.2fr 1fr;
  }
  .model-row span:nth-child(n+3) {
    display: none;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
  }
  .footer-bottom-container {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}

@media(max-width: 768px) {
  main,
  #app-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .hero-title {
    font-size: 32px;
    line-height: 1.2;
  }
  .page-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px 16px 80px;
  }
  .page-hero-wide > *,
  .two-up-section > * {
    min-width: 0;
  }
  .page-hero {
    min-height: auto;
    padding: 36px 0;
  }
  .page-title {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.08;
    overflow-wrap: break-word;
  }
  .page-copy {
    max-width: 100%;
    font-size: 15px;
    overflow-wrap: anywhere;
  }
  .page-actions,
  .section-heading-row {
    align-items: stretch;
    flex-direction: column;
  }
  .page-actions .btn,
  .section-heading-row .text-link {
    width: 100%;
    justify-content: center;
  }
  .article-grid,
  .article-grid.three,
  .enterprise-grid,
  .usecase-grid,
  .news-layout {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .featured-rail-section,
  .home-index-section,
  .get-started-band {
    width: 100%;
  }
  .home-index-grid {
    grid-template-columns: 1fr;
  }
  .home-index-header,
  .get-started-band {
    align-items: stretch;
    flex-direction: column;
  }
  .compact-article-card:not(.has-cover) {
    grid-template-columns: 96px 1fr;
  }
  .compact-article-card.has-cover {
    min-height: 200px;
  }
  .product-tile {
    grid-template-columns: 1fr;
  }
  .product-tile.has-cover {
    min-height: 260px;
  }
  .article-card.has-cover {
    min-height: 280px;
  }
  .news-layout .article-card.has-cover:first-child {
    min-height: 280px;
  }
  .news-card.has-cover {
    min-height: 240px;
  }
  .product-tile .replica-art {
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--border-light);
  }
  .replica-art {
    min-height: 240px;
  }
  .metric-strip {
    grid-template-columns: 1fr;
  }
  .metric-strip div,
  .metric-strip div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--border-light);
  }
  .metric-strip div:last-child {
    border-bottom: 0;
  }
  .solution-row,
  .release-row,
  .job-row {
    grid-template-columns: 1fr;
  }
  .contact-form {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

/* --- Image Icon Hue Filters --- */
.item-icon-img {
  transition: var(--transition-smooth);
}
.codicks-icon-filter { filter: hue-rotate(140deg); }
.asslas-icon-filter { filter: hue-rotate(240deg) saturate(1.5); }
.whora-icon-filter { filter: hue-rotate(300deg); }
.api-icon-filter { filter: hue-rotate(30deg) saturate(1.2); }
.chain-icon-filter { filter: hue-rotate(100deg); }

/* --- OpenAI 2026 homepage replica --- */
.oa-hero {
  min-height: calc(72vh - 90px);
  padding: 88px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-search-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 28px;
}

.home-search-container {
  width: min(768px, calc(100vw - 48px));
  min-height: 72px;
  background: #303030;
  border: 0;
  border-radius: 28px;
  padding: 8px 8px 8px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.home-search-container:focus-within {
  box-shadow: none;
}

.home-search-textarea {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  height: 28px;
  resize: none;
  outline: none;
}

.home-search-textarea::placeholder {
  color: #8a8a8a;
}

.home-search-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #676767;
  color: #111;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.home-search-send-btn:hover {
  background: #fff;
}

.home-search-send-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.home-suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 820px;
}

.home-suggestion-pill {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: #ececec;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 8px 16px;
  text-decoration: none;
}

.home-suggestion-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}

.oa-feature {
  width: min(1120px, calc(100% - 48px));
  margin: 24px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 28px;
  align-items: start;
}

.oa-feature-main,
.oa-feature-side {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.oa-feature-media {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
}

.oa-feature-main .oa-feature-media {
  aspect-ratio: 16 / 9;
}

.oa-feature-side .oa-feature-media {
  aspect-ratio: 1;
}

.oa-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.oa-feature-main h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 8px 0 0;
}

.oa-feature-side h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

.oa-feature p {
  color: #8a8a8a;
  font-size: 14px;
}

.oa-list-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 88px;
}

.oa-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.oa-list-head h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}

.oa-list-head a {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.oa-list-head a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.oa-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}

.oa-list-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.oa-list-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: #1a1a1a;
}

.oa-list-item h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 8px;
}

.oa-list-item p {
  color: #8a8a8a;
  font-size: 14px;
  margin: 0;
}

.oa-start {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 120px;
  padding-top: 24px;
}

.oa-start h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.oa-start-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .oa-feature,
  .oa-list-grid {
    grid-template-columns: 1fr;
  }
  .oa-feature-side .oa-feature-media {
    aspect-ratio: 16 / 10;
  }
}

/* --- Official inner-page + simulator surfaces --- */
.research-stack,
.pricing-grid,
.board-list,
.safety-grid,
.chain-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.research-paper,
.pricing-card,
.safety-card,
.chain-panel,
.pol-simulator,
.manifest-block,
.scorecard-wrap,
.benchmark-card,
.redteam-attack-card,
.whora-gallery-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
}

.research-paper,
.safety-card,
.chain-panel,
.pol-simulator,
.benchmark-card {
  padding: var(--space-6);
}

.research-paper-tag,
.chain-kicker,
.store-card-desc,
.whora-card-meta,
.redteam-attack-prompt {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.research-paper-tag {
  color: var(--accent-goblin);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.research-paper h3,
.pricing-card h3,
.safety-card h3,
.benchmark-title,
.whora-gallery-title,
.redteam-container h3,
.pol-simulator h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 8px;
}

.research-paper p,
.pricing-card p,
.safety-card p,
.manifest-block p,
.chain-panel,
.pol-simulator p,
.benchmark-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  text-align: left;
}

.pricing-card {
  min-height: 340px;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pricing-card .price {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 8px 0 16px;
}

.pricing-card .price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-codicks);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

.pricing-note {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: var(--space-8);
}

.board-list {
  margin: 0 0 var(--space-8);
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.manifest-block {
  border: 0;
  border-left: 4px solid #fff;
  border-radius: 0;
  padding: 4px 0 4px 20px;
  background: transparent;
}

.manifest-block h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
}

.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.safety-card.wide {
  grid-column: 1 / -1;
}

.scorecard-wrap {
  overflow: hidden;
  margin-top: var(--space-8);
}

.scorecard-table {
  width: 100%;
  border-collapse: collapse;
}

.scorecard-table th,
.scorecard-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.scorecard-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.scorecard-table td {
  font-size: 14px;
}

.scorecard-table tr:last-child td {
  border-bottom: 0;
}

.level-critical { color: var(--accent-whora); }
.level-medium { color: var(--accent-asslas); }
.level-low { color: var(--accent-goblin); }

.chain-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: 20px 0;
}

.chain-stat {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 16px;
}

.chain-stat span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.chain-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.chain-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.chain-actions .btn {
  flex: 1;
}

.chain-log {
  height: 120px;
  overflow-y: auto;
  background: #000;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #a8a29e;
}

.benchmark-container,
.redteam-container {
  margin-top: var(--space-12);
}

.benchmark-header {
  margin-bottom: var(--space-6);
}

.benchmark-grid {
  display: grid;
  gap: var(--space-4);
}

.benchmark-metric-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 500;
}

.benchmark-metric-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.benchmark-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr 56px;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.benchmark-model-name,
.benchmark-value {
  font-size: 13px;
  color: var(--text-secondary);
}

.benchmark-model-name.highlight,
.benchmark-value.highlight {
  color: #fff;
  font-weight: 500;
}

.benchmark-bar-wrapper {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.benchmark-bar-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 4px;
}

.benchmark-bar-fill.goblin {
  background: var(--accent-goblin);
}

.redteam-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.redteam-attacks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.redteam-attack-card {
  padding: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.redteam-attack-card:hover,
.redteam-attack-card.active {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.redteam-attack-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}

.redteam-console-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.redteam-console {
  min-height: 180px;
  background: #000;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #a8a29e;
}

.redteam-label-alert { color: var(--accent-whora); }
.redteam-label-success { color: var(--accent-goblin); }

.store-container {
  height: 100%;
  background: #f5f5f5;
  color: #111;
  overflow: auto;
}

.store-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.store-header-title {
  font-size: 16px;
  font-weight: 600;
}

.store-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}

.store-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 132px;
}

.store-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.store-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.store-card-price {
  font-size: 14px;
  font-weight: 600;
}

.store-buy-btn {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: #111;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.whora-gallery-section {
  width: min(var(--container), calc(100vw - 48px));
  margin: 48px auto var(--space-section);
}

.whora-gallery-title {
  margin-bottom: 20px;
}

.whora-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.whora-gallery-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.whora-card-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-whora);
  margin-bottom: 8px;
}

.whora-card-prompt {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.whora-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.receipt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}

.receipt-modal-overlay.active {
  display: flex;
}

.receipt-modal {
  width: min(420px, 100%);
  background: #111;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  position: relative;
}

.receipt-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.receipt-header {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
}

.receipt-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.receipt-divider {
  height: 1px;
  background: var(--border-light);
  margin: 12px 0;
}

.receipt-hash {
  font-size: 12px;
  word-break: break-all;
}

.lege-display {
  height: 400px;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #0b0b0d;
}

.lege-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.lege-progress-bar {
  height: 4px;
  margin-top: 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.lege-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent-goblin);
  border-radius: inherit;
}

.api-playground {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.oa-list-item,
.oa-feature-main,
.oa-feature-side {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.oa-list-item:hover,
.oa-feature-main:hover,
.oa-feature-side:hover {
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .pricing-grid,
  .safety-grid,
  .redteam-grid,
  .whora-gallery-grid,
  .chain-stats,
  .store-grid {
    grid-template-columns: 1fr;
  }

  .safety-card.wide {
    grid-column: auto;
  }
}

/* --- Goblin GPT · official ChatGPT 2026 shell --- */
body.gpt-mode {
  overflow: hidden;
  background: #000;
}

body.gpt-mode footer,
body.gpt-mode #ambient-canvas,
body.gpt-mode .announce-bar,
body.gpt-mode .navbar,
body.gpt-mode .mobile-overlay,
body.gpt-mode .mobile-menu-btn,
body.gpt-mode .dropdown-menu {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

body.gpt-mode #app-content,
body.announce-dismissed.gpt-mode #app-content {
  margin-top: 0 !important;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 20;
  isolation: isolate;
  background: #000;
}

.gpt-app {
  --gpt-side: #171717;
  --gpt-hover: rgba(255, 255, 255, 0.08);
  --gpt-line: rgba(255, 255, 255, 0.08);
  --gpt-bar: #303030;
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  width: 100%;
  height: 100%;
  background: #000;
  color: #ececec;
  overflow: hidden;
  border: 0;
  outline: none;
  box-shadow: none;
}

.gpt-app button,
.gpt-app input,
.gpt-app textarea,
.gpt-app select {
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  box-shadow: none;
}

.gpt-sidebar {
  width: 260px;
  flex-shrink: 0;
  height: 100%;
  background: var(--gpt-side);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 6;
  border: 0;
  box-shadow: none;
}

.gpt-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 8px;
  flex-shrink: 0;
}

.gpt-wordmark {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
  cursor: pointer;
  padding: 4px 6px;
  text-decoration: none;
}

.gpt-wordmark:hover {
  color: #fff;
  opacity: 0.72;
}

.gpt-side-tools {
  display: flex;
  gap: 2px;
}

.gpt-icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #b4b4b4;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gpt-icon-btn:hover {
  background: var(--gpt-hover);
  color: #fff;
}

.gpt-nav-btn,
.gpt-side-item,
.gpt-recent {
  width: calc(100% - 16px);
  margin: 0 8px;
  border: 0;
  background: transparent;
  color: #ececec;
  font: inherit;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

.gpt-nav-btn:hover,
.gpt-side-item:hover,
.gpt-recent:hover,
.gpt-nav-btn.is-on,
.gpt-recent.active {
  background: var(--gpt-hover);
}

.gpt-nav-btn em {
  margin-left: auto;
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #8f8f8f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 1px 5px;
}

.gpt-side-nav {
  flex-shrink: 0;
  padding-bottom: 8px;
}

.gpt-side-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  padding-bottom: 12px;
  scrollbar-gutter: auto;
}

.gpt-side-h {
  font-size: 12px;
  color: #8f8f8f;
  padding: 14px 18px 6px;
}

.gpt-recent,
.gpt-side-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gpt-sidebar-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--gpt-line);
}

.gpt-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10b981;
  color: #04140e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.gpt-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gpt-user-meta strong {
  font-size: 13px;
  font-weight: 600;
}

.gpt-user-meta span {
  font-size: 11px;
  color: #8f8f8f;
}

.gpt-scrim {
  display: none;
}

.gpt-stage {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  background: #000;
  border: 0;
  box-shadow: none;
}

.gpt-topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  z-index: 2;
  padding: 0 8px;
}

.gpt-top-open,
.gpt-top-new {
  display: none;
  position: absolute;
  top: 10px;
}

.gpt-top-open {
  left: 8px;
}

.gpt-top-new {
  right: 8px;
}

.gpt-island {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: #212121;
  box-shadow: none;
}

.gpt-island-btn {
  height: 30px;
  min-width: 72px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: #8a8a8a;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.gpt-island-btn.is-active {
  background: #2c2c2e;
  color: #fff;
}

.gpt-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.gpt-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0 16px;
}

.gpt-thread[data-empty="true"] {
  display: none;
}

.gpt-empty {
  display: none;
  justify-content: center;
  padding: 0 16px 18px;
}

.gpt-empty h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
}

.gpt-stage.is-empty .gpt-main {
  justify-content: center;
}

.gpt-stage.is-empty .gpt-empty {
  display: flex;
}

.gpt-stage.is-empty .gpt-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.gpt-dock {
  flex-shrink: 0;
  width: min(768px, calc(100% - 32px));
  margin: 0 auto 20px;
  position: relative;
}

.gpt-stage.is-empty .gpt-dock {
  margin-bottom: 0;
}

.gpt-composer {
  background: var(--gpt-bar);
  border-radius: 28px;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 6px;
}

.gpt-textarea {
  flex: 1;
  min-width: 0;
  width: auto;
  border: 0;
  background: transparent;
  color: #ececec;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  outline: none;
  max-height: 168px;
  min-height: 24px;
  padding: 8px 4px;
  order: 2;
}

.gpt-composer-bar {
  display: contents;
}

.gpt-plus {
  order: 1;
}

.gpt-plus,
.gpt-voice,
.gpt-send {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  background: transparent;
  color: #d0d0d0;
}

.gpt-plus:hover,
.gpt-voice:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.gpt-send {
  background: #fff;
  color: #000;
}

.gpt-send:disabled {
  background: #676767;
  color: #2f2f2f;
  cursor: default;
}

.gpt-work-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.gpt-work-tools button {
  border: 0;
  background: transparent;
  color: #cfcfcf;
  font: inherit;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  cursor: pointer;
}

.gpt-work-tools button:hover,
.gpt-work-tools button.is-on {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.gpt-composer-right {
  order: 3;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gpt-model-chip {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #ececec;
  font: inherit;
  font-size: 13px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  cursor: pointer;
}

.gpt-model-chip::after {
  content: "▾";
  margin-left: 6px;
  font-size: 9px;
  opacity: 0.7;
}

.gpt-model-chip:hover {
  background: rgba(255, 255, 255, 0.1);
}

.gpt-profile-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.gpt-work-suggest {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
}

.gpt-work-suggest button {
  border: 0;
  background: transparent;
  color: #cfcfcf;
  font: inherit;
  font-size: 14px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gpt-suggest-ico {
  width: 18px;
  flex-shrink: 0;
  text-align: center;
  opacity: 0.85;
}

.gpt-work-suggest button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.gpt-popovers {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.gpt-menu,
.gpt-effort,
.cdx-workspace {
  pointer-events: auto;
}

.gpt-menu {
  width: min(280px, 100%);
  background: #212121;
  border: 1px solid var(--gpt-line);
  border-radius: 16px;
  padding: 6px;
}

.gpt-menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #ececec;
  font: inherit;
  font-size: 14px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gpt-menu-item svg {
  flex-shrink: 0;
  color: #cfcfcf;
}

.gpt-menu-item:hover {
  background: var(--gpt-hover);
}

.gpt-effort {
  margin-left: auto;
  width: 176px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 10px 2px 6px;
}

.gpt-effort b {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 28px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #cfcfcf;
  letter-spacing: -0.02em;
  transform-origin: center bottom;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease;
}

.gpt-effort.is-scrubbing b {
  color: #fff;
  transform: scale(1.7);
}

.gpt-effort-rail {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
}

.gpt-effort-glass {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 10px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  pointer-events: none;
}

.gpt-effort input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.gpt-effort input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border: 0;
}

.gpt-effort input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.75), 0 2px 8px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
}

.gpt-effort input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
  border: 0;
}

.gpt-effort input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.75), 0 2px 8px rgba(0, 0, 0, 0.28);
}

.cdx-workspace {
  width: 100%;
  height: min(32vh, 280px);
  background: #141414;
  border: 1px solid var(--gpt-line);
  border-radius: 18px;
  overflow: hidden;
}

.cdx-sheet,
.cdx-sheet-bar {
  display: flex;
}

.cdx-sheet {
  flex-direction: column;
  height: 100%;
}

.cdx-sheet-bar {
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}

.cdx-chips {
  display: flex;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
}

.cdx-chip,
.cdx-term-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #cfcfcf;
  border-radius: 10px;
  height: 32px;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.cdx-chip.is-active,
.cdx-term-btn.is-open {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cdx-code,
.cdx-term {
  margin: 0;
  padding: 8px 14px 12px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
}

.cdx-code {
  flex: 1;
  color: #d4d4d8;
}

.cdx-term {
  height: 72px;
  border-top: 1px solid var(--gpt-line);
  color: #86efac;
}

.gpt-msg {
  width: min(768px, calc(100% - 32px));
  margin: 0 auto 18px;
}

.gpt-msg-user {
  display: flex;
  justify-content: flex-end;
}

.gpt-msg-stack {
  max-width: min(560px, 86%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.gpt-msg-user .gpt-msg-actions,
.gpt-msg-assistant .gpt-msg-actions {
  opacity: 0;
}

.gpt-msg-user:hover .gpt-msg-actions,
.gpt-msg-user:focus-within .gpt-msg-actions,
.gpt-msg-assistant:hover .gpt-msg-actions,
.gpt-msg-assistant:focus-within .gpt-msg-actions {
  opacity: 1;
}

.gpt-bubble {
  max-width: min(560px, 86%);
  background: #323232;
  color: #ececec;
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.gpt-msg-body {
  font-size: 16px;
  line-height: 1.7;
  color: #ececec;
  white-space: pre-wrap;
}

.gpt-msg-actions {
  display: flex;
  gap: 2px;
  margin-top: 8px;
  transition: opacity 0.16s ease;
}

.gpt-act {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #8f8f8f;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gpt-act:hover,
.gpt-act.is-on,
.gpt-act.is-speaking {
  background: var(--gpt-hover);
  color: #fff;
}

.gpt-toast {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  z-index: 12;
  background: #2f2f2f;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  pointer-events: none;
}

.gpt-toast[hidden] {
  display: none !important;
}

.gpt-app.is-collapsed .gpt-sidebar {
  width: 52px;
}

.gpt-app.is-collapsed .gpt-side-top {
  justify-content: center;
  padding: 12px 0 8px;
}

.gpt-app.is-collapsed .gpt-side-tools {
  width: 100%;
  justify-content: center;
}

.gpt-app.is-collapsed .gpt-wordmark,
.gpt-app.is-collapsed .gpt-nav-btn span,
.gpt-app.is-collapsed .gpt-nav-btn em,
.gpt-app.is-collapsed .gpt-side-h,
.gpt-app.is-collapsed .gpt-side-item span,
.gpt-app.is-collapsed .gpt-recent,
.gpt-app.is-collapsed .gpt-user-meta,
.gpt-app.is-collapsed #gpt-search-btn,
.gpt-app.is-collapsed #gpt-sidebar-close {
  display: none;
}

#gpt-sidebar-open {
  display: none;
}

.gpt-app.is-collapsed #gpt-sidebar-open {
  display: inline-flex;
}

.gpt-app.is-collapsed .gpt-nav-btn,
.gpt-app.is-collapsed .gpt-side-item {
  width: 36px;
  margin: 0 auto;
  padding: 0;
  justify-content: center;
}

.gpt-app.is-collapsed .gpt-side-scroll {
  overflow: hidden;
}

.gpt-app.is-collapsed .gpt-sidebar-foot {
  justify-content: center;
  padding: 12px 0;
}

.gpt-voice-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 72px 24px 112px;
}

.gpt-stage.is-voice .gpt-topbar,
.gpt-stage.is-voice .gpt-main {
  visibility: hidden;
  pointer-events: none;
}

.gpt-voice-gear {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #cfcfcf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gpt-voice-gear:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

#gpt-voice-orb {
  width: min(380px, 72vw);
  height: min(380px, 72vw);
  flex-shrink: 0;
  filter: contrast(1.08) saturate(1.15);
}

.gpt-voice-log {
  width: min(420px, calc(100% - 48px));
  min-height: 56px;
}

.gpt-voice-turn.is-user {
  display: flex;
  justify-content: flex-end;
}

.gpt-voice-turn.is-bot {
  display: flex;
  justify-content: flex-start;
}

.gpt-voice-bubble {
  max-width: 16em;
  background: #323232;
  color: #ececec;
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 16px;
  line-height: 1.45;
}

.gpt-msg-system {
  width: min(768px, calc(100% - 32px));
  margin: 8px auto 18px;
  text-align: center;
  color: #8a8a8a;
  font-size: 13px;
}

.gpt-voice-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.gpt-voice-ctrl {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #2f2f2f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gpt-voice-ctrl:hover {
  background: #3a3a3a;
}

.gpt-voice-ctrl.is-on {
  background: #5a1f1f;
}

.gpt-voice-ctrl.is-end {
  background: #fff;
  color: #111;
}

.gpt-voice-ctrl.is-end:hover {
  background: #ececec;
}

.gpt-menu[hidden],
.gpt-effort[hidden],
.cdx-workspace[hidden],
.cdx-term[hidden],
.gpt-work-tools[hidden],
.gpt-work-suggest[hidden],
.gpt-scrim[hidden],
.gpt-voice-layer[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .gpt-sidebar {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(320px, 86vw);
    z-index: 6;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  .gpt-app:not(.is-collapsed) .gpt-sidebar {
    transform: translateX(0);
  }

  .gpt-app.is-collapsed .gpt-wordmark,
  .gpt-app.is-collapsed .gpt-nav-btn span,
  .gpt-app.is-collapsed .gpt-nav-btn em,
  .gpt-app.is-collapsed .gpt-side-h,
  .gpt-app.is-collapsed .gpt-side-item span,
  .gpt-app.is-collapsed .gpt-recent,
  .gpt-app.is-collapsed .gpt-user-meta,
  .gpt-app.is-collapsed #gpt-search-btn,
  .gpt-app.is-collapsed #gpt-sidebar-close {
    display: revert;
  }

  .gpt-app.is-collapsed #gpt-search-btn,
  .gpt-app.is-collapsed #gpt-sidebar-close {
    display: inline-flex;
  }

  .gpt-app.is-collapsed .gpt-wordmark {
    display: inline-flex;
  }

  .gpt-app.is-collapsed .gpt-nav-btn,
  .gpt-app.is-collapsed .gpt-side-item {
    width: calc(100% - 16px);
    margin: 0 8px;
    padding: 0 10px;
    justify-content: flex-start;
  }

  .gpt-app.is-collapsed #gpt-sidebar-open {
    display: none;
  }

  .gpt-app.is-collapsed .gpt-side-top {
    justify-content: space-between;
    padding: 14px 12px 8px;
  }

  .gpt-app.is-collapsed .gpt-side-scroll {
    overflow: auto;
  }

  .gpt-app.is-collapsed .gpt-sidebar-foot {
    justify-content: flex-start;
    padding: 12px 14px 14px;
  }

  .gpt-scrim:not([hidden]) {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 3;
  }

  .gpt-empty h1 {
    font-size: 22px;
    padding: 0 48px;
  }

  .gpt-dock,
  .gpt-msg {
    width: calc(100% - 24px);
  }

  .gpt-composer {
    border-radius: 24px;
  }

  .gpt-model-chip {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gpt-top-open,
  .gpt-top-new {
    display: inline-flex;
  }
}
