:root{
  --bg:#040712;--bg2:#07101f;--panel:#091326;--panel2:#0c1830;--line:rgba(133,151,190,.16);
  --text:#f4f7fb;--muted:#91a0b7;--muted2:#687993;--blue:#3178ff;--violet:#9b38ff;--green:#56d8a3;--red:#f27b93;
  --max:1420px;
}
*{box-sizing:border-box}html{background:var(--bg);color-scheme:dark}body{margin:0;min-height:100vh;color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(circle at 72% 8%,rgba(65,55,190,.12),transparent 26%),linear-gradient(180deg,#050817 0%,#040711 100%);-webkit-font-smoothing:antialiased;overflow-x:hidden}
button,input,textarea{font:inherit}button{border:0;color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}.hidden{display:none!important}.shell{width:min(calc(100% - 52px),var(--max));margin-inline:auto}.ambient{position:fixed;z-index:-1;border-radius:50%;filter:blur(140px);pointer-events:none;opacity:.18}.ambient-a{width:580px;height:580px;right:-250px;top:100px;background:#3339ff}.ambient-b{width:500px;height:500px;left:-280px;bottom:-170px;background:#8f27ff}
.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:12px}.brand img{width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 0 17px rgba(103,78,255,.2))}.brand span{display:flex;flex-direction:column;gap:4px;line-height:1}.brand strong{font-size:19px;letter-spacing:.045em}.brand small{font-size:8px;color:#8694aa;letter-spacing:.12em;text-transform:uppercase}.top-actions{display:flex;align-items:center;gap:10px}.prototype-badge{padding:7px 10px;border:1px solid rgba(117,101,255,.22);border-radius:99px;background:rgba(65,50,155,.09);color:#a9b5c8;font-size:9px}.ghost,.back-link{padding:8px 10px;color:#8d9bb0;font-size:10px}.ghost:hover,.back-link:hover{color:#fff}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;padding-bottom:42px}.assistant-panel,.project-panel{border:1px solid var(--line);background:linear-gradient(150deg,rgba(9,19,39,.96),rgba(5,11,23,.96));box-shadow:0 28px 80px rgba(0,0,0,.24)}.assistant-panel{border-radius:18px;min-height:720px;overflow:hidden}.project-panel{border-radius:18px;padding:20px;align-self:start;position:sticky;top:18px}.assistant-head{min-height:74px;padding:14px 19px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}.assistant-head>div:nth-child(2){display:flex;flex-direction:column;gap:4px}.assistant-head strong{font-size:13px}.assistant-head small{font-size:9px;color:#74849d}.bot-avatar{width:38px;height:38px;border-radius:14px;position:relative;display:grid;place-items:center;background:linear-gradient(145deg,#6b64ff,#283167);box-shadow:0 0 22px rgba(91,61,255,.22)}.bot-avatar:before{content:"";width:25px;height:20px;border-radius:9px;background:#07101e;border:1px solid rgba(255,255,255,.12)}.bot-avatar span,.bot-avatar i{position:absolute;width:4px;height:6px;border-radius:50%;background:#6ea4ff;top:16px;box-shadow:0 0 9px #356bff}.bot-avatar span{left:12px}.bot-avatar i{right:12px}.progress-wrap{margin-left:auto;display:flex;align-items:center;gap:10px}.progress-wrap>span{font-size:9px;color:#74849a}.progress{width:92px;height:4px;border-radius:99px;background:#131f36;overflow:hidden}.progress i{display:block;width:0;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--blue),var(--violet));transition:.35s}
.stage{padding:34px 38px}.stage-heading{max-width:760px;margin-bottom:24px}.stage-heading>span,.project-top>span,.scope-card>span,.storage-card>span{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:#806fff}.stage-heading h2{font-size:31px;line-height:1.1;letter-spacing:-.035em;margin:8px 0 10px}.stage-heading p{font-size:12px;line-height:1.65;color:var(--muted);margin:0}.stage-actions{display:flex;justify-content:flex-end;gap:11px;margin-top:24px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:12px 17px;border-radius:9px;font-size:11px;font-weight:650}.primary{background:linear-gradient(96deg,#2d72ff,#9632ff);box-shadow:0 13px 32px rgba(84,48,255,.2)}.primary:disabled{opacity:.38;cursor:not-allowed;box-shadow:none}.secondary{border:1px solid rgba(143,158,192,.22);background:rgba(5,10,22,.45);color:#c1cad8}.full{width:100%}.eyebrow{display:inline-flex;padding:7px 10px;border-radius:7px;border:1px solid rgba(113,91,255,.24);background:rgba(56,44,130,.1);color:#9eaabd;font-size:9px}
#stageIntro{min-height:642px;display:grid;grid-template-columns:1.04fr .96fr;gap:50px;align-items:center}.intro-copy h1{font-size:51px;line-height:1.02;letter-spacing:-.048em;margin:17px 0 18px;max-width:670px}.intro-copy h1 em{font-style:normal;background:linear-gradient(90deg,#347fff,#a13cff);-webkit-background-clip:text;background-clip:text;color:transparent}.intro-copy>p{max-width:650px;font-size:13px;line-height:1.7;color:#93a1b5}.intro-actions{display:flex;gap:11px;margin-top:25px}.trust-list{display:flex;flex-wrap:wrap;gap:12px 20px;margin-top:25px;color:#7f8fa7;font-size:9px}.intro-visual{height:480px;position:relative;display:grid;place-items:center}.orb{width:238px;height:238px;border-radius:50%;position:relative;background:radial-gradient(circle at 35% 27%,#d1ccff 0,#7770ff 27%,#333d91 52%,#0d1739 76%);box-shadow:0 0 70px rgba(86,64,255,.27),inset -30px -40px 55px rgba(0,0,0,.34)}.orb:before,.orb:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(101,76,255,.26);inset:-56px}.orb:after{inset:-105px;border-color:rgba(73,113,255,.13)}.bot-face{position:absolute;left:48px;right:48px;top:75px;height:82px;border-radius:42px;background:#07101d;border:2px solid rgba(255,255,255,.13);box-shadow:inset 0 0 18px rgba(88,69,255,.12);display:flex;justify-content:center;align-items:center;gap:35px}.bot-face i{width:12px;height:18px;border-radius:50%;background:#66a5ff;box-shadow:0 0 19px #356cff}.float-note{position:absolute;width:145px;padding:13px;border:1px solid rgba(109,88,255,.25);border-radius:11px;background:rgba(8,16,33,.85);backdrop-filter:blur(12px);box-shadow:0 18px 36px rgba(0,0,0,.23);display:grid;gap:3px}.float-note small{font-size:8px;color:#745fff}.float-note b{font-size:11px}.float-note span{font-size:8px;color:#74849c}.n1{left:5%;top:18%}.n2{right:1%;top:29%}.n3{left:11%;bottom:12%}
#stageChat{padding:0;min-height:642px;display:grid;grid-template-rows:1fr auto}.chat-log{padding:30px 34px 20px;overflow-y:auto;max-height:530px;display:flex;flex-direction:column;gap:14px}.message{max-width:74%;padding:12px 14px;border-radius:14px;font-size:12px;line-height:1.55;animation:messageIn .22s ease}.message.bot{align-self:flex-start;background:#0d1b34;border:1px solid rgba(129,148,188,.13);border-bottom-left-radius:5px;color:#c9d2df}.message.user{align-self:flex-end;background:linear-gradient(96deg,rgba(47,111,255,.7),rgba(119,53,255,.7));border-bottom-right-radius:5px;color:#fff}.message small{display:block;margin-top:5px;color:#71829a;font-size:8px}.answer-box{padding:16px 22px;border-top:1px solid var(--line);background:rgba(4,9,20,.64)}.answer-row{display:flex;gap:9px}.answer-row input,.answer-row textarea{flex:1;border:1px solid rgba(132,151,188,.18);border-radius:10px;background:#07101f;color:#fff;padding:12px 13px;outline:none;font-size:12px}.answer-row textarea{min-height:86px;resize:vertical}.answer-row input:focus,.answer-row textarea:focus{border-color:rgba(113,89,255,.58);box-shadow:0 0 0 3px rgba(91,69,255,.07)}.answer-row button{min-width:102px}.choice-row{display:flex;flex-wrap:wrap;gap:8px}.choice{padding:10px 13px;border-radius:9px;border:1px solid rgba(130,147,185,.18);background:#081225;color:#aeb9ca;font-size:10px}.choice:hover{border-color:rgba(123,93,255,.5);color:#fff}.answer-tip{font-size:8px;color:#667792;margin:9px 1px 0}
.brief-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.brief-item{padding:15px;border:1px solid var(--line);border-radius:11px;background:rgba(8,17,34,.64)}.brief-item small{display:block;color:#6f8098;font-size:8px;margin-bottom:7px;text-transform:uppercase;letter-spacing:.07em}.brief-item strong{font-size:12px;line-height:1.5;font-weight:580}.brief-item.full{grid-column:1/-1}
.generating-card{min-height:540px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.loader-ring{width:112px;height:112px;border-radius:50%;display:grid;place-items:center;margin-bottom:22px;background:conic-gradient(from 0deg,#317cff,#9d34ff,#317cff);animation:spin 1.6s linear infinite;box-shadow:0 0 42px rgba(85,60,255,.21)}.loader-ring:after{content:"";width:96px;height:96px;border-radius:50%;background:#07101f}.generating-card h2{font-size:28px;margin:12px 0 8px}.generating-card>p{font-size:11px;color:#8493aa}.generation-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:min(620px,100%);margin-top:29px}.generation-steps div{padding:12px;border:1px solid var(--line);border-radius:9px;color:#667892;display:flex;flex-direction:column;gap:4px}.generation-steps i{font-style:normal;font-size:8px}.generation-steps span{font-size:10px}.generation-steps .active{border-color:rgba(112,86,255,.42);background:rgba(73,47,168,.12);color:#cbd5e3}
.preview-heading{display:flex;align-items:end;justify-content:space-between;max-width:none}.preview-switch{display:flex;padding:3px;border:1px solid var(--line);border-radius:9px;background:#07101e}.preview-switch button{padding:7px 10px;border-radius:7px;background:transparent;color:#7788a0;font-size:9px}.preview-switch button.active{background:#17233b;color:#fff}.site-preview{display:flex;justify-content:center;padding:17px;border:1px solid var(--line);border-radius:13px;background:radial-gradient(circle at 50% 20%,rgba(71,55,177,.13),transparent 37%),#050b17;transition:.25s}.preview-browser{width:100%;border-radius:10px;overflow:hidden;border:1px solid rgba(151,168,203,.14);background:#091225;box-shadow:0 25px 60px rgba(0,0,0,.32);transition:.25s}.site-preview.mobile .preview-browser{width:300px}.browser-top{height:30px;display:flex;align-items:center;gap:5px;padding:0 10px;background:#0c1628;border-bottom:1px solid rgba(136,153,189,.1)}.browser-top i{width:6px;height:6px;border-radius:50%;background:#33415a}.browser-top span{font-size:7px;color:#687a94;margin-left:8px}.preview-page{min-height:370px;background:#f2efe8;color:#16191e;overflow:hidden}.mock-hero{min-height:230px;padding:42px 8%;display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:24px;background:linear-gradient(120deg,#10161e,#1e2837);color:#fff}.mock-brand{font-size:8px;letter-spacing:.18em;text-transform:uppercase;color:#94a4b9}.mock-hero h3{font-size:35px;line-height:1.03;letter-spacing:-.04em;margin:10px 0 12px;max-width:470px}.mock-hero p{font-size:10px;line-height:1.55;color:#a9b4c4;max-width:420px}.mock-cta{display:inline-flex;padding:9px 12px;border-radius:7px;margin-top:7px;background:#fff;color:#141821;font-size:8px;font-weight:700}.mock-visual{height:150px;border-radius:16px;background:linear-gradient(145deg,#42506a,#151b25);position:relative;overflow:hidden}.mock-visual:before{content:"";position:absolute;width:150px;height:150px;border-radius:50%;right:-30px;top:-15px;background:linear-gradient(145deg,#5b6e92,#202837);box-shadow:-50px 60px 0 -25px rgba(255,255,255,.08)}.mock-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:17px 8%;background:#f2efe8}.mock-card{padding:14px;border-radius:9px;background:#fff;border:1px solid #dedbd3}.mock-card b{display:block;font-size:9px}.mock-card span{display:block;color:#7b7b79;font-size:7px;margin-top:4px}.site-preview.mobile .mock-hero{grid-template-columns:1fr;padding:24px 8%;min-height:280px}.site-preview.mobile .mock-hero h3{font-size:26px}.site-preview.mobile .mock-visual{height:110px}.site-preview.mobile .mock-cards{grid-template-columns:1fr;padding:12px}.preview-note{display:flex;gap:13px;align-items:center;margin-top:12px;padding:11px 13px;border-radius:9px;border:1px solid var(--line);background:rgba(8,17,34,.65)}.preview-note span{white-space:nowrap;font-size:8px;color:#826dff}.preview-note p{margin:0;color:#75869f;font-size:8px;line-height:1.45}
.rules-layout{display:grid;grid-template-columns:1fr 1fr;gap:14px}.rule-card{padding:19px;border:1px solid var(--line);border-radius:12px;background:rgba(8,17,34,.65)}.rule-card.good{border-color:rgba(66,199,144,.2)}.rule-card.bad{border-color:rgba(229,99,127,.17)}.rule-card>b{font-size:13px}.rule-card p{font-size:10px;line-height:1.55;color:#8594a9}.rule-card ul{margin:13px 0 0;padding-left:18px;color:#a7b2c3;font-size:10px;line-height:1.8}.cycles-banner{margin-top:14px;padding:14px 16px;border-radius:10px;background:linear-gradient(95deg,rgba(48,110,255,.13),rgba(137,47,255,.12));border:1px solid rgba(104,83,255,.23);display:flex;align-items:center;gap:18px}.cycles-banner strong{font-size:11px}.cycles-banner span{font-size:9px;color:#8898ae}.confirm-row{margin-top:16px;padding:13px 14px;border:1px solid var(--line);border-radius:10px;display:flex;align-items:flex-start;gap:10px;color:#a6b2c3;font-size:10px;line-height:1.45}.confirm-row input{margin-top:1px;accent-color:#7659ff}
.correction-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:14px}.correction-box,.history-box{padding:18px;border:1px solid var(--line);border-radius:12px;background:rgba(8,17,34,.64)}.correction-box label{font-size:10px;color:#aab5c5}.correction-box textarea{width:100%;min-height:190px;margin-top:9px;padding:13px;border-radius:10px;border:1px solid rgba(135,151,190,.18);background:#07101e;color:#fff;resize:vertical;outline:none;font-size:11px;line-height:1.55}.correction-meta{display:flex;justify-content:space-between;gap:10px;margin:9px 0 13px;color:#6f8099;font-size:8px}.correction-meta b{font-weight:500}.history-box>span{font-size:9px;color:#7c6cff;text-transform:uppercase;letter-spacing:.08em}.history-entry{margin-top:12px;padding:11px;border-radius:9px;background:#07101f;border:1px solid rgba(132,149,185,.12)}.history-entry small{font-size:7px;color:#7665ff}.history-entry p{font-size:9px;line-height:1.5;color:#9aa8bb;margin:5px 0 0}.empty{font-size:9px;color:#6d7c94;margin-top:14px}
.finish-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:16px;align-items:stretch}.finish-main,.storage-card{padding:24px;border:1px solid var(--line);border-radius:13px;background:rgba(8,17,34,.65)}.finish-main h2{font-size:31px;letter-spacing:-.035em;line-height:1.1;margin:16px 0 12px}.finish-main>p{font-size:11px;line-height:1.65;color:#8b99ae;max-width:680px}.finish-actions{display:flex;gap:10px;margin-top:23px}.storage-card{display:grid;gap:12px}.storage-card>div{padding:12px;border-radius:9px;background:#07101f}.storage-card b{font-size:16px}.storage-card p{font-size:8px;color:#7f8fa6;margin:3px 0 0}.storage-card small{font-size:8px;line-height:1.55;color:#687993}
.project-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.project-top b{font-size:8px;padding:5px 8px;border-radius:99px;background:rgba(73,58,159,.12);color:#8d7cff}.project-card{padding:15px;border:1px solid var(--line);border-radius:11px;background:#07101e;display:flex;flex-direction:column}.project-card small{font-size:7px;color:#65758d;text-transform:uppercase;letter-spacing:.08em}.project-card strong{font-size:14px;margin:6px 0 5px}.project-card span{font-size:9px;color:#77879f;line-height:1.45}.project-info{display:grid;gap:1px;margin-top:12px;border:1px solid var(--line);border-radius:11px;overflow:hidden}.project-info>div{padding:11px 12px;background:#07101e;display:flex;justify-content:space-between;gap:10px}.project-info span{font-size:8px;color:#6f8098}.project-info b{font-size:9px;font-weight:550}.scope-card{margin-top:12px;padding:14px;border:1px solid var(--line);border-radius:11px;background:rgba(8,17,34,.7)}.scope-card ul{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:8px;color:#9ba8bb;font-size:9px}.scope-card li:before{content:"✓";color:#7765ff;margin-right:7px}.local-note{margin-top:12px;padding:13px;border-radius:10px;background:rgba(44,53,78,.12);display:flex;gap:9px}.local-note i{width:18px;height:18px;border-radius:50%;border:1px solid #5d6c84;display:grid;place-items:center;font-size:8px;color:#8494ab;flex:0 0 auto}.local-note p{font-size:8px;line-height:1.55;color:#687994;margin:0}.local-note b{color:#8e9cb0;font-weight:600}
.modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}.modal-backdrop{position:absolute;inset:0;background:rgba(1,4,10,.8);backdrop-filter:blur(8px)}.modal-card{position:relative;z-index:1;width:min(640px,100%);padding:27px;border:1px solid rgba(119,101,255,.3);border-radius:17px;background:#091326;box-shadow:0 30px 90px rgba(0,0,0,.55)}.modal-close{position:absolute;right:12px;top:8px;background:none;color:#7d8ca3;font-size:25px}.modal-card h2{font-size:26px;margin:13px 0 9px}.modal-card>p{font-size:11px;line-height:1.6;color:#8796ac}.limits-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.limits-grid>div{padding:15px;border-radius:10px;background:#07101e;border:1px solid var(--line)}.limits-grid b{font-size:11px}.limits-grid ul{padding-left:17px;margin:9px 0 0;color:#95a3b6;font-size:9px;line-height:1.8}.toast{position:fixed;right:20px;bottom:20px;z-index:110;max-width:330px;padding:12px 14px;border:1px solid rgba(114,91,255,.3);border-radius:10px;background:#111b30;color:#dce4ef;font-size:9px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:none}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes messageIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:1080px){.workspace{grid-template-columns:1fr}.project-panel{position:static;display:grid;grid-template-columns:1fr 1fr;gap:12px}.project-top,.local-note{grid-column:1/-1}.project-info,.scope-card{margin-top:0}.assistant-panel{min-height:680px}}
@media(max-width:760px){.shell{width:calc(100% - 28px)}.topbar{height:70px}.prototype-badge,.top-actions>.ghost{display:none}.brand img{width:35px;height:35px}.brand strong{font-size:16px}.brand small{font-size:7px}.back-link{font-size:9px}.workspace{gap:13px;padding-bottom:24px}.assistant-panel,.project-panel{border-radius:14px}.assistant-head{min-height:65px;padding:12px 14px}.progress{width:55px}.stage{padding:24px 17px}.stage-heading h2{font-size:25px}.stage-heading p{font-size:11px}#stageIntro{min-height:0;grid-template-columns:1fr;gap:12px;padding-top:34px}.intro-copy{text-align:center}.intro-copy h1{font-size:38px;margin:14px auto 15px}.intro-copy>p{font-size:12px;margin-inline:auto}.intro-actions{justify-content:center}.trust-list{justify-content:center;font-size:8px}.intro-visual{height:330px}.orb{width:170px;height:170px}.orb:before{inset:-38px}.orb:after{inset:-70px}.bot-face{left:35px;right:35px;top:54px;height:59px;gap:26px}.bot-face i{width:9px;height:14px}.float-note{width:118px;padding:10px}.n1{left:1%;top:11%}.n2{right:0;top:30%}.n3{left:5%;bottom:6%}#stageChat{min-height:600px}.chat-log{padding:22px 15px 15px;max-height:490px}.message{max-width:87%;font-size:11px}.answer-box{padding:13px}.answer-row{flex-direction:column}.answer-row button{width:100%}.choice-row{gap:7px}.choice{font-size:9px;padding:9px 10px}.brief-grid,.rules-layout,.correction-layout,.finish-grid{grid-template-columns:1fr}.brief-item.full{grid-column:auto}.preview-heading{align-items:flex-start;gap:14px;flex-direction:column}.site-preview{padding:10px}.preview-note{align-items:flex-start;flex-direction:column;gap:5px}.mock-hero{grid-template-columns:1fr;padding:28px 8%}.mock-hero h3{font-size:28px}.mock-visual{height:115px}.mock-cards{grid-template-columns:1fr}.cycles-banner{flex-direction:column;align-items:flex-start;gap:5px}.stage-actions{flex-direction:column-reverse}.stage-actions button{width:100%}.generation-steps{grid-template-columns:repeat(2,1fr)}.finish-actions{flex-direction:column}.project-panel{grid-template-columns:1fr}.project-top,.local-note{grid-column:auto}.limits-grid{grid-template-columns:1fr}.modal-card{padding:23px 18px}}
@media(max-width:400px){.intro-copy h1{font-size:34px}.intro-actions{flex-direction:column}.intro-actions button{width:100%}.float-note{width:108px}.progress-wrap>span{display:none}.project-panel{padding:16px}.stage{padding-inline:15px}.assistant-head>div:nth-child(2) small{max-width:125px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

/* V0.2 — visual brief */
.answer-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:12px}.choice.selected,.palette-card.selected,.visual-choice.selected{border-color:rgba(128,91,255,.7);box-shadow:0 0 0 1px rgba(128,91,255,.2) inset;background:linear-gradient(145deg,rgba(52,73,160,.18),rgba(105,48,177,.13));color:#fff}
.upload-card{display:grid;grid-template-columns:48px 1fr auto;gap:13px;align-items:center;padding:14px;border:1px dashed rgba(127,148,190,.3);border-radius:12px;background:rgba(8,17,34,.58)}.upload-icon{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(49,120,255,.22),rgba(155,56,255,.22));color:#a895ff;font-size:22px}.upload-card strong,.reference-upload strong{display:block;font-size:11px}.upload-card p,.reference-upload p{margin:4px 0 0;color:#71829a;font-size:8.5px;line-height:1.45}.upload-button{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;padding:10px 13px;border-radius:9px;border:1px solid rgba(130,147,185,.2);background:#101b30;color:#d6deea;font-size:9px;font-weight:650;cursor:pointer;white-space:nowrap}.upload-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.upload-note{margin-top:9px;color:#62738c;font-size:8px;line-height:1.5}.upload-empty{margin-top:10px;padding:10px 12px;border-radius:9px;background:#07101e;color:#687a93;font-size:8.5px}.file-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.file-chip{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;align-items:center;max-width:100%;padding:8px 9px;border:1px solid rgba(129,148,187,.16);border-radius:9px;background:#07101f}.file-chip span{max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#aab6c7;font-size:9px}.file-chip small{color:#687992;font-size:7px}.file-chip button{width:20px;height:20px;border-radius:50%;background:#111d31;color:#76869c;font-size:13px;line-height:1}
.palette-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.palette-card{padding:12px;border:1px solid rgba(130,147,185,.16);border-radius:10px;background:#081225;color:#aeb9ca;text-align:left}.palette-card b{display:block;font-size:9px;line-height:1.35}.swatches{display:flex;height:30px;border-radius:7px;overflow:hidden;margin-bottom:9px;border:1px solid rgba(255,255,255,.06)}.swatches i{flex:1}.custom-colors{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:11px;padding:11px;border:1px solid var(--line);border-radius:10px;background:rgba(7,16,30,.66)}.custom-colors>span{font-size:9px;color:#8090a7;margin-right:auto}.custom-colors label{display:flex;align-items:center;gap:6px;color:#8797ad;font-size:8px}.custom-colors input[type=color]{width:34px;height:28px;padding:2px;border-radius:6px;border:1px solid rgba(130,147,185,.18);background:#07101f}.custom-colors .secondary{padding:8px 10px;font-size:8px}
.visual-choice-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.visual-choice{min-height:76px;padding:13px;border:1px solid rgba(130,147,185,.16);border-radius:10px;background:#081225;text-align:left;color:#aeb9ca}.visual-choice b{display:block;color:#d7deea;font-size:10px;margin-bottom:5px}.visual-choice span{display:block;color:#71829a;font-size:8px;line-height:1.45}.style-card:before{content:"";display:block;width:26px;height:3px;border-radius:99px;background:linear-gradient(90deg,#3178ff,#9b38ff);margin-bottom:9px}.font-card b{font-size:11px}.font-card:nth-child(2) b{font-family:Georgia,serif;font-weight:500}.font-card:nth-child(3) b{font-family:"Trebuchet MS",sans-serif;font-weight:500}.font-card:nth-child(4) b{letter-spacing:.04em}.font-card:nth-child(5) b{letter-spacing:.015em;text-transform:uppercase;font-size:9px}
.reference-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:11px}.reference-text,.reference-upload{display:block;padding:13px;border:1px solid var(--line);border-radius:11px;background:rgba(8,17,34,.58)}.reference-text>span{display:block;font-size:9px;color:#9dacbf;margin-bottom:8px}.reference-text textarea{width:100%;min-height:125px;padding:11px;border:1px solid rgba(132,151,188,.18);border-radius:9px;background:#07101f;color:#fff;resize:vertical;font-size:10px;line-height:1.5}.reference-upload .upload-button{margin-top:11px}.reference-upload .file-chip span{max-width:140px}.file-warning{border-color:rgba(255,178,73,.18);background:rgba(67,42,16,.12)!important}.file-warning strong{color:#a9a19a;font-size:10px}
@media(max-width:760px){.upload-card{grid-template-columns:42px 1fr}.upload-card .upload-button{grid-column:1/-1;width:100%}.answer-actions{flex-direction:column-reverse}.answer-actions button{width:100%}.palette-grid{grid-template-columns:repeat(2,1fr)}.custom-colors{align-items:flex-start}.custom-colors>span{width:100%;margin:0}.visual-choice-grid{grid-template-columns:1fr}.reference-grid{grid-template-columns:1fr}.file-chip span{max-width:180px}}
@media(max-width:400px){.palette-grid{grid-template-columns:1fr}.file-chip{grid-template-columns:minmax(0,1fr) auto auto}.file-chip span{max-width:145px}}

/* V0.3 real landing generator */
.landing-frame{display:block;width:100%;height:560px;border:0;background:#fff}.site-preview.mobile .landing-frame{height:620px}.technical-export{display:flex;align-items:center;gap:10px;margin-top:10px;padding:11px 13px;border:1px solid var(--line);border-radius:10px;background:rgba(7,14,28,.75)}.technical-export>div{margin-right:auto;display:grid;gap:3px}.technical-export b{font-size:9px}.technical-export span{font-size:8px;color:#72829a}.technical-export button{font-size:9px;padding:8px 10px}.site-preview.mobile .preview-browser{width:320px;max-width:100%}@media(max-width:760px){.landing-frame{height:520px}.site-preview.mobile .landing-frame{height:600px}.technical-export{align-items:stretch;flex-direction:column}.technical-export>div{margin:0}.technical-export button{width:100%}}
/* V0.4 */
.prototype-badge.online{color:#9be7c4;border-color:rgba(66,201,144,.28);background:rgba(30,111,76,.12)}
.prototype-badge.offline{color:#f3b4b4;border-color:rgba(255,108,108,.26);background:rgba(121,42,42,.12)}
.ai-error{width:min(560px,100%);padding:24px;border:1px solid rgba(255,100,115,.25);border-radius:14px;background:rgba(90,25,35,.12);text-align:left}.ai-error b{display:block;font-size:18px}.ai-error p{color:#a99aaa;line-height:1.6;font-size:11px}.ai-error button{margin-top:10px}.generation-content.hidden{display:none}.file-chip em{font-style:normal;color:#77d6a6;font-size:7px}.upload-card .upload-button{min-width:120px}.upload-note strong{color:#94a4ba}


/* V1.1 — desktop readability and workspace ergonomics */
@media(min-width:1180px){
  :root{--max:1680px}
  .shell{width:min(calc(100% - 64px),var(--max))}
  .workspace{grid-template-columns:minmax(0,1fr) 340px;gap:24px}
  .assistant-panel{min-height:790px}
  .project-panel{padding:24px}
  .assistant-head{min-height:82px;padding:16px 24px}
  .assistant-head strong{font-size:15px}.assistant-head small{font-size:11px}
  .progress-wrap>span{font-size:11px}.progress{width:116px;height:5px}
  #stageChat{min-height:708px;grid-template-rows:minmax(0,1fr) auto}
  .chat-log{padding:34px 40px 26px;max-height:625px;gap:16px}
  .message{max-width:76%;padding:14px 17px;border-radius:15px;font-size:15px;line-height:1.58}
  .message small{font-size:10px;margin-top:7px}
  .answer-box{padding:20px 26px}
  .answer-row{gap:12px}
  .answer-row input,.answer-row textarea{padding:15px 16px;font-size:16px;border-radius:12px}
  .answer-row textarea{min-height:104px}
  .answer-row button{min-width:132px}
  .primary,.secondary{padding:13px 19px;font-size:13px}
  .choice-row{gap:10px}.choice{padding:12px 15px;font-size:13px;line-height:1.3}
  .answer-tip,.upload-note{font-size:11px;line-height:1.55}
  .upload-card{padding:17px;gap:16px}.upload-card strong,.reference-upload strong{font-size:13px}.upload-card p,.reference-upload p{font-size:11px}
  .upload-button{padding:12px 15px;font-size:12px}.upload-empty{font-size:11px;padding:12px 14px}
  .file-chip span{font-size:11px}.file-chip small,.file-chip em{font-size:9px}
  .palette-card b,.custom-colors>span{font-size:12px}.custom-colors label,.custom-colors .secondary{font-size:11px}
  .visual-choice{min-height:90px;padding:16px}.visual-choice b{font-size:13px}.visual-choice span{font-size:11px;line-height:1.5}
  .reference-text>span{font-size:12px}.reference-text textarea{font-size:14px;min-height:150px}
  .stage{padding:40px 46px}.stage-heading{max-width:880px}.stage-heading h2{font-size:36px}.stage-heading p{font-size:14px}
  .brief-item{padding:18px}.brief-item small{font-size:10px}.brief-item strong{font-size:14px}
  .project-top>span,.scope-card>span,.storage-card>span{font-size:10px}
}
