@property --composer-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes composer-border-spin {
  from {
    --composer-angle: 0deg;
  }

  to {
    --composer-angle: 360deg;
  }
}

:root {
  --bg: #02050c;
  --bg-2: #050a13;
  --panel: rgba(11, 18, 32, 0.78);
  --panel-2: rgba(14, 24, 41, 0.84);
  --panel-3: rgba(18, 30, 51, 0.72);
  --line: rgba(129, 155, 205, 0.16);
  --line-strong: rgba(79, 131, 255, 0.55);
  --text: #edf4ff;
  --muted: #8e9bb5;
  --muted-2: #62708a;
  --blue: #1769ff;
  --blue-2: #27a0ff;
  --cyan: #38d6ff;
  --green: #21d69b;
  --purple: #7c4dff;
  --orange: #ff8a3d;
  --red: #ff4f68;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
  --glow: 0 0 0 1px rgba(45, 111, 255, 0.45), 0 18px 70px rgba(0, 88, 255, 0.20);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 10px;
  --sidebar-width: 270px;
  --topbar-height: 86px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 55% 12%, rgba(25, 83, 179, 0.15), transparent 36%),
    radial-gradient(circle at 87% 30%, rgba(0, 196, 255, 0.06), transparent 32%),
    linear-gradient(135deg, #01030a 0%, #020710 58%, #05101a 100%);
  color: var(--text);
  overflow: hidden;
}

body {
  line-height: 1.45;
}


::-webkit-scrollbar {
  width: 6px; 
  height: 6px; 
}


::-webkit-scrollbar-track {
  background: #000;
  border-radius: 10px;
}


::-webkit-scrollbar-thumb {
  background: #141822;
  border-radius: 10px;
}


::-webkit-scrollbar-thumb:hover {
  background: #141822;
}


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

button {
  color: inherit;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(77, 145, 255, 0.85);
  outline-offset: 2px;
}

.app-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 18px 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10, 15, 27, 0.98), rgba(6, 12, 21, 0.95)),
    radial-gradient(circle at 10% 0%, rgba(44, 111, 255, 0.14), transparent 28%);
  box-shadow: 14px 0 80px rgba(0, 0, 0, 0.28);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 4px 8px 10px;
  justify-content: center;
  flex-direction: column;
}

.brand-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  transform: rotate(-35deg);
}

.brand-mark span {
  border-radius: 12px;
  background: linear-gradient(135deg, #0ee2ff, #175dff 55%, #8d51ff);
  box-shadow: 0 0 24px rgba(31, 111, 255, 0.48);
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(3) {
  opacity: 0.72;
}

.brand-mark.tiny {
  width: 18px;
  height: 18px;
  gap: 3px;
  vertical-align: middle;
}

.sidebar-search,
.template-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(0 0 0 / 92%);
  color: var(--muted);
}

.sidebar-search input,
.template-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 13px;
}

.sidebar-search kbd,
.send-hint kbd {
  min-width: 33px;
  padding: 3px 7px;
  border: 1px solid rgba(144, 166, 214, 0.19);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #b6c3dc;
  font-size: 11px;
  font-weight: 700;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: #8a8888;
  text-align: left;
  transition: 0.22s ease;
  font-size: 13px;
  font-weight: 600;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.workspace-switcher {
  display: grid;
  grid-template-columns: 40px 1fr 18px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  text-align: left;
}

.workspace-switcher:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.workspace-switcher strong,
.workspace-switcher small {
  display: block;
}

.workspace-switcher small {
  color: var(--muted);
}

.workspace-avatar {
  width: 40px;
  height: 40px;
  border-radius: 99px;
  background:
    radial-gradient(circle at 35% 35%, #e7f5ff, transparent 17%),
    linear-gradient(135deg, #12d8ff, #195aff 48%, #a64cff);
  box-shadow: 0 12px 35px rgba(31, 91, 255, 0.32);
}

.main {
  min-width: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: var(--topbar-height) 1fr;
  background:
    radial-gradient(circle at 45% 0%, rgba(37, 117, 255, 0.13), transparent 36%),
    radial-gradient(circle at 75% 100%, rgba(9, 202, 255, 0.07), transparent 40%),
    rgba(0, 0, 0, 0.1);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 14, 0.62);
  backdrop-filter: blur(24px);
  z-index: 10;
}

.project-picker,
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.project-name,
.branch-pill,
.ghost-btn,
.primary-btn,
.avatar-btn,
.wide-muted-btn,
.link-btn,
.primary-small,
.danger-btn {
  border: 1px solid rgb(129 155 205 / 0%);
  border-radius: var(--radius-sm);
  background: rgba(12, 20, 35, 0.76);
  color: #dbe6f7;
}

.project-name,
.branch-pill,
.ghost-btn,
.primary-btn,
.avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
}

.project-name {
  padding-left: 9px;
}

.small-app-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(22, 106, 255, 0.35), rgba(0, 214, 255, 0.12)),
    rgba(19, 37, 70, 0.85);
  position: relative;
}

.small-app-icon::before,
.small-app-icon::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid #36b7ff;
  border-radius: 5px;
  transform: rotate(45deg);
}

.small-app-icon::after {
  inset: 13px;
  border-color: #265bff;
  transform: rotate(0deg);
}

.saved-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 14px;
}

.saved-status span,
.live-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(33, 214, 155, 0.6);
}

.primary-btn {
  border-color: rgba(66, 138, 255, 0.85);
  background: linear-gradient(135deg, #177fff, var(--purple));
  color: #fff;
  box-shadow: 0 0 36px rgba(23, 105, 255, 0.26);
  font-weight: 700;
}

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

.avatar-btn {
  width: 44px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 57, 120, 0.52);
  color: #9cc9ff;
  font-weight: 800;
}

.icon {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.screen {
  min-height: 0;
  overflow: hidden;
  display: none;
  padding: 26px;
}

.screen.is-active {
  display: block;
}

.screen-home {
  position: relative;
  isolation: isolate;
  background: #131a43;
}

.screen-home .vanta-home-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #131a43;
  opacity: 0.78;
  pointer-events: none;
}

.screen-home > canvas,
.screen-home .vanta-home-bg canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  opacity: 0.78;
}

.screen-home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 48% 18%, rgba(1, 12, 28, 0.22), transparent 33%),
    radial-gradient(circle at 84% 30%, rgba(0, 0, 0, 0.18), transparent 36%),
    linear-gradient(90deg, rgba(2, 5, 13, 0.70), rgba(2, 6, 14, 0.38) 42%, rgba(1, 4, 10, 0.60));
}

.panel {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(17, 27, 46, 0.78), rgba(7, 13, 24, 0.78)),
    radial-gradient(circle at 50% 0%, rgba(48, 116, 255, 0.12), transparent 45%);
  box-shadow: var(--shadow);
}

.flush-panel {
  overflow: hidden;
}

.panel-title,
.preview-top,
.explorer-head,
.templates-toolbar,
.section-line,
.deploy-row,
.urlbar,
.build-status-row,
.flow-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-title {
  margin-bottom: 18px;
}

.link-btn {
  border: 0;
  background: transparent;
  color: #56a2ff;
  padding: 0;
}

.home-layout {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(680px, 1fr) 340px;
  gap: 22px;
}

.home-center {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 30px 32px;
}

.hero-orb {
  width: 230px;
  height: 150px;
  position: relative;
  margin-bottom: 14px;
}

.hero-orb-ring {
  position: absolute;
  inset: 26px 10px;
  border: 1px solid rgba(60, 126, 255, 0.24);
  border-radius: 50%;
  transform: rotate(-13deg);
}

.ring-b {
  transform: rotate(28deg) scale(0.85);
  border-color: rgba(44, 213, 255, 0.12);
}

.hero-code-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(28, 101, 255, 0.28), rgba(10, 16, 34, 0.93));
  border: 1px solid rgba(75, 139, 255, 0.78);
  box-shadow: 0 0 70px rgba(24, 98, 255, 0.46);
}

.hero-code-card .icon {
  width: 38px;
  height: 38px;
  transform: rotate(-45deg);
  color: #8cc3ff;
}

.home-center h1 {
  margin: 0;
  font-size: clamp(45px, 5vw, 66px);
  line-height: 1;
  letter-spacing: -0.07em;
  background: linear-gradient(90deg, #fff, #9eb6dc 80%);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 560px;
  margin: 18px 0 48px;
  color: var(--muted);
  font-size: 18px;
  text-align: center;
}

.suggestion-grid {
  width: min(100%, 1060px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 52px;
}

.suggestion-card,
.template-feature,
.template-card,
.flow-node {
  text-align: left;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 32, 54, 0.68), rgba(8, 15, 29, 0.82));
  color: inherit;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(30px);
}

.suggestion-card {
  min-height: 160px;
  padding: 24px;
  position: relative;
  transition: 0.22s ease;
}

.suggestion-card:hover,
.template-card:hover,
.template-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(68, 136, 255, 0.58);
  box-shadow: var(--glow);
}

.card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  margin-bottom: 20px;
}

.purple { background: rgba(124, 77, 255, 0.16); color: #a990ff; }
.blue { background: rgba(23, 105, 255, 0.17); color: #6fb3ff; }
.green { background: rgba(33, 214, 155, 0.14); color: #37dfb1; }
.orange { background: rgba(255, 138, 61, 0.15); color: #ff9d63; }
.cyan { background: rgba(56, 214, 255, 0.14); color: #64e5ff; }

.suggestion-card strong,
.suggestion-card small {
  display: block;
}

.suggestion-card small {
  color: var(--muted);
  margin-top: 8px;
}

.card-arrow {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: #8494af;
}

.composer {
  width: 100%;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(74, 133, 255, 0.34);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(8, 14, 26, 0.92), rgba(7, 12, 23, 0.9));
  box-shadow: 0 0 0 1px rgba(40, 108, 255, 0.20), 0 20px 74px rgba(0, 88, 255, 0.16);
  overflow: visible;
  backdrop-filter: blur(30px);
}

.composer::before,
.composer::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
  animation: composer-border-spin 14s linear infinite;
}

.composer::before {
  inset: -2px;
  padding: 2px;
  z-index: 0;
  background: conic-gradient(
    from var(--composer-angle),
    transparent 0deg,
    transparent 92deg,
    rgba(39, 160, 255, 0.95) 128deg,
    rgba(124, 77, 255, 0.95) 168deg,
    rgba(56, 214, 255, 0.88) 216deg,
    transparent 278deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.composer::after {
  inset: -7px;
  z-index: -1;
  background: conic-gradient(
    from var(--composer-angle),
    transparent 0deg,
    transparent 98deg,
    rgba(39, 160, 255, 0.48) 138deg,
    rgba(124, 77, 255, 0.44) 180deg,
    rgba(56, 214, 255, 0.36) 226deg,
    transparent 292deg,
    transparent 360deg
  );
  filter: blur(18px);
  opacity: 0.48;
}

.composer > * {
  position: relative;
  z-index: 1;
}

.composer-large {
  max-width: 1080px;
  padding: 23px 28px 18px;
}

.composer textarea {
  width: 100%;
  min-height: 62px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
}

.composer textarea::placeholder {
  color: #71809a;
}

.composer-row {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.composer-tools,
.composer-send,
.composer-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
}

.composer-tools button,
.composer-send button,
.composer-bottom button,
.tool-pill {
  min-height: 42px;
  border: 1px solid rgb(129 155 205 / 0%);
  border-radius: var(--radius-sm);
  background: rgba(19, 29, 49, 0.72);
  color: #c6d2e7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 600;
}

.composer-tools button:not(.tool-pill),
.composer-send button:not(.send-btn) {
  width: 42px;
  padding: 0;
  justify-content: center;
}

.send-btn {
  width: 52px !important;
  height: 52px;
  min-height: 52px !important;
  border-radius: 50% !important;
  justify-content: center;
  border: 0 !important;
  background: linear-gradient(135deg, #1266ff, #2ea9ff) !important;
  box-shadow: 0 0 38px rgba(23, 105, 255, 0.45);
  color: #fff !important;
}

.composer-bottom {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  justify-content: flex-start;
}

.switch-line {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #cbd7ed;
}

.switch-line input,
.toggle-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-line > span,
.toggle-label > span {
  width: 42px;
  height: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  border: 1px solid var(--line);
}

.switch-line > span::before,
.toggle-label > span::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #a7b7d0;
  transition: 0.2s ease;
}

.switch-line input:checked + span,
.toggle-label input:checked + span {
  background: var(--blue);
}

.switch-line input:checked + span::before,
.toggle-label input:checked + span::before {
  transform: translateX(20px);
  background: #fff;
}

.send-hint {
  margin: 20px 0 0;
  color: var(--muted-2);
  text-align: center;
}

.right-rail,
.monitor-rail {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: center;
}

.home-rail .panel {
  padding: 22px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(33, 214, 155, 0.09);
  color: var(--green);
  font-size: 12px;
}

.live-dot::before {
  content: "";
  display: inline-block;
}

.mini-site-preview {
  min-height: 172px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 60%, rgba(111, 42, 255, 0.48), transparent 34%),
    radial-gradient(circle at 30% 20%, rgba(20, 105, 255, 0.36), transparent 36%),
    linear-gradient(140deg, #07101f, #0b0e2d 72%, #1b0a48);
  overflow: hidden;
  position: relative;
}

.mini-site-preview::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -38px;
  width: 180px;
  height: 100px;
  border: 1px solid rgba(85, 160, 255, 0.46);
  border-radius: 50%;
  transform: rotate(-17deg);
}

.mini-nav,
.mini-actions {
  display: flex;
  gap: 12px;
  color: #aebbd3;
  font-size: 11px;
}

.mini-nav {
  justify-content: space-between;
}

.mini-site-preview h3 {
  margin: 34px 0 10px;
  line-height: 1.08;
}

.mini-site-preview p {
  width: 72%;
  margin: 0 0 16px;
  color: #9daac5;
  font-size: 12px;
}

.mini-actions span {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.mini-actions span:first-child {
  background: #146aff;
  color: #fff;
}

.preview-link {
  margin-top: 15px;
  display: flex;
  gap: 11px;
  align-items: center;
  color: #c9d5e9;
}

.status-list,
.activity-list,
.health-card ul,
.pipeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.status-list li {
  display: grid;
  grid-template-columns: 22px 1fr auto 14px;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: #c8d2e5;
}

.status-list em {
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}

.ok,
.warn,
.green-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--green);
}

.warn {
  border-color: #ffbf4d;
}

.wide-muted-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.055);
}

.activity-list li {
  display: grid;
  grid-template-columns: 1fr auto 18px;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
}

.activity-list small {
  color: var(--muted);
}

.activity-list b {
  color: var(--green);
}

.build-layout {
  height: 100%;
  display: grid;
  grid-template-columns: 305px minmax(430px, 1fr) minmax(520px, 0.95fr);
  gap: 14px;
}

.explorer,
.build-chat,
.live-preview {
  height: 100%;
  min-height: 0;
}

.explorer {
  padding: 18px;
}

.explorer-head {
  margin-bottom: 18px;
}

.explorer-head button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
}

.file-tree {
  height: calc(100% - 54px);
  overflow: auto;
  padding-right: 4px;
  color: #aab7cf;
  font-size: 14px;
}

.file-tree details {
  margin: 6px 0;
}

.file-tree summary,
.file-indent {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border-radius: 8px;
}

.file-tree summary {
  cursor: pointer;
}

.file-indent {
  padding-left: 24px;
  position: relative;
}

.file-indent.selected {
  background: rgba(29, 90, 185, 0.32);
  color: #dce9ff;
  padding-left: 13px;
  margin: 4px 0 4px 18px;
}

.file-indent.selected b {
  margin-left: auto;
  margin-right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6c9dff;
}

.root-file {
  padding-left: 0;
  margin-top: 10px;
}

.build-chat {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.build-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dce8fb;
}

.message-stack {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 10px 18px;
}

.chat-bubble {
  max-width: 390px;
  padding: 16px 20px;
  border-radius: 17px;
}

.user-bubble {
  margin-left: auto;
  background: #121e33;
}

.user-bubble p,
.ai-card p {
  margin: 0;
}

.user-bubble small {
  color: #9ebce4;
  float: right;
}

.ai-card {
  width: min(520px, 100%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(12, 21, 36, 0.84);
}

.ai-head,
.chip-row,
.task-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-head {
  margin-bottom: 14px;
}

.ai-head small {
  color: var(--muted);
}

.assistant-dot {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a6dff, #8f4fff);
}

.task-list {
  margin: 18px 0;
  display: grid;
  gap: 10px;
  color: #aab8cf;
}

.task-list li::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1px solid rgba(160, 179, 215, 0.4);
  border-radius: 50%;
}

.task-list li.done::before {
  border-color: var(--green);
  background: radial-gradient(circle, var(--green) 32%, transparent 34%);
}

.task-list li.running::before {
  border-color: #8aaeff;
  box-shadow: 0 0 12px rgba(82, 140, 255, 0.7);
}

.chip-row span,
.template-card-tags span,
.template-feature div span,
.template-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #acb9cf;
  font-size: 13px;
}

.chip-row .success-chip {
  color: var(--green);
}

.build-composer {
  padding: 14px 18px 12px;
  border-radius: 20px;
}

.build-composer textarea,
.workflow-composer textarea {
  min-height: 48px;
  font-size: 16px;
}

.compact-bottom {
  margin-top: 12px;
  padding-top: 12px;
}

.live-preview {
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.preview-top {
  margin-bottom: 14px;
}

.segmented {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(8, 15, 27, 0.7);
}

.segmented button,
.template-tabs button {
  min-height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.segmented button.is-active,
.template-tabs button.is-active {
  color: #fff;
  background: rgba(30, 101, 255, 0.32);
}

.urlbar {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-preview {
  flex: 1;
  min-height: 0;
  margin-top: 14px;
  display: grid;
  grid-template-columns: 150px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #060b14;
}

.dashboard-preview aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
}

.dashboard-preview aside button,
.quick-actions button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9da9be;
  text-align: left;
  padding: 0 12px;
}

.dashboard-preview aside button.active,
.quick-actions button:hover {
  color: #fff;
  background: rgba(25, 97, 255, 0.32);
}

.dashboard-preview main {
  min-width: 0;
  overflow: auto;
  padding: 22px;
}

.mini-profile {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.mini-profile span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9fbeff, #193a72);
}

.dash-head,
.metric-grid,
.dashboard-bottom {
  display: grid;
  gap: 14px;
}

.dash-head {
  grid-template-columns: 1fr auto;
  align-items: start;
  margin-bottom: 18px;
}

.dash-head h2,
.dash-head p {
  margin: 0;
}

.dash-head p {
  color: var(--muted);
}

.dash-head button,
.chart-card button,
.template-card footer button,
.deploy-row button,
.logs-card select,
.monitor-grid select {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: #cbd7eb;
  min-height: 34px;
  padding: 0 12px;
}

.metric-grid {
  grid-template-columns: repeat(2, 1fr);
}

.metric-grid article,
.chart-card,
.quick-actions {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.metric-grid article span,
.metric-grid article small {
  display: block;
  color: var(--muted);
}

.metric-grid article strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 25px;
}

.metric-grid article small:not(.danger) {
  color: var(--green);
}

.danger {
  color: #ff6f76 !important;
}

.sparkline {
  display: block;
  height: 34px;
  margin-top: 8px;
  background: linear-gradient(135deg, transparent 20%, rgba(42, 139, 255, 0.12)),
    linear-gradient(160deg, transparent 0 30%, #1a77ff 31% 36%, transparent 37% 48%, #20d4ff 49% 54%, transparent 55% 66%, #1a77ff 67% 72%, transparent 73%);
  border-radius: 10px;
}

.sparkline.alt {
  background: linear-gradient(160deg, transparent 0 22%, #21d69b 23% 28%, transparent 29% 46%, #15a0ff 47% 52%, transparent 53% 67%, #21d69b 68% 73%, transparent 74%);
}

.dashboard-bottom {
  grid-template-columns: 1.5fr 0.7fr;
  margin-top: 16px;
}

.chart-card div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-card svg {
  width: 100%;
  height: 145px;
  color: #207dff;
  margin-top: 8px;
}

.quick-actions {
  display: grid;
  gap: 9px;
}

.build-status-row {
  min-height: 70px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  color: #c7d4e8;
}

.build-status-row span {
  flex: 1;
}

.build-status-row b {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border-radius: 50%;
  border: 2px solid var(--green);
}

.build-status-row small {
  color: var(--muted);
}

.build-status-row button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: #cbd7eb;
}

.workflow-layout {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 365px;
  gap: 18px;
}

.workflow-canvas {
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.flow-status-strip {
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 25, 43, 0.72);
  color: var(--muted);
}

.flow-status-strip button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #d6e2f3;
  background: rgba(255, 255, 255, 0.04);
}

.healthy,
.success,
.green-text {
  color: var(--green);
}

.node-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
  background-image:
    radial-gradient(circle, rgba(111, 139, 185, 0.19) 1px, transparent 1px),
    radial-gradient(circle at 50% 30%, rgba(18, 87, 189, 0.14), transparent 43%);
  background-size: 22px 22px, auto;
}

.canvas-tools {
  position: absolute;
  z-index: 4;
  left: 38px;
  top: 112px;
  display: grid;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 13, 24, 0.82);
}

.canvas-tools button {
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #aebbd1;
}

.canvas-tools button.active {
  border-color: rgba(64, 130, 255, 0.75);
  background: rgba(30, 99, 255, 0.23);
  color: #fff;
}

.connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(177, 201, 232, 0.68);
  z-index: 0;
}

.connectors path {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.flow-node {
  position: absolute;
  z-index: 2;
  width: 180px;
  min-height: 145px;
  padding: 16px;
  transition: 0.2s ease;
}

.flow-node:hover,
.flow-node.is-selected {
  border-color: rgba(74, 139, 255, 0.9);
  box-shadow: var(--glow);
}

.flow-node::before,
.flow-node::after {
  content: "";
  position: absolute;
  top: 72px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9cc3e4;
  border: 2px solid #07101d;
}

.flow-node::before { left: -7px; }
.flow-node::after { right: -7px; }

.flow-node strong,
.flow-node small,
.flow-node em {
  display: block;
}

.flow-node strong {
  margin: 10px 0 8px;
}

.flow-node small {
  color: #a3b1c7;
}

.flow-node em {
  width: fit-content;
  margin-top: 12px;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.node-type {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.minimap {
  position: absolute;
  left: 24px;
  bottom: 65px;
  width: 170px;
  height: 105px;
  border: 1px solid rgba(42, 122, 255, 0.9);
  border-radius: 12px;
  background: rgba(11, 21, 36, 0.82);
}

.minimap span {
  position: absolute;
  width: 32px;
  height: 14px;
  border-radius: 4px;
  background: rgba(134, 156, 192, 0.28);
}
.minimap span:nth-child(1) { left: 25px; top: 24px; }
.minimap span:nth-child(2) { left: 70px; top: 24px; }
.minimap span:nth-child(3) { left: 100px; top: 52px; }
.minimap span:nth-child(4) { left: 45px; top: 70px; }

.zoom-controls {
  position: absolute;
  left: 24px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 16, 28, 0.85);
}

.zoom-controls button {
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.zoom-controls strong {
  color: var(--muted);
  font-size: 13px;
}

.workflow-composer {
  width: min(720px, calc(100% - 230px));
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 18px 20px;
}

.node-properties {
  padding: 22px;
  height: 100%;
  overflow: auto;
}

.node-properties h2 {
  margin: -8px 0 20px;
}

.node-properties label,
.settings-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #cbd6e9;
}

.node-properties textarea,
.node-properties input,
.node-properties select,
.settings-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 15, 28, 0.68);
  color: #dce7fb;
  padding: 12px 14px;
}

.node-properties textarea {
  min-height: 78px;
  resize: vertical;
}

.toggle-label {
  grid-template-columns: 1fr 42px;
  align-items: center;
}

.node-id {
  display: grid;
  grid-template-columns: 1fr auto 34px;
  align-items: center;
  gap: 8px;
  min-height: 76px;
  margin: 22px 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.node-id span {
  color: var(--muted);
  grid-column: 1 / -1;
}

.node-id button {
  border: 0;
  background: transparent;
  color: #a9b8d0;
}

.danger-btn {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: rgba(255, 79, 104, 0.35);
  background: rgba(255, 79, 104, 0.12);
  color: #ff7386;
  font-weight: 700;
}

.templates-layout {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
}

.templates-main {
  min-width: 0;
  height: 100%;
  overflow: auto;
  padding-right: 4px;
}

.templates-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 170px 170px auto;
  margin-bottom: 20px;
}

.templates-toolbar select,
.templates-toolbar .primary-btn {
  min-height: 48px;
}

.templates-toolbar select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(12, 20, 35, 0.76);
  color: #dbe6f7;
  padding: 0 14px;
}

.template-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.section-line {
  margin-bottom: 14px;
}

.section-line h2,
.section-line p,
.grid-heading,
.page-intro h1,
.page-intro p {
  margin: 0;
}

.section-line p,
.page-intro p {
  color: var(--muted);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.template-feature {
  position: relative;
  padding: 16px;
  min-height: 258px;
}

.template-feature.is-selected {
  border-color: rgba(49, 120, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(45, 111, 255, 0.18);
}

.badge,
.warn-badge {
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 18px;
  min-height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(23, 105, 255, 0.22);
  color: #77b7ff;
  border: 1px solid rgba(23, 105, 255, 0.4);
}

.badge.purple { color: #c3a7ff; border-color: rgba(124, 77, 255, 0.45); }
.badge.green { color: #6df1c6; border-color: rgba(33, 214, 155, 0.45); }

.template-thumb,
.large-template-preview {
  height: 110px;
  border-radius: 13px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(160deg, rgba(31, 111, 255, 0.33), transparent 50%),
    linear-gradient(180deg, #101a2d, #08101d);
}

.template-thumb::before,
.template-thumb::after,
.large-template-preview::before,
.large-template-preview::after {
  content: "";
  position: absolute;
  border-radius: 8px;
  background: rgba(39, 160, 255, 0.28);
}

.template-thumb::before,
.large-template-preview::before {
  left: 20px;
  bottom: 18px;
  width: 58%;
  height: 34px;
  background: linear-gradient(90deg, rgba(39, 160, 255, 0.18), rgba(23, 105, 255, 0.78));
}

.template-thumb::after,
.large-template-preview::after {
  right: 18px;
  top: 18px;
  width: 80px;
  height: 52px;
  background: rgba(255, 255, 255, 0.08);
}

.purple-thumb { background: radial-gradient(circle at 60% 35%, rgba(125, 77, 255, 0.52), transparent 36%), linear-gradient(180deg, #120c2b, #08101d); }
.app-thumb { background: radial-gradient(circle at 77% 50%, rgba(33, 214, 155, 0.38), transparent 26%), linear-gradient(160deg, #071a27, #07101d); }
.ecommerce-thumb { background: linear-gradient(180deg, #f4f7ff 0 62%, #1d2535 63%); }
.landing-thumb { background: radial-gradient(circle at 70% 50%, rgba(124, 77, 255, 0.55), transparent 36%), linear-gradient(135deg, #10173a, #080d19); }
.chat-thumb { background: radial-gradient(circle at 35% 40%, rgba(25, 97, 255, 0.42), transparent 30%), #08101d; }
.finance-thumb { background: radial-gradient(circle at 20% 25%, rgba(124, 77, 255, 0.34), transparent 30%), #091120; }
.task-thumb { background: linear-gradient(135deg, #f2f5fb 0 45%, #0b1528 46%); }

.template-feature h3,
.template-card h3 {
  margin: 16px 0 7px;
}

.template-feature p,
.template-card p,
.template-detail p {
  margin: 0 0 13px;
  color: var(--muted);
}

.template-feature div:last-child,
.template-card-tags,
.template-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 30px;
}

.template-card {
  padding: 16px;
}

.template-card footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.template-card footer small {
  color: var(--muted);
}

.primary-small {
    border-color: rgba(66, 138, 255, 0.8) !important;
    background: linear-gradient(135deg, #2f58ff, #7051ff) !important;
    color: #fff !important;
	font-size: 12px;
	display: flex;
	align-items: center;
}

.template-detail {
  height: 100%;
  padding: 22px;
  overflow: auto;
}

.large-template-preview {
  height: 150px;
  margin-bottom: 18px;
}

.popularity,
.included-list {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stats-row strong {
  display: grid;
  gap: 3px;
  font-size: 20px;
}

.stats-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.bar-week {
  display: flex;
  align-items: end;
  gap: 16px;
  height: 70px;
  margin-top: 18px;
}

.bar-week span {
  width: 14px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #1f8fff, #145aff);
}

.bar-week span:nth-child(1) { height: 25px; }
.bar-week span:nth-child(2) { height: 20px; }
.bar-week span:nth-child(3) { height: 30px; }
.bar-week span:nth-child(4) { height: 38px; }
.bar-week span:nth-child(5) { height: 28px; }
.bar-week span:nth-child(6) { height: 52px; }
.bar-week span:nth-child(7) { height: 60px; }

.included-list p {
  margin: 7px 0;
  color: #bdd0e9;
}

.monitor-layout {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 335px;
  gap: 22px;
}

.monitor-main {
  min-width: 0;
  height: 100%;
  overflow: auto;
}

.page-intro {
  margin: 4px 0 20px;
}

.page-intro h1 {
  font-size: 32px;
  letter-spacing: -0.04em;
}

.monitor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 25px;
}

.monitor-grid .panel,
.monitor-rail .panel {
  padding: 20px;
}

.monitor-grid .double {
  grid-column: span 2;
}

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

.integration-grid > div,
.env-card,
.usage-grid > div,
.env-vars p,
.deploy-row,
.alert-row,
.endpoints-card p {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.integration-grid > div {
  min-height: 92px;
  padding: 14px;
  display: grid;
  gap: 5px;
}

.integration-grid small,
.integration-grid b,
.env-card b,
.deploy-row small,
.deploy-row em,
.health-card li,
.alert-row small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.integration-grid b,
.env-card b,
.deploy-row span {
  color: var(--green);
}

.deploy-targets {
  grid-column: span 2;
}

.env-card {
  min-height: 62px;
  margin-bottom: 10px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 10px;
}

.env-vars,
.pipeline-card {
  grid-column: span 1;
}

.env-vars p {
  min-height: 39px;
  display: grid;
  grid-template-columns: 1fr auto 18px;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  padding: 0 12px;
  color: #c6d4e9;
  font-size: 13px;
}

.pipeline-list {
  display: grid;
  gap: 13px;
  counter-reset: pipe;
}

.pipeline-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  position: relative;
  padding-left: 24px;
  color: #c7d3e8;
}

.pipeline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--green);
  border-radius: 50%;
}

.pipeline-list li span {
  color: var(--green);
  font-size: 13px;
}

.pipeline-list li.active span,
.pipeline-list li.active::before {
  color: #55a7ff;
  border-color: #1686ff;
}

.usage-card,
.recent-deployments,
.logs-card {
  grid-column: span 2;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.usage-grid > div {
  min-height: 92px;
  padding: 12px;
}

.usage-grid small,
.usage-grid em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.usage-grid strong {
  display: block;
  margin: 4px 0;
  font-size: 22px;
}

.usage-grid em {
  color: var(--green);
}

.recent-deployments {
  display: grid;
  gap: 10px;
}

.deploy-row {
  min-height: 48px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 110px 55px 1fr 70px auto;
}

.deploy-row span {
  padding: 4px 8px;
  border-radius: 99px;
  background: rgba(33, 214, 155, 0.1);
  justify-self: start;
}

.logs-card pre {
  margin: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.14);
  color: #b8c5dc;
  font-size: 13px;
  line-height: 1.9;
  overflow: auto;
}

.monitor-rail {
  height: 100%;
  align-content: start;
  overflow: auto;
}

.health-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(33, 214, 155, 0.16);
  border-top-color: var(--green);
  box-shadow: 0 0 24px rgba(33, 214, 155, 0.2);
}

.health-card li,
.endpoints-card p {
  display: flex;
  justify-content: space-between;
  min-height: 34px;
}

.health-card li span,
.endpoints-card span {
  color: var(--green);
}

.alert-row {
  margin-bottom: 10px;
  padding: 14px;
  display: grid;
  gap: 4px;
}

.alert-row em,
.warn-badge {
  width: fit-content;
  color: #ffbf4d;
  background: rgba(255, 191, 77, 0.12);
  border: 1px solid rgba(255, 191, 77, 0.25);
  border-radius: 9px;
  padding: 4px 8px;
  font-style: normal;
  font-size: 12px;
}

.warn-badge {
  position: static;
}

.endpoints-card p {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100;
  transform: translate(-50%, 140%);
  min-width: 240px;
  padding: 14px 18px;
  border: 1px solid rgba(49, 136, 255, 0.35);
  border-radius: 13px;
  background: rgba(8, 14, 27, 0.96);
  box-shadow: var(--glow);
  color: #dce8fb;
  text-align: center;
  transition: 0.28s ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
}

@media (max-width: 1500px) {
  :root { --sidebar-width: 245px; }
  .suggestion-grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-bottom: 28px; }
  .home-layout { grid-template-columns: 1fr 315px; }
  .build-layout { grid-template-columns: 265px 1fr 470px; }
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .usage-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1180px) {
  body { overflow: auto; }
  .app-shell { min-height: 100vh; height: auto; grid-template-columns: 82px 1fr; }
  .sidebar { position: sticky; top: 0; height: 100vh; padding-inline: 12px; }
  .brand-title,
  .nav-link span:not(.icon),
  .workspace-switcher span:not(.workspace-avatar):not(.icon),
  .sidebar-search input,
  .sidebar-search kbd { display: none; }
  .nav-link { justify-content: center; padding: 0; }
  .topbar { padding-inline: 16px; }
  .screen { overflow: visible; padding: 16px; }
  .home-layout,
  .build-layout,
  .workflow-layout,
  .templates-layout,
  .monitor-layout { height: auto; grid-template-columns: 1fr; }
  .right-rail,
  .monitor-rail { grid-template-columns: repeat(2, 1fr); }
  .live-preview,
  .workflow-canvas { min-height: 820px; }
  .monitor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; flex-direction: row; align-items: center; overflow-x: auto; }
  .sidebar-search,
  .sidebar-bottom { display: none; }
  .nav-list { display: flex; }
  .main { height: auto; min-height: 100vh; grid-template-rows: auto 1fr; }
  .topbar { flex-wrap: wrap; padding-block: 14px; }
  .top-actions { width: 100%; overflow-x: auto; }
  .home-center { padding-inline: 0; }
  .suggestion-grid,
  .featured-grid,
  .template-grid,
  .right-rail,
  .monitor-rail,
  .metric-grid,
  .dashboard-bottom { grid-template-columns: 1fr; }
  .templates-toolbar { grid-template-columns: 1fr; }
  .monitor-grid { grid-template-columns: 1fr; }
  .monitor-grid .double,
  .deploy-targets,
  .usage-card,
  .recent-deployments,
  .logs-card { grid-column: auto; }
}

/* Compact typography and icon scale */
body {
  font-size: 14px;
}

.brand-title {
  font-size: 18px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  gap: 3px;
}

.brand-mark.tiny {
  width: 15px;
  height: 15px;
}

.icon {
  width: 16px;
  height: 16px;
}

.nav-link {
  min-height: 42px;
  gap: 10px;
  padding: 0 13px;
}

.sidebar-search,
.template-search {
  min-height: 44px;
}

.project-name,
.branch-pill,
.ghost-btn,
.primary-btn,
.avatar-btn {
  min-height: 40px;
  padding: 0 15px;
  gap: 8px;
  
}

.avatar-btn {
  width: 40px;
}

.small-app-icon {
  width: 28px;
  height: 28px;
}

.saved-status,
.activity-list li,
.file-tree {
  font-size: 13px;
}

.home-center h1 {
  font-size: clamp(38px, 4.4vw, 56px);
}

.hero-lead {
  font-size: 15px;
  margin-bottom: 42px;
}

.hero-orb {
  width: 205px;
  height: 132px;
}

.hero-code-card {
  width: 78px;
  height: 78px;
  border-radius: 21px;
}

.hero-code-card .icon {
  width: 31px;
  height: 31px;
}

.suggestion-card {
  min-height: 145px;
  padding: 20px;
}

.card-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  margin-bottom: 16px;
}

.composer-large {
  padding: 20px 24px 16px;
}

.composer textarea {
  min-height: 54px;
  font-size: 15px;
}

.composer-tools button,
.composer-send button,
.composer-bottom button,
.tool-pill {
  min-height: 38px;
  padding: 0 12px;
  gap: 7px;
}

.composer-tools button:not(.tool-pill),
.composer-send button:not(.send-btn) {
  width: 38px;
}

.send-btn {
    width: 38px !important;
    height: 38px;
    min-height: 38px !important;
}

.switch-line,
.toggle-label {
  font-size: 13px;
}

.switch-line > span,
.toggle-label > span {
  width: 38px;
  height: 20px;
}

.switch-line > span::before,
.toggle-label > span::before {
  width: 14px;
  height: 14px;
}

.switch-line input:checked + span::before,
.toggle-label input:checked + span::before {
  transform: translateX(18px);
}

.home-rail .panel,
.template-detail,
.node-properties,
.monitor-grid .panel,
.monitor-rail .panel {
  padding: 18px;
}

.panel-title {
  margin-bottom: 15px;
}

.status-list em,
.integration-grid small,
.integration-grid b,
.env-card b,
.deploy-row small,
.deploy-row em,
.health-card li,
.alert-row small,
.chip-row span,
.template-card-tags span,
.template-feature div span,
.template-stack span,
.env-vars p,
.pipeline-list li span,
.logs-card pre {
  font-size: 12px;
}

.status-list li,
.activity-list li {
  min-height: 36px;
}

.ok,
.warn,
.green-dot {
  width: 10px;
  height: 10px;
}

.build-layout {
  grid-template-columns: 285px minmax(420px, 1fr) minmax(500px, 0.95fr);
}

.explorer,
.live-preview {
  padding: 16px;
}

.build-chat {
  padding: 19px;
}

.message-stack {
  gap: 15px;
  padding: 18px 8px 15px;
}

.chat-bubble {
  padding: 14px 17px;
}

.ai-card {
  padding: 17px;
}

.assistant-dot {
  width: 31px;
  height: 31px;
  border-radius: 10px;
}

.build-composer textarea,
.workflow-composer textarea {
  min-height: 42px;
  font-size: 14px;
}

.segmented button,
.template-tabs button,
.dash-head button,
.chart-card button,
.template-card footer button,
.deploy-row button,
.logs-card select,
.monitor-grid select {
  min-height: 31px;
  font-size: 13px;
}

.metric-grid article strong {
  font-size: 21px;
}

.chart-card svg {
  height: 125px;
}

.flow-status-strip {
  min-height: 52px;
}

.canvas-tools button {
  width: 34px;
  height: 34px;
}

.flow-node {
  width: 170px;
  min-height: 132px;
  padding: 14px;
  font-size: 13px;
}

.flow-node em,
.node-type,
.badge,
.warn-badge {
  font-size: 11px;
}

.workflow-composer {
  padding: 15px 18px;
}

.node-properties textarea,
.node-properties input,
.node-properties select,
.settings-form select {
  min-height: 42px;
  padding: 10px 12px;
}

.danger-btn {
  min-height: 48px;
}

.templates-toolbar select,
.templates-toolbar .primary-btn {
  min-height: 42px;
}

.template-feature,
.template-card {
  padding: 14px;
}

.template-feature h3,
.template-card h3 {
  margin: 13px 0 6px;
}

.large-template-preview {
  height: 132px;
}

.stats-row strong {
  font-size: 17px;
}

.page-intro h1 {
  font-size: 27px;
}

.integration-grid > div,
.usage-grid > div {
  min-height: 82px;
  padding: 12px;
}

.usage-grid strong {
  font-size: 19px;
}

.health-ring {
  width: 38px;
  height: 38px;
}

.toast {
  font-size: 13px;
}


/* ------------------------------------------------------------------
   Project screen update — added on top of the current user styles.
   Existing visual system, compact scale, Vanta background and animated
   composer border are preserved.
------------------------------------------------------------------- */
.topbar {
  position: relative;
}

.topbar-center {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 12;
}

.main.is-build-screen .topbar-center {
  display: flex;
}

.device-switcher-top {
  box-shadow: 0 14px 40px rgba(0, 68, 255, 0.16);
}

.branch-pill {
  cursor: pointer;
}

.branch-pill.is-active {
  border-color: rgba(53, 144, 255, 0.68);
  background: rgba(27, 83, 171, 0.34);
  box-shadow: 0 0 0 1px rgba(44, 123, 255, 0.18), 0 0 26px rgba(35, 136, 255, 0.22);
}

.screen-build .build-layout {
  grid-template-columns: minmax(315px, 370px) minmax(0, 1fr);
  gap: 14px;
}

.screen-build .build-chat,
.screen-build .live-preview,
.screen-build .code-workspace {
  min-width: 0;
}

.screen-build .build-chat {
  grid-column: 1;
  padding: 16px;
}

.screen-build .message-stack {
  padding: 16px 6px 14px;
}

.screen-build .ai-card,
.screen-build .chat-bubble {
  width: 100%;
  max-width: 100%;
}

.screen-build .ai-card {
  padding: 15px;
}

.screen-build .task-list {
  gap: 8px;
  margin: 14px 0;
}

.screen-build .chip-row {
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.screen-build .composer-large {
  max-width: none;
  padding: 17px 18px 14px;
}

.screen-build .composer textarea {
  min-height: 48px;
}

.screen-build .composer-bottom {
  flex-wrap: wrap;
}

.screen-build .live-preview,
.screen-build .code-workspace {
  grid-column: 2;
}

.screen-build .preview-top {
  min-height: 34px;
}

.preview-mode-hint {
  color: var(--muted);
  font-size: 12px;
  margin-left: auto;
}

.screen-build .dashboard-preview {
  grid-template-columns: 178px 1fr;
}

.code-workspace {
  display: none;
  overflow: hidden;
  padding: 0;
}

.build-layout.is-code-mode .live-preview {
  display: none;
}

.build-layout.is-code-mode .code-workspace {
  display: grid;
  grid-template-columns: minmax(265px, 0.38fr) minmax(0, 1fr);
}

.code-explorer {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.code-file-tree {
  height: calc(100% - 54px);
}

.code-file-tree .file-indent {
  width: 100%;
  border: 0;
  background: transparent;
  color: #aab7cf;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.code-file-tree .file-indent:hover {
  background: rgba(255, 255, 255, 0.045);
  color: #dce9ff;
}

.code-file-tree .file-indent.selected {
  background: rgba(29, 90, 185, 0.32);
  color: #dce9ff;
}

.code-editor {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(4, 9, 18, 0.38);
}

.code-editor-head {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.code-editor-head small,
.code-editor-head strong {
  display: block;
}

.code-editor-head small {
  color: var(--muted);
  margin-bottom: 3px;
}

.code-editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-editor-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: #dce8fb;
}

.code-editor pre {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 18px 20px;
  overflow: auto;
  color: #cfe1ff;
  background:
    linear-gradient(90deg, rgba(35, 136, 255, 0.04), transparent 26%),
    rgba(2, 7, 15, 0.42);
  font-size: 13px;
  line-height: 1.65;
}

.code-editor code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre;
}

@media (max-width: 1500px) {
  .screen-build .build-layout {
    grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .topbar-center {
    position: static;
    transform: none;
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .main.is-build-screen .topbar {
    flex-wrap: wrap;
    padding-block: 12px;
  }
  .screen-build .build-layout,
  .build-layout.is-code-mode .code-workspace {
    grid-template-columns: 1fr;
  }
  .code-explorer {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 360px;
  }
}

/* ---------------------------------------------------------------
   Current update: project submenu and construction placeholders.
   Added without changing the existing visual system.
---------------------------------------------------------------- */
.nav-group {
  display: grid;
  gap: 0;
}

.project-nav-main {
  position: relative;
  padding-right: 42px;
}

.project-menu-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 9px;
  color: #7d8ca7;
  transition: color 0.22s ease, background 0.22s ease, transform 0.28s ease;
}

.project-menu-arrow:hover {
  color: #dce8fb;
  background: rgba(255, 255, 255, 0.065);
}

.project-menu.is-open .project-menu-arrow {
  color: #8fc4ff;
  transform: translateY(-50%) rotate(180deg);
}

.project-submenu {
  display: grid;
  gap: 6px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-left: 24px;
  transform: translateY(-6px);
  transition: max-height 0.34s ease, opacity 0.24s ease, transform 0.28s ease, margin 0.28s ease;
}

.project-menu.is-open .project-submenu {
  max-height: 260px;
  opacity: 1;
  margin: 7px 0 4px;
  transform: translateY(0);
}

.project-subitem {
  width: 100%;
  min-height: 42px;
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #9aa8bf;
  text-align: left;
  transition: 0.22s ease;
}

.project-subitem:hover,
.project-subitem.is-selected {
  color: #dce8fb;
  background: rgb(20 24 35);
}

.project-subitem strong,
.project-subitem small {
  display: block;
  line-height: 1.2;
}

.project-subitem strong {
  font-size: 12px;
  font-weight: 650;
}

.project-subitem small {
  margin-top: 3px;
  color: #49dcae;
  font-size: 10px;
}

.draft {
    margin-top: 3px;
    color: #ffc93d;
    font-size: 10px;
}

.project-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(91, 156, 255, 0.45);
  box-shadow: 0 0 14px rgba(40, 132, 255, 0.28);
}

.project-subitem.is-selected .project-dot {
  background: #2388ff;
  box-shadow: 0 0 18px rgba(35, 136, 255, 0.62);
}

.screen-construction {
  height: 100%;
}

.construction-state {
  height: 100%;
  min-height: calc(100vh - var(--topbar-height) - 52px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.construction-state::before {
  content: "";
  position: absolute;
  width: min(620px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(35, 136, 255, 0.18), transparent 42%),
    radial-gradient(circle at 34% 40%, rgba(124, 77, 255, 0.12), transparent 44%);
  filter: blur(12px);
  opacity: 0.72;
  pointer-events: none;
}

.construction-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 440px;
  padding: 34px 36px;
  text-align: center;
}

.construction-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(83, 146, 255, 0.34);
  border-radius: 24px;
  color: #8cc3ff;
  background:
    linear-gradient(135deg, rgba(29, 96, 255, 0.28), rgba(8, 14, 27, 0.88));
  box-shadow: 0 0 60px rgba(35, 136, 255, 0.24);
}

.construction-icon .icon {
  width: 34px;
  height: 34px;
}

.construction-card h1 {
  margin: 0;
  font-size: clamp(25px, 2vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #eef5ff;
}

.construction-card p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 1180px) {
  .project-menu-arrow,
  .project-submenu {
    display: none;
  }
}

.atom-logo {
  width: 320px;
  height: 180px;
  display: grid;
  place-items: center;
}

.atom-logo svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.logo-halo {
  fill: url(#centerAura);
  opacity: 0.55;
  filter: blur(20px);
  transform-origin: 160px 90px;
  animation: logoHaloPulse 4.5s ease-in-out infinite;
}

.orbit-line {
  fill: none;
  stroke: #4f8dff;
  stroke-width: 1.15;
  opacity: 0.34;
}

.orbit-group {
  transform-origin: 160px 90px;
}

.orbit-group-1 {
  animation: orbitRotateOne 18s linear infinite;
}

.orbit-group-2 {
  animation: orbitRotateTwo 24s linear infinite reverse;
}

.orbit-particle {
  fill: #8fc5ff;
  filter: url(#particleGlow);
}

.particle-one {
  opacity: 1;
}

.particle-two {
  opacity: 0.82;
}

.core-shape {
  fill: url(#coreFill);
  stroke: #5ea0ff;
  stroke-width: 1.4;
  filter: url(#softGlow);
}

.code-symbol {
  fill: #a9d3ff;
  font-size: 28px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: -1px;
}

@keyframes orbitRotateOne {
  from {
    transform: rotate(-18deg);
  }

  to {
    transform: rotate(342deg);
  }
}

@keyframes orbitRotateTwo {
  from {
    transform: rotate(38deg);
  }

  to {
    transform: rotate(398deg);
  }
}

@keyframes logoHaloPulse {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.45;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.72;
  }
}
/* ---------------------------------------------------------------
   Update: topbar only inside opened project + full Projects hub.
   Added without replacing the current visual style.
---------------------------------------------------------------- */
.main:not(.is-build-screen) {
  grid-template-rows: 1fr;
}

.main:not(.is-build-screen) .topbar {
  display: none;
}

.project-menu.is-open .project-submenu.project-folder-tree {
  max-height: 560px;
}

.project-folder-tree {
  padding-left: 10px;
}

.sidebar-folder {
  display: grid;
  gap: 5px;
}

.sidebar-folder-toggle {
  width: 100%;
  min-height: 36px;
  display: grid;
  grid-template-columns: 17px 1fr 18px;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #9aa8bf;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  transition: 0.22s ease;
}

.sidebar-folder-toggle:hover {
  color: #dce8fb;
  background: rgba(255, 255, 255, 0.045);
}

.sidebar-folder-arrow {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #71809a;
  transition: transform 0.28s ease, color 0.22s ease;
}

.sidebar-folder.is-open .sidebar-folder-arrow {
  color: #8fc4ff;
  transform: rotate(180deg);
}

.sidebar-folder-projects {
  display: grid;
  gap: 5px;
  max-height: 0;
  overflow: hidden;
  padding-left: 18px;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.24s ease;
}

.sidebar-folder.is-open .sidebar-folder-projects {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
}

.sidebar-folder-projects .project-subitem {
  min-height: 38px;
  padding: 7px 9px;
}

.screen-projects {
  height: 100%;
  overflow: auto;
  background:
    radial-gradient(circle at 42% 10%, rgba(35, 104, 255, 0.12), transparent 34%),
    radial-gradient(circle at 78% 78%, rgba(0, 212, 255, 0.07), transparent 38%),
    rgba(1, 5, 13, 0.34);
}

.projects-page {
  width: min(100%, 1360px);
  min-height: 100%;
  margin: 0 auto;
  padding: 32px 28px 44px;
}

.projects-hero {
  display: grid;
  gap: 26px;
  margin-bottom: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #63adff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects-hero h1 {
  margin: 0;
  font-size: 32px;
  line-height: 0.95;
  letter-spacing: -0.065em;
  background: linear-gradient(90deg, #fff, #a9bddf 82%);
  -webkit-background-clip: text;
  color: transparent;
}

.projects-hero p,
.projects-section-head p,
.folder-card p,
.project-action-card small {
  color: var(--muted);
}

.projects-hero p {
  max-width: 660px;
  margin: 14px 0 0;
  font-size: 15px;
}

.projects-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-action-card {
  min-height: 112px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 9px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #010911;
  color: #edf4ff;
  text-align: left;
  backdrop-filter: blur(26px);
  transition: 0.22s ease;
}

.project-action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(68, 136, 255, 0.58);
  box-shadow: var(--glow);
}

.project-action-card > .icon {
  width: 26px;
  height: 26px;
  color: #8fc4ff;
}

.project-action-card strong {
  font-size: 14px;
}

.projects-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  margin-bottom: 22px;
}

.projects-section-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.projects-section-head p {
  margin: 0;
  font-size: 13px;
}

.projects-tabs {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(8, 14, 25, 0.74);
  gap: 4px;
}

.projects-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8f9bb3;
  font-weight: 650;
  transition: 0.2s ease;
}

.projects-tabs button:hover,
.projects-tabs button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.065);
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.folder-card {
  position: relative;
  overflow: hidden;
  min-height: 342px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(16, 27, 47, 0.76), rgba(6, 12, 23, 0.84));
  box-shadow: var(--shadow);
  transition: 0.22s ease;
}

.folder-card:hover {
  transform: translateY(-3px);
  border-color: rgba(68, 136, 255, 0.48);
  box-shadow: var(--glow);
}

.folder-card-menu {
  position: absolute;
  right: 13px;
  top: 11px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(3, 8, 17, 0.44);
  color: #b8c6dd;
  letter-spacing: 2px;
}

.folder-preview {
  height: 170px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--line);
}

.folder-preview::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.44;
}

.folder-preview-blue::before {
  background: radial-gradient(circle, rgba(35, 136, 255, 0.72), transparent 58%);
}

.folder-preview-purple::before {
  background: radial-gradient(circle, rgba(124, 77, 255, 0.72), transparent 58%);
}

.folder-preview-green::before {
  background: radial-gradient(circle, rgba(33, 214, 155, 0.62), transparent 58%);
}

.mini-window,
.node-dot,
.node-line,
.phone-shape,
.phone-line {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(148, 180, 242, 0.20);
  background: rgba(6, 13, 25, 0.82);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.26);
}

.mini-window {
  width: 120px;
  height: 64px;
  border-radius: 14px;
}

.mini-window:nth-child(2) {
  position: absolute;
  left: 44px;
  bottom: 28px;
  width: 74px;
  height: 44px;
}

.mini-window:nth-child(3) {
  position: absolute;
  right: 52px;
  top: 36px;
  width: 88px;
  height: 52px;
}

.node-dot {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.node-line {
  width: 130px;
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(93, 175, 255, 0.86), transparent);
  box-shadow: 0 0 22px rgba(35, 136, 255, 0.5);
}

.phone-shape {
  width: 70px;
  height: 118px;
  border-radius: 22px;
}

.phone-line {
  position: absolute;
  width: 118px;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #1ad69b, #27a0ff);
  transform: rotate(-16deg);
}

.folder-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px 18px 14px;
}

.folder-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.folder-card p {
  margin: 0;
  font-size: 12px;
}

.folder-project-list {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.folder-project-list button,
.empty-folder {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgb(129 155 205 / 0%);
  border-radius: 11px;
  background: rgb(20 24 35);
  color: #c6d5ec;
  text-align: left;
  font-size: 12px;
  transition: 0.2s ease;
}

.folder-project-list button:hover {
  color: #fff;
  background: rgba(31, 91, 255, 0.12);
}

.folder-project-list span {
  color: var(--green);
  font-size: 10px;
}

.empty-folder {
  justify-content: center;
  color: var(--muted);
}

.primary-small {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(66, 138, 255, 0.55);
  background: linear-gradient(135deg, rgba(18, 102, 255, 0.92), rgba(22, 155, 255, 0.88));
  color: #fff;
  font-weight: 750;
}

@media (max-width: 1500px) {
  .folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .projects-actions,
  .folder-grid,
  .projects-section-head {
    grid-template-columns: 1fr;
  }

  .projects-tabs {
    width: 100%;
    overflow-x: auto;
  }
}

/* ------------------------------------------------------------------
   Composer dropdowns — added without changing the current visual style.
------------------------------------------------------------------- */
.composer-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 30;
}

.composer-trigger {
  cursor: pointer;
}

.composer-select.is-open .composer-trigger {
  border-color: rgba(61, 147, 255, 0.46);
  background: rgba(24, 43, 76, 0.86);
  box-shadow: 0 0 0 1px rgba(33, 124, 255, 0.12), 0 12px 32px rgba(15, 96, 255, 0.18);
}

.composer-select.is-open .composer-trigger [data-icon="chevron-down"] {
  transform: rotate(180deg);
}

.composer-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  min-width: 218px;
  max-width: 290px;
  padding: 8px;
  border: 1px solid rgba(127, 159, 213, 0.18);
  border-radius: 15px;
  background: #141823;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.38), 0 0 34px rgba(35, 136, 255, 0.14);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transform-origin: left bottom;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 80;
}

.composer-select.is-open .composer-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.composer-menu-title {
  display: block;
  padding: 4px 9px 7px;
  color: #7f8da7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.composer-menu button {
  width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #d8e5fb;
  box-shadow: none;
  text-align: left;
  margin: 4px 0px 4px 0px;
}

.composer-menu button:hover,
.composer-menu button.is-selected {
  background: rgba(34, 86, 164, 0.28);
}

.composer-menu button span:not(.icon):not(.dropdown-dot) {
  display: grid;
  gap: 2px;
}

.composer-menu strong {
  font-size: 13px;
  line-height: 1.15;
}

.composer-menu small {
  color: #8493ad;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
}

.dropdown-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 18px currentColor;
}

.dropdown-dot.blue { background: #278cff; color: #278cff; }
.dropdown-dot.violet { background: #8057ff; color: #8057ff; }
.dropdown-dot.green { background: #16d8a2; color: #16d8a2; }
.dropdown-dot.orange { background: #ff8a3d; color: #ff8a3d; }

.screen-build .build-chat.panel.flush-panel {
  overflow: visible;
}

.screen-build .composer-menu {
  max-width: min(280px, calc(100vw - 44px));
}

/* ------------------------------------------------------------------
   Sidebar collapse + animated hero title. Added on top of current style.
------------------------------------------------------------------- */
.app-shell {
  transition: grid-template-columns 0.34s cubic-bezier(.2,.8,.2,1);
}

.sidebar {
  transition:
    padding 0.34s cubic-bezier(.2,.8,.2,1),
    gap 0.34s cubic-bezier(.2,.8,.2,1),
    background 0.34s ease,
    box-shadow 0.34s ease;
}

.sidebar-collapse-btn {
  position: absolute;
  top: 18px;
  right: -14px;
  z-index: 60;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 15, 28, 0.92);
  color: #9ebdff;
  backdrop-filter: blur(18px);
  transition: transform 0.24s ease, color 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.sidebar-collapse-btn:hover {
  color: #ffffff;
  background: rgba(18, 32, 58, 0.96);
  transform: translateX(1px);
}

.sidebar-collapse-btn .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
}

.animated-hero-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.18em;
  min-height: 1.05em;
}

.animated-hero-title .hero-word {
  display: inline-block;
  background: linear-gradient(90deg, #fff 0%, #b8c9ec 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  filter: blur(18px);
  transform: translateY(14px) scale(0.985);
  will-change: opacity, filter, transform;
  animation: heroWordIdea 8.6s cubic-bezier(.2,.8,.2,1) infinite;
}

.animated-hero-title .hero-word-code {
  animation-name: heroWordCode;
}

.animated-hero-title .hero-word-launch {
  animation-name: heroWordLaunch;
}

@keyframes heroWordIdea {
  0%, 3% { opacity: 0; filter: blur(18px); transform: translateY(14px) scale(0.985); }
  12%, 70% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
  82%, 100% { opacity: 0; filter: blur(18px); transform: translateY(-10px) scale(0.99); }
}

@keyframes heroWordCode {
  0%, 12% { opacity: 0; filter: blur(18px); transform: translateY(14px) scale(0.985); }
  23%, 70% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
  82%, 100% { opacity: 0; filter: blur(18px); transform: translateY(-10px) scale(0.99); }
}

@keyframes heroWordLaunch {
  0%, 23% { opacity: 0; filter: blur(18px); transform: translateY(14px) scale(0.985); }
  34%, 70% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
  82%, 100% { opacity: 0; filter: blur(18px); transform: translateY(-10px) scale(0.99); }
}

.app-shell.sidebar-collapsed {
  --sidebar-width: 82px;
}

.app-shell.sidebar-collapsed .sidebar {
  gap: 18px;
  padding: 22px 12px 16px;
  align-items: center;
}

.app-shell.sidebar-collapsed .sidebar-collapse-btn {
  right: -13px;
}

.app-shell.sidebar-collapsed .sidebar-collapse-btn .icon {
  transform: rotate(180deg);
}

.app-shell.sidebar-collapsed .brand {
  width: 100%;
  padding: 0 0 12px;
  gap: 0;
}

.app-shell.sidebar-collapsed .brand svg {
  width: 52px !important;
  max-width: 52px;
}

.app-shell.sidebar-collapsed .brand > span,
.app-shell.sidebar-collapsed .sidebar-search,
.app-shell.sidebar-collapsed .project-submenu,
.app-shell.sidebar-collapsed .nav-link span:not(.icon):not(.project-menu-arrow),
.app-shell.sidebar-collapsed .project-menu-arrow,
.app-shell.sidebar-collapsed .workspace-switcher span:not(.workspace-avatar),
.app-shell.sidebar-collapsed .workspace-switcher > .icon {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: 0;
  max-width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
}

.app-shell.sidebar-collapsed .nav-list,
.app-shell.sidebar-collapsed .sidebar-bottom {
  width: 100%;
}

.app-shell.sidebar-collapsed .nav-link {
  min-height: 46px;
  width: 46px;
  margin: 0 auto;
  padding: 0;
  justify-content: center;
  border-radius: 15px;
  gap: 0;
}

.app-shell.sidebar-collapsed .nav-link .icon {
  width: 18px;
  height: 18px;
}

.app-shell.sidebar-collapsed .nav-group {
  display: grid;
  justify-items: center;
}

.app-shell.sidebar-collapsed .sidebar-bottom {
  justify-items: center;
  border-top-color: rgba(129, 155, 205, 0.08);
  gap: 12px;
}

.app-shell.sidebar-collapsed .workspace-switcher {
  width: 46px;
  height: 46px;
  min-height: 46px;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}

.app-shell.sidebar-collapsed .workspace-avatar {
  width: 34px;
  height: 34px;
}

.app-shell.sidebar-collapsed .sidebar-folder,
.app-shell.sidebar-collapsed .sidebar-folder-projects {
  display: none;
}

@media (max-width: 1180px) {
  .sidebar-collapse-btn { display: none; }
}

.app-shell.sidebar-collapsed .sidebar-search {
  display: none;
  min-height: 0;
  padding: 0;
  border: 0;
}

.app-shell.sidebar-collapsed .project-submenu {
  display: none;
}


/* ------------------------------------------------------------------
   Profile page + folder cover images. Added without replacing current style.
------------------------------------------------------------------- */
.folder-preview-image {
  display: block;
  padding: 0;
  background: rgba(255, 255, 255, 0.03);
}

.folder-preview-image::before {
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.28;
}

.folder-preview-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(4, 9, 18, 0.02), rgba(4, 9, 18, 0.18)),
    radial-gradient(circle at 50% 18%, rgba(93, 154, 255, 0.14), transparent 46%);
  pointer-events: none;
}

.folder-preview-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  filter: saturate(0.95) contrast(1.03) brightness(0.88);
}

.folder-card:hover .folder-preview-image img {
  transform: scale(1.045);
  transition: transform 0.42s ease;
}

.screen-profile {
  height: 100%;
  overflow: auto;
  background:
    radial-gradient(circle at 40% 8%, rgba(35, 104, 255, 0.13), transparent 34%),
    radial-gradient(circle at 82% 70%, rgba(0, 212, 255, 0.07), transparent 36%),
    rgba(1, 5, 13, 0.34);
}

.profile-page {
  width: min(100%, 1160px);
  min-height: 100%;
  margin: 0 auto;
  padding: 36px 28px 48px;
}

.profile-hero {
  margin-bottom: 26px;
}

.profile-hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 0.95;
  letter-spacing: -0.065em;
  background: linear-gradient(90deg, #fff, #a9bddf 82%);
  -webkit-background-clip: text;
  color: transparent;
}

.profile-hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.profile-shell {
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(16, 27, 47, 0.76), rgba(6, 12, 23, 0.84));
}

.profile-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.profile-tabs button {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #9aa8bf;
  font-weight: 700;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.profile-tabs button:hover,
.profile-tabs button.is-active {
  color: #f5f9ff;
  border-color: #5b8dff;
  background: linear-gradient(180deg, transparent, rgba(46, 112, 255, 0.08));
}

.profile-tab {
  display: none;
  padding: 28px;
}

.profile-tab.is-active {
  display: block;
}

.profile-section-title h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.profile-section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-picture-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
}

.profile-avatar-large {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, #e7f5ff, transparent 17%),
    linear-gradient(135deg, #12d8ff, #195aff 48%, #a64cff);
  box-shadow: 0 16px 42px rgba(31, 91, 255, 0.34);
  font-weight: 800;
  color: #fff;
}

.profile-picture-row strong,
.profile-picture-row p {
  display: block;
  margin: 0;
}

.profile-picture-row p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.profile-form label {
  display: grid;
  gap: 9px;
  color: #dce8fb;
  font-weight: 650;
}

.profile-form input,
.profile-form select,
.settings-card select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(4, 9, 18, 0.64);
  color: #eef5ff;
  outline: 0;
}

.profile-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.settings-grid {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.settings-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 84px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
}

.settings-card strong,
.settings-card p {
  display: block;
  margin: 0;
}

.settings-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.settings-card select {
  min-width: 190px;
}

.subscription-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid rgba(77, 145, 255, 0.35);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 10%, rgba(35, 136, 255, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(16, 27, 47, 0.92), rgba(8, 14, 25, 0.86));
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.32);
}

.subscription-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(35, 136, 255, 0.16);
  color: #8fc4ff;
  font-size: 12px;
  font-weight: 800;
}

.subscription-card h3,
.subscription-card p {
  margin: 0;
}

.subscription-card h3 {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.subscription-card p {
  margin-top: 8px;
  color: var(--muted);
}

.subscription-price {
  text-align: right;
}

.subscription-price strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.subscription-price span {
  color: var(--muted);
}

.subscription-limits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.subscription-limits article {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
}

.subscription-limits strong,
.subscription-limits span {
  display: block;
}

.subscription-limits strong {
  font-size: 24px;
}

.subscription-limits span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .profile-form,
  .profile-picture-row,
  .subscription-card,
  .subscription-limits,
  .settings-card {
    grid-template-columns: 1fr;
  }

  .subscription-price {
    text-align: left;
  }
}

/* Premium home generation state: holographic preview instead of heavy loader */
.holo-generation {
  width: min(100%, 980px);
  max-height: 0;
  margin: 0 0 0;
  opacity: 0;
  pointer-events: none;
  filter: blur(18px);
  transform: translateY(16px) scale(0.985);
  overflow: hidden;
  transition:
    max-height 0.82s cubic-bezier(.2,.8,.2,1),
    margin 0.82s cubic-bezier(.2,.8,.2,1),
    opacity 0.56s ease,
    filter 0.72s ease,
    transform 0.72s cubic-bezier(.2,.8,.2,1);
}

.screen-home.is-generating .holo-generation,
.screen-home.is-generation-done .holo-generation {
  max-height: 430px;
  margin-bottom: 34px;
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.screen-home.is-generating .suggestion-grid,
.screen-home.is-generation-done .suggestion-grid {
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
  pointer-events: none;
  filter: blur(16px);
  transform: translateY(-12px) scale(0.975);
}

.suggestion-grid {
  max-height: 220px;
  transition:
    max-height 0.68s cubic-bezier(.2,.8,.2,1),
    margin 0.68s cubic-bezier(.2,.8,.2,1),
    opacity 0.48s ease,
    filter 0.58s ease,
    transform 0.58s cubic-bezier(.2,.8,.2,1);
}

.holo-preview-shell {
  position: relative;
  border: 1px solid rgba(75, 137, 255, 0.28);
  border-radius: 26px;
  padding: 16px;
  background:
    radial-gradient(circle at 26% 8%, rgba(56, 214, 255, 0.14), transparent 36%),
    radial-gradient(circle at 78% 28%, rgba(124, 77, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(11, 20, 39, 0.78), rgba(4, 9, 19, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 34px 120px rgba(0, 0, 0, 0.42),
    0 0 78px rgba(30, 119, 255, 0.14);
  backdrop-filter: blur(34px);
  overflow: hidden;
  transition: 0.52s ease;
}

.holo-preview-shell::before {
  content: "";
  position: absolute;
  inset: -40% -15%;
  background: linear-gradient(110deg, transparent 28%, rgba(111, 188, 255, 0.16) 44%, rgba(124, 77, 255, 0.13) 52%, transparent 68%);
  transform: translateX(-44%);
  animation: holoLightSweep 4.6s ease-in-out infinite;
  pointer-events: none;
}

.holo-preview-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 78%);
  opacity: 0.42;
  pointer-events: none;
}

.holo-preview-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.holo-status-pill,
.holo-hint {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(129, 177, 255, 0.17);
  background: rgba(4, 10, 21, 0.56);
  color: #cddaf3;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  backdrop-filter: blur(22px);
}

.holo-hint {
  color: #7f8ca9;
}

.holo-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 8px;
  background: #19d9ad;
  box-shadow: 0 0 18px rgba(25, 217, 173, 0.7);
  animation: holoDotPulse 1.6s ease-in-out infinite;
}

#holoStatusText,
#composerStatusText {
  display: inline-block;
  transition: opacity 0.26s ease, filter 0.26s ease, transform 0.26s ease;
}

#holoStatusText.is-changing,
#composerStatusText.is-changing {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(4px);
}

.holo-preview-canvas {
  position: relative;
  z-index: 2;
  min-height: 232px;
  border: 1px solid rgba(90, 150, 255, 0.18);
  border-radius: 20px;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 36%, rgba(39, 160, 255, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(2, 8, 18, 0.66), rgba(2, 7, 16, 0.54));
  overflow: hidden;
}

.holo-grid-glow {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 50% 44%, rgba(53, 216, 255, 0.20), transparent 24%),
    radial-gradient(circle at 64% 55%, rgba(124, 77, 255, 0.18), transparent 34%);
  filter: blur(22px);
  opacity: 0.82;
  animation: holoGlowFloat 5.6s ease-in-out infinite;
}

.holo-browser-bar {
  position: relative;
  z-index: 2;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
}

.holo-browser-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(144, 177, 225, 0.42);
}

.holo-browser-bar em {
  margin-left: auto;
  margin-right: auto;
  font-style: normal;
  color: #7584a0;
  font-size: 11px;
}

.holo-hero-block,
.holo-card-row,
.holo-wide-block {
  position: relative;
  z-index: 2;
}

.holo-hero-block {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 12px;
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(21, 48, 93, 0.66), rgba(7, 13, 27, 0.56));
  border: 1px solid rgba(95, 156, 255, 0.16);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.holo-line,
.holo-cta,
.holo-ui-card,
.holo-wide-block span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(117, 171, 255, 0.18), rgba(56, 214, 255, 0.42), rgba(124, 77, 255, 0.20));
  box-shadow: 0 0 28px rgba(45, 144, 255, 0.13);
}

.holo-line-lg { width: 48%; height: 12px; }
.holo-line-md { width: 34%; height: 8px; opacity: 0.72; }
.holo-cta { width: 112px; height: 26px; margin-top: 2px; }

.holo-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.holo-ui-card {
  height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(110, 166, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(15, 27, 50, 0.74), rgba(4, 10, 21, 0.58)),
    radial-gradient(circle at 24% 28%, rgba(56, 214, 255, 0.22), transparent 36%);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.holo-wide-block {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  min-height: 50px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.055);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.holo-wide-block span:nth-child(1) { width: 58%; height: 7px; }
.holo-wide-block span:nth-child(2) { width: 42%; height: 7px; opacity: 0.76; }
.holo-wide-block span:nth-child(3) { width: 30%; height: 7px; opacity: 0.48; }

.screen-home.is-generating .holo-hero-block,
.screen-home.is-generation-done .holo-hero-block {
  animation: holoReveal 0.72s cubic-bezier(.2,.8,.2,1) 0.15s forwards;
}

.screen-home.is-generating .holo-ui-card,
.screen-home.is-generation-done .holo-ui-card {
  animation: holoReveal 0.68s cubic-bezier(.2,.8,.2,1) forwards;
}

.screen-home.is-generating .holo-ui-card:nth-child(1),
.screen-home.is-generation-done .holo-ui-card:nth-child(1) { animation-delay: 0.68s; }
.screen-home.is-generating .holo-ui-card:nth-child(2),
.screen-home.is-generation-done .holo-ui-card:nth-child(2) { animation-delay: 0.88s; }
.screen-home.is-generating .holo-ui-card:nth-child(3),
.screen-home.is-generation-done .holo-ui-card:nth-child(3) { animation-delay: 1.08s; }

.screen-home.is-generating .holo-wide-block,
.screen-home.is-generation-done .holo-wide-block {
  animation: holoReveal 0.68s cubic-bezier(.2,.8,.2,1) 1.34s forwards;
}

.holo-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(30, 217, 173, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 22%, rgba(30, 217, 173, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(8, 18, 33, 0.82), rgba(4, 10, 21, 0.76));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32), 0 0 54px rgba(30, 217, 173, 0.08);
  opacity: 0;
  pointer-events: none;
  filter: blur(12px);
  transform: translateY(12px) scale(0.985);
  transition: 0.62s cubic-bezier(.2,.8,.2,1);
}

.screen-home.is-generation-done .holo-result {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.result-glow-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #12e4b7;
  border-radius: 14px;
  background: rgba(18, 228, 183, 0.12);
  box-shadow: 0 0 32px rgba(18, 228, 183, 0.18);
}

.holo-result strong,
.holo-result small {
  display: block;
}

.holo-result strong {
  color: #f2f7ff;
  font-size: 15px;
}

.holo-result small {
  margin-top: 3px;
  color: #8d9cb9;
}

.holo-result-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.holo-result-actions .primary-btn,
.holo-result-actions .ghost-btn {
  min-height: 36px;
  white-space: nowrap;
}

.composer-generation-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin-top: -6px;
  margin-bottom: 8px;
  color: #8fb4df;
  font-size: 12px;
  opacity: 0;
  max-height: 0;
  transform: translateY(6px);
  filter: blur(8px);
  transition: 0.36s ease;
  overflow: hidden;
}

.composer.is-generating .composer-generation-status,
.composer.is-generation-done .composer-generation-status {
  opacity: 1;
  max-height: 34px;
  filter: blur(0);
  transform: translateY(0);
}

.composer-generation-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1ed9ad;
  box-shadow: 0 0 18px rgba(30, 217, 173, 0.62);
}

.composer.is-generating {
  box-shadow:
    0 0 0 1px rgba(40, 108, 255, 0.26),
    0 26px 92px rgba(0, 88, 255, 0.22),
    0 0 80px rgba(56, 214, 255, 0.08);
}

.composer.is-generating textarea,
.composer.is-generation-done textarea {
  color: #eef7ff;
}

.composer.is-generating .send-btn {
  position: relative;
  color: transparent;
}

.composer.is-generating .send-btn .icon {
  opacity: 0;
}

.composer.is-generating .send-btn::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  animation: generationButtonSpin 0.82s linear infinite;
}

.screen-home.is-generating .atom-logo,
.screen-home.is-generation-done .atom-logo {
  filter: drop-shadow(0 0 42px rgba(57, 144, 255, 0.42));
}

.screen-home.is-generating .atom-logo .orbit-group-1,
.screen-home.is-generation-done .atom-logo .orbit-group-1 {
  animation-duration: 5.2s;
}

.screen-home.is-generating .atom-logo .orbit-group-2,
.screen-home.is-generation-done .atom-logo .orbit-group-2 {
  animation-duration: 6.4s;
}

.screen-home.is-generating .atom-logo .logo-halo,
.screen-home.is-generation-done .atom-logo .logo-halo {
  opacity: 0.88;
  animation-duration: 2.8s;
}

@keyframes holoLightSweep {
  0%, 24% { transform: translateX(-48%); opacity: 0; }
  45% { opacity: 1; }
  72%, 100% { transform: translateX(48%); opacity: 0; }
}

@keyframes holoDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.42); opacity: 1; }
}

@keyframes holoGlowFloat {
  0%, 100% { transform: translate3d(-1%, -1%, 0) scale(1); opacity: 0.72; }
  50% { transform: translate3d(2%, 2%, 0) scale(1.08); opacity: 1; }
}

@keyframes holoReveal {
  from { opacity: 0; transform: translateY(12px) scale(0.975); filter: blur(12px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes generationButtonSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 960px) {
  .holo-generation {
    width: 100%;
  }

  .holo-card-row,
  .holo-result {
    grid-template-columns: 1fr;
  }

  .holo-result-actions {
    flex-wrap: wrap;
  }
}


/* --- Build generation flow from Home --- */
.build-message-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(13, 22, 37, 0.82);
  color: #b9d4ff;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.build-message-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #36c6ff;
  box-shadow: 0 0 16px rgba(54, 198, 255, 0.65);
  animation: generationPulse 1.4s ease-in-out infinite;
}

.build-generation-card {
  gap: 14px;
}

.build-generation-copy {
  display: grid;
  gap: 10px;
}

.build-generation-copy p {
  margin: 0;
}

.build-generation-copy p#generationDynamicText,
.build-generation-copy .generation-dynamic-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  min-height: 22px;
  transition: opacity .26s ease, filter .26s ease, transform .26s ease;
}

.build-generation-copy p#generationDynamicText.is-changing,
.build-generation-copy .generation-dynamic-text.is-changing {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(6px);
}

.generation-steps {
  display: grid;
  gap: 12px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.generation-step {
  position: relative;
  display: grid;
  gap: 4px;
  padding-left: 28px;
  min-height: 28px;
  color: var(--muted);
  transition: color .25s ease, opacity .25s ease;
}

.generation-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(127, 160, 211, 0.42);
  background: rgba(14, 25, 40, 0.9);
  box-shadow: inset 0 0 0 3px rgba(9, 16, 27, 0.82);
  transition: all .25s ease;
}

.generation-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 18px;
  width: 2px;
  height: calc(100% + 6px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(58, 138, 255, 0.35), rgba(58, 138, 255, 0.06));
}

.generation-step strong {
  font-size: 13px;
  line-height: 1.3;
  color: #dbe8ff;
  font-weight: 600;
}

.generation-step small {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.generation-step.is-active {
  color: #dcecff;
}

.generation-step.is-active::before {
  border-color: rgba(67, 168, 255, 0.8);
  background: radial-gradient(circle at 30% 30%, #7ad8ff 0%, #2f8fff 60%, #1a63d3 100%);
  box-shadow: 0 0 0 4px rgba(48, 137, 255, 0.14), 0 0 20px rgba(39, 138, 255, 0.46);
  animation: generationPulse 1.25s ease-in-out infinite;
}

.generation-step.is-done::before {
  border-color: rgba(67, 233, 181, 0.7);
  background: radial-gradient(circle at 35% 35%, #9bf7d3 0%, #35d7a3 55%, #18a57d 100%);
  box-shadow: 0 0 0 4px rgba(30, 217, 173, 0.12), 0 0 18px rgba(30, 217, 173, 0.28);
  animation: none;
}

.build-chat .composer.is-blocked {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
  filter: saturate(0.85);
}

.build-chat .composer.is-blocked::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(12, 18, 31, 0.14), rgba(12, 18, 31, 0.34));
  z-index: 2;
}

.build-chat .composer.is-blocked textarea,
.build-chat .composer.is-blocked button {
  cursor: default;
}

.live-preview {
  position: relative;
}

.live-preview.is-generating-preview .dashboard-preview,
.live-preview.is-generating-preview .build-status-row,
.live-preview.is-generating-preview .urlbar {
  opacity: 0.9;
}

.live-preview.is-generating-preview .dashboard-preview {
  animation: previewGenerationPulse 1.8s ease-in-out infinite;
}

.live-preview.is-generating-preview::after {
  content: "";
  position: absolute;
  inset: 58px 16px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(84, 157, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(84, 157, 255, 0.06), 0 0 40px rgba(46, 129, 255, 0.12) inset;
  pointer-events: none;
}

@keyframes previewGenerationPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 1px rgba(64, 138, 255, 0.08), 0 0 0 rgba(64, 138, 255, 0.0);
  }
  50% {
    transform: scale(1.008);
    box-shadow: 0 0 0 1px rgba(64, 138, 255, 0.15), 0 0 32px rgba(64, 138, 255, 0.18);
  }
}

@keyframes generationPulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
