/* ============================================================
   AMP CHANGES — by ./Alfseec
   Design system & studio UI
   ============================================================ */

:root {
  --bg: #06070c;
  --bg-2: #080a11;
  --panel: rgba(13, 16, 24, .72);
  --panel-solid: #0b0d15;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .13);
  --text: #eef0f7;
  --muted: #9aa2b6;
  --dim: #6b7388;
  --faint: #4d5468;
  --violet: #8b5cf6;
  --violet-soft: #a78bfa;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb7185;
  --grad: linear-gradient(100deg, #c4b5fd 0%, #818cf8 32%, #22d3ee 64%, #a78bfa 96%);
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-xl: 0 60px 140px -60px rgba(0, 0, 0, .95);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

::selection { background: rgba(139, 92, 246, .38); color: #fff; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
button { color: inherit; }
img, svg { max-width: 100%; }

* { scrollbar-width: thin; scrollbar-color: #2a3040 transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #262c3b;
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: #343c50; background-clip: content-box; }

:focus-visible {
  outline: 2px solid rgba(167, 139, 250, .75);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--violet);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.noscript {
  margin: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(251, 191, 36, .3);
  border-radius: 10px;
  background: rgba(251, 191, 36, .08);
  color: #fde68a;
  font-size: 13px;
}

/* ============================================================
   Background atmosphere
   ============================================================ */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 46% at 50% -16%, rgba(91, 33, 182, .28), transparent 62%),
    radial-gradient(ellipse 55% 40% at 90% 30%, rgba(14, 116, 144, .12), transparent 65%),
    linear-gradient(180deg, #06070c 0%, #06070c 55%, #07080e 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: .55;
  background-image:
    linear-gradient(rgba(255, 255, 255, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .032) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 72% 58% at 50% 2%, #000 0%, transparent 74%);
  mask-image: radial-gradient(ellipse 72% 58% at 50% 2%, #000 0%, transparent 74%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .32;
  will-change: transform;
}

.glow-a {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -120px;
  background: #5b21b6;
  animation: drift 28s ease-in-out infinite;
}

.glow-b {
  width: 460px;
  height: 460px;
  top: 30%;
  right: -190px;
  background: #0e7490;
  opacity: .2;
  animation: drift 34s ease-in-out infinite reverse;
}

.glow-c {
  width: 380px;
  height: 380px;
  bottom: 4%;
  left: 12%;
  background: #9d174d;
  opacity: .12;
  animation: drift 40s ease-in-out infinite;
}

.bg-aurora {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 120%;
  height: 90vh;
  opacity: .55;
  background: conic-gradient(from 200deg at 50% 50%,
    transparent 0deg,
    rgba(139, 92, 246, .12) 60deg,
    transparent 120deg,
    rgba(34, 211, 238, .09) 200deg,
    transparent 280deg,
    rgba(244, 114, 182, .06) 330deg,
    transparent 360deg);
  filter: blur(70px);
  animation: slow-spin 60s linear infinite;
}

/* ============================================================
   Buttons & shared controls
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn .icon { width: 15px; height: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .035);
  color: #d7dbea;
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, .07);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6 55%, #6d28d9);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(124, 58, 237, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(251, 113, 133, .1);
  border-color: rgba(251, 113, 133, .28);
  color: #fda4af;
}
.btn-danger:hover:not(:disabled) { background: rgba(251, 113, 133, .16); }

.btn.sm { height: 34px; padding: 0 13px; font-size: 11.5px; border-radius: 8px; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  color: #a8b0c4;
  cursor: pointer;
  transition: .18s;
}
.icon-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, .07);
  border-color: var(--line-strong);
  color: #fff;
}
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; background: transparent; border-color: transparent; }
.icon-btn.sm:hover:not(:disabled) { background: rgba(255, 255, 255, .06); border-color: transparent; }
.icon-btn .icon { width: 16px; height: 16px; }
.icon-btn.sm .icon { width: 14px; height: 14px; }
.icon-btn.danger:hover:not(:disabled) { color: #fda4af; background: rgba(251, 113, 133, .09); }
.icon-btn.is-active { color: #c4b5fd; background: rgba(139, 92, 246, .12); }
.icon-btn.is-active:hover:not(:disabled) { background: rgba(139, 92, 246, .18); }
#reloadPreview.is-stale {
  color: var(--amber);
  border-color: rgba(251, 191, 36, .24);
  background: rgba(251, 191, 36, .07);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.ai-state.is-warn { color: #fde68a; }
.ai-state.is-warn .dot {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(251, 191, 36, .65);
}
.field-hint.is-over { color: var(--amber); }
.editor-pane.is-ai .pane-title { color: #c4b5fd; }
.editor-pane.is-ai .pane-icon {
  color: #c4b5fd;
  background: rgba(139, 92, 246, .14);
  border-color: rgba(167, 139, 250, .24);
}

.text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #c4b5fd;
  font-size: 10.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-btn:hover { color: #e9e2ff; }

kbd {
  font: inherit;
  padding: 1px 4px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 3px;
  background: rgba(255, 255, 255, .035);
  color: #79819a;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(6, 7, 12, .66);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #a78bfa, #7c3aed 46%, #22d3ee 135%);
  color: #080a10;
  box-shadow:
    0 8px 26px -8px rgba(139, 92, 246, .85),
    inset 0 1px 0 rgba(255, 255, 255, .5);
}
.brand-mark .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.brand-mark.sm { width: 32px; height: 32px; border-radius: 10px; }
.brand-mark.sm .icon { width: 16px; height: 16px; }

.brand-type { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .025em;
  white-space: nowrap;
}
.brand-name em {
  font-style: normal;
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-pan 10s ease infinite;
}
.brand-by {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.header-right { display: flex; align-items: center; gap: 8px; }

.header-links { display: flex; gap: 2px; margin-right: 8px; }
.header-links a {
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  transition: .18s;
}
.header-links a:hover { color: #fff; background: rgba(255, 255, 255, .045); }

.status-pill {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(52, 211, 153, .22);
  border-radius: 99px;
  background: rgba(52, 211, 153, .07);
  color: #a7f3d0;
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: .18s;
}
.status-pill:hover { background: rgba(52, 211, 153, .12); }
.status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .13);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.status-pill.is-warn {
  border-color: rgba(251, 191, 36, .24);
  background: rgba(251, 191, 36, .07);
  color: #fde68a;
}
.status-pill.is-warn .status-dot {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, .12);
}
.status-pill.is-busy {
  border-color: rgba(167, 139, 250, .28);
  background: rgba(139, 92, 246, .09);
  color: #ddd0ff;
}
.status-pill.is-busy .status-dot {
  background: var(--violet-soft);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, .12);
}
.header-upload { height: 34px; font-size: 11.5px; border-radius: 9px; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: 80px 0 46px;
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 99px;
  background: rgba(255, 255, 255, .025);
  color: #a9b1c6;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  box-shadow: 0 0 10px rgba(34, 211, 238, .8);
}
.eyebrow-sep { width: 1px; height: 9px; background: rgba(255, 255, 255, .16); }

.hero h1 {
  margin: 24px 0 20px;
  max-width: 980px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6.6vw, 78px);
  font-weight: 700;
  line-height: .97;
  letter-spacing: -.048em;
}
.grad-text {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-pan 9s ease-in-out infinite;
}

.hero-sub {
  max-width: 660px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.meta-chip {
  height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, .026);
  color: #b4bbce;
  font-size: 11px;
}
.meta-chip .icon { width: 12px; height: 12px; color: #a78bfa; }

/* ============================================================
   Section headings
   ============================================================ */

.studio-section { padding-top: 26px; padding-bottom: 96px; }
.styles-section { padding-top: 8px; padding-bottom: 96px; }
.steps-section { padding-top: 4px; padding-bottom: 104px; }

.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.section-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #858da2;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.section-top h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.dim { color: #596075; }
.section-aside {
  margin: 0 0 4px;
  max-width: 320px;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.55;
  text-align: right;
}

/* ============================================================
   Studio shell
   ============================================================ */

.studio-shell {
  position: relative;
  padding: 1px;
  border-radius: 26px;
  background: linear-gradient(145deg,
    rgba(167, 139, 250, .48),
    rgba(255, 255, 255, .07) 26%,
    rgba(255, 255, 255, .045) 64%,
    rgba(34, 211, 238, .3));
  box-shadow:
    0 60px 140px -60px rgba(0, 0, 0, .95),
    0 0 90px -55px rgba(124, 58, 237, .6);
}
.studio-shell::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 13%;
  right: 13%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
  opacity: .55;
  z-index: 2;
}

.studio-inner {
  border-radius: 25px;
  background: linear-gradient(180deg, #0a0c14 0%, #080a10 100%);
  overflow: hidden;
}

.studio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .016);
  flex-wrap: wrap;
}
.toolbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.toolbar-right { display: flex; align-items: center; gap: 1px; flex-wrap: wrap; }

.file-chip {
  height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
  color: #c0c6d6;
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.file-chip .icon { width: 13px; height: 13px; color: #838ba0; }
.file-name { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-state {
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, .08);
  color: #666e83;
  font-size: 9px;
  letter-spacing: .02em;
}
.save-state.is-saving { color: #a78bfa; }

.tool-btn {
  height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #9aa2b6;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: .18s;
}
.tool-btn .icon { width: 13px; height: 13px; }
.tool-btn:hover { background: rgba(255, 255, 255, .055); color: #fff; }
.toolbar-divider {
  width: 1px;
  height: 16px;
  margin: 0 5px;
  background: rgba(255, 255, 255, .08);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 12px;
  padding: 12px;
}

.pane {
  height: clamp(500px, 63vh, 660px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080a11;
}

.pane-head {
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .017);
}
.pane-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #d7dbe8;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
}
.pane-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 7px;
  background: rgba(255, 255, 255, .045);
  color: #9aa2b6;
}
.pane-icon .icon { width: 12px; height: 12px; }
.pane-tools { display: flex; align-items: center; gap: 5px; min-width: 0; }

.tag {
  height: 17px;
  display: inline-flex;
  align-items: center;
  padding: 0 5px;
  border: 1px solid rgba(139, 92, 246, .25);
  border-radius: 4px;
  background: rgba(139, 92, 246, .11);
  color: #c4b5fd;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .07em;
}
.amp-tag {
  border-color: rgba(52, 211, 153, .25);
  background: rgba(52, 211, 153, .09);
  color: #6ee7b7;
}

.editor-stats {
  margin-right: 2px;
  color: #5d6579;
  font-family: var(--font-mono);
  font-size: 9px;
  white-space: nowrap;
}
.live-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .11);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

/* ============================================================
   Editor + CodeMirror
   ============================================================ */

.editor-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #070910;
}
.editor-host { position: absolute; inset: 0; }

.editor-host .CodeMirror {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  color: #c6cddf;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.72;
  padding: 0;
}
.editor-host .CodeMirror-scroll { padding: 8px 0 20px; }
.editor-host .CodeMirror-gutters {
  background: #070910;
  border-right: 1px solid rgba(255, 255, 255, .038);
  padding: 8px 0 20px;
}
.editor-host .CodeMirror-linenumber {
  padding: 0 9px 0 5px;
  color: #3c4357;
  font-size: 10px;
}
.editor-host .CodeMirror-lines { padding: 0 0 0 4px; }
.editor-host .CodeMirror pre.CodeMirror-line,
.editor-host .CodeMirror pre.CodeMirror-line-like { padding: 0 12px; }
.editor-host .CodeMirror-cursor { border-left: 1.5px solid #a78bfa; }
.editor-host .CodeMirror-selected { background: rgba(139, 92, 246, .19) !important; }
.editor-host .CodeMirror-focused .CodeMirror-selected { background: rgba(139, 92, 246, .24) !important; }
.editor-host .CodeMirror-activeline-background { background: rgba(255, 255, 255, .021); }
.editor-host .CodeMirror-matchingbracket {
  color: #f0abfc !important;
  background: rgba(240, 171, 252, .1);
  outline: 1px solid rgba(240, 171, 252, .3);
}
.editor-host .CodeMirror-nonmatchingbracket { color: #fb7185 !important; }

.cm-s-ampchanges .cm-tag { color: #7dd3fc; }
.cm-s-ampchanges .cm-bracket { color: #64748b; }
.cm-s-ampchanges .cm-attribute { color: #c4b5fd; }
.cm-s-ampchanges .cm-string { color: #86efac; }
.cm-s-ampchanges .cm-comment { color: #566079; font-style: italic; }
.cm-s-ampchanges .cm-number { color: #fca5a5; }
.cm-s-ampchanges .cm-keyword { color: #f0abfc; }
.cm-s-ampchanges .cm-operator { color: #94a3b8; }
.cm-s-ampchanges .cm-atom { color: #fcd34d; }
.cm-s-ampchanges .cm-def { color: #93c5fd; }
.cm-s-ampchanges .cm-property { color: #93c5fd; }
.cm-s-ampchanges .cm-variable { color: #fda4af; }
.cm-s-ampchanges .cm-variable-2 { color: #7dd3fc; }
.cm-s-ampchanges .cm-variable-3 { color: #fcd34d; }
.cm-s-ampchanges .cm-builtin { color: #67e8f9; }
.cm-s-ampchanges .cm-meta { color: #64748b; }
.cm-s-ampchanges .cm-qualifier { color: #c4b5fd; }
.cm-s-ampchanges .cm-error { color: #fb7185; }

.editor-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 14px 16px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: #c6cddf;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.72;
  tab-size: 2;
}

.editor-stream {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  background: rgba(7, 9, 16, .97);
  backdrop-filter: blur(2px);
}
.editor-stream[hidden] { display: none; }
.stream-head {
  flex: none;
  height: 33px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  background: rgba(139, 92, 246, .05);
  color: #b7a4ff;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.stream-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 9px #a78bfa;
  animation: pulse-dot 1.1s ease-in-out infinite;
}
.stream-count {
  margin-left: auto;
  color: #5d6579;
  letter-spacing: 0;
  text-transform: none;
}
#streamPre {
  flex: 1;
  margin: 0;
  padding: 13px 17px 30px;
  overflow: auto;
  color: #9fb4d2;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
#streamPre[hidden] { display: none; }

.stream-thinking {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
}
.stream-thinking[hidden] { display: none; }
.thinking-orb {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: #c4b5fd;
}
.thinking-orb::before {
  content: "";
  position: absolute;
  inset: 21px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .5), transparent 72%);
  filter: blur(8px);
  animation: pulse-dot 2.6s ease-in-out infinite;
}
.thinking-orb .icon {
  position: relative;
  z-index: 2;
  width: 21px;
  height: 21px;
  filter: drop-shadow(0 0 10px rgba(167, 139, 250, .8));
}
.thinking-orb span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(167, 139, 250, .25);
  border-radius: 50%;
  animation: thinking-ring 2.6s ease-in-out infinite;
}
.thinking-orb span:nth-child(2) {
  inset: 9px;
  border-color: rgba(34, 211, 238, .24);
  animation-delay: .35s;
}
.thinking-orb span:nth-child(3) {
  inset: 18px;
  border-color: rgba(255, 255, 255, .12);
  animation-delay: .7s;
}
.stream-thinking p {
  margin: 0;
  color: #d5dae8;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.stream-thinking > span:not(.thinking-orb):not(.thinking-bars) {
  max-width: 330px;
  color: #687187;
  font-size: 10.5px;
  line-height: 1.55;
}
.thinking-bars { display: flex; gap: 4px; margin-top: 10px; }
.thinking-bars i {
  width: 20px;
  height: 3px;
  border-radius: 3px;
  opacity: .45;
  background: linear-gradient(90deg, #8b5cf6, #22d3ee);
  animation: thinking-bar 1.5s ease-in-out infinite;
}
.thinking-bars i:nth-child(2) { animation-delay: .16s; }
.thinking-bars i:nth-child(3) { animation-delay: .32s; }

/* ============================================================
   Preview
   ============================================================ */

.preview-tools { gap: 4px; }

.live-toggle {
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #666e83;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .18s;
}
.live-toggle .switch {
  position: relative;
  width: 21px;
  height: 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
  transition: .2s;
}
.live-toggle .switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a91a6;
  transition: .2s;
}
.live-toggle.is-on { color: #a7f3d0; }
.live-toggle.is-on .switch { background: rgba(52, 211, 153, .24); }
.live-toggle.is-on .switch::after {
  left: 11px;
  background: var(--green);
  box-shadow: 0 0 6px rgba(52, 211, 153, .65);
}

.device-switch {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}
.device-switch button {
  width: 25px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #666e83;
  cursor: pointer;
  transition: .15s;
}
.device-switch button .icon { width: 13px; height: 13px; }
.device-switch button:hover { color: #d7dbe8; }
.device-switch button.is-active {
  background: rgba(255, 255, 255, .09);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.preview-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .05) 1px, transparent 0) 0 0 / 18px 18px,
    radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, .06), transparent 70%),
    #06080d;
}

.device-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .85);
  transition: width .35s cubic-bezier(.22, .61, .36, 1), border-radius .35s;
}
.device-frame[data-device="phone"] { width: min(390px, 100%); border-radius: 22px; }
.device-frame[data-device="tablet"] { width: min(560px, 100%); border-radius: 16px; }
.device-frame[data-device="desktop"] { width: 100%; border-radius: 12px; }

.browser-chrome {
  height: 31px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, #151a26, #0e1119);
}
.browser-dots { display: flex; gap: 4px; flex: none; }
.browser-dots span { width: 6px; height: 6px; border-radius: 50%; background: #2e3545; }
.browser-dots span:nth-child(1) { background: #3b4355; }
.browser-dots span:nth-child(2) { background: #333b4c; }
.browser-dots span:nth-child(3) { background: #2b3242; }
.address-bar {
  flex: 1;
  min-width: 0;
  height: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 5px;
  background: rgba(255, 255, 255, .05);
  color: #7d859b;
  font-family: var(--font-mono);
  font-size: 8.5px;
}
.address-bar .icon { width: 9px; height: 9px; color: #5b6377; flex: none; }
.address-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chrome-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  color: #4b5366;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: .09em;
}
.chrome-live i { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }

.preview-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #fff;
}
.preview-viewport iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #fff;
}
.preview-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 30px;
  background: #080a11;
  color: #69718a;
  text-align: center;
}
.preview-empty[hidden] { display: none; }
.empty-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  color: #8b93a8;
}
.empty-icon .icon { width: 20px; height: 20px; }
.preview-empty p { margin: 0; color: #cdd3e3; font-size: 13px; font-weight: 500; }
.preview-empty > span:last-child { font-size: 11.5px; color: #69718a; }

/* ============================================================
   AI console
   ============================================================ */

.ai-console {
  position: relative;
  margin: 0 12px 12px;
  padding: 15px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 140% at 12% 0%, rgba(124, 58, 237, .1), transparent 55%),
    radial-gradient(60% 120% at 92% 120%, rgba(34, 211, 238, .055), transparent 60%),
    #090b12;
}
.ai-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
}
.ai-progress[hidden] { display: none; }
.ai-progress span {
  display: block;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #a78bfa, #22d3ee, transparent);
  animation: progress-slide 1.5s ease-in-out infinite;
}

.ai-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.ai-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ai-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, .3);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(139, 92, 246, .22), rgba(34, 211, 238, .09));
  color: #c4b5fd;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .13),
    0 6px 22px -10px rgba(139, 92, 246, .75);
}
.ai-mark .icon { width: 17px; height: 17px; }
.ai-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.ai-sub { margin-top: 2px; color: #6f778d; font-size: 10.5px; }

.ai-head-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.model-pill {
  height: 21px;
  max-width: 210px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 5px;
  background: rgba(255, 255, 255, .03);
  color: #8d95a9;
  font-family: var(--font-mono);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6f778d;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ai-state .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, .7);
}
.ai-state.is-busy { color: #c4b5fd; }
.ai-state.is-busy .dot { background: #a78bfa; box-shadow: 0 0 8px #a78bfa; animation: pulse-dot 1s infinite; }
.ai-state.is-done { color: #6ee7b7; }
.ai-state.is-error { color: #fda4af; }
.ai-state.is-error .dot { background: var(--red); box-shadow: 0 0 8px var(--red); }

.ai-form { display: flex; align-items: stretch; gap: 10px; }

.prompt-wrap {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  background: #06080e;
  transition: border-color .2s, box-shadow .2s;
}
.prompt-wrap:focus-within {
  border-color: rgba(167, 139, 250, .6);
  box-shadow:
    0 0 0 4px rgba(139, 92, 246, .1),
    0 0 40px -16px rgba(139, 92, 246, .7);
}
#promptInput {
  display: block;
  width: 100%;
  min-height: 74px;
  max-height: 200px;
  padding: 12px 14px 3px;
  resize: vertical;
  border: 0;
  outline: none;
  background: transparent;
  color: #e6e9f3;
  font-size: 13px;
  line-height: 1.6;
}
#promptInput::placeholder { color: #555d72; }
.prompt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 12px 8px;
}
.kbd-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #4f566b;
  font-family: var(--font-mono);
  font-size: 8.5px;
}
.prompt-count { color: #4f566b; font-family: var(--font-mono); font-size: 8.5px; }

.btn-ai {
  position: relative;
  min-width: 196px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: stretch;
  padding: 0 21px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 13px;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 42%, #0ea5e9 125%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow:
    0 16px 40px -16px rgba(124, 58, 237, .9),
    inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-ai:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 20px 52px -16px rgba(124, 58, 237, 1),
    inset 0 1px 0 rgba(255, 255, 255, .36);
}
.btn-ai:active:not(:disabled) { transform: translateY(0) scale(.995); }
.btn-ai:disabled { cursor: not-allowed; filter: saturate(.55) brightness(.8); }
.btn-ai-glow {
  position: absolute;
  inset: -60%;
  opacity: 0;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(255, 255, 255, .34) 79%, transparent 86%);
  animation: slow-spin 4.5s linear infinite;
  transition: opacity .3s;
}
.btn-ai:hover .btn-ai-glow { opacity: .55; }
.btn-ai-icon, .btn-ai-label, .btn-ai-spinner { position: relative; z-index: 1; }
.btn-ai-icon { width: 16px; height: 16px; }
.btn-ai-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: slow-spin .7s linear infinite;
}
.btn-ai-spinner[hidden] { display: none; }

.ai-options {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.quick-prompts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.quick-label {
  margin-right: 2px;
  color: #565e73;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.chip {
  height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 6px;
  background: rgba(255, 255, 255, .025);
  color: #98a0b4;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: .18s;
}
.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(167, 139, 250, .35);
  background: rgba(139, 92, 246, .08);
  color: #e9ecf5;
}
.intensity-wrap { display: flex; align-items: center; gap: 7px; }
.segmented {
  display: flex;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 7px;
  background: rgba(255, 255, 255, .025);
}
.segmented button {
  height: 21px;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #788098;
  font-size: 9.5px;
  font-weight: 500;
  cursor: pointer;
  transition: .15s;
}
.segmented button:hover { color: #dfe3ed; }
.segmented button.is-active {
  background: rgba(139, 92, 246, .22);
  color: #ddd0ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.ai-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  color: #626a7f;
  font-size: 10px;
  flex-wrap: wrap;
}
.footnote-note { display: inline-flex; align-items: center; gap: 6px; line-height: 1.45; }
.footnote-note .icon { width: 12px; height: 12px; color: #7c8498; flex: none; }
.cancel-btn { color: #fda4af; }
.cancel-btn[hidden] { display: none; }

.is-shake { animation: shake .4s cubic-bezier(.36, .07, .19, .97); }

/* ============================================================
   Style preset cards
   ============================================================ */

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

.style-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .034), rgba(255, 255, 255, .012));
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), border-color .3s, box-shadow .3s;
}
.style-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, .35);
  box-shadow:
    0 30px 60px -35px rgba(0, 0, 0, .9),
    0 0 50px -30px rgba(139, 92, 246, .65);
}

.style-art {
  position: relative;
  isolation: isolate;
  display: block;
  height: 128px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: #0a0c14;
}
.style-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 10, .55));
}
.style-art i { position: absolute; display: block; }

.art-neon {
  background:
    radial-gradient(100% 140% at 20% 0%, #3b0764, transparent 55%),
    radial-gradient(90% 120% at 90% 100%, #0e7490, transparent 55%),
    #080514;
}
.art-neon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .55;
  background-image:
    linear-gradient(rgba(34, 211, 238, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, .16) 1px, transparent 1px);
  background-size: 18px 18px;
  transform: perspective(260px) rotateX(58deg) scale(1.7);
  transform-origin: 50% 100%;
}
.art-neon i:nth-child(1) {
  z-index: 2;
  top: 20px;
  left: 24px;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(34, 211, 238, .7);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(34, 211, 238, .45), inset 0 0 24px rgba(34, 211, 238, .15);
}
.art-neon i:nth-child(2) {
  z-index: 3;
  top: 52px;
  left: 39px;
  width: 34px;
  height: 2px;
  background: #e879f9;
  box-shadow: 0 0 14px #e879f9;
}
.art-neon i:nth-child(3) {
  z-index: 3;
  top: 88px;
  right: 10px;
  width: 110px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #22d3ee, transparent);
  box-shadow: 0 0 12px #22d3ee;
}

.art-storm {
  background:
    radial-gradient(120% 100% at 70% 0%, #1e3a5f 0%, transparent 60%),
    linear-gradient(160deg, #0b1220, #050810);
}
.art-storm::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(105deg, transparent 0 9px, rgba(186, 230, 253, .09) 9px 10px);
  transform: rotate(-2deg);
}
.art-storm i:nth-child(1) {
  z-index: 3;
  top: 8px;
  left: calc(50% - 18px);
  width: 36px;
  height: 78px;
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  clip-path: polygon(58% 0, 100% 0, 56% 38%, 86% 38%, 22% 100%, 42% 52%, 10% 52%);
  filter: drop-shadow(0 0 16px rgba(253, 230, 138, .7));
  opacity: .95;
}
.art-storm i:nth-child(2) {
  bottom: 34px;
  left: 5%;
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(186, 230, 253, .6), transparent);
}
.art-storm i:nth-child(3) {
  top: 22px;
  right: 14%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(56, 189, 248, .12);
  filter: blur(18px);
}

.art-glass {
  background: linear-gradient(135deg, #1e1b4b, #0e7490 55%, #4c1d95);
}
.art-glass::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(244, 114, 182, .35);
  filter: blur(30px);
}
.art-glass i:nth-child(1) {
  z-index: 1;
  top: 19%;
  left: 26%;
  width: 48%;
  height: 62%;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .4);
  backdrop-filter: blur(8px);
}
.art-glass i:nth-child(2) {
  z-index: 2;
  right: 18%;
  bottom: 14%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(165, 243, 252, .45);
  filter: blur(7px);
}
.art-glass i:nth-child(3) {
  z-index: 2;
  top: 18%;
  left: 19%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(251, 191, 36, .55);
  filter: blur(5px);
}

.art-terminal { background: #03110a; }
.art-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(180deg, rgba(74, 222, 128, .05) 0 1px, transparent 1px 3px);
}
.art-terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .55));
}
.art-terminal i:nth-child(1) {
  z-index: 1;
  top: 18%;
  left: 21%;
  width: 58%;
  height: 64%;
  border: 1px solid rgba(74, 222, 128, .35);
  border-radius: 5px;
  box-shadow: 0 0 24px rgba(74, 222, 128, .12);
}
.art-terminal i:nth-child(2) {
  z-index: 2;
  top: 34%;
  left: 27%;
  width: 34%;
  height: 5px;
  background: rgba(74, 222, 128, .8);
  box-shadow: 0 0 10px rgba(74, 222, 128, .5);
}
.art-terminal i:nth-child(3) {
  z-index: 2;
  top: 46%;
  left: 27%;
  width: 44%;
  height: 3px;
  background: rgba(74, 222, 128, .4);
  box-shadow: 6px 10px 0 rgba(74, 222, 128, .25), -6px 20px 0 rgba(74, 222, 128, .35);
}

.art-editorial { background: #f2ede2; }
.art-editorial::before {
  content: "Aa";
  position: absolute;
  top: 8px;
  left: 18px;
  z-index: 1;
  color: #16130e;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
}
.art-editorial::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, transparent 62%, #e8e1d3 62%);
}
.art-editorial i:nth-child(1) { z-index: 1; top: 82px; left: 18px; width: 32%; height: 4px; background: #16130e; }
.art-editorial i:nth-child(2) { z-index: 1; top: 93px; left: 18px; width: 22%; height: 4px; background: #b45309; }
.art-editorial i:nth-child(3) { z-index: 1; top: 26px; right: 16px; width: 26%; height: 40%; background: #d6cfc0; }

.art-brutal { background: #ffd84d; }
.art-brutal::before {
  content: "AMP";
  position: absolute;
  top: 27px;
  left: 20px;
  z-index: 2;
  color: #0a0a0a;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
}
.art-brutal i:nth-child(1) {
  z-index: 1;
  top: -12px;
  right: -10px;
  width: 40%;
  height: 56%;
  border: 2px solid #0a0a0a;
  background: #ff5ca8;
  transform: rotate(8deg);
}
.art-brutal i:nth-child(2) {
  z-index: 3;
  right: 20%;
  bottom: -22px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #0a0a0a;
}
.art-brutal i:nth-child(3) {
  z-index: 2;
  bottom: 26px;
  left: 0;
  width: 60%;
  height: 3px;
  background: #0a0a0a;
}

.style-body { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 13px 44px 14px 14px; }
.style-name {
  color: #e9ecf5;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.style-desc { color: #7b8399; font-size: 10.5px; }
.style-arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  color: #79819a;
  transform: translateY(-50%);
  transition: .2s;
}
.style-arrow .icon { width: 12px; height: 12px; }
.style-card:hover .style-arrow {
  border-color: rgba(167, 139, 250, .4);
  background: rgba(139, 92, 246, .12);
  color: #c4b5fd;
  transform: translateY(-50%) translate(1px, -1px);
}

/* ============================================================
   Steps & guarantee
   ============================================================ */

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

.step-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .022);
}
.step-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(139, 92, 246, .07);
  filter: blur(30px);
}
.step-num {
  display: block;
  margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .05));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
}
.step-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(167, 139, 250, .2);
  border-radius: 10px;
  background: rgba(139, 92, 246, .1);
  color: #c4b5fd;
}
.step-icon .icon { width: 17px; height: 17px; }
.step-card h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.step-card p {
  max-width: 340px;
  margin: 0;
  color: #8c93a8;
  font-size: 12px;
  line-height: 1.65;
}

.guarantee-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, .16);
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(52, 211, 153, .06), rgba(34, 211, 238, .03) 50%, transparent);
  flex-wrap: wrap;
}
.guarantee-icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(52, 211, 153, .22);
  border-radius: 12px;
  background: rgba(52, 211, 153, .1);
  color: #6ee7b7;
}
.guarantee-icon .icon { width: 20px; height: 20px; }
.guarantee-copy { flex: 1; min-width: 260px; }
.guarantee-copy h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.guarantee-copy p {
  max-width: 690px;
  margin: 0;
  color: #8c93a8;
  font-size: 11.5px;
  line-height: 1.6;
}
.guarantee-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.guarantee-badges span {
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(52, 211, 153, .18);
  border-radius: 6px;
  background: rgba(52, 211, 153, .06);
  color: #a7f3d0;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.guarantee-badges .icon { width: 11px; height: 11px; color: var(--green); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .015));
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: .06em;
}
.footer-brand span:not(.brand-mark) {
  display: block;
  margin-top: 2px;
  color: #666e83;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .05em;
}
.footer-copy { max-width: 340px; margin: 0; color: #5f677c; font-size: 11px; }
.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #565e73;
  font-family: var(--font-mono);
  font-size: 9px;
}
.footer-meta a { display: inline-flex; align-items: center; gap: 3px; color: #8b93a8; transition: .2s; }
.footer-meta a:hover { color: #fff; }
.footer-meta .icon { width: 10px; height: 10px; }
.footer-dot { width: 3px; height: 3px; border-radius: 50%; background: #3a4155; }

/* ============================================================
   Modals
   ============================================================ */

dialog.modal {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 0;
  background: transparent;
}
dialog.modal[open] { display: grid; place-items: center; }
dialog.modal::backdrop {
  background: rgba(3, 4, 8, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(600px, calc(100vw - 32px));
  margin: 24px auto;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: linear-gradient(180deg, #0d1019, #090b12);
  color: var(--text);
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, .95),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: modal-in .25s cubic-bezier(.2, .7, .3, 1);
}
.modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .55), rgba(34, 211, 238, .4), transparent);
}
.modal-sm .modal-card {
  width: min(420px, calc(100vw - 32px));
  padding: 26px;
  text-align: center;
}

.modal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.modal-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, .22);
  border-radius: 11px;
  background: rgba(139, 92, 246, .1);
  color: #c4b5fd;
}
.modal-icon .icon { width: 18px; height: 18px; }
.modal-head-text { flex: 1; min-width: 0; }
.modal-head h2 {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.modal-head p { margin: 0; color: #7b8399; font-size: 11px; line-height: 1.5; }
.modal-close { margin-top: -2px; flex: none; }

.modal-body { display: flex; flex-direction: column; gap: 14px; }
.field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-label {
  color: #8590a7;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 9px;
  outline: none;
  background: #06080e;
  color: #e4e8f2;
  font-size: 12px;
  transition: border-color .18s, box-shadow .18s;
}
.field input { height: 38px; }
.field textarea { min-height: 80px; resize: vertical; line-height: 1.55; }
.field select {
  height: 38px;
  padding-right: 30px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23788099' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(167, 139, 250, .55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .1);
}
.field input::placeholder, .field textarea::placeholder { color: #4a5165; }
.field-hint {
  position: absolute;
  right: 2px;
  bottom: -14px;
  color: #565e73;
  font-family: var(--font-mono);
  font-size: 8.5px;
}
.field:has(.field-hint) { padding-bottom: 9px; }

.input-group { position: relative; display: block; }
.input-group input { padding-right: 56px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; }
.input-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  color: #a2a9bd;
  font-size: 9.5px;
  cursor: pointer;
  transition: .15s;
}
.input-btn:hover { background: rgba(255, 255, 255, .09); color: #fff; }

.test-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.test-result { color: #7b8399; font-family: var(--font-mono); font-size: 9.5px; }
.test-result.ok { color: #6ee7b7; }
.test-result.err { color: #fda4af; }

.form-note {
  position: relative;
  display: block;
  margin: 0;
  padding: 9px 10px 9px 30px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 8px;
  background: rgba(255, 255, 255, .022);
  color: #6e768c;
  font-size: 10px;
  line-height: 1.55;
}
.form-note .icon {
  position: absolute;
  top: 11px;
  left: 10px;
  width: 12px;
  height: 12px;
  color: #8b93a8;
}
.form-note code {
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(139, 92, 246, .1);
  color: #c4b5fd;
  font-family: var(--font-mono);
  font-size: 9px;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

.confirm-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 1px solid rgba(251, 113, 133, .22);
  border-radius: 13px;
  background: rgba(251, 113, 133, .1);
  color: #fda4af;
}
.confirm-icon .icon { width: 20px; height: 20px; }
.confirm-card h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 18px; color: var(--text); }
.confirm-card p { margin: 0 0 18px; color: #8c93a8; font-size: 12px; line-height: 1.6; }
.confirm-card .modal-actions { justify-content: center; }

/* Fullscreen preview */
dialog.preview-modal {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
dialog.preview-modal[open] { display: grid; place-items: center; }
dialog.preview-modal::backdrop {
  background: rgba(3, 4, 8, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.preview-modal-inner {
  width: min(1400px, 96vw);
  height: min(94vh, 1000px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: #0a0c14;
  color: var(--text);
  box-shadow: 0 60px 140px -20px #000;
  animation: modal-in .25s ease;
}
.preview-modal-head {
  height: 46px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--line);
}
.preview-modal-inner iframe {
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 0;
  background: #fff;
}

/* ============================================================
   Toasts
   ============================================================ */

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(380px, calc(100vw - 36px));
  pointer-events: none;
}
.toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  background: rgba(13, 16, 25, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
  color: #d3d8e5;
  font-size: 11.5px;
  line-height: 1.5;
  pointer-events: auto;
  animation: toast-in .28s cubic-bezier(.2, .7, .3, 1);
}
.toast::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  opacity: .32;
  transform-origin: left;
  animation: toast-timer 5s linear forwards;
}
.toast.is-leaving { animation: toast-out .2s ease forwards; }
.toast-icon {
  width: 20px;
  height: 20px;
  flex: none;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border-radius: 6px;
  background: rgba(52, 211, 153, .12);
  color: var(--green);
}
.toast-icon .icon { width: 12px; height: 12px; }
.toast-body { flex: 1; min-width: 0; }
.toast-title { margin-bottom: 1px; color: #eef0f7; font-size: 11px; font-weight: 600; }
.toast-msg { color: #9aa2b6; font-size: 10.5px; overflow-wrap: anywhere; }
.toast-action {
  display: block;
  padding: 2px 0 0;
  border: 0;
  background: none;
  color: #c4b5fd;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}
.toast-action:hover { color: #e9e2ff; }
.toast.error .toast-icon { background: rgba(251, 113, 133, .12); color: var(--red); }
.toast.error::after { color: var(--red); }
.toast.info .toast-icon { background: rgba(167, 139, 250, .12); color: #c4b5fd; }
.toast.info::after { color: #a78bfa; }
.toast-close {
  width: 20px;
  height: 20px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 2px;
  border: 0;
  background: none;
  color: #565e73;
  cursor: pointer;
}
.toast-close:hover { color: #fff; }
.toast-close .icon { width: 12px; height: 12px; }

/* ============================================================
   Animations
   ============================================================ */

@keyframes gradient-pan {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(46px, 28px, 0) scale(1.08); }
}
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@keyframes progress-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(390%); }
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px) scale(.98); }
}
@keyframes toast-timer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
@keyframes thinking-ring {
  0%, 100% { transform: scale(.88); opacity: .35; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes thinking-bar {
  0%, 100% { transform: scaleX(.5); opacity: .25; }
  50% { transform: scaleX(1); opacity: .9; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1160px) {
  .header-links { display: none; }
  .hero { padding-top: 68px; }
  .pane { height: clamp(480px, 60vh, 620px); }
}

@media (max-width: 1020px) {
  .header-upload { display: none; }
  .style-grid { grid-template-columns: repeat(3, 1fr); }
  .style-art { height: 112px; }
  .ai-options { gap: 10px; }
  .tool-btn span { display: none; }
  .tool-btn { padding: 0 7px; }
  .editor-stats { display: none; }
}

@media (max-width: 920px) {
  .studio-grid { grid-template-columns: 1fr; }
  .pane { height: 460px; }
  .preview-pane { height: 520px; }
  .section-top { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-aside { max-width: none; text-align: left; }
  .style-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; }
  .step-num { grid-row: span 2; margin: 0; font-size: 44px; }
  .step-icon { display: none; }
  .step-card h3 { margin-bottom: 3px; }
  .step-card p { max-width: none; }
  .guarantee-strip { align-items: flex-start; }
  .guarantee-badges { width: 100%; }
}

@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .header-inner { height: 66px; }
  .brand-name { font-size: 15px; }
  .status-pill { height: 30px; padding: 0 10px; font-size: 9.5px; }
  .hero { padding: 52px 0 34px; }
  .hero h1 { font-size: clamp(38px, 9.4vw, 58px); }
  .hero-sub { font-size: 14px; }
  .studio-section, .styles-section, .steps-section { padding-bottom: 72px; }
  .studio-toolbar { justify-content: flex-start; }
  .toolbar-right { width: 100%; border-top: 1px solid var(--line); padding-top: 7px; margin-top: 2px; }
  .file-chip { width: 100%; justify-content: flex-start; }
  .studio-grid { padding: 9px; gap: 9px; }
  .ai-console { margin: 0 9px 9px; padding: 13px; }
  .ai-form { flex-direction: column; }
  .btn-ai { min-height: 46px; }
  .prompt-wrap { width: 100%; }
  .ai-head { align-items: flex-start; }
  .ai-sub { display: none; }
  .ai-options { flex-direction: column; }
  .intensity-wrap { width: 100%; justify-content: space-between; }
  .preview-tools { gap: 3px; }
  .live-toggle { padding: 0 4px; }
  .live-toggle > span:last-child { display: none; }
  .pane { height: 410px; }
  .preview-pane { height: 480px; }
  .preview-stage { padding: 10px; }
  .browser-chrome { height: 28px; padding: 0 8px; }
  .chrome-live { display: none; }
  .style-grid { grid-template-columns: repeat(2, 1fr); }
  .style-art { height: 100px; }
  .style-body { padding: 11px 38px 12px 12px; }
  .style-name { font-size: 12.5px; }
  .style-desc { font-size: 10px; }
  .style-arrow { right: 10px; width: 22px; height: 22px; }
  .guarantee-strip { padding: 16px; }
  .footer-inner { gap: 14px; }
  .footer-copy { order: 3; max-width: none; }
  .footer-meta { width: 100%; justify-content: space-between; }
  .field-row { grid-template-columns: 1fr; }
  .modal-card { padding: 18px; }
  .toast-stack { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  .preview-modal-inner { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}

@media (max-width: 560px) {
  .header-right { gap: 6px; }
  .header-upload { display: none; }
  .brand-by { display: none; }
  .status-pill { width: 30px; padding: 0; justify-content: center; }
  .status-pill span:last-child { display: none; }
  .hero h1 { letter-spacing: -.05em; }
  .eyebrow { font-size: 8px; letter-spacing: .12em; }
  .hero-meta .meta-chip { font-size: 10px; }
  .toolbar-right { gap: 0; }
  .toolbar-divider { display: none; }
  .icon-btn.sm { width: 28px; height: 28px; }
  .pane-head { padding: 0 8px; }
  .pane-title { gap: 6px; }
  .tag { display: none; }
  .preview-tools #reloadPreview { display: none; }
  .live-toggle { display: none; }
  .model-pill { display: none; }
  .pane { height: 380px; }
  .preview-pane { height: 440px; }
  .style-grid { grid-template-columns: 1fr; }
  .style-art { height: 118px; }
  .style-name { font-size: 13.5px; }
  .style-desc { font-size: 10.5px; }
  .ai-console { padding: 12px; }
  .model-pill { display: none; }
  .ai-state {
    max-width: 165px;
    font-size: 8px;
    line-height: 1.35;
    white-space: normal;
    text-align: right;
    justify-content: flex-end;
  }
  .quick-prompts { gap: 5px; }
  .chip { height: 24px; font-size: 9.5px; }
  .ai-footnote { font-size: 9.5px; }
  .field-row { gap: 10px; }
  .modal-head p { display: none; }
  .footer-meta { font-size: 8px; }
  .step-card { grid-template-columns: 1fr; }
  .step-num { grid-row: auto; margin-bottom: 8px; font-size: 34px; }
  .guarantee-icon { display: none; }
}

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