:root {
  --red: #f51b2b;
  --red-dark: #d70f1f;
  --red-soft: #fff0f2;
  --ink: #111827;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #e6e9ef;
  --panel: #ffffff;
  --bg: #f5f7fa;
  --soft: #fafbfc;
  --green: #0a3a2d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.07);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:"DM Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.app-shell{min-height:100vh;background:var(--bg)}
.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 28px;position:sticky;top:0;z-index:20}
.brand{border:0;background:none;display:flex;align-items:center;gap:12px;font-size:19px;font-weight:600;text-align:left;color:var(--ink);padding:0}
.brand-dot{width:29px;height:29px;border-radius:50%;display:inline-block;background:linear-gradient(145deg,#ff4a56,var(--red));box-shadow:inset 0 1px 1px rgba(255,255,255,.7),0 4px 12px rgba(245,27,43,.25)}
.project-pill{display:flex;gap:14px;align-items:center;font-weight:600;font-size:14px}
.saved-state{font-size:12px;color:var(--muted-2);font-weight:500}
.top-actions{justify-self:end;display:flex;gap:10px;align-items:center}
.icon-btn,.avatar{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--ink);font-weight:700}
.avatar{background:#eef2f6;color:#344054}
.workspace{display:grid;grid-template-columns:240px minmax(580px,1fr) 330px;max-width:1600px;margin:0 auto;min-height:calc(100vh - 76px);background:#fff}
.sidebar{border-right:1px solid var(--line);padding:24px 18px;display:flex;flex-direction:column;gap:24px;background:#fff}
.step-list{display:flex;flex-direction:column;gap:8px}
.step-item{display:grid;grid-template-columns:36px 1fr;gap:10px;align-items:center;border:0;background:transparent;border-radius:12px;padding:10px 9px;text-align:left;color:var(--ink);width:100%}
.step-item:hover{background:#f8fafc}.step-item.active{background:var(--red-soft);color:var(--red)}
.step-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f2f4f7;color:#475467;font-size:13px;font-weight:700}
.step-item.active .step-icon{background:var(--red);color:white;box-shadow:0 5px 15px rgba(245,27,43,.25)}
.step-title{font-weight:700;font-size:13px}.step-subtitle{font-size:11.5px;color:var(--muted);margin-top:2px}.step-item.active .step-subtitle{color:var(--red)}
.sidebar-message{margin-top:auto;border-radius:16px;padding:20px;background:linear-gradient(145deg,#fff8f8,#ffecef);color:#bd1221}
.sidebar-message .spark{font-size:24px}.sidebar-message strong{display:block;font-size:17px;line-height:1.25;margin:9px 0}.sidebar-message p{color:#667085;font-size:12.5px;line-height:1.5;margin:0}
.main{padding:34px 34px 50px;min-width:0;background:#fff}
.summary-panel{border-left:1px solid var(--line);background:#fbfcfd;padding:28px 20px}
.eyebrow{font-size:13px;color:#8b93a1;font-weight:600;margin-bottom:4px}.page-title{font-size:34px;line-height:1.08;margin:0 0 9px;letter-spacing:-.035em}.lead{font-size:15px;color:var(--muted);line-height:1.55;margin:0 0 28px;max-width:760px}
.field-group{margin:28px 0}.field-title{font-size:17px;font-weight:700;margin:0 0 7px}.field-help{font-size:13px;color:var(--muted);margin-bottom:14px}
.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.choice-card{border:1px solid var(--line);border-radius:12px;background:white;padding:15px;min-height:112px;transition:.2s;position:relative;text-align:left}.choice-card:hover{border-color:#c8ced8;transform:translateY(-1px)}.choice-card.selected{border:2px solid var(--red);box-shadow:0 0 0 3px rgba(245,27,43,.06)}.choice-card h3{font-size:14px;margin:0 0 7px}.choice-card p{font-size:12.5px;line-height:1.45;color:var(--muted);margin:0}.choice-card .radio{position:absolute;right:12px;top:12px;width:17px;height:17px;border:1.5px solid #cad0d9;border-radius:50%;background:#fff}.choice-card.selected .radio{border:5px solid var(--red)}
.visual-card{padding:0;overflow:hidden}.visual-thumb{height:110px;background:#eef1f5;position:relative;overflow:hidden}.visual-thumb::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent,rgba(0,0,0,.06))}.visual-card .choice-body{padding:13px 14px 15px}.visual-card.selected .choice-body{padding:12px 13px 14px}
.visual-1{background:linear-gradient(135deg,#f7f5ef 0 55%,#dfe7dd 55%)}.visual-1:before{content:"";position:absolute;width:54px;height:70px;background:#8ea48d;border-radius:60% 10% 50% 15%;left:62%;top:16px;transform:rotate(-14deg);opacity:.75}.visual-2{background:linear-gradient(145deg,#eee7dc 10%,#aa967f 52%,#6a5947 52% 60%,#dfd5c8 60%)}.visual-3{background:linear-gradient(135deg,#111827 0 45%,#f24e2e 45% 70%,#28323e 70%)}.visual-4{background:linear-gradient(120deg,#87a3bd,#183349 48%,#6d8290 49%,#c6d4dd)}.visual-5{background:radial-gradient(circle at 35% 60%,#efdfc8 0 8%,transparent 9%),linear-gradient(135deg,#795f4e,#d7bd9c 46%,#f1e5d6)}.visual-6{background:linear-gradient(145deg,#101217,#292d36 55%,#6c7787)}
.pill-grid{display:flex;flex-wrap:wrap;gap:9px}.pill{border:1px solid var(--line);background:#fff;color:#475467;border-radius:999px;padding:9px 13px;font-size:12.5px}.pill.selected{background:var(--red-soft);border-color:#ffc5cb;color:var(--red);font-weight:600}
.text-input,.textarea,.select{width:100%;border:1px solid #dfe3ea;border-radius:10px;padding:13px 14px;outline:none;background:#fff;color:var(--ink);transition:.2s}.text-input:focus,.textarea:focus,.select:focus{border-color:#ff7883;box-shadow:0 0 0 3px rgba(245,27,43,.08)}.textarea{min-height:112px;resize:vertical}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}.three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.upload-box{border:1.5px dashed #d5dae3;border-radius:12px;padding:26px;text-align:center;background:#fafbfc}.upload-box strong{display:block;font-size:14px;margin-bottom:5px}.upload-box p{font-size:12px;color:var(--muted);margin:0}.color-row{display:flex;gap:10px;flex-wrap:wrap}.color-swatch{width:54px;height:54px;border-radius:10px;border:1px solid var(--line);position:relative}.color-swatch input{opacity:0;position:absolute;inset:0;width:100%;height:100%;cursor:pointer}
.footer-actions{display:flex;justify-content:space-between;align-items:center;margin-top:34px;padding-top:22px;border-top:1px solid var(--line)}.btn{border:1px solid var(--line);background:#fff;border-radius:9px;padding:11px 17px;color:var(--ink);font-weight:650;font-size:13px}.btn:hover{background:#f8fafc}.btn-primary{background:var(--red);color:#fff;border-color:var(--red);box-shadow:0 6px 16px rgba(245,27,43,.16)}.btn-primary:hover{background:var(--red-dark)}.btn-wide{width:100%;padding:13px 16px}.btn[disabled]{opacity:.5;cursor:not-allowed}
.summary-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:0 4px 16px rgba(16,24,40,.03);position:sticky;top:103px}.summary-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.summary-title-row h2{font-size:17px;margin:0}.edit-link{border:0;background:none;color:var(--red);font-size:12px;font-weight:700}.preview-tile{height:130px;border-radius:9px;background:linear-gradient(120deg,#0b1a23,#7697b0 65%,#c7d4df);margin-bottom:18px;position:relative;overflow:hidden;padding:16px;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}.preview-tile:after{content:"";position:absolute;right:-20px;bottom:-20px;width:170px;height:120px;background:linear-gradient(145deg,transparent 20%,rgba(255,255,255,.22) 21% 27%,transparent 28%),linear-gradient(145deg,transparent 48%,rgba(10,24,34,.55) 49%);transform:skewX(-8deg)}.preview-tile strong{font-size:22px;line-height:1.05;display:block;position:relative;z-index:2;max-width:140px}.summary-list{display:flex;flex-direction:column;gap:14px}.summary-row{display:grid;grid-template-columns:24px 1fr;gap:10px}.summary-icon{width:22px;height:22px;border-radius:50%;background:#f2f4f7;display:grid;place-items:center;font-size:10px;font-weight:700;color:#475467}.summary-label{font-size:11px;color:var(--muted)}.summary-value{font-size:12.5px;margin-top:2px;line-height:1.35}.summary-cta{margin-top:20px;border-top:1px solid var(--line);padding-top:18px}.summary-note{font-size:11px;color:var(--muted);line-height:1.45;text-align:center;margin:8px 3px 0}
.review-card{border:1px solid var(--line);border-radius:14px;padding:20px;margin-bottom:14px;background:#fff}.review-card h3{font-size:14px;margin:0 0 13px}.review-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.review-item{background:#f8fafc;border-radius:9px;padding:12px}.review-item small{display:block;color:var(--muted);font-size:10.5px;margin-bottom:4px}.review-item strong{font-size:13px;line-height:1.35}
.generating{min-height:480px;display:grid;place-items:center;text-align:center}.generator-orb{width:82px;height:82px;border-radius:50%;margin:0 auto 20px;background:radial-gradient(circle at 30% 30%,#ff727d,var(--red) 50%,#bd0717);box-shadow:0 0 0 14px rgba(245,27,43,.05),0 20px 50px rgba(245,27,43,.18);animation:pulse 1.4s infinite ease-in-out}.generating h2{font-size:27px;margin:0 0 8px}.generating p{color:var(--muted);font-size:14px}.progress-line{height:5px;background:#f0f1f3;border-radius:999px;overflow:hidden;width:320px;max-width:80vw;margin:20px auto}.progress-line span{display:block;height:100%;background:var(--red);border-radius:999px;animation:loading 2.3s ease-in-out forwards}
@keyframes pulse{50%{transform:scale(1.06);box-shadow:0 0 0 22px rgba(245,27,43,.03),0 20px 50px rgba(245,27,43,.2)}}@keyframes loading{from{width:0}to{width:100%}}
.results-main{padding-right:26px}.results-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.brief-strip{border:1px solid var(--line);border-radius:12px;padding:15px 16px;display:grid;grid-template-columns:1.2fr repeat(4,1fr);gap:12px;margin:20px 0 18px}.brief-strip > div{padding-right:10px;border-right:1px solid var(--line)}.brief-strip > div:last-child{border-right:0}.brief-strip small{font-size:10.5px;color:var(--muted);display:block;margin-bottom:3px}.brief-strip strong{font-size:12px;line-height:1.3;display:block}.concept-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.concept-card{border:1px solid var(--line);border-radius:13px;background:#fff;padding:9px;display:flex;flex-direction:column;min-width:0}.concept-image-wrap{border-radius:9px;overflow:hidden;border:1px solid #e9edf2;background:#f4f6f8;aspect-ratio:4/5;position:relative}.concept-image{width:100%;height:100%;object-fit:cover;object-position:top;display:block;transition:transform .3s}.concept-card:hover .concept-image{transform:scale(1.012)}.concept-copy{padding:12px 5px 6px}.concept-number{font-size:10px;color:var(--muted);margin-bottom:2px}.concept-copy h3{font-size:19px;margin:0 0 4px}.concept-copy p{color:var(--muted);font-size:12px;line-height:1.4;margin:0;min-height:51px}.concept-actions{margin-top:auto}.concept-actions .btn-primary{margin-bottom:8px}.button-pair{display:grid;grid-template-columns:1fr 1fr;gap:7px}.button-pair .btn{font-size:11.5px;padding:9px 7px}
.modal-backdrop{position:fixed;z-index:50;inset:0;background:rgba(17,24,39,.68);display:grid;place-items:center;padding:24px}.modal-backdrop.hidden{display:none}.modal{background:#fff;border-radius:16px;box-shadow:0 30px 80px rgba(0,0,0,.25);width:min(960px,96vw);max-height:92vh;overflow:auto}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:17px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}.modal-header h2{font-size:18px;margin:0}.close-modal{border:0;background:#f2f4f7;border-radius:50%;width:34px;height:34px}.modal-body{padding:20px}.full-concept{display:block;width:100%;border-radius:10px;border:1px solid var(--line)}.prompt-box{background:#101828;color:#e4e7ec;border-radius:10px;padding:16px;white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.55;max-height:420px;overflow:auto}.modal-footer{display:flex;justify-content:flex-end;gap:8px;padding:0 20px 20px}.toast{position:fixed;bottom:25px;right:25px;background:#101828;color:#fff;padding:11px 15px;border-radius:9px;font-size:12px;z-index:80;box-shadow:var(--shadow)}
@media(max-width:1180px){.workspace{grid-template-columns:210px 1fr}.summary-panel{display:none}.brief-strip{grid-template-columns:repeat(2,1fr)}.brief-strip>div{border-right:0}.concept-grid{grid-template-columns:1fr}.concept-image-wrap{aspect-ratio:16/10}.concept-image{object-fit:cover}}
@media(max-width:760px){.topbar{grid-template-columns:1fr auto;padding:0 15px}.project-pill{display:none}.workspace{grid-template-columns:1fr}.sidebar{display:none}.main{padding:26px 18px}.card-grid,.two-col,.three-col,.review-grid{grid-template-columns:1fr}.page-title{font-size:29px}.concept-grid{grid-template-columns:1fr}.brief-strip{grid-template-columns:1fr}.results-head{display:block}.results-head .btn{margin-top:12px}.concept-image-wrap{aspect-ratio:4/5}.topbar{height:66px}.brand{font-size:16px}.brand-dot{width:24px;height:24px}}
