/* Recreador PRO — identidade visual aprovada: sólidos, ondas e esporte.
   Acessível, responsiva, sem dependência de emojis ou imagens externas. */
:root{--purple:#6511af;--purple-dark:#35105e;--violet:#8529cf;--yellow:#ffcd00;--gold:#ffb900;--pink:#f0219c;--blue:#20a7e8;--orange:#ff8d10;--white:#fff;--paper:#faf8ff;--lilac:#f1e7fc;--ink:#35105e;--muted:#715f86;--border:#e9d7fa;--shadow:0 22px 65px #34105422}
*,*:before,*:after{box-sizing:border-box}
html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--paper);font-family:ui-rounded,'Arial Rounded MT Bold',system-ui,-apple-system,'Segoe UI',sans-serif}
button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--pink);outline-offset:3px}a{color:var(--purple)}
.logo{color:var(--purple-dark);font-weight:950;letter-spacing:-1.4px;display:inline-flex;gap:8px;align-items:center;font-size:25px;text-decoration:none;line-height:1}.logo b{color:white;background:var(--purple);border-radius:15px;padding:7px 11px;font-style:italic;font-size:.73em;letter-spacing:-.7px}
.brand-dot{color:var(--pink);font-weight:950;font-size:25px}.ui-icon{width:21px;height:21px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.ui-icon.sm{width:17px;height:17px}.ui-icon.lg{width:27px;height:27px}
.wave{position:absolute;pointer-events:none;inset:0;overflow:hidden;z-index:0}.wave svg{height:100%;width:100%;display:block}.canvas{position:relative;isolation:isolate;overflow:hidden}.app-container{width:min(1180px,calc(100% - 40px));margin:0 auto;position:relative;z-index:1}
.pill,.cta,.outlined{border-radius:16px;padding:13px 22px;font-weight:850;border:2px solid transparent;display:inline-flex;gap:10px;align-items:center;justify-content:center;text-decoration:none;line-height:1.3;min-height:47px}
.cta{background:var(--purple);color:#fff}.cta:hover{background:#4b0b88}.outlined{border-color:var(--purple);background:#fff;color:var(--purple)}.outlined:hover{background:var(--lilac)}
/* LOGIN */
.access-page{background:#ffd000;min-height:100vh}.access-page>.wave{position:fixed}.access-head{padding-top:28px;display:flex;align-items:center;justify-content:space-between}.access-head .logo{font-size:31px}.access-badge{background:#fff;border:2px solid #f0b927;border-radius:100px;padding:11px 18px;color:var(--purple-dark);font-size:12px;font-weight:800;box-shadow:5px 5px 0 #6613b21c}
.access-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:30px;align-items:center;padding:56px 0 100px}
.access-pitch{align-self:center;padding:0 0 28px}.access-pitch .mini{font-weight:900;font-size:12px;text-transform:uppercase;letter-spacing:2.3px;color:var(--purple)}.access-pitch h1{font-size:clamp(48px,5.25vw,78px);line-height:1;letter-spacing:-3.5px;color:var(--purple-dark);margin:20px 0 24px;font-weight:950}.access-pitch h1 em{font-style:normal;color:#fff;text-shadow:4px 5px 0 var(--purple-dark);display:block}.access-pitch p{max-width:440px;font-size:17px;font-weight:680;line-height:1.7;margin:0 0 26px}.benefit-stack{display:grid;gap:10px;max-width:400px}.benefit-stack .benefit{border-radius:30px;background:#fff;padding:12px 18px;display:flex;gap:13px;align-items:center;font-weight:850;box-shadow:6px 6px 0 #6814b31e;color:var(--purple-dark)}.benefit .ui-icon{color:var(--purple)}
.access-window{position:relative;display:grid;grid-template-columns:44% 56%;background:#fff;border:7px solid #fff;border-radius:31px;overflow:hidden;box-shadow:14px 18px 0 #46118122,0 27px 60px #51137528;min-height:550px;transform:rotate(-1deg)}.window-top{grid-column:1/-1;height:42px;background:#f4eafa;display:flex;gap:7px;align-items:center;padding:0 17px}.window-top i{width:11px;height:11px;border-radius:50%;background:var(--pink)}.window-top i:nth-child(2){background:var(--yellow)}.window-top i:nth-child(3){background:#1db96a}.window-top span{margin-left:auto;font-size:12px;color:#7b549b;font-weight:800}.access-art{position:relative;background:var(--purple);overflow:hidden;min-height:510px;display:flex;align-items:center;justify-content:center}.access-art:before{content:'';position:absolute;background:var(--pink);height:200px;width:150%;bottom:-121px;left:-30%;border-radius:50% 50% 0 0;transform:rotate(-16deg)}.access-art:after{content:'';position:absolute;background:var(--yellow);height:135px;width:160%;bottom:-90px;right:-40%;border-radius:50% 55% 0 0;transform:rotate(14deg)}.access-art img{position:relative;z-index:2;display:block;width:min(94%,340px);max-width:94%;height:auto;max-height:460px;object-fit:contain;object-position:center;margin:0;filter:drop-shadow(5px 5px 0 #34105d10)}
.access-form{padding:42px clamp(19px,3.3vw,49px) 32px;align-self:center}.access-form h2{font-size:clamp(27px,2.65vw,37px);letter-spacing:-1.25px;line-height:1.18;margin:0 0 13px}.access-form h2 .logo{font-size:25px;vertical-align:middle;margin-top:6px}.access-form>p{color:var(--muted);font-size:13px;line-height:1.65;margin:0 0 20px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:16px}.auth-tabs button{padding:12px 7px;border-radius:13px;border:2px solid var(--purple);color:var(--purple);background:white;font-size:14px;font-weight:850}.auth-tabs button.active{background:var(--purple);color:white}
.auth-field{display:block;margin:12px 0;font-size:12px;font-weight:850}.auth-field input{display:block;border:2px solid #e6d8f5;border-radius:11px;min-height:48px;width:100%;margin-top:7px;padding:12px;color:var(--purple-dark);background:#fff}.auth-field input:focus{border-color:var(--purple)}
.access-submit{width:100%;border:0;background:var(--purple);color:white;min-height:50px;border-radius:15px;font-weight:900;margin-top:13px}.access-submit:hover{background:var(--purple-dark)}.access-status{min-height:25px;margin-top:16px;color:#4c1b7b;font-size:12px;line-height:1.5}.access-fine{font-size:11px;line-height:1.55;color:#77628a}
/* STUDIO */
.studio-body{background:#fbf8ff}.studio-header{background:white;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:20}.studio-header .app-container{display:flex;align-items:center;justify-content:space-between;min-height:77px}.studio-header .logo{font-size:25px}.studio-header .top-access{font-size:12px;font-weight:850;background:#f1e5ff;color:var(--purple);border-radius:25px;padding:10px 15px}
.studio-shell{display:grid;grid-template-columns:252px minmax(0,1fr);gap:0;align-items:stretch;width:min(1360px,100%);margin:30px auto;min-height:calc(100vh - 120px);border-radius:25px;overflow:hidden;background:#fff;box-shadow:var(--shadow);border:1px solid #e7d8f8}
.studio-sidebar{position:relative;background:var(--purple);color:#fff;padding:25px 16px 25px;min-height:850px;overflow:hidden}.studio-sidebar:before{content:'';position:absolute;height:220px;width:340px;bottom:80px;left:-110px;transform:rotate(-12deg);border-radius:50%;background:#a330e3}.studio-sidebar:after{content:'';position:absolute;height:155px;width:320px;bottom:-85px;left:-65px;transform:rotate(12deg);border-radius:50%;background:var(--yellow)}.studio-sidebar .sidebar-logo{color:white;font-size:24px;font-weight:900;letter-spacing:-1px;margin:0 0 35px 7px}.studio-sidebar .sidebar-logo b{background:white;color:var(--purple);font-style:italic;border-radius:8px;padding:4px 6px;font-size:16px}.sidebar-nav{position:relative;z-index:2;display:grid;gap:8px}.sidebar-nav a{color:#fff;text-decoration:none;display:flex;gap:11px;align-items:center;padding:14px 16px;border-radius:15px;font-weight:780;font-size:14px}.sidebar-nav a.active{color:var(--purple-dark);background:var(--yellow)}.sidebar-nav a:hover:not(.active){background:#ffffff26}.sidebar-figure{width:110%;max-width:280px;position:absolute;bottom:33px;left:-12px;z-index:2;pointer-events:none}
.studio-area{padding:29px clamp(19px,3vw,42px) 55px;min-width:0}.studio-title{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:23px}.studio-title h1{font-size:clamp(29px,3.5vw,41px);margin:0;font-weight:950;letter-spacing:-1.3px}.user-dot{color:var(--purple);background:#f2e5ff;border-radius:50%;display:grid;place-items:center;width:45px;height:45px}
.plan-cards{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:0 0 14px}.plan-card{border-radius:19px;padding:20px;display:flex;gap:14px;align-items:center;min-height:104px}.plan-card.free{background:#f1e4ff}.plan-card.pro{background:#ffd639}.plan-icon{border-radius:14px;width:53px;height:53px;display:grid;place-items:center;color:white;background:var(--purple);flex:0 0 53px}.plan-card.pro .plan-icon{background:#fe8400}.plan-card strong{display:block;font-size:clamp(16px,2vw,21px);line-height:1.2;letter-spacing:-.5px}.plan-card small{font-size:11px;font-weight:950;display:inline-block;margin-bottom:5px;border-radius:25px;background:#ff8c00;padding:5px 10px;color:#fff}.quota-dots{display:flex;gap:6px;margin-top:10px}.quota-dots i{height:9px;width:9px;border-radius:50%;background:var(--violet)}.quota-dots i.empty{border:2px solid var(--violet);background:transparent}
.credit-card{border-radius:18px;background:#f9dbf4;display:flex;align-items:center;gap:14px;padding:16px 21px;margin-bottom:16px}.credit-card .credit-icon{background:var(--purple);color:#fff;width:48px;height:48px;border-radius:12px;display:grid;place-items:center;flex:0 0 48px}.credit-card .credit-text{flex:1;min-width:0}.credit-card strong{font-size:15px;display:block}.credit-card p{margin:3px 0 0;font-size:12px;color:#6b4077}.credit-card button{font-size:12px;border:0;color:var(--purple);background:#fff;border-radius:24px;padding:11px 15px;font-weight:900;box-shadow:2px 3px 0 #5d16721e}
.studio-announcement{padding:22px 24px;background:#fff;border:2px solid #edddfb;border-radius:18px;margin-bottom:18px;position:relative;overflow:hidden}.studio-announcement h2{font-size:24px;letter-spacing:-.7px;margin:0 0 7px}.studio-announcement p{max-width:650px;font-size:13px;color:var(--muted);margin:0;line-height:1.65}.studio-announcement:after{content:'';position:absolute;width:90px;height:90px;border-radius:50%;background:#f9ddeb;right:-45px;top:-45px}
.studio-section{padding:24px;border:2px solid #eee0fb;background:white;border-radius:20px;margin:0 0 18px;scroll-margin-top:100px}.studio-section h2{font-size:22px;margin:0 0 8px;letter-spacing:-.5px}.studio-section>p{font-size:13px;color:var(--muted);line-height:1.6}
.studio-section .field{font-size:12px;color:#5a4272}.studio-section .field select,.studio-section .field input,.studio-section .field textarea{border:2px solid #e8dcf2;border-radius:12px;background:white;color:var(--purple-dark)}
.studio-section .field select:focus,.studio-section .field input:focus,.studio-section .field textarea:focus{border-color:var(--purple)}
.studio-section .primary{background:var(--purple)!important;border-radius:14px;color:white;min-height:51px;font-weight:900}.studio-section .primary:hover{background:#4e0b89!important}
.studio-section .ai-test{border:2px solid #ead8fb!important;background:#faf6ff!important;padding:21px!important;border-radius:17px!important}
.studio-section .ai-test strong{color:var(--purple-dark)}.studio-section .switch{background:#f5ebff;border-radius:15px;color:var(--purple-dark)}
.studio-section .note{font-size:11px;color:#7d6889;line-height:1.55}
.studio-section .secondary{border:2px solid #e8d5f4!important;color:var(--purple);border-radius:13px;background:white}.studio-section .secondary:hover{background:#faf4ff}
.studio-illustration{background:var(--yellow);border-radius:20px;position:relative;overflow:hidden;min-height:220px;margin-bottom:18px}.studio-illustration:before{content:'';position:absolute;left:-7%;right:-10%;bottom:-116px;height:180px;border-radius:50% 50% 0 0;background:var(--blue)}.studio-illustration:after{content:'';position:absolute;left:20%;right:-15%;bottom:-130px;height:180px;border-radius:50% 50% 0 0;background:var(--pink)}.studio-illustration img{position:absolute;height:225px;max-width:52%;object-fit:contain;right:1%;bottom:-5px;z-index:2}.studio-illustration .content{z-index:3;position:relative;padding:28px 30px;max-width:58%;font-weight:900;font-size:24px;letter-spacing:-.5px}.studio-illustration .content small{display:block;text-transform:uppercase;letter-spacing:1.3px;font-size:11px;margin-bottom:10px}
.studio-footer{font-size:11px;color:var(--muted);text-align:center;padding:0 15px 25px}
.studio-section .result{background:#fff}.studio-section .result.active{display:block}
.studio-section .chat-panel{background:#f8f0ff;border:1px solid #ead8f7}
.studio-section .chat-item.user{background:#e5d0f6;color:#37105e}.studio-section .chat-item.ai{background:white}
.studio-section .phase .time{background:var(--lilac);color:var(--purple)}
.studio-section .meta{background:var(--lilac)}
.studio-section .intent{background:#fff2b1}
.studio-section .eyebrow{color:var(--purple)}
.studio-section .section h3{color:var(--purple-dark)}
.studio-library .library-panel{margin:0;background:none;border:0;padding:0;box-shadow:none}.studio-library .library-panel h2{font-size:22px}
.studio-library .library-entry{background:#fcfaff;border:1px solid #ecdafb;border-radius:14px;padding:16px}.studio-library .library-entry .secondary{border:2px solid var(--border);color:var(--purple);background:#fff}.studio-library .library-entry .secondary:hover{background:var(--lilac)}
.studio-library .library-status{color:var(--purple)}.studio-library .library-row{display:flex;gap:10px;flex-wrap:wrap}.studio-library .buttons{display:flex;gap:9px;flex-wrap:wrap}
.studio-library #planActions{display:none}.studio-library #accountGuest{display:none!important}
.studio-library .library-help{color:#81688f}
.studio-section .safety{background:#f8efff;border:1px solid var(--border)}
.studio-section #accountMember .buttons button{font-size:12px}
.studio-section .library-entry-actions button{font-size:12px}
.studio-section .disclaimer{color:#7b678c}
.studio-body .panel{box-shadow:none}
@media(max-width:1000px){.studio-shell{width:calc(100% - 20px);grid-template-columns:200px minmax(0,1fr)}.studio-sidebar{min-height:750px}.studio-area{padding:22px}.access-grid{gap:20px}.access-window{grid-template-columns:39% 61%}}
@media(max-width:750px){.access-grid{display:block;padding:35px 0 60px}.access-head{padding-top:19px}.access-head .logo{font-size:24px}.access-badge{display:none}.access-pitch{padding:0 0 28px}.access-pitch h1{font-size:clamp(42px,11vw,68px);margin:15px 0}.access-window{min-height:0;transform:none;grid-template-columns:36% 64%;margin-top:15px}.access-art{min-height:445px}.access-art img{width:min(94%,280px);max-width:94%;height:auto;max-height:400px;left:auto;margin:0}.access-form{padding:24px 16px}.access-form h2{font-size:23px}.auth-tabs{gap:4px}.auth-tabs button{font-size:12px;padding:9px 3px}.studio-shell{display:block;width:100%;margin:0;border:0;border-radius:0}.studio-header .app-container{min-height:65px}.studio-header .logo{font-size:22px}.studio-header .top-access{font-size:10px}.studio-sidebar{min-height:0;padding:12px 18px}.studio-sidebar:before,.studio-sidebar:after,.sidebar-figure{display:none}.studio-sidebar .sidebar-logo{display:none}.sidebar-nav{display:flex;gap:9px}.sidebar-nav a{padding:11px 12px;font-size:12px}.sidebar-nav a .ui-icon{width:17px;height:17px}.studio-area{padding:21px 16px}.plan-cards{gap:9px}.plan-card{padding:13px 11px;gap:8px;min-height:100px}.plan-icon{width:37px;height:37px;flex-basis:37px;border-radius:11px}.plan-card strong{font-size:15px}.plan-card small{font-size:9px}.credit-card{gap:9px;padding:14px 12px}.credit-card .credit-icon{width:37px;height:37px;flex-basis:37px}.credit-card strong{font-size:13px}.credit-card p{font-size:10px}.credit-card button{font-size:10px;padding:10px}.studio-illustration{min-height:200px}.studio-illustration .content{max-width:67%;padding:24px 18px;font-size:20px}.studio-illustration img{height:198px;right:-7%}}
@media(max-width:440px){.access-window{display:block}.access-art{min-height:215px;max-height:none}.access-art img{height:190px;max-height:190px;width:auto;max-width:68%;object-fit:contain;left:auto}.access-form{padding:25px}.plan-cards{grid-template-columns:1fr 1fr}.plan-card{align-items:flex-start}.plan-icon{display:none}.plan-card strong{font-size:14px}.studio-section{padding:16px}.studio-illustration .content{font-size:17px;max-width:70%}.studio-illustration img{right:-17%;height:178px}}

/* O estúdio não pode aparecer antes da verificação do Supabase. */
html:not(.session-verified) .studio-shell { display:none!important; }
html.session-verified .studio-loading { display:none!important; }
.studio-loading { text-align:center; padding:90px 20px; min-height:55vh; font-size:16px; font-weight:850; color:var(--purple); }
.studio-section > .panel { padding:4px 0 0;border:0;border-radius:0;box-shadow:none; }
.studio-section > .panel .grid { gap:14px; }
.studio-section > .panel .sub { margin-bottom:19px; }
/* A experiência gerada com Gemini é o produto comercial; não disponibilizar ideias demonstrativas ilimitadas. */
#generate,#again{display:none!important}
.studio-section .result { padding:5px 0; border:0; box-shadow:none; }
.studio-section #chatPanel { margin-top:30px; }
@media(max-width:750px){.studio-section > .panel .grid{grid-template-columns:1fr 1fr;gap:11px}}
@media(max-width:460px){.studio-section > .panel .grid{grid-template-columns:1fr}}

/* Correção de acesso: permite rolagem vertical em qualquer tamanho de tela.
   Mantém o recorte horizontal das ondas e a identidade visual original. */
html, body.access-page { min-height: 100%; height: auto; }
body.access-page.canvas { overflow-x: clip; overflow-y: visible; }
body.access-page .access-grid { min-height: 0; }
body.access-page .access-window { max-width: 100%; }
body.access-page .access-form { min-width: 0; }
@media (max-height: 850px) and (min-width: 751px) {
  body.access-page .access-grid { padding-top: 28px; padding-bottom: 55px; }
  body.access-page .access-form { padding-top: 25px; padding-bottom: 25px; }
}
@media (max-width: 750px) {
  body.access-page .access-grid { padding-bottom: 64px; }
}
