/* Veyro Agent: Cosmic Glass & DeepMind Modern UI Theme */
@font-face {
  font-family: Geist;
  src: url('/assets/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --agent-background: #08070d;
  --agent-surface: rgba(18, 14, 27, 0.72);
  --agent-surface-solid: #120e1b;
  --agent-raised: rgba(26, 21, 38, 0.85);
  --agent-raised-hover: rgba(36, 29, 53, 0.95);
  --agent-field: rgba(10, 8, 15, 0.85);
  --agent-ink: #f8f6fc;
  --agent-muted: #9d8fb2;
  --agent-subtle: #685d7c;
  --agent-border: rgba(255, 255, 255, 0.08);
  --agent-border-glow: rgba(167, 139, 250, 0.35);
  --agent-focus: #a855f7;
  --agent-accent: #8b5cf6;
  --agent-accent-hover: #9d73ff;
  --agent-accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  --agent-accent-gradient-hover: linear-gradient(135deg, #9d73ff 0%, #7c3aed 100%);
  --agent-glow: 0 4px 20px -2px rgba(124, 58, 237, 0.45);
  --agent-glow-strong: 0 8px 30px -4px rgba(139, 92, 246, 0.6);
  --agent-radius-sm: 8px;
  --agent-radius-md: 12px;
  --agent-radius-lg: 16px;
  --agent-radius-xl: 20px;
  --agent-radius-pill: 9999px;
  --agent-gutter: clamp(20px, 4.5vw, 64px);
  --font-sans: Geist, Arial, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--agent-ink);
  background-color: var(--agent-background);
  background-image: 
    radial-gradient(1000px circle at 50% -10%, rgba(139, 92, 246, 0.16), transparent 70%),
    radial-gradient(800px circle at 90% 20%, rgba(99, 102, 241, 0.08), transparent 60%),
    radial-gradient(900px circle at 10% 80%, rgba(124, 58, 237, 0.07), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Micro-interaction & Focus */
button, input, select, textarea {
  font-family: inherit;
  border-radius: var(--agent-radius-md);
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), 
              background-color 150ms ease, 
              border-color 150ms ease, 
              box-shadow 150ms ease;
}

button:active:not(:disabled) {
  transform: scale(0.97) !important;
}

:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--agent-focus) !important;
  outline-offset: 2px !important;
}

/* ==========================================================================
   TOP BAR (Dashboard & Sign-in)
   ========================================================================== */
.top {
  height: 68px !important;
  padding: 0 var(--agent-gutter) !important;
  gap: 20px !important;
  border-bottom: 1px solid var(--agent-border) !important;
  background: rgba(10, 8, 16, 0.8) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
}

.top .brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
}

.top .brand img {
  width: 110px !important;
  height: auto !important;
  display: block !important;
  filter: drop-shadow(0 2px 10px rgba(139, 92, 246, 0.25));
}

.product-name {
  display: none !important;
}

.top-actions {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  margin-left: auto !important;
}

.top-actions > span#account-name {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.top-actions button#billing {
  padding: 4px 2px !important;
  min-height: auto !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.top-actions button#billing:hover {
  background: transparent !important;
  border: none !important;
  color: #e9d5ff !important;
  box-shadow: none !important;
}

.top-actions button#logout {
  padding: 4px 2px !important;
  min-height: auto !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.top-actions button#logout:hover {
  background: transparent !important;
  border: none !important;
  color: #e9d5ff !important;
  box-shadow: none !important;
}

/* ==========================================================================
   DASHBOARD VIEW ("Tus webs")
   ========================================================================== */
.dashboard {
  max-width: 1360px !important;
  margin: 0 auto !important;
  padding: 42px var(--agent-gutter) 80px !important;
}

.dashboard-title {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  margin-bottom: 28px !important;
  gap: 20px !important;
}

.dashboard-title h1 {
  font-size: clamp(34px, 4vw, 44px) !important;
  font-weight: 750 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.1 !important;
  margin: 0 0 10px !important;
  background: linear-gradient(180deg, #ffffff 40%, #d8cbeb 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 16px rgba(139, 92, 246, 0.2));
}

#project-counter, #access-source {
  display: none !important;
}

.dashboard-title #create {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 0 24px !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
  color: #ffffff !important;
  background: var(--agent-accent-gradient) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: var(--agent-radius-md) !important;
  box-shadow: var(--agent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.dashboard-title #create:hover {
  background: var(--agent-accent-gradient-hover) !important;
  box-shadow: var(--agent-glow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-2px) !important;
}

/* Project Tools & Filter Dock */
.project-tools {
  margin: 28px 0 24px !important;
  padding: 10px 14px !important;
  gap: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(18, 14, 27, 0.7) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid var(--agent-border) !important;
  border-radius: var(--agent-radius-lg) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.project-search {
  width: min(100%, 420px) !important;
  height: 42px !important;
  background: rgba(10, 8, 16, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--agent-radius-md) !important;
  padding: 0 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: all 180ms ease !important;
}

.project-search:focus-within {
  border-color: var(--agent-focus) !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2) !important;
}

.project-search span {
  color: var(--agent-accent) !important;
  font-size: 16px !important;
  opacity: 0.85 !important;
}

.project-search input {
  background: transparent !important;
  border: 0 !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  padding: 0 !important;
  width: 100% !important;
}

.project-search input::placeholder {
  color: var(--agent-subtle) !important;
}

.project-filters {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.project-filters select {
  height: 42px !important;
  min-height: 42px !important;
  min-width: 155px !important;
  padding: 0 36px 0 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #ece5f7 !important;
  background-color: rgba(26, 21, 38, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: var(--agent-radius-md) !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  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='%23a78bfa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
}

.project-filters select:hover {
  background-color: rgba(36, 29, 53, 0.95) !important;
  border-color: rgba(167, 139, 250, 0.35) !important;
}

.project-layout {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  background: rgba(10, 8, 16, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--agent-radius-md) !important;
  padding: 3px !important;
}

.project-layout button {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border: 0 !important;
  border-radius: var(--agent-radius-sm) !important;
  background: transparent !important;
  color: var(--agent-subtle) !important;
  font-size: 15px !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}

.project-layout button:hover:not([aria-pressed='true']) {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.project-layout button[aria-pressed='true'] {
  background: rgba(139, 92, 246, 0.25) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* ==========================================================================
   PROJECT CARDS (.project)
   ========================================================================== */
.dashboard .project-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)) !important;
  gap: 24px !important;
  margin: 28px 0 !important;
}

.dashboard .project {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 14px !important;
  border-radius: var(--agent-radius-xl) !important;
  background: linear-gradient(165deg, rgba(26, 21, 38, 0.75) 0%, rgba(14, 11, 22, 0.85) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid var(--agent-border) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}

.dashboard .project:hover {
  transform: translateY(-4px) !important;
  border-color: var(--agent-border-glow) !important;
  box-shadow: 0 18px 45px -10px rgba(0, 0, 0, 0.65), 0 0 25px rgba(139, 92, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.dashboard .project-thumb {
  height: 200px !important;
  width: 100% !important;
  border-radius: var(--agent-radius-lg) !important;
  overflow: hidden !important;
  background: #0d0a15 !important;
  position: relative !important;
  margin-bottom: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 0 !important;
  cursor: pointer !important;
}

.dashboard .project-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dashboard .project:hover .project-thumb img {
  transform: scale(1.04) !important;
}

.dashboard .project-badge {
  position: absolute !important;
  top: 24px !important;
  left: 24px !important;
  z-index: 2 !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  letter-spacing: 0.03em !important;
  padding: 4px 11px !important;
  border-radius: var(--agent-radius-pill) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

/* Badge variants */
.dashboard .project-badge:has(+ *),
.dashboard .project:has(span.project-badge) .project-badge {
  background: rgba(139, 92, 246, 0.25) !important;
  color: #ddd6fe !important;
  border: 1px solid rgba(167, 139, 250, 0.4) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.dashboard .project-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  padding: 4px 6px 6px !important;
}

.dashboard .project-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
}

.dashboard .project-name {
  font-size: 18px !important;
  font-weight: 650 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: color 150ms ease !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.dashboard .project-name:hover {
  color: var(--agent-accent-hover) !important;
}

.dashboard .project-menu {
  position: relative !important;
}

.dashboard .project-menu summary {
  list-style: none !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: var(--agent-radius-sm) !important;
  display: grid !important;
  place-items: center !important;
  color: #a78bfa !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  cursor: pointer !important;
  transition: all 150ms ease !important;
  font-size: 13px !important;
  letter-spacing: 1px !important;
}

.dashboard .project-menu summary::-webkit-details-marker {
  display: none !important;
}

.dashboard .project-menu summary:hover {
  background: rgba(139, 92, 246, 0.2) !important;
  color: #ffffff !important;
  border-color: rgba(167, 139, 250, 0.4) !important;
}

.dashboard .project-menu > div {
  position: absolute !important;
  right: 0 !important;
  top: 40px !important;
  z-index: 80 !important;
  min-width: 170px !important;
  padding: 6px !important;
  border-radius: var(--agent-radius-md) !important;
  background: rgba(20, 16, 29, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(167, 139, 250, 0.25) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.dashboard .project-menu > div button,
.dashboard .project-menu > div a {
  display: block !important;
  width: 100% !important;
  padding: 9px 12px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #ded3ee !important;
  border: 0 !important;
  border-radius: var(--agent-radius-sm) !important;
  background: transparent !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

.dashboard .project-menu > div button:hover,
.dashboard .project-menu > div a:hover {
  background: rgba(139, 92, 246, 0.2) !important;
  color: #ffffff !important;
}

.dashboard .project-meta {
  font-size: 12.5px !important;
  color: var(--agent-muted) !important;
  margin: 0 0 16px 0 !important;
}

.dashboard .project-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: auto !important;
}

.dashboard .project-actions button {
  flex: 1 !important;
  height: 38px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: var(--agent-radius-md) !important;
  background: rgba(139, 92, 246, 0.12) !important;
  border: 1px solid rgba(167, 139, 250, 0.25) !important;
  color: #d8b4fe !important;
  cursor: pointer !important;
}

.dashboard .project-actions button:hover {
  background: rgba(139, 92, 246, 0.25) !important;
  border-color: #a855f7 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25) !important;
}

.dashboard .project-actions a {
  height: 38px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: var(--agent-radius-md) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ded3ee !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

.dashboard .project-actions a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   WORKSPACE / EDITOR VIEW (#editor)
   ========================================================================== */
#editor:not([hidden]) {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  height: 100dvh !important;
  padding: 14px !important;
  background-color: var(--agent-background) !important;
  background-image: 
    radial-gradient(1100px circle at 50% -10%, rgba(139, 92, 246, 0.15), transparent 70%),
    radial-gradient(900px circle at 90% 15%, rgba(99, 102, 241, 0.08), transparent 60%) !important;
  overflow: hidden !important;
}

/* Editor Top Toolbar */
#editor .editor-top {
  height: 58px !important;
  min-height: 58px !important;
  display: grid !important;
  grid-template-columns: 320px minmax(180px, 1fr) auto !important;
  align-items: center !important;
  padding: 0 16px !important;
  gap: 16px !important;
  background: rgba(16, 12, 24, 0.85) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid var(--agent-border) !important;
  border-radius: var(--agent-radius-lg) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

#editor .workspace-project {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

#editor #back-projects {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  color: #c4b5fd !important;
  font-size: 14px !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}

#editor #back-projects:hover {
  background: rgba(139, 92, 246, 0.22) !important;
  border-color: rgba(167, 139, 250, 0.4) !important;
  color: #ffffff !important;
  transform: scale(1.05) !important;
}

#editor #project-name {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: var(--agent-radius-sm) !important;
  padding: 6px 12px !important;
  width: 140px !important;
  max-width: 190px !important;
}

#editor #project-name:focus {
  border-color: var(--agent-focus) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2) !important;
  outline: none !important;
}

#editor #workspace-save-state, #workspace-save-state {
  display: none !important;
}

/* View Tabs Segmented Control */
#editor .workspace-view-tabs {
  justify-self: center !important;
  display: flex !important;
  gap: 3px !important;
  background: rgba(10, 8, 16, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--agent-radius-md) !important;
  padding: 3px !important;
}

#editor .workspace-view-tabs button {
  padding: 6px 16px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: var(--agent-muted) !important;
  border: 0 !important;
  border-radius: var(--agent-radius-sm) !important;
  background: transparent !important;
  cursor: pointer !important;
}

#editor .workspace-view-tabs button:hover:not([aria-pressed="true"]) {
  color: #ffffff !important;
}

#editor .workspace-view-tabs button[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(109, 40, 217, 0.45) 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Workspace Actions Toolbar */
#editor .workspace-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#editor .workspace-actions > #pick-element {
  padding: 6px 13px !important;
  font-size: 12px !important;
  font-weight: 550 !important;
  color: #d4c5e8 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: var(--agent-radius-sm) !important;
}

#editor .workspace-actions > #pick-element:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  color: #ffffff !important;
}

#editor .workspace-actions > #pick-element[aria-pressed="true"] {
  background: rgba(139, 92, 246, 0.35) !important;
  border-color: #8b5cf6 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3) !important;
}

#editor .workspace-actions > #refresh-preview,
#editor .workspace-actions > #undo,
#editor .workspace-actions > #redo {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: var(--agent-radius-sm) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #b4a5c6 !important;
  font-size: 14px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  cursor: pointer !important;
}

#editor .workspace-actions > #refresh-preview:hover:not(:disabled),
#editor .workspace-actions > #undo:hover:not(:disabled),
#editor .workspace-actions > #redo:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

#editor .workspace-actions > #view-mode {
  padding: 6px 13px !important;
  font-size: 12px !important;
  font-weight: 550 !important;
  color: #d4c5e8 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: var(--agent-radius-sm) !important;
}

#editor .workspace-actions > #view-mode:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  color: #ffffff !important;
}

#editor .workspace-actions > #publish {
  padding: 7px 18px !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  color: #ffffff !important;
  background: var(--agent-accent-gradient) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: var(--agent-radius-sm) !important;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

#editor .workspace-actions > #publish:hover {
  background: var(--agent-accent-gradient-hover) !important;
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-1px) !important;
}

#editor .workspace-actions > #save {
  padding: 7px 16px !important;
  font-size: 12.5px !important;
  font-weight: 550 !important;
  color: #ede7f6 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--agent-radius-sm) !important;
}

#editor .workspace-actions > #save:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

#editor .editor-account-menu summary {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.15)) !important;
  border: 1px solid rgba(167, 139, 250, 0.3) !important;
  color: #c4b5fd !important;
}

/* ==========================================================================
   EDITOR GRID: LEFT PANEL (Agent Chat) & RIGHT PANEL (Canvas)
   ========================================================================== */
#editor .editor-grid {
  display: grid !important;
  grid-template-columns: 340px minmax(0, 1fr) !important;
  gap: 14px !important;
  flex: 1 !important;
  min-height: 0 !important;
  height: auto !important;
}

/* Left Panel */
#editor .left-panel {
  display: flex !important;
  flex-direction: column !important;
  background: rgba(14, 11, 22, 0.85) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid var(--agent-border) !important;
  border-radius: var(--agent-radius-lg) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  overflow: hidden !important;
  min-height: 0 !important;
}

#editor .panel-tabs {
  height: 48px !important;
  min-height: 48px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  padding: 0 18px !important;
  background: rgba(20, 16, 29, 0.5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#editor .panel-tabs span {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #f4effa !important;
  letter-spacing: -0.01em !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#editor .panel-tabs::after {
  display: none !important;
}

#editor #ai-panel {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#editor .agent-conversation {
  flex: 1 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 20px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

/* Conversation Intro */
#editor .conversation-intro {
  padding-bottom: 10px !important;
}

#editor .conversation-intro > img {
  width: 44px !important;
  height: 44px !important;
  border-radius: var(--agent-radius-md) !important;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(109, 40, 217, 0.1) 70%) !important;
  border: 1px solid rgba(167, 139, 250, 0.3) !important;
  padding: 6px !important;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2) !important;
  margin: 0 0 16px !important;
  display: block !important;
}

#editor .conversation-intro h2 {
  font-size: 20px !important;
  font-weight: 750 !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
  margin: 0 0 8px !important;
}

#editor .conversation-intro > p {
  font-size: 13px !important;
  color: var(--agent-muted) !important;
  line-height: 1.6 !important;
  margin: 0 0 20px !important;
}

#editor .conversation-intro > button {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  padding: 11px 14px !important;
  margin: 0 0 8px 0 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #ded3ee !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--agent-radius-md) !important;
  cursor: pointer !important;
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#editor .conversation-intro > button:hover {
  background: rgba(139, 92, 246, 0.16) !important;
  border-color: rgba(167, 139, 250, 0.35) !important;
  color: #ffffff !important;
  transform: translateX(3px) !important;
}

/* Chat Messages */
#editor .conversation-message {
  padding: 0 !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
}

#editor .conversation-message.is-user {
  align-self: flex-end !important;
  align-items: flex-end !important;
  max-width: 88% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#editor .conversation-message.is-user p {
  margin: 0 !important;
  padding: 9px 14px !important;
  background: #232328 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  color: #f4f4f5 !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
}

#editor .conversation-message.is-agent {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: #e4e4e7 !important;
  align-self: flex-start !important;
  align-items: flex-start !important;
  max-width: 100% !important;
}

#editor .conversation-message.is-agent p {
  margin: 0 !important;
  color: #e4e4e7 !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
}

#editor .conversation-message strong {
  display: block !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin-bottom: 0 !important;
  color: #8e8e98 !important;
}

/* Composer Attachments */
#editor .composer-attachments {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 10px 6px !important;
}

#editor .composer-attachments[hidden] {
  display: none !important;
}

#editor .composer-attachment-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f4f4f5 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  max-width: 100% !important;
}

#editor .composer-attachment-chip svg {
  width: 14px !important;
  height: 14px !important;
  color: #a1a1aa !important;
  flex-shrink: 0 !important;
}

#editor .composer-attachment-chip span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 180px !important;
}

#editor .composer-attachment-chip button {
  background: transparent !important;
  border: none !important;
  padding: 0 2px !important;
  margin: 0 !important;
  min-height: auto !important;
  color: #a1a1aa !important;
  font-size: 14px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

#editor .composer-attachment-chip button:hover {
  color: #ffffff !important;
}

/* Chat Composer */
#editor .agent-composer {
  margin: 6px 10px 10px !important;
  padding: 12px 14px 10px !important;
  border-radius: 16px !important;
  background: #141418 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transition: border-color 180ms ease !important;
}

#editor .agent-composer:focus-within {
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
}

#editor #selected-element {
  background: rgba(139, 92, 246, 0.2) !important;
  border: 1px solid rgba(167, 139, 250, 0.35) !important;
  color: #e9d5ff !important;
  border-radius: var(--agent-radius-sm) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  padding: 4px 10px !important;
  margin-bottom: 8px !important;
}

#editor #prompt {
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  min-height: 44px !important;
  height: 44px !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  padding: 0 0 6px 0 !important;
  color: #ffffff !important;
  resize: none !important;
  box-shadow: none !important;
}

#editor #prompt::placeholder {
  color: #71717a !important;
}

#editor .composer-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 4px !important;
}

#editor .composer-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#editor .composer-model {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: #e4e4e7 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 5px 10px !important;
  width: auto !important;
  min-height: 30px !important;
  cursor: pointer !important;
}

#editor .composer-model[hidden] {
  display: none !important;
}

.agent-dns-box {
  background: #0d0d12 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  font-size: 12px !important;
  color: #d4d4d8 !important;
  margin-top: 8px !important;
}

.agent-dns-box strong {
  display: block !important;
  color: #ffffff !important;
  margin-bottom: 6px !important;
}

.agent-dns-box code {
  display: block !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 11.5px !important;
  color: #c4b5fd !important;
  line-height: 1.6 !important;
}

#editor .composer-attach {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: none !important;
  color: #a1a1aa !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

#editor .composer-attach:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

#editor .composer-attach svg {
  width: 18px !important;
  height: 18px !important;
}

#editor #generate {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  color: #09090b !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}

#editor #generate:hover {
  background: #e4e4e7 !important;
  box-shadow: none !important;
}

#editor #generate svg {
  width: 16px !important;
  height: 16px !important;
}

#editor .agent-composer .terms {
  margin: 8px 0 0 0 !important;
  font-size: 10.5px !important;
  line-height: 1.35 !important;
  color: #71717a !important;
  text-align: center !important;
}

/* Toolbar SVG Icons */
.workspace-actions button svg {
  width: 16px !important;
  height: 16px !important;
  display: block !important;
}

#refresh-preview:not(:disabled),
#undo:not(:disabled),
#redo:not(:disabled) {
  color: #e4e4e7 !important;
}

/* Right Panel: Workspace Main (Preview Stage) */
#editor .workspace-main {
  background: rgba(14, 11, 22, 0.85) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid var(--agent-border) !important;
  border-radius: var(--agent-radius-lg) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

#editor .preview-window-top {
  height: 48px !important;
  min-height: 48px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  padding: 0 18px !important;
  background: rgba(20, 16, 29, 0.5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#editor .preview-window-title {
  font-size: 13px !important;
  font-weight: 650 !important;
  color: #ede7f6 !important;
  letter-spacing: -0.01em !important;
}

#editor .canvas-wrap {
  flex: 1 !important;
  min-height: 0 !important;
  background: #090810 !important;
  overflow: auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
  height: 100% !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

#editor #canvas {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
  border-radius: var(--agent-radius-md) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  background: #ffffff !important;
  transition: max-width 300ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 300ms ease !important;
}

#editor #canvas.mobile {
  width: 390px !important;
  max-width: 390px !important;
  height: 844px !important;
  max-height: 96% !important;
  align-self: center !important;
  margin: auto !important;
  border-radius: 36px !important;
  border: 10px solid #1c172a !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

/* File Workspace */
#editor #file-workspace {
  background: #0e0b16 !important;
}

#editor #file-list {
  background: rgba(14, 11, 22, 0.7) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
}

#editor #file-list button {
  border-radius: var(--agent-radius-sm) !important;
  transition: all 140ms ease !important;
}

#editor #file-list button.active {
  background: rgba(139, 92, 246, 0.22) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

#editor #file-content {
  background: #09080e !important;
  color: #ede7f6 !important;
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  #editor .editor-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: 380px 1fr !important;
  }
}

/* ==========================================================================
   SECURITY & CLOUDFLARE TURNSTILE MODAL
   ========================================================================== */
#security {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(8, 6, 14, 0.8) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  padding: 20px !important;
}

#security > section {
  width: min(100%, 420px) !important;
  padding: 34px 28px !important;
  border-radius: var(--agent-radius-xl) !important;
  background: linear-gradient(165deg, rgba(28, 22, 40, 0.95) 0%, rgba(16, 13, 24, 0.98) 100%) !important;
  border: 1px solid rgba(167, 139, 250, 0.3) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(139, 92, 246, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  text-align: center !important;
  animation: agent-modal-pop 200ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

@keyframes agent-modal-pop {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

#security h2 {
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  margin: 0 0 10px !important;
  background: linear-gradient(135deg, #ffffff 40%, #c49eff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

#security p {
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: var(--agent-muted) !important;
  margin: 0 0 20px !important;
}

#security #turnstile {
  display: flex !important;
  justify-content: center !important;
  min-height: 65px !important;
  margin: 14px 0 !important;
}

#security #security-status {
  font-size: 12.5px !important;
  color: #c49eff !important;
  min-height: 20px !important;
}

#security button#retry-security {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 22px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: var(--agent-radius-md) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f1eaff !important;
  transition: all 150ms ease !important;
}

#security button#retry-security:hover:not(:disabled) {
  background: rgba(139, 92, 246, 0.25) !important;
  border-color: #a855f7 !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   SIGN-IN / WELCOME SCREEN (#welcome)
   ========================================================================== */
#welcome {
  box-sizing: border-box !important;
  width: min(100%, 1360px) !important;
  min-height: calc(100dvh - 68px) !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 440px) !important;
  gap: clamp(40px, 7vw, 100px) !important;
  padding: 64px var(--agent-gutter) !important;
  background: none !important;
  margin: 0 auto !important;
}

.welcome-copy > img {
  width: 68px !important;
  height: auto !important;
  filter: drop-shadow(0 8px 30px rgba(139, 92, 246, 0.45)) !important;
}

.welcome-copy h1 {
  font-size: clamp(44px, 5.2vw, 68px) !important;
  font-weight: 750 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
  margin: 24px 0 !important;
}

.welcome-copy h1 span {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.access-card {
  padding: 34px !important;
  border-radius: var(--agent-radius-xl) !important;
  background: rgba(18, 14, 27, 0.8) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid var(--agent-border) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.access-card h2 {
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  margin: 0 0 24px 0 !important;
  color: #ffffff !important;
}

.access-card form label {
  color: var(--agent-muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin-bottom: 18px !important;
}

.access-card input {
  background: rgba(10, 8, 16, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: var(--agent-radius-md) !important;
  padding: 12px 14px !important;
  color: #ffffff !important;
  font-size: 14px !important;
}

.access-card input:focus {
  border-color: var(--agent-focus) !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2) !important;
}

.access-card button.primary {
  height: 46px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  border-radius: var(--agent-radius-md) !important;
  background: var(--agent-accent-gradient) !important;
  box-shadow: var(--agent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.access-card button.primary:hover {
  background: var(--agent-accent-gradient-hover) !important;
  box-shadow: var(--agent-glow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}


/* ==========================================================================
   SECURITY & CLOUDFLARE TURNSTILE VERIFICATION SCREEN (Unified Veyro Theme)
   ========================================================================== */
.veyro-security-screen,
#security {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  background: rgba(8, 9, 14, 0.92) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  display: grid !important;
  place-items: center !important;
  padding: 28px 16px !important;
  overflow: auto !important;
  color: #f4f4f5 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Plus Jakarta Sans", system-ui, sans-serif !important;
  box-sizing: border-box !important;
}

#security[hidden] {
  display: none !important;
}

.veyro-security-card,
#security > section {
  width: 100% !important;
  max-width: 380px !important;
  text-align: center !important;
  padding: 32px 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  background: #111422 !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65) !important;
  box-sizing: border-box !important;
  animation: agent-modal-pop 200ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.veyro-security-logo,
#security .veyro-security-logo {
  display: block !important;
  width: 58px !important;
  height: 50px !important;
  object-fit: contain !important;
  margin: 0 auto 18px !important;
}

.veyro-security-card h1,
#security h1,
#security h2 {
  font-size: 23px !important;
  line-height: 1.3 !important;
  margin: 0 0 12px !important;
  letter-spacing: -0.5px !important;
  color: #f5f3ff !important;
  font-weight: 700 !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.veyro-security-card p,
#security p {
  color: #afb5cc !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  margin: 0 0 16px !important;
}

#security #turnstile {
  min-height: 65px !important;
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  justify-content: center !important;
  margin: 16px 0 !important;
}

#security #security-status,
.veyro-security-error {
  font-size: 13px !important;
  color: #f87171 !important;
  min-height: 20px !important;
  margin: 8px 0 !important;
}

#security button#retry-security,
.veyro-security-retry {
  border: 1px solid #9167ff !important;
  background: #7040dc !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 10px !important;
  transition: all 160ms ease !important;
}

#security button#retry-security:hover:not(:disabled),
.veyro-security-retry:hover:not(:disabled) {
  background: #8352ef !important;
  box-shadow: 0 4px 16px rgba(112, 64, 220, 0.4) !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   BOLT.NEW STYLE SHELL: DASHBOARD + SIDEBAR + WORKSPACE
   ========================================================================== */
body:has(#dashboard:not([hidden])),
body:has(#editor:not([hidden])) {
  background: #09090b !important;
}

body:has(#dashboard:not([hidden]))::before,
body:has(#dashboard:not([hidden]))::after,
body:has(#editor:not([hidden]))::before,
body:has(#editor:not([hidden]))::after {
  display: none !important;
}

body:has(#dashboard:not([hidden])) header.top {
  display: none !important;
}

/* Dashboard 2-Column Shell */
#dashboard.dashboard {
  display: grid !important;
  grid-template-columns: 244px minmax(0, 1fr) !important;
  min-height: 100dvh !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #09090b !important;
}

#dashboard[hidden] {
  display: none !important;
}

.bolt-sidebar {
  display: flex !important;
  flex-direction: column !important;
  padding: 16px 12px !important;
  background: #09090b !important;
  gap: 14px !important;
}

.bolt-sidebar-top {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 2px 6px !important;
}

.bolt-brand img {
  height: 24px !important;
  width: auto !important;
  display: block !important;
}

.bolt-brand-sep {
  width: 1px !important;
  height: 18px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  flex-shrink: 0 !important;
}

.bolt-agent-mark {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain !important;
  display: block !important;
}

.bolt-account-pill {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  background: #141418 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.bolt-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  background: #7c3aed !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
}

.bolt-account-meta {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.bolt-account-meta strong {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #f4f4f5 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.bolt-account-meta small {
  font-size: 11px !important;
  color: #a1a1aa !important;
}

.bolt-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.bolt-nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 9px 10px !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #a1a1aa !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  text-align: left !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.bolt-nav-item svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

.bolt-nav-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

.bolt-nav-item.is-active {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

.bolt-nav-sep {
  height: 1px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  margin: 8px 6px !important;
}

/* Main Content Frame */
.bolt-main {
  margin: 10px 10px 10px 0 !important;
  border-radius: 16px !important;
  background: #0d0d10 !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.bolt-projects-view,
.bolt-plans-view {
  padding: 36px 40px 60px !important;
}

.bolt-plans-view .dashboard-title h1 {
  font-size: 26px !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  filter: none !important;
  margin: 0 0 8px !important;
}

.bolt-plans-sub {
  margin: 0 !important;
  color: #a1a1aa !important;
  font-size: 14px !important;
}

.bolt-projects-view[hidden],
.bolt-home-view[hidden],
.bolt-plans-view[hidden] {
  display: none !important;
}

.bolt-projects-view .dashboard-title {
  margin-bottom: 18px !important;
}

.bolt-projects-view .dashboard-title h1 {
  font-size: 26px !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  filter: none !important;
  margin: 0 !important;
}

/* Flat Inline Toolbar */
.bolt-projects-view .project-tools {
  margin: 0 0 26px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  gap: 10px !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
}

.bolt-projects-view .project-search {
  flex: 1 1 280px !important;
  max-width: 440px !important;
  height: 38px !important;
  background: #141418 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
}

.bolt-projects-view .project-filters {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-left: auto !important;
}

.bolt-projects-view .project-filters select {
  height: 38px !important;
  padding: 0 12px !important;
  background: #141418 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: #e4e4e7 !important;
  font-size: 13px !important;
  width: auto !important;
}

.bolt-projects-view #create {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  background: #7c3aed !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.bolt-projects-view #create:hover {
  background: #8b5cf6 !important;
  transform: none !important;
}

/* Borderless Project Cards */
.bolt-projects-view .project-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 20px !important;
}

.bolt-projects-view .project {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.bolt-projects-view .project:hover {
  transform: none !important;
}

.bolt-projects-view .project-thumb {
  height: 162px !important;
  border-radius: 12px !important;
  background: #1a1a20 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 10px !important;
  overflow: hidden !important;
}

.bolt-projects-view .project:hover .project-thumb {
  border-color: rgba(167, 139, 250, 0.45) !important;
}

.project-badge {
  display: none !important;
}

/* Bolt Home Tab inside Dashboard */
.bolt-home-view {
  position: relative !important;
  overflow: hidden !important;
  flex: 1 !important;
  display: grid !important;
  place-items: center !important;
  padding: 48px 24px !important;
  background: #07070b !important;
}

.bolt-home-view::before {
  content: "" !important;
  position: absolute !important;
  inset: -40px !important;
  background: url('/assets/agent-home-bg.jpg') center/cover no-repeat !important;
  filter: blur(28px) saturate(1.15) brightness(0.74) !important;
  transform: scale(1.08) !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.bolt-home-view::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: radial-gradient(ellipse 75% 65% at 50% 48%, rgba(7, 7, 11, 0.35) 0%, rgba(7, 7, 11, 0.72) 85%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.bolt-home-inner {
  position: relative !important;
  z-index: 2 !important;
  width: min(100%, 620px) !important;
  text-align: center !important;
}

.bolt-home-inner h1 {
  margin: 0 0 12px !important;
  font-size: clamp(2rem, 4vw, 2.85rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.04em !important;
  color: #ffffff !important;
}

.bolt-home-inner > p {
  margin: 0 auto 28px !important;
  color: #b4b0c2 !important;
  font-size: 15px !important;
}

.bolt-home-box {
  background: #15151a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  padding: 14px 16px 12px !important;
  text-align: left !important;
}

.bolt-home-box textarea {
  width: 100% !important;
  min-height: 60px !important;
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  resize: none !important;
  color: #f4f4f5 !important;
  font-size: 14.5px !important;
  padding: 0 !important;
}

.bolt-home-box-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 8px !important;
}

.bolt-home-plus {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #d4d4d8 !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
}

.bolt-home-send {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #7c3aed !important;
  border: none !important;
  color: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
}

.bolt-home-quick {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 22px !important;
  flex-wrap: wrap !important;
}

.bolt-home-quick button {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 78px !important;
  height: 68px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  color: #d4d4d8 !important;
  font-size: 11px !important;
  padding: 6px !important;
}

.bolt-home-quick button svg {
  width: 18px !important;
  height: 18px !important;
}

/* Workspace (#editor) Bolt Clean Overrides */
#editor {
  background: #09090b !important;
}

#editor .editor-top {
  height: 48px !important;
  padding: 0 12px !important;
  background: #09090b !important;
  border-bottom: none !important;
}

#editor .workspace-grid {
  padding: 0 10px 10px 0 !important;
  gap: 0 !important;
  background: #09090b !important;
}

#editor .left-panel,
#editor #ai-panel {
  background: #09090b !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#editor .left-panel-header,
#editor .preview-window-top {
  display: none !important;
}

#editor .workspace-main {
  background: #111114 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#editor .workspace-view-tabs {
  background: #141418 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  padding: 2px !important;
}

#editor .workspace-view-tabs button[aria-pressed="true"] {
  background: rgba(139, 92, 246, 0.2) !important;
  color: #ddd6fe !important;
  border-radius: 999px !important;
}

#editor #publish {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 14px !important;
  background: #7c3aed !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}

#editor .workspace-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

#editor .workspace-actions button:not(#publish) {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  background: #141418 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e4e4e7 !important;
  font-size: 12.5px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#editor .workspace-actions button#refresh-preview,
#editor .workspace-actions button#undo,
#editor .workspace-actions button#redo {
  width: 32px !important;
  padding: 0 !important;
}

#editor .editor-account-menu {
  display: none !important;
}

@media (max-width: 900px) {
  #dashboard.dashboard {
    grid-template-columns: 1fr !important;
  }
  .bolt-sidebar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .bolt-main {
    margin: 10px !important;
  }
}

/* Welcome Landing (agent.veyrohost.xyz when logged out) */
body:has(#welcome:not([hidden])) {
  background: #09090b !important;
}

body:has(#welcome:not([hidden]))::before,
body:has(#welcome:not([hidden]))::after {
  display: none !important;
}

body:has(#welcome:not([hidden])) header.top {
  display: none !important;
}

body:has(#welcome[hidden]) header.header {
  display: none !important;
}

header.header {
  background: #09090b !important;
}

.welcome-top-nav {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.welcome-top-nav a {
  color: #a1a1aa !important;
  font-size: 13.5px !important;
  font-weight: 450 !important;
  text-decoration: none !important;
}

.welcome-top-nav a:hover {
  color: #ffffff !important;
}

body:has(#welcome[hidden]) .welcome-top-nav,
body:has(#welcome[hidden]) #open-welcome-login,
body:has(#welcome[hidden]) .welcome-start-pill {
  display: none !important;
}

#open-welcome-login.welcome-signin-link {
  padding: 6px 12px !important;
  min-height: auto !important;
  background: transparent !important;
  border: none !important;
  color: #d4d4d8 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

#open-welcome-login.welcome-signin-link:hover {
  color: #ffffff !important;
}

.welcome-start-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 7px 14px !important;
  border-radius: 8px !important;
  background: #7c3aed !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.welcome-start-pill:hover {
  background: #8b5cf6 !important;
}

html, body, #welcome, #dashboard, #editor,
#welcome h1, #welcome h2, #welcome h3, #welcome h4, #welcome p, #welcome a, #welcome button, #welcome input, #welcome textarea, #welcome small, #welcome span, #welcome strong,
#dashboard h1, #dashboard h2, #dashboard h3, #dashboard p, #dashboard a, #dashboard button, #dashboard input, #dashboard select, #dashboard textarea {
  font-family: Geist, Arial, sans-serif !important;
}

#welcome {
  min-height: auto !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 12px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  text-align: center !important;
  background: #09090b !important;
  position: relative !important;
}

#welcome[hidden] {
  display: none !important;
}

#welcome .welcome-copy {
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: none !important;
  min-height: clamp(500px, calc(100dvh - 88px), 740px) !important;
  margin: 0 !important;
  padding: 56px 24px 72px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #07070b !important;
}

#welcome .welcome-copy::before {
  content: "" !important;
  position: absolute !important;
  inset: -40px !important;
  background: url('/assets/agent-home-bg.jpg') center/cover no-repeat !important;
  filter: blur(28px) saturate(1.15) brightness(0.74) !important;
  transform: scale(1.08) !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

#welcome .welcome-copy::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: radial-gradient(ellipse 75% 65% at 50% 48%, rgba(7, 7, 11, 0.35) 0%, rgba(7, 7, 11, 0.72) 85%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

#welcome .welcome-copy > * {
  position: relative !important;
  z-index: 2 !important;
  max-width: 620px !important;
}

#welcome .welcome-copy h1 {
  margin: 0 0 14px !important;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.08 !important;
  color: #ffffff !important;
}

#welcome .welcome-copy > p {
  margin: 0 auto 28px !important;
  max-width: 480px !important;
  font-size: 15.5px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #d4d4d8 !important;
}

#welcome .welcome-prompt-box {
  width: min(100%, 580px) !important;
  background: rgba(24, 24, 29, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  padding: 14px 16px 12px !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
}

#welcome .welcome-send-pill {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  width: auto !important;
  height: auto !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  gap: 7px !important;
  font-size: 13px !important;
  font-weight: 550 !important;
}

.welcome-section {
  width: min(100%, 860px) !important;
  margin: 0 auto !important;
  padding: 44px 20px !important;
  text-align: left !important;
}

.welcome-section-head {
  text-align: center !important;
  max-width: 620px !important;
  margin: 0 auto 40px !important;
}

.welcome-eyebrow {
  display: inline-block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #a78bfa !important;
  margin-bottom: 10px !important;
}

.welcome-section-head h2 {
  margin: 0 0 12px !important;
  font-size: clamp(1.65rem, 3vw, 2.2rem) !important;
  font-weight: 550 !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
}

.welcome-section-head p {
  margin: 0 !important;
  color: #9ca3af !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

/* Bolt-style Bento Landing Sections */
.welcome-beam {
  position: relative !important;
  width: 1px !important;
  height: 110px !important;
  margin: 0 auto 28px !important;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0) 0%, rgba(167, 139, 250, 0.9) 100%) !important;
}

.welcome-beam span {
  position: absolute !important;
  bottom: -6px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: #a78bfa !important;
  box-shadow: 0 0 42px 18px rgba(124, 58, 237, 0.55) !important;
}

.welcome-two-tone {
  text-align: center !important;
  margin: 0 auto 12px !important;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem) !important;
  font-weight: 500 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  max-width: 640px !important;
}

.welcome-two-tone span {
  display: block !important;
  color: #a1a1aa !important;
  font-weight: 450 !important;
}

.welcome-two-tone strong {
  display: block !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.welcome-intro-sub {
  text-align: center !important;
  max-width: 480px !important;
  margin: 0 auto 34px !important;
  color: #9ca3af !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

.bento-grid-1 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  max-width: 820px !important;
  margin: 0 auto !important;
}

.bento-card {
  background: #0e0e12 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 22px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.bento-wide {
  grid-column: 1 / -1 !important;
}

.bento-split {
  display: grid !important;
  grid-template-columns: 1fr 1.15fr !important;
  align-items: center !important;
  gap: 20px !important;
}

.bento-card h3 {
  margin: 0 0 6px !important;
  font-size: 15px !important;
  font-weight: 550 !important;
  letter-spacing: -0.015em !important;
  color: #ffffff !important;
}

.bento-card p {
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  color: #9ca3af !important;
}

.bento-mock-modes {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

.mock-box {
  background: #09090c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.mock-label {
  font-size: 11px !important;
  color: #71717a !important;
}

.mock-row, .mock-stat {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 12px !important;
  color: #d4d4d8 !important;
  padding: 6px 8px !important;
  border-radius: 8px !important;
}

.mock-row.is-active {
  background: rgba(124, 58, 237, 0.16) !important;
  color: #ffffff !important;
}

.mock-row small {
  color: #a78bfa !important;
  font-size: 11px !important;
}

.mock-dot {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.mock-dot i {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #8b5cf6 !important;
}

.bento-metric {
  align-items: center !important;
  text-align: center !important;
  justify-content: center !important;
  padding: 36px 26px !important;
}

.bento-big-num {
  font-size: 38px !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.05 !important;
  color: #ffffff !important;
}

.bento-metric-label {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #d4d4d8 !important;
}

.bento-browser-mock {
  background: #09090c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 14px !important;
  margin-top: auto !important;
}

.mock-dots {
  display: flex !important;
  gap: 5px !important;
  margin-bottom: 14px !important;
}

.mock-dots i {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

.mock-scale-num {
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  text-align: center !important;
  padding: 10px 0 !important;
}

.bento-design-system {
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.16), transparent 65%), #101014 !important;
  text-align: center !important;
}

.bento-ds-pills {
  display: flex !important;
  justify-content: center !important;
  gap: 6px !important;
  margin-bottom: 10px !important;
}

.bento-ds-pills i {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #8b5cf6 !important;
}

.bento-ds-pills i:nth-child(2) { background: #38bdf8 !important; }
.bento-ds-pills i:nth-child(3) { background: #34d399 !important; }
.bento-ds-pills i:nth-child(4) { background: #f472b6 !important; }

.bento-ds-preview {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  gap: 18px !important;
  align-items: center !important;
  background: rgba(9, 9, 12, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 18px !important;
  text-align: left !important;
}

.ds-swatches {
  display: flex !important;
  gap: 8px !important;
}

.ds-swatches span {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
}

.ds-swatches .sw-1 { background: #7c3aed !important; }
.ds-swatches .sw-2 { background: #1e1b4b !important; }
.ds-swatches .sw-3 { background: #c4b5fd !important; }

.ds-type {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.ds-type > div {
  display: flex !important;
  align-items: baseline !important;
  gap: 12px !important;
}

.ds-type small {
  color: #71717a !important;
  font-size: 11px !important;
  width: 24px !important;
}

.ds-type strong {
  color: #ffffff !important;
  font-size: 18px !important;
}

.ds-type span {
  color: #a1a1aa !important;
  font-size: 14px !important;
}

.bento-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  max-width: 820px !important;
  margin: 0 auto !important;
}

.bento-span-2 {
  grid-column: span 2 !important;
}

.bento-mini-ui {
  margin-top: auto !important;
  background: #09090c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.mini-ui-title {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
}

.mini-ui-search, .mini-ui-item, .mini-ui-check {
  font-size: 11.5px !important;
  color: #a1a1aa !important;
  padding: 6px 8px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.dot-ok {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #22c55e !important;
  flex-shrink: 0 !important;
}

.mini-ui-btn {
  text-align: center !important;
  padding: 7px !important;
  border-radius: 8px !important;
  background: #7c3aed !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.mini-chart {
  width: 100% !important;
  height: 76px !important;
}

.bento-gallery-strip {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  margin-top: auto !important;
}

.gal-tile {
  height: 72px !important;
  border-radius: 10px !important;
  background: #18181f !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: grid !important;
  place-items: center !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #e4e4e7 !important;
}

.gal-tile.is-purple {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), #18181f) !important;
  border-color: rgba(167, 139, 250, 0.35) !important;
}

@media (max-width: 900px) {
  .bento-grid-1,
  .bento-grid-2,
  .bento-split,
  .bento-ds-preview,
  .welcome-plans-grid {
    grid-template-columns: 1fr !important;
  }
  .bento-span-2 {
    grid-column: span 1 !important;
  }
}

.welcome-plans-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  max-width: 1020px !important;
  margin: 0 auto !important;
}

.welcome-plan-card {
  background: #0e0e12 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.welcome-plan-card.is-featured {
  border-color: rgba(139, 92, 246, 0.45) !important;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.1) 0%, #0e0e12 100%) !important;
}

.welcome-plan-card h3 {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 550 !important;
  color: #ffffff !important;
}

.welcome-plan-price {
  display: flex !important;
  align-items: baseline !important;
  gap: 4px !important;
}

.welcome-plan-price strong {
  font-size: 24px !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
  color: #ffffff !important;
}

.welcome-plan-price span {
  font-size: 12.5px !important;
  font-weight: 400 !important;
  color: #9ca3af !important;
}

.welcome-plan-card p {
  margin: 0 !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  color: #9ca3af !important;
  flex: 1 !important;
}

.welcome-plan-card a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  background: #7c3aed !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  text-decoration: none !important;
}

.welcome-plan-card a:hover {
  background: #8b5cf6 !important;
}

.welcome-footer {
  width: min(100%, 860px) !important;
  margin: 12px auto 0 !important;
  padding: 24px 20px 36px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  color: #71717a !important;
  font-size: 13px !important;
}

.welcome-footer div {
  display: flex !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.welcome-footer a {
  color: #a1a1aa !important;
  text-decoration: none !important;
}

.welcome-footer a:hover {
  color: #ffffff !important;
}

@media (max-width: 900px) {
  .welcome-steps-grid,
  .welcome-features-grid,
  .welcome-plans-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Modal Access Card on #welcome */
#welcome .access-card {
  display: none !important;
}

#welcome .access-card.is-open,
#welcome .access-card:has(#subscribe-card:not([hidden])) {
  display: block !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 200 !important;
  width: min(92vw, 420px) !important;
  background: #111219 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  padding: 30px 28px !important;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.8) !important;
  text-align: left !important;
}

.access-card-close {
  position: absolute !important;
  top: 14px !important;
  right: 16px !important;
  background: transparent !important;
  border: none !important;
  color: #a1a1aa !important;
  font-size: 22px !important;
  line-height: 1 !important;
  padding: 4px 8px !important;
  cursor: pointer !important;
}

.access-card-close:hover {
  color: #ffffff !important;
}
