/* MarketGenius AI v1.8 — authentic layout redesign: landing + split Campaign Builder. */
:root{--studio-violet:#6b4bf2;--studio-deep:#151c41;--studio-indigo:#30266e;--studio-muted:#6b7694;--studio-line:#e7eafb;--studio-bg:#f7f8fe}
html{scroll-behavior:smooth}
body{background:var(--studio-bg)}
.app-shell{display:block;min-height:100vh}
.sidebar.studio-header{position:sticky;top:0;z-index:35;width:100%;height:auto;min-height:0;overflow:visible;max-height:none;display:block;transform:none;padding:0 26px;border:0;border-bottom:1px solid #e6eafa;background:rgba(255,255,255,.965);box-shadow:0 10px 32px rgba(41,47,117,.035);backdrop-filter:blur(20px);color:#222747}
.studio-header-inner{max-width:1520px;margin:0 auto;min-height:84px;display:flex;align-items:center;gap:30px;justify-content:space-between}
.studio-header .studio-brand{display:flex;align-items:center;gap:10px;flex:none;margin:0;padding:0;border:0;background:transparent;cursor:pointer;text-align:left}
.studio-header .brand-mark{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#f5f1ff;border:1px solid #e9e1ff;padding:0;overflow:hidden}
.studio-header .brand-mark img{width:43px;height:43px;object-fit:contain}
.studio-header .studio-brand-copy{display:flex;flex-direction:column;gap:3px}
.studio-header .studio-brand strong{font-size:17px;letter-spacing:-.8px;color:#1d264e;font-weight:800;white-space:nowrap}
.studio-header .studio-brand em{font-style:normal;color:var(--studio-violet)}
.studio-header .studio-brand small{font-size:8px;font-weight:800;letter-spacing:2px;color:#979cb5}
.studio-header .studio-top-nav{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:5px;flex:1;min-width:0}
.studio-header .studio-top-nav .nav-item{display:inline-flex;align-items:center;justify-content:center;flex:none;gap:7px;white-space:nowrap;color:#636c85;font-size:11px;font-weight:800;padding:12px 15px;border-radius:12px;border:0;box-shadow:none;background:transparent;min-height:40px;width:auto}
.studio-header .studio-top-nav .nav-item:hover{color:#5941d5;background:#f4f1ff}
.studio-header .studio-top-nav .nav-item.active{color:#563bd7;background:#f1edff;box-shadow:none}
.studio-header .studio-top-nav .nav-count{display:inline-flex;min-width:19px;height:19px;align-items:center;justify-content:center;border-radius:50%;font-size:9px;padding:0 4px;background:#e7e1ff;color:#6048c8}
.studio-header-actions{display:flex;align-items:center;gap:14px;flex:none}
.made-by-tag{font-weight:800;color:#7c83a0;font-size:10px;white-space:nowrap}
.header-create-btn,.home-main-cta{background:linear-gradient(112deg,#6850ed,#8a50f3);border:0;border-radius:13px;color:#fff;font-weight:800;cursor:pointer;box-shadow:0 12px 26px #6548df30;display:inline-flex;align-items:center;gap:21px;justify-content:center;transition:transform .2s,box-shadow .2s}
.header-create-btn:hover,.home-main-cta:hover{transform:translateY(-2px);box-shadow:0 16px 31px #6548df49}
.header-create-btn{padding:13px 18px;font-size:10px}
.mobile-nav-close,.mobile-brand{display:none}
.workspace{width:100%;min-width:0;display:block;background:transparent}
.topbar{height:48px;max-width:none;padding:0 max(28px,calc((100vw - 1440px)/2));background:#fafaff;border-bottom:1px solid #e8eaf6}
.topbar .breadcrumb{color:#8d97af;font-size:10px}.topbar .breadcrumb b{color:#646a8c}
.topbar .mode-badge{font-size:10px;padding:6px 11px;border-radius:99px}
.topbar .avatar{width:30px;height:30px}.topbar .avatar img{width:27px;height:27px}
.workspace main{max-width:1510px;margin:0 auto;padding:28px clamp(23px,3.25vw,47px) 0}
.page-footer{margin-top:42px;padding-bottom:24px}
.studio-overline{display:inline-flex;align-items:center;gap:8px;font-size:10px;color:#7553dc;font-weight:850;letter-spacing:1.35px}
.studio-overline-dot{width:7px;height:7px;display:inline-block;background:#9d78f9;border-radius:50%;box-shadow:0 0 0 5px #eee7ff}
/* Distinct landing experience: no brief form visible until user enters Builder. */
.studio-home-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(440px,.9fr);align-items:center;gap:14px;min-height:515px;overflow:hidden;border:1px solid #e6e6fa;border-radius:28px;background:linear-gradient(108deg,#fff 0%,#fff 40%,#f8f5ff 100%);box-shadow:0 24px 70px #55529a12;padding:52px clamp(32px,4.3vw,67px)}
.studio-home-hero:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 85% 17%,#dfd3ff7a,transparent 52%)}
.studio-home-copy{position:relative;z-index:2;max-width:650px}
.studio-home-copy h1{font-size:clamp(38px,3.6vw,62px);line-height:1.18;letter-spacing:-2.6px;color:#171e42;font-weight:850;margin:24px 0 22px}
.studio-home-copy h1 span{background:linear-gradient(110deg,#4b56ef,#a33ce3);background-clip:text;-webkit-background-clip:text;color:transparent}
.studio-home-lead{font-size:13px;color:#64718e;max-width:550px;line-height:2;margin:0}
.studio-home-lead strong{color:#393c6f}
.studio-home-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:30px 0 21px}
.home-main-cta{padding:17px 23px;font-size:12px}
.home-ghost-cta{display:flex;gap:14px;align-items:center;padding:15px 18px;border-radius:12px;border:1px solid #d9dbf2;background:#fff;color:#514ca1;font-weight:800;font-size:11px;cursor:pointer;transition:.2s}
.home-ghost-cta:hover{background:#f1eeff;border-color:#cec6ff}
.studio-trustline{display:flex;gap:17px;flex-wrap:wrap;color:#697794;font-size:10px;font-weight:700}
.studio-trustline b{color:#2cbb91;margin-right:3px;font-size:12px}
.studio-home-visual{height:405px;position:relative;z-index:1;min-width:0}
.home-visual-glow{position:absolute;inset:5% 1%;background:radial-gradient(ellipse,#c6b4ff77,transparent 67%);filter:blur(8px)}
.home-product-panel{position:absolute;top:35px;right:20px;left:28px;transform:rotate(-3.2deg);background:#fff;border:1px solid #e7ddff;border-radius:22px;padding:21px 23px 27px;box-shadow:0 24px 62px #47329f30}
.home-panel-top{display:flex;justify-content:space-between;align-items:center;color:#8d91b0;font-size:8px;font-weight:850;letter-spacing:1.2px;border-bottom:1px solid #f0effa;padding-bottom:17px}
.home-p-dots{color:#b7a7e9;letter-spacing:4px;font-size:12px}.home-p-spark{color:#8459f4;font-size:17px}
.home-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:25px 0 17px;color:#9290b1;font-size:10px}.home-panel-heading b{font-size:10px;background:#e9e5ff;color:#7456db;padding:8px 10px;border-radius:8px}
.home-panel-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.home-panel-stats>div{border-radius:13px;border:1px solid #f0edff;background:#faf9ff;padding:18px 14px;display:flex;flex-direction:column;gap:5px}
.home-panel-stats strong{font-size:30px;line-height:1;color:#563fe0;letter-spacing:-1px}.home-panel-stats small{font-size:9px;color:#8f96a9;white-space:nowrap}
.home-panel-ribbon{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:9px;color:#8277bf;margin:23px 0 18px}.home-panel-ribbon span:nth-child(even){color:#b1a4ed}
.home-mini-project{display:flex;align-items:center;gap:11px;background:#f8f7fd;border-radius:12px;padding:14px 12px}.project-flag{background:#e9e1ff;color:#7456e9;border-radius:9px;font-size:15px;padding:9px}.home-mini-project>div:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.home-mini-project b{color:#273159;font-size:10px}.home-mini-project span{color:#999eaf;font-size:8px}.home-mini-project .project-arrow{color:#5c4ad0;font-size:20px}
.home-progress-bars{display:flex;gap:8px;margin-top:15px}.home-progress-bars i{display:block;flex:1;height:7px;background:#7354ec;border-radius:100px}.home-progress-bars i:nth-child(2){background:#9479fa}.home-progress-bars i:nth-child(3){background:#b6a7ff}.home-progress-bars i:nth-child(4){background:#e9e5fa}
.home-floating-note{position:absolute;z-index:2;right:0;top:0;background:#fff;padding:12px 19px;border-radius:15px;box-shadow:0 14px 38px #5648a835;border:1px solid #e9e4f6;display:flex;gap:11px;align-items:center;transform:rotate(5deg)}.home-floating-note>span{color:#7b5af1;font-size:22px}.home-floating-note div{display:flex;flex-direction:column;gap:3px}.home-floating-note b{font-size:11px;color:#272f5b}.home-floating-note small{font-size:9px;color:#999eb1}
.home-floating-check{position:absolute;bottom:12px;left:0;background:#1c264d;color:#f8f8ff;padding:13px 17px;border-radius:13px;box-shadow:0 15px 30px #1e1c5333;font-weight:750;font-size:10px;transform:rotate(3deg)}
.home-metrics-section .stats-row{margin:21px 0 32px;gap:17px}.home-metrics-section .stat-tile{background:#fff;border-radius:17px;box-shadow:none;border:1px solid #ebeef8;min-height:108px}
.home-path-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:33px 0 19px}.home-path-head h2{font-size:26px;color:#1d2549;letter-spacing:-.7px;margin:9px 0 0}.home-path-head p{font-size:11px;line-height:1.8;color:#8892a5;max-width:340px;margin:0}
.home-path-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.home-path-card{text-align:left;display:flex;align-items:flex-start;flex-direction:column;gap:11px;min-width:0;padding:28px;background:#fff;border:1px solid #e8ebf8;border-radius:20px;box-shadow:0 6px 22px #4b4d8b09;cursor:pointer;transition:transform .2s,box-shadow .2s,border-color .2s;color:inherit}
.home-path-card:hover{transform:translateY(-4px);border-color:#cfc5ff;box-shadow:0 20px 36px #5643a31a}
.path-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:15px;font-size:23px;font-weight:800}.path-icon.purple{background:#ede8ff;color:#6e4fe7}.path-icon.cyan{background:#e7f3ff;color:#4681da}.path-icon.peach{background:#fff0e5;color:#d58549}
.path-label{font-size:9px;letter-spacing:1.3px;color:#9b8ba9;font-weight:850;margin-top:8px}.home-path-card strong{font-size:18px;color:#1f284e;letter-spacing:-.4px}.path-desc{font-size:11px;line-height:1.9;color:#7c879f;min-height:67px}.path-action{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;font-size:11px;font-weight:850;color:#6d51dd;border-top:1px solid #f0eef9;padding-top:14px;margin-top:4px}.path-action b{font-size:18px}
.home-flow{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:32px 30px;border:1px solid #e7e8fa;background:linear-gradient(120deg,#f9f8ff,#f4f6ff);border-radius:21px;margin:26px 0 5px}.home-flow h2{font-size:17px;max-width:270px;line-height:1.5;margin:9px 0 0;color:#2c2f5c}.home-flow-steps{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.home-flow-steps>span{display:flex;gap:7px;flex-direction:column;font-size:10px;color:#9586df;font-weight:800}.home-flow-steps b{color:#2e355b;font-size:10px}.home-flow-steps i{font-style:normal;color:#baacec}
/* Campaign builder: a true dual-column, not the old vertical dashboard. */
.builder-page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:8px 0 24px}.builder-page-header h1{font-size:clamp(26px,2.2vw,36px);color:#192244;letter-spacing:-1px;margin:12px 0 10px;line-height:1.25}.builder-page-header h1 span{color:#7651e7}.builder-page-header p{font-size:11px;color:#8690a7;line-height:1.8;margin:0;max-width:800px}.builder-how-btn{background:#fff;border:1px solid #e3e1f4;color:#6354c3;font-size:10px;font-weight:800;padding:13px 15px;border-radius:11px;cursor:pointer;white-space:nowrap}
.builder-layout{display:grid;grid-template-columns:minmax(350px,460px) minmax(0,1fr);gap:23px;align-items:start}
.builder-controls,.builder-output{min-width:0}
.builder-ai-config{background:#fff;border:1px solid #e8e8f6;border-radius:19px;padding:19px 21px;margin:0 0 17px;box-shadow:0 8px 26px #4845840a}
.builder-ai-intro{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:15px}.builder-ai-intro h2{font-size:16px;font-weight:850;color:#242b52;margin:5px 0 4px}.builder-ai-intro p{font-size:10px;line-height:1.6;color:#8d95a8;margin:0}.micro-step{font-size:9px;color:#9273e8;font-weight:850;letter-spacing:1.2px}.ai-intro-badge{font-size:9px;white-space:nowrap;background:#f0ecff;color:#795fdb;font-weight:800;border-radius:40px;padding:8px 9px}
.builder-ai-config .api-panel{padding:16px;border-radius:14px;box-shadow:none;background:linear-gradient(145deg,#242855,#1b2248);border:1px solid #333c74}
.builder-ai-config .ai-mode-switch{grid-template-columns:1fr 1fr;gap:8px}
.builder-ai-config .ai-mode-option{min-width:0}.builder-ai-config .ai-mode-option small{white-space:normal}
.builder-ai-config .guest-turnstile{min-width:0;max-width:100%;overflow:hidden}
.builder-controls>.form-card{padding:24px 23px;background:#fff;border-radius:19px;box-shadow:0 8px 26px #4845840a}
.builder-controls .section-heading{margin-bottom:17px}.builder-controls .section-heading h2{font-size:17px}.builder-controls .form-grid{grid-template-columns:1fr;gap:13px}.builder-controls .form-field.full{grid-column:auto}
.builder-controls .brief-mode-picker{grid-template-columns:1fr 1fr;gap:8px}.builder-controls .brief-mode-option{min-width:0;padding:10px}.builder-controls .brief-mode-option strong{font-size:11px}.builder-controls .brief-mode-option small{font-size:9px}
.builder-controls .form-footer{align-items:stretch;flex-direction:column;gap:15px}.builder-controls .form-actions{width:100%;justify-content:space-between;display:grid;grid-template-columns:1fr 1.4fr;gap:9px}.builder-controls .form-actions .btn{width:100%;min-width:0;justify-content:center;font-size:10px;padding:12px 8px}
.builder-controls .advanced-grid{grid-template-columns:1fr;gap:12px}.builder-controls .advanced-grid .full{grid-column:auto}.builder-controls .advanced-brief{padding:15px}
.builder-output{position:relative;min-height:760px}
.builder-empty-preview{border:1px solid #e8e9f7;border-radius:21px;background:#fff;box-shadow:0 8px 28px #4845840d;min-height:760px;overflow:hidden;display:flex;flex-direction:column}
.preview-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:20px 23px;color:#9298b0;font-size:9px;font-weight:850;letter-spacing:1.1px;border-bottom:1px solid #eff0fa}.preview-state{color:#9e97b1;background:#f4f2fb;padding:8px 11px;border-radius:20px;font-size:9px;letter-spacing:0}
.preview-hero{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:55px 30px 25px;gap:12px;background:radial-gradient(ellipse at 50% 31%,#f1ecff 0%,#fff 53%)}
.preview-orbit{width:160px;height:160px;border-radius:50%;display:grid;place-items:center;margin-bottom:22px;background:radial-gradient(circle,#eee9ff 5%,#f7f4ff 62%,transparent 64%);border:1px dashed #dcd2ff}.preview-orbit img{object-fit:contain;filter:drop-shadow(0 12px 13px #6d54c933)}
.preview-kicker{font-size:9px;color:#957bdf;font-weight:850;letter-spacing:1.8px}.preview-hero h2{font-size:clamp(24px,2.25vw,33px);line-height:1.37;letter-spacing:-.8px;color:#232953;margin:4px 0}.preview-hero h2 em{font-style:normal;color:#8058e8}.preview-hero p{font-size:11px;color:#8b92ad;max-width:380px;line-height:1.9;margin:0}
.preview-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:10px 22px 27px}.preview-tiles>div{display:flex;flex-direction:column;gap:4px;align-items:center;padding:16px 6px;border:1px solid #f0eef8;border-radius:13px;background:#fbfaff}.preview-tiles b{color:#6a52dd;font-size:23px}.preview-tiles span{font-size:9px;color:#818ca3;text-align:center}
.preview-steps{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;background:#faf9ff;padding:19px;border-top:1px solid #eeeafb;color:#8f86b5;font-size:9px;font-weight:800}
.builder-output:has(#resultsSection:not(.hidden)) .builder-empty-preview{display:none}
.builder-output #resultsSection{margin:0;padding:0;min-width:0}.builder-output .results-heading{margin:0 0 16px;background:#fff;padding:20px 22px;border:1px solid #e8eaf7;border-radius:18px;box-shadow:0 8px 20px #4845840a}.builder-output .results-heading h2{font-size:19px}.builder-output #ideasGrid{grid-template-columns:1fr;gap:13px}.builder-output .idea-card{border-radius:17px;padding:20px 23px}.builder-output .idea-card h3{font-size:14px}.builder-output .export-row{margin-bottom:14px}
#briefForm,#resultsSection,#apiPanel{scroll-margin-top:147px}
.compare-tray{bottom:22px;right:30px}
@media(min-width:1550px){.studio-home-hero{min-height:555px}.studio-home-copy h1{font-size:62px}}
@media(max-width:1300px){.studio-header-inner{gap:14px}.studio-header .studio-top-nav .nav-item{padding:10px;font-size:10px}.made-by-tag{display:none}.studio-home-hero{grid-template-columns:1fr .85fr;padding:42px 37px}.studio-home-copy h1{font-size:43px}.home-product-panel{right:1%;left:10px}.builder-layout{grid-template-columns:minmax(330px,420px) minmax(0,1fr)}}
@media(max-width:990px){.studio-header .studio-top-nav .nav-item{padding:9px 8px}.studio-header .studio-brand-copy small{letter-spacing:1px}.studio-header .studio-brand strong{font-size:14px}.studio-header .studio-brand{gap:7px}.studio-header .brand-mark{width:39px;height:39px}.studio-header .brand-mark img{width:36px;height:36px}.header-create-btn{padding:12px;font-size:9px}.builder-layout{grid-template-columns:minmax(0,390px) minmax(0,1fr);gap:14px}.studio-home-hero{min-height:440px}.studio-home-visual{height:330px}.home-product-panel{padding:15px;top:25px}.home-panel-stats strong{font-size:24px}.home-panel-stats>div{padding:12px 9px}.home-mini-project{padding:8px}.home-floating-note{right:-5px}.home-path-card{padding:20px}.home-flow{display:block}.home-flow-steps{margin-top:14px}}
@media(max-width:850px){
 .sidebar.studio-header{position:fixed;left:0;top:0;bottom:0;z-index:52;transform:translateX(-103%);height:100vh;width:min(330px,87vw);padding:18px 16px;border-right:1px solid #e5e3f4;overflow-y:auto;transition:transform .25s ease;box-shadow:0 25px 60px #15204925}
 .sidebar.studio-header.open{transform:translateX(0)}
 .studio-header-inner{height:100%;min-height:440px;align-items:stretch;flex-direction:column;justify-content:flex-start;gap:26px}
 .studio-header .studio-brand{padding:6px}.studio-header .studio-top-nav{flex-direction:column;gap:6px;flex:none;align-items:stretch;justify-content:flex-start}.studio-header .studio-top-nav .nav-item{justify-content:space-between;font-size:13px;padding:14px 15px}.studio-header-actions{margin-top:auto;display:flex;flex-wrap:wrap}.header-create-btn{flex:1}.mobile-nav-close{display:block;background:#f2f0fb;border:0;border-radius:9px;color:#6450b8;font-size:16px;width:44px;height:43px;cursor:pointer}
 .topbar .mobile-menu{display:grid}.topbar .mobile-brand{display:flex;align-items:center;gap:8px;font-weight:850;color:#2a2e60;font-size:12px}.topbar .breadcrumb{display:none}
 .topbar{height:67px;padding:0 19px}.workspace main{padding:22px 20px 0}
 .studio-home-hero{grid-template-columns:1fr;min-height:0;gap:0;padding:38px 32px}.studio-home-copy{max-width:760px}.studio-home-copy h1{font-size:43px}.studio-home-visual{height:350px;width:min(510px,100%);justify-self:center;margin-top:25px}
 .builder-layout{grid-template-columns:1fr}.builder-controls .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.builder-controls .advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.builder-controls .advanced-grid .full{grid-column:1/-1}
 .builder-output{min-height:auto}.builder-empty-preview{min-height:550px}.builder-output #ideasGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-path-grid{grid-template-columns:1fr 1fr}.home-path-card:nth-child(3){grid-column:1/-1}
}
@media(max-width:620px){
 .workspace main{padding:17px 13px 0}.topbar{padding:0 14px}.topbar .mode-badge{font-size:0;min-width:27px;padding:7px}.topbar .mode-badge .tiny-pulse{width:8px;height:8px}.topbar .avatar{display:none}
 .studio-home-hero{padding:29px 23px 12px;border-radius:22px}.studio-home-copy h1{font-size:34px;letter-spacing:-1.2px;margin:16px 0}.studio-home-lead{font-size:11px}.studio-home-actions{flex-direction:column;align-items:stretch;gap:9px;margin:22px 0 16px}.home-main-cta,.home-ghost-cta{width:100%;justify-content:center}.studio-trustline{gap:7px 13px;font-size:9px}
 .studio-home-visual{height:315px;margin-top:18px}.home-product-panel{left:6px;right:3px;top:33px;padding:14px 13px 20px;border-radius:16px}.home-panel-stats{gap:6px}.home-panel-stats>div{padding:12px 6px}.home-panel-stats strong{font-size:22px}.home-panel-stats small{font-size:8px}.home-panel-heading{margin:17px 0 14px}.home-panel-ribbon{margin:16px 0}.home-floating-note{right:0;top:3px;padding:7px 10px}.home-floating-note b{font-size:8px}.home-floating-note small{font-size:7px}.home-floating-check{bottom:0;font-size:8px;padding:10px}
 .home-metrics-section .stats-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0 26px}.home-metrics-section .stat-tile{padding:12px 8px;min-height:79px;flex-direction:column;gap:6px;justify-content:center}.home-metrics-section .stat-icon{display:none}.home-metrics-section .stat-tile strong{font-size:19px}.home-metrics-section .stat-tile span{font-size:9px}
 .home-path-head{align-items:flex-start;flex-direction:column;gap:7px}.home-path-head h2{font-size:21px}.home-path-head p{font-size:10px}.home-path-grid{grid-template-columns:1fr;gap:11px}.home-path-card:nth-child(3){grid-column:auto}.home-path-card{padding:21px}.path-desc{min-height:auto}.home-flow{padding:23px 18px}.home-flow h2{font-size:15px}.home-flow-steps{gap:8px}
 .builder-page-header{align-items:start;flex-direction:column;margin:5px 0 17px}.builder-page-header h1{font-size:25px}.builder-page-header p{font-size:10px}.builder-how-btn{font-size:10px;padding:10px 12px}
 .builder-controls .form-grid,.builder-controls .advanced-grid{grid-template-columns:1fr}.builder-controls .advanced-grid .full{grid-column:auto}.builder-controls .brief-mode-picker{grid-template-columns:1fr 1fr}.builder-controls .form-card{padding:19px 16px}.builder-ai-config{padding:15px}.builder-controls .form-actions{grid-template-columns:1fr}.builder-output #ideasGrid{grid-template-columns:1fr}.builder-output .results-heading{padding:18px}.builder-empty-preview{min-height:470px}.preview-hero{padding:34px 17px 18px}.preview-orbit{width:120px;height:120px;margin-bottom:9px}.preview-orbit img{width:86px;height:86px}.preview-hero h2{font-size:22px}.preview-tiles{padding:0 10px 14px;gap:6px}.preview-tiles>div{padding:12px 4px}.preview-tiles b{font-size:20px}.preview-tiles span{font-size:8px}.preview-steps{font-size:8px;gap:7px}.page-footer{margin-top:25px}
}
@media(max-width:375px){.studio-header .studio-top-nav{font-size:10px}.home-panel-stats small{font-size:7px}.studio-home-copy h1{font-size:30px}.builder-ai-config .ai-mode-switch{grid-template-columns:1fr}}
@media print{.sidebar.studio-header,.topbar,.builder-ai-config,.builder-empty-preview,.studio-home-hero,.home-path-grid,.home-flow{display:none!important}.app-shell{display:block}.workspace main{padding:0}.builder-layout{display:block}}

/* MarketGenius 1.9 — clearer brief, provenance and mobile safeguards */
.budget-scenario-picker{border:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.budget-scenario-picker legend{font-size:12px;font-weight:800;letter-spacing:.04em;color:#4b3d86;margin-bottom:10px;line-height:1.6}
.budget-scenario-option{display:flex;align-items:flex-start;gap:10px;padding:15px;border:1px solid #d8d9ea;border-radius:15px;background:#fff;cursor:pointer;min-width:0;line-height:1.4}
.budget-scenario-option:has(input:checked){border-color:#6b5bf0;background:#f5f2ff;box-shadow:0 0 0 2px rgba(107,91,240,.09)}
.budget-scenario-option input{accent-color:#6756ed;margin-top:3px;flex:0 0 auto}
.budget-scenario-option span{display:grid;gap:5px;min-width:0}
.budget-scenario-option strong{font-size:14px;color:#242446}
.budget-scenario-option small{font-size:12px;font-weight:400;color:#65647f}
.portfolio-summary{border:1px solid #dcd7fb;border-radius:18px;background:linear-gradient(125deg,#f6f3ff,#fff);padding:20px;margin:14px 0 22px;color:#2b294a}
.portfolio-summary.hidden{display:none!important}
.portfolio-summary-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.portfolio-summary h3{font-size:20px;margin:6px 0}
.portfolio-summary-head p{font-size:13px;line-height:1.6;margin:0;color:#666684}
.portfolio-check{white-space:nowrap;background:#dff5e8;color:#167943;border-radius:100px;padding:7px 11px;font-size:12px}
.portfolio-lines{display:grid;gap:10px;margin-top:18px}
.portfolio-lines>div,.portfolio-total{display:flex;justify-content:space-between;align-items:baseline;gap:15px;border-bottom:1px solid #e9e7f5;padding-bottom:10px;font-size:13px}
.portfolio-lines>div span{min-width:0;overflow-wrap:anywhere}
.portfolio-lines strong{text-align:right;white-space:nowrap}
.portfolio-lines small{color:#726e93;font-weight:500}
.portfolio-total{border:0;margin-top:12px;font-weight:800;font-size:14px}
.evidence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 20px}
.evidence-card{padding:16px;border:1px solid #d7e7de;border-radius:15px;background:#f4fcf7;min-width:0;break-inside:avoid}
.evidence-card h4{margin:0 0 5px;font-size:14px;color:#136849}
.evidence-card.evidence-assumptions{background:#fff9ef;border-color:#f3dfb6}
.evidence-card.evidence-assumptions h4{color:#9a6215}
.evidence-sub{font-size:12px;color:#667085!important;margin:0 0 8px!important}
.evidence-card ul{margin:0;padding-left:18px;display:grid;gap:5px;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.generation-progress-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.generation-progress-copy small{font-size:11px;color:#6c6b7d;line-height:1.4}
@media(max-width:800px){.budget-scenario-picker,.evidence-grid{grid-template-columns:1fr}.portfolio-summary{padding:15px}.portfolio-summary-head{flex-direction:column}.portfolio-lines>div{align-items:flex-start}.portfolio-lines strong{white-space:normal}.generation-progress-copy small{font-size:10px}}
@media(max-width:430px){.studio-header,.studio-main,.builder-layout,.builder-output,.form-card,.results-section,.idea-card,.detail-body{min-width:0;max-width:100%}.budget-scenario-option{padding:12px}.portfolio-summary h3{font-size:17px}.portfolio-lines>div{flex-wrap:wrap}}
@media print{.evidence-grid{grid-template-columns:1fr 1fr}.evidence-card{font-size:10px}.portfolio-summary{break-inside:avoid}}

.marketing-glossary{border:1px solid #e2e1f3;border-radius:14px;padding:10px 15px;margin:10px 0 17px;background:#fff;color:#3b3b61}
.marketing-glossary summary{cursor:pointer;font-weight:700;font-size:13px;padding:4px 0}
.marketing-glossary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 4px}
.marketing-glossary dl>div{border-radius:10px;background:#f7f7fd;padding:10px;min-width:0}
.marketing-glossary dt{font-weight:800;color:#5e4ed9;font-size:12px}
.marketing-glossary dd{margin:3px 0 0;font-size:12px;line-height:1.5}
@media(max-width:620px){.marketing-glossary dl{grid-template-columns:1fr}}
