:root {
  color-scheme: light;
  --bg: #eaf4ff;
  --panel: rgba(255, 255, 255, .42);
  --panel-2: rgba(255, 255, 255, .28);
  --line: rgba(255, 255, 255, .62);
  --muted: #5d718b;
  --ink: #10233f;
  --acid: #b8f34a;
  --violet: #8f82ff;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 40% 5%, rgba(104, 89, 227, .12), transparent 27%),
    radial-gradient(circle at 84% 31%, rgba(64, 183, 200, .07), transparent 23%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}
button, textarea, select, input { font: inherit; }
button { color: inherit; }
button:focus-visible, textarea:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}
.ambient { position: fixed; z-index: -1; border-radius: 999px; filter: blur(120px); opacity: .13; pointer-events: none; }
.ambient-one { width: 30vw; height: 30vw; background: #7268ff; left: -12vw; top: 33vh; }
.ambient-two { width: 27vw; height: 27vw; background: #2ac2c7; right: -15vw; top: 10vh; }

.topbar {
  height: 78px;
  padding: 0 clamp(22px, 4.2vw, 76px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(10,11,14,.72);
  backdrop-filter: blur(24px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; width: fit-content; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(217,255,103,.5);
  color: var(--acid); border-radius: 50%; font-family: Georgia, serif; font-size: 18px; font-style: italic;
}
.brand strong { font-family: "STSong", "SimSun", serif; font-size: 21px; font-weight: 500; letter-spacing: .12em; }
.brand small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .24em; margin-top: 1px; }
.topbar nav { display: flex; gap: 30px; }
.nav-link, .text-button, .preview-actions button {
  border: 0; background: none; cursor: pointer; font-size: 12px; color: var(--muted); transition: color .2s ease;
}
.nav-link:hover, .nav-link.active, .text-button:hover, .preview-actions button:hover { color: var(--ink); }
.nav-link.active::after { content: ""; display: block; height: 1px; background: var(--acid); margin-top: 7px; }
.service-pill { justify-self: end; display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); letter-spacing: .06em; }
.status-dot, .live-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #e8bd57; box-shadow: 0 0 10px #e8bd57; }
.service-pill.ready .status-dot, .live-dot { background: var(--acid); box-shadow: 0 0 10px var(--acid); }
.service-pill.error .status-dot { background: #ff7c6b; box-shadow: 0 0 10px #ff7c6b; }

main { width: min(1500px, calc(100% - 44px)); margin: 0 auto; }
.hero { min-height: 310px; padding: 76px clamp(0px, 2vw, 34px) 48px; display: flex; justify-content: space-between; align-items: flex-end; }
.eyebrow { color: var(--acid); font-size: 9px; letter-spacing: .28em; font-weight: 700; margin: 0 0 17px; }
.hero h1, .series-strip h2, .guide-copy h2 {
  font-family: "STSong", "SimSun", Georgia, serif; font-weight: 400; letter-spacing: -.035em; margin: 0; line-height: .96;
}
.hero h1 { font-size: clamp(47px, 5.2vw, 83px); }
.hero h1 em { font-weight: 400; color: var(--acid); }
.hero-copy { margin: 0 0 3px; width: min(410px, 33vw); color: #a6a6ae; font-size: 13px; line-height: 1.95; }

.studio {
  display: grid;
  grid-template-columns: minmax(310px, .94fr) minmax(360px, 1.22fr) minmax(290px, .82fr);
  min-height: 880px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(9,10,13,.48);
  box-shadow: 0 36px 100px rgba(0,0,0,.3);
}
.panel { padding: 28px; background: var(--panel); backdrop-filter: blur(30px); }
.composer { border-right: 1px solid var(--line); }
.inspector { border-left: 1px solid var(--line); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 23px; }
.panel-heading > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.panel-heading span, fieldset legend span { font: 9px ui-monospace, monospace; color: var(--acid); letter-spacing: .08em; }
.panel-heading h2 { font-family: "STSong", "SimSun", serif; font-size: 18px; font-weight: 500; margin: 0; }
.text-button { color: var(--acid); font-size: 10px; padding: 2px; }

.input-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.tab { border: 0; border-bottom: 1px solid transparent; background: none; padding: 10px 4px; margin-bottom: -1px; color: var(--muted); font-size: 11px; cursor: pointer; }
.tab.active { color: var(--ink); border-color: var(--acid); }
.prompt-wrap { border-bottom: 1px solid var(--line); }
textarea {
  width: 100%; resize: vertical; min-height: 135px; border: 0; background: transparent; color: var(--ink);
  padding: 18px 1px 10px; font-size: 14px; line-height: 1.75;
}
textarea::placeholder, input::placeholder { color: #565761; }
.prompt-foot { display: flex; justify-content: space-between; color: #656670; font-size: 9px; padding: 8px 0 12px; }
.prompt-foot b { color: #a2a3aa; font-weight: 400; }

.upload-card {
  display: none; align-items: center; gap: 13px; border: 1px dashed rgba(255,255,255,.15); border-radius: 13px;
  padding: 14px; margin-top: 14px; cursor: pointer; position: relative; overflow: hidden; min-height: 72px;
}
.upload-card.visible { display: flex; }
.upload-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.upload-card .upload-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #24252c; color: var(--acid); font-size: 18px; }
.upload-card strong, .upload-card small { display: block; }
.upload-card strong { font-size: 11px; font-weight: 500; }
.upload-card small { color: var(--muted); margin-top: 5px; font-size: 8px; }
#uploadPreview { display: none; margin-left: auto; width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }

fieldset { border: 0; margin: 27px 0 0; padding: 0; }
fieldset legend { font-size: 11px; margin-bottom: 13px; display: flex; gap: 10px; align-items: center; }
.style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.style-card {
  display: flex; gap: 9px; align-items: center; text-align: left; background: #15161b; border: 1px solid transparent;
  border-radius: 10px; padding: 8px; cursor: pointer; transition: .2s ease;
}
.style-card:hover { transform: translateY(-1px); background: #1b1c22; }
.style-card.active { border-color: rgba(217,255,103,.42); background: rgba(217,255,103,.055); }
.style-card span { font-size: 10px; }
.style-card small { display: block; color: #666771; margin-top: 3px; font-size: 8px; }
.swatch { width: 34px; height: 38px; border-radius: 7px; flex: 0 0 auto; }
.dream { background: radial-gradient(circle at 62% 36%, #d6e5fb 0 6%, #6168a0 8%, transparent 25%), radial-gradient(circle at 45% 70%, #f494d2, transparent 40%), #242c5b; }
.east { background: radial-gradient(circle at 50% 58%, #ec7d50 0 8%, transparent 10%), linear-gradient(160deg, #dfd6ba 35%, #566b5e 36% 55%, #101c23 56%); }
.organic { background: radial-gradient(circle at 20% 30%, #ceff96, transparent 35%), radial-gradient(circle at 80% 70%, #8978ff, transparent 45%), #231834; }
.cinema { background: linear-gradient(160deg, #2a0f15 0 38%, #f78d4f 39% 42%, #172b41 43% 100%); }
.minimal { background: linear-gradient(130deg, #dfd9cd 0 43%, #8a352f 44% 65%, #20272d 66%); }
.nature { background: radial-gradient(ellipse at 65% 40%, #e9c9dd 0 12%, #657950 13% 35%, #14271c 36%); }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); background: #101115; border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.segmented button { border: 0; background: none; color: var(--muted); font-size: 9px; padding: 7px 3px; border-radius: 6px; cursor: pointer; }
.segmented button.active { background: #2a2b31; color: var(--ink); }
.option-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.option-row label { display: grid; gap: 5px; color: var(--muted); font-size: 8px; }
select { appearance: none; width: 100%; border: 1px solid var(--line); color: #cacad0; background: #121318; border-radius: 8px; padding: 8px 10px; font-size: 9px; }
.generate-button {
  width: 100%; margin-top: 27px; border: 0; border-radius: 11px; background: var(--acid); color: #10120b;
  min-height: 61px; padding: 11px 15px; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 10px 28px rgba(217,255,103,.12); transition: transform .2s ease, box-shadow .2s ease;
}
.generate-button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(217,255,103,.2); }
.generate-button:disabled { opacity: .65; cursor: wait; transform: none; }
.button-label { font-weight: 700; font-size: 12px; }
.button-label i { font-style: normal; margin-right: 7px; }
.generate-button small { font-size: 8px; opacity: .58; }
.privacy-note { color: #53545d; font-size: 8px; text-align: center; margin: 11px 0 0; }

.preview-column { min-width: 0; display: grid; grid-template-rows: 54px 1fr 62px; background: radial-gradient(circle at 50% 43%, rgba(91,92,115,.16), transparent 38%), #0d0e12; }
.preview-bar, .result-caption { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); font-size: 9px; color: #92939b; }
.preview-bar > div:first-child { display: flex; align-items: center; gap: 8px; }
.preview-actions { display: flex; gap: 15px; }
.phone-stage { position: relative; display: grid; place-items: center; padding: 34px 20px; overflow: hidden; }
.phone-shadow { position: absolute; width: 44%; height: 12%; bottom: 8%; background: #000; filter: blur(26px); border-radius: 50%; opacity: .75; }
.phone-shell {
  position: relative; z-index: 2; width: min(315px, 72%); aspect-ratio: 1290 / 2796; border: 7px solid #28292e; border-radius: 48px;
  background: #111; box-shadow: inset 0 0 0 1px #4c4d52, 0 25px 60px rgba(0,0,0,.65);
}
.phone-screen { width: 100%; height: 100%; border-radius: 40px; overflow: hidden; position: relative; background: #18234a; }
.generated-art { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #101734, #1a3163 44%, #12253b 100%); transition: filter .5s ease; }
.generated-art::before {
  content: ""; position: absolute; inset: 0; opacity: .7;
  background: radial-gradient(circle at 42% 56%, rgba(158,204,255,.44), transparent 10%), radial-gradient(circle at 70% 80%, rgba(108,172,206,.34), transparent 28%), linear-gradient(175deg, transparent 55%, rgba(6,17,31,.7));
}
.art-orb { position: absolute; width: 48%; aspect-ratio: 1; left: 27%; top: 50%; border-radius: 43% 57% 49% 51% / 58% 39% 61% 42%; background: radial-gradient(circle at 37% 33%, #f1ffff, #99dcf7 15%, #4969c7 42%, #162458 72%); box-shadow: 0 0 45px #5da3ea; transform: rotate(-13deg); }
.art-orb::before, .art-orb::after { content: ""; position: absolute; inset: -25% 22% 52% 12%; border-radius: 70% 30% 70% 30%; background: linear-gradient(160deg, rgba(234,255,255,.75), rgba(89,123,217,.2)); transform: rotate(-42deg); }
.art-orb::after { inset: 54% -6% -25% 48%; transform: rotate(31deg); opacity: .75; }
.art-bloom { position: absolute; width: 100%; height: 36%; left: 0; bottom: 0; background: radial-gradient(ellipse at 50% 8%, rgba(74,170,209,.65), transparent 36%), linear-gradient(180deg, rgba(20,65,96,.6), #07121d); }
.art-glow { position: absolute; width: 9px; height: 9px; top: 42%; left: 24%; border-radius: 50%; background: #e7ffff; box-shadow: 90px 65px 0 -2px #9be2ff, 30px 190px 0 -3px #d4faff, 140px 240px 0 -2px #7dbff4, 0 0 18px #fff; }
#resultImage { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; display: none; }
.phone-ui { position: absolute; inset: 0; z-index: 4; color: #fff; text-align: center; text-shadow: 0 1px 15px rgba(0,0,0,.26); pointer-events: none; }
.island { width: 30%; height: 3.4%; position: absolute; top: 1.6%; left: 35%; background: #050505; border-radius: 999px; }
.date { margin-top: 16%; font-size: clamp(8px, 1vw, 12px); font-weight: 500; }
.time { font-size: clamp(38px, 5vw, 67px); font-weight: 250; letter-spacing: -.06em; line-height: 1.05; }
.safe-line { position: absolute; left: 7%; right: 7%; height: 1px; border-top: 1px dashed rgba(217,255,103,.5); opacity: 0; transition: opacity .2s; }
.safe-line-top { top: 28%; }
.safe-line-bottom { bottom: 12%; }
.safe-label { position: absolute; left: 8%; padding: 3px 6px; background: rgba(13,14,18,.58); color: var(--acid); border-radius: 4px; font-size: 6px; opacity: 0; transition: opacity .2s; }
.safe-top { top: 24.5%; }
.safe-bottom { bottom: 12.7%; }
.show-guides .safe-line, .show-guides .safe-label { opacity: 1; }
.lock-actions { position: absolute; bottom: 4.3%; width: 100%; display: flex; justify-content: space-between; padding: 0 9%; }
.lock-actions span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(18,18,20,.38); backdrop-filter: blur(6px); font-size: 12px; }
.home-indicator { position: absolute; width: 32%; height: 3px; bottom: 1.5%; left: 34%; background: rgba(255,255,255,.9); border-radius: 99px; }
.loading-cover { display: none; position: absolute; z-index: 7; inset: 0; background: rgba(8,9,13,.76); backdrop-filter: blur(14px); place-content: center; justify-items: center; gap: 10px; }
.loading-cover.visible { display: grid; }
.loading-cover strong { font-family: "STSong", serif; font-size: 16px; font-weight: 400; }
.loading-cover span { font-size: 8px; color: #a4a5ad; }
.spinner { width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.18); border-top-color: var(--acid); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-caption { border-top: 1px solid var(--line); border-bottom: 0; }
.result-caption > div { display: flex; gap: 12px; align-items: baseline; }
.result-caption strong { color: var(--ink); font-family: "STSong", serif; font-size: 13px; font-weight: 400; }
.result-caption > span { font: 8px ui-monospace, monospace; }

.score { align-items: baseline !important; gap: 3px !important; }
.score b { color: var(--acid); font: 28px Georgia, serif; font-weight: 400; }
.score small { color: #5e5f67; font-size: 8px; }
.score-ring { display: flex; align-items: center; gap: 14px; padding: 17px; background: linear-gradient(135deg, rgba(217,255,103,.07), transparent); border: 1px solid rgba(217,255,103,.11); border-radius: 13px; }
.ring { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--acid) 0 96%, #282a26 96%); position: relative; }
.ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #181a1b; }
.ring span { z-index: 1; font: 16px Georgia, serif; }
.score-ring p { margin: 0; }
.score-ring strong, .score-ring span { display: block; }
.score-ring strong { font-size: 10px; margin-bottom: 5px; }
.score-ring p span { color: var(--muted); font-size: 8px; line-height: 1.5; }
.metrics { margin-top: 17px; display: grid; gap: 11px; }
.metrics > div { display: grid; grid-template-columns: 76px 1fr 18px; gap: 8px; align-items: center; font-size: 8px; color: var(--muted); }
.metrics i { height: 2px; background: #2a2b31; position: relative; }
.metrics i b { display: block; height: 100%; background: linear-gradient(90deg, #7d749e, var(--acid)); }
.metrics strong { color: #bfc0c5; font: 8px ui-monospace, monospace; }
.divider { height: 1px; background: var(--line); margin: 24px 0 19px; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.section-title span { font-size: 11px; }
.section-title small { color: #5e5f68; font-size: 8px; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.action-grid button {
  min-height: 73px; display: flex; gap: 9px; align-items: center; text-align: left; border: 1px solid var(--line);
  background: #131419; border-radius: 10px; padding: 10px; cursor: pointer; transition: .18s ease;
}
.action-grid button:hover { border-color: rgba(217,255,103,.35); background: #181a1d; transform: translateY(-1px); }
.action-grid i { font: 17px Georgia, serif; color: var(--acid); width: 20px; text-align: center; }
.action-grid span { font-size: 9px; }
.action-grid small { display: block; margin-top: 5px; font-size: 7px; color: #676872; line-height: 1.45; }
.edit-box { display: none; grid-template-columns: 1fr auto; gap: 5px; margin-top: 8px; }
.edit-box.visible { display: grid; }
.edit-box input { min-width: 0; background: #0e0f13; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 9px; font-size: 9px; }
.edit-box button { border: 0; border-radius: 8px; padding: 0 12px; background: var(--acid); color: #10120b; font-size: 9px; cursor: pointer; }
.meta-list { display: grid; gap: 0; margin: 0; }
.meta-list > div { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.05); padding: 9px 0; font-size: 8px; }
.meta-list dt { color: #676871; }
.meta-list dd { margin: 0; color: #b5b6bb; }
.notice { margin-top: 16px; padding: 11px; border-left: 2px solid #4e5060; background: #111217; color: #858690; font-size: 8px; line-height: 1.65; }
.notice.success { border-color: var(--acid); color: #b8c29f; }
.notice.error { border-color: #ff7c6b; color: #dc9a91; }

.series-strip { margin-top: 115px; padding: 62px 5%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr .7fr 1fr; gap: 5vw; align-items: center; }
.series-strip h2, .guide-copy h2 { font-size: clamp(35px, 3.7vw, 59px); }
.series-strip > p { color: #92939c; font-size: 12px; line-height: 1.9; }
.mini-series { display: flex; justify-content: flex-end; align-items: center; }
.mini-wall { width: 110px; aspect-ratio: 9 / 18.5; border: 4px solid #24252b; border-radius: 17px; margin-left: -19px; box-shadow: -12px 20px 28px rgba(0,0,0,.45); position: relative; }
.mini-wall span { position: absolute; bottom: 9px; right: 9px; font: 7px ui-monospace, monospace; }
.mini-wall.a { transform: rotate(-7deg); background: radial-gradient(circle at 50% 58%, #a9e8ff, #344da7 12%, transparent 24%), linear-gradient(#151a3d,#0e2535); }
.mini-wall.b { z-index: 2; background: radial-gradient(circle at 50% 55%, #ffe8d4, #cc79ad 14%, transparent 26%), linear-gradient(#232047,#151c35); }
.mini-wall.c { transform: rotate(7deg); background: radial-gradient(circle at 50% 60%, #e0ffb0, #568386 13%, transparent 25%), linear-gradient(#132c2c,#0e1b25); }

.guide-section { padding: 125px 4% 130px; display: grid; grid-template-columns: .9fr 1.2fr; gap: 8vw; }
.guide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.guide-list article { border-top: 1px solid var(--line); padding-top: 18px; }
.guide-list article > span { color: var(--acid); font: 8px ui-monospace, monospace; }
.guide-list h3 { font-family: "STSong", serif; font-size: 18px; font-weight: 400; margin: 27px 0 12px; }
.guide-list p { color: #7d7e87; font-size: 10px; line-height: 1.9; margin: 0; }
footer { padding: 25px clamp(22px, 4vw, 70px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #565760; font-size: 8px; letter-spacing: .08em; }

@media (max-width: 1120px) {
  .studio { grid-template-columns: minmax(300px, .9fr) minmax(390px, 1.1fr); }
  .inspector { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
  .inspector .panel-heading, .inspector .score-ring, .inspector .metrics { grid-column: 1; }
  .inspector .divider, .inspector .section-title, .inspector .action-grid, .inspector .edit-box, .inspector .meta-list, .inspector .notice { grid-column: 2; }
  .inspector .divider:first-of-type { grid-row: 1; margin: 0; visibility: hidden; }
  .inspector .section-title { align-self: end; }
  .series-strip { grid-template-columns: 1fr 1fr; }
  .mini-series { grid-column: 2; grid-row: 1 / 3; }
}

@media (max-width: 760px) {
  main { width: min(100% - 24px, 600px); }
  .topbar { height: 66px; grid-template-columns: 1fr auto; padding: 0 18px; }
  .topbar nav { display: none; }
  .brand strong { font-size: 18px; }
  .hero { min-height: 300px; padding: 58px 6px 38px; display: block; }
  .hero-copy { width: 100%; margin-top: 29px; font-size: 12px; }
  .studio { display: block; }
  .composer { border-right: 0; border-bottom: 1px solid var(--line); }
  .preview-column { min-height: 750px; }
  .phone-shell { width: min(300px, 77vw); }
  .inspector { display: block; border-top: 1px solid var(--line); }
  .inspector .divider:first-of-type { visibility: visible; margin: 24px 0 19px; }
  .series-strip { margin-top: 74px; padding: 55px 12px; display: block; }
  .series-strip > p { margin: 28px 0 45px; }
  .mini-series { justify-content: center; }
  .mini-wall { width: 92px; }
  .guide-section { padding: 90px 12px; display: block; }
  .guide-list { margin-top: 54px; }
  footer { gap: 20px; text-align: center; flex-direction: column; }
}

@media (max-width: 430px) {
  .panel { padding: 23px 18px; }
  .style-grid { grid-template-columns: 1fr; }
  .preview-column { min-height: 680px; }
  .result-caption { padding: 0 13px; }
  .result-caption > span { display: none; }
  .action-grid { grid-template-columns: 1fr; }
  .guide-list { grid-template-columns: 1fr; }
}

/* Bright liquid-glass art direction */
body {
  background:
    radial-gradient(circle at 9% 8%, rgba(255,255,255,.98) 0 7%, transparent 27%),
    radial-gradient(circle at 81% 10%, rgba(169,155,255,.34), transparent 28%),
    radial-gradient(circle at 20% 73%, rgba(88,212,255,.26), transparent 33%),
    radial-gradient(circle at 88% 70%, rgba(184,243,74,.16), transparent 27%),
    linear-gradient(138deg, #f8fbff 0%, #dcecff 38%, #e8e4ff 68%, #f7fbff 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: -15%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 31% 28%, rgba(255,255,255,.82), transparent 22%),
    radial-gradient(ellipse at 70% 64%, rgba(112,211,255,.22), transparent 30%);
  filter: blur(28px);
  animation: liquid-drift 18s ease-in-out infinite alternate;
}

.ambient { filter: blur(90px); opacity: .3; animation: liquid-float 14s ease-in-out infinite alternate; }
.ambient-one { background: #9588ff; }
.ambient-two { background: #68daf5; animation-delay: -5s; }

.topbar {
  border-bottom-color: rgba(255,255,255,.58);
  background: linear-gradient(115deg, rgba(255,255,255,.62), rgba(238,247,255,.34));
  box-shadow: 0 14px 45px rgba(64,90,130,.09), inset 0 1px 0 rgba(255,255,255,.86);
  backdrop-filter: blur(30px) saturate(165%);
  -webkit-backdrop-filter: blur(30px) saturate(165%);
}
.brand-mark {
  color: #456c11;
  border-color: rgba(86,124,29,.34);
  background: linear-gradient(145deg, rgba(255,255,255,.8), rgba(184,243,74,.22));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.9), 0 8px 22px rgba(91,121,38,.12);
}
.brand small, .nav-link, .service-pill { color: #667a92; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.service-pill {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 999px;
  background: rgba(255,255,255,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.hero-copy { color: #526a86; }
.hero h1 { text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.eyebrow { color: #527d16; }

.studio {
  position: relative;
  isolation: isolate;
  border-color: rgba(255,255,255,.74);
  background: linear-gradient(135deg, rgba(255,255,255,.38), rgba(235,246,255,.15));
  box-shadow:
    0 42px 100px rgba(62,91,137,.17),
    inset 0 1px 0 rgba(255,255,255,.92),
    inset 0 -1px 0 rgba(126,166,205,.16);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
}
.studio::before {
  content: "";
  position: absolute;
  z-index: 8;
  pointer-events: none;
  left: 5%;
  right: 24%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.98), transparent);
  filter: drop-shadow(0 2px 6px rgba(255,255,255,.9));
}

.panel {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255,255,255,.53), rgba(244,250,255,.25) 62%, rgba(219,239,255,.2));
  backdrop-filter: blur(34px) saturate(165%);
  -webkit-backdrop-filter: blur(34px) saturate(165%);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.72);
}
.panel::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255,255,255,.24), transparent 27%, transparent 72%, rgba(115,203,255,.07));
}
.composer { border-right-color: rgba(255,255,255,.6); }
.inspector { border-left-color: rgba(255,255,255,.6); }
.panel-heading h2 { color: #17304e; }
.panel-heading span, fieldset legend span { color: #5e8b18; }
.text-button { color: #4c7a0d; font-weight: 700; }

.input-tabs { border-bottom-color: rgba(74,105,141,.15); }
.tab { color: #70849c; }
.tab.active { color: #122b49; border-color: #75a52a; }
.prompt-wrap { border-bottom-color: rgba(77,105,138,.16); }
textarea { color: #17304e; }
textarea::placeholder, input::placeholder { color: #7f94aa; }
.prompt-foot { color: #72879d; }
.prompt-foot b { color: #536a84; }

.upload-card {
  border-color: rgba(86,116,151,.22);
  background: linear-gradient(125deg, rgba(255,255,255,.44), rgba(228,242,255,.24));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.74);
}
.upload-card:hover { border-color: rgba(83,130,27,.38); }
.upload-card .upload-icon {
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(195,237,119,.32));
  color: #568010;
  box-shadow: 0 8px 18px rgba(76,111,39,.12);
}
.upload-card small, .style-card small { color: #71869d; }

.style-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.45), rgba(229,241,253,.2));
  border-color: rgba(255,255,255,.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 7px 18px rgba(70,100,135,.045);
}
.style-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 48%;
  height: 160%;
  top: -85%;
  left: -20%;
  transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  transition: transform .45s ease;
}
.style-card:hover {
  background: rgba(255,255,255,.58);
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 12px 28px rgba(79,113,153,.1), inset 0 1px 0 white;
}
.style-card:hover::after { transform: translateX(240%) rotate(25deg); }
.style-card.active {
  border-color: rgba(119,157,54,.5);
  background: linear-gradient(145deg, rgba(239,255,209,.66), rgba(255,255,255,.42));
  box-shadow: 0 10px 26px rgba(112,157,36,.11), inset 0 1px 0 rgba(255,255,255,.95);
}

.segmented {
  border-color: rgba(83,111,145,.16);
  background: rgba(207,224,242,.28);
  box-shadow: inset 0 1px 3px rgba(78,105,134,.08);
}
.segmented button { color: #657b94; }
.segmented button.active {
  color: #17304e;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(242,249,255,.55));
  box-shadow: 0 4px 12px rgba(69,98,132,.12), inset 0 1px 0 white;
}
.option-row label { color: #5f7690; }
select {
  color: #24415f;
  border-color: rgba(255,255,255,.74);
  background: linear-gradient(145deg, rgba(255,255,255,.68), rgba(230,242,254,.35));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 5px 15px rgba(70,102,138,.05);
}

.generate-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #d9ff82, #b8f34a 56%, #a9e93e);
  color: #1a2d07;
  border: 1px solid rgba(255,255,255,.72);
  box-shadow:
    0 16px 34px rgba(122,175,42,.23),
    inset 0 2px 1px rgba(255,255,255,.75),
    inset 0 -4px 10px rgba(92,147,20,.11);
}
.generate-button::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 56%;
  height: 180%;
  top: -115%;
  left: -20%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.68), transparent);
  transition: transform .55s ease;
}
.generate-button:hover {
  box-shadow: 0 20px 42px rgba(113,169,30,.3), inset 0 2px 1px rgba(255,255,255,.8);
}
.generate-button:hover::after { transform: translateX(260%) rotate(24deg); }
.generate-button:active { transform: translateY(0) scale(.985); }
.privacy-note { color: #71869c; }

.preview-column {
  position: relative;
  background:
    radial-gradient(circle at 52% 32%, rgba(255,255,255,.86), transparent 21%),
    radial-gradient(circle at 46% 54%, rgba(108,206,255,.31), transparent 30%),
    linear-gradient(155deg, rgba(235,246,255,.64), rgba(153,194,231,.34) 52%, rgba(206,206,255,.38));
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}
.preview-column::before {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 80%;
  height: 32%;
  left: -19%;
  top: 13%;
  border-radius: 50%;
  background: rgba(255,255,255,.26);
  filter: blur(28px);
  transform: rotate(-14deg);
}
.preview-bar, .result-caption {
  position: relative;
  z-index: 2;
  color: #5d748e;
  border-color: rgba(255,255,255,.54);
  background: rgba(255,255,255,.14);
}
.preview-actions button { color: #617993; }
.phone-stage { z-index: 1; }
.phone-shadow { background: #557999; opacity: .28; filter: blur(35px); }
.phone-shell {
  border-color: rgba(255,255,255,.76);
  background: rgba(221,239,255,.6);
  box-shadow:
    inset 0 0 0 1px rgba(85,122,158,.32),
    inset 0 2px 3px rgba(255,255,255,.96),
    0 34px 70px rgba(50,83,121,.32),
    0 0 0 2px rgba(115,151,186,.16);
}
.result-caption strong { color: #17304e; }

.score b { color: #608d17; }
.score small { color: #7790a6; }
.score-ring {
  background: linear-gradient(135deg, rgba(241,255,217,.66), rgba(255,255,255,.26));
  border-color: rgba(128,171,58,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 10px 30px rgba(75,108,140,.06);
}
.ring { background: conic-gradient(#95cf35 0 96%, rgba(75,106,138,.14) 96%); }
.ring::after { background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(226,240,252,.74)); }
.ring span { color: #284a0c; }
.score-ring p span, .metrics > div { color: #667d96; }
.metrics i { background: rgba(73,104,136,.12); }
.metrics i b { background: linear-gradient(90deg, #8f82ff, #88bc3a); }
.metrics strong { color: #45617d; }
.divider { background: rgba(80,109,142,.13); }
.section-title small { color: #73889e; }

.action-grid button {
  border-color: rgba(255,255,255,.64);
  background: linear-gradient(145deg, rgba(255,255,255,.52), rgba(224,239,252,.23));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 8px 18px rgba(65,96,130,.045);
}
.action-grid button:hover {
  border-color: rgba(127,170,59,.42);
  background: rgba(255,255,255,.69);
  box-shadow: 0 14px 26px rgba(68,101,137,.1), inset 0 1px 0 white;
}
.action-grid i { color: #5d8b18; }
.action-grid small { color: #71859b; }
.edit-box input {
  color: #17304e;
  border-color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.5);
  box-shadow: inset 0 1px 2px rgba(80,109,139,.08);
}
.edit-box button { color: #21340d; background: linear-gradient(145deg, #d9ff82, #afe842); }
.meta-list > div { border-bottom-color: rgba(74,104,136,.09); }
.meta-list dt { color: #6b8097; }
.meta-list dd { color: #314f6c; }
.notice {
  border-left-color: #8fa3b7;
  background: rgba(255,255,255,.31);
  color: #5f748b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.notice.success { border-color: #84b83c; color: #4b6b21; }
.notice.error { border-color: #e9786e; color: #9f4e48; }

.series-strip { border-color: rgba(255,255,255,.62); }
.series-strip > p, .guide-list p { color: #5f7690; }
.mini-wall {
  border-color: rgba(255,255,255,.7);
  box-shadow: -12px 22px 38px rgba(56,86,121,.24), inset 0 1px 0 white;
}
.guide-list article { border-top-color: rgba(77,108,141,.16); }
.guide-list article > span { color: #5e8b18; }
footer { border-top-color: rgba(255,255,255,.62); color: #60768e; }

@keyframes liquid-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1.5%, 0) scale(1.04); }
}
@keyframes liquid-float {
  from { transform: translate3d(0, -2%, 0) scale(1); }
  to { transform: translate3d(6%, 5%, 0) scale(1.08); }
}

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