@import './tokens.css';
#studio-proto{font:15px/1.5 'Trebuchet MS',Arial,sans-serif;color:var(--text-primary);background:var(--surface-page);border:2px solid var(--border-strong);border-radius:24px;max-width:1200px;margin:24px auto;position:relative;overflow:hidden;color-scheme:light}#studio-proto *{box-sizing:border-box}#studio-proto button,#studio-proto input,#studio-proto select{font:inherit}#studio-proto button{cursor:pointer}#studio-proto button:focus-visible,#studio-proto a:focus-visible,#studio-proto input:focus-visible,#studio-proto select:focus-visible{outline:3px solid var(--focus-ring);outline-offset:4px}#studio-proto header,#studio-proto footer{padding:20px 28px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--surface-raised)}#studio-proto header{border-bottom:1px solid var(--border-subtle)}#studio-proto .ob-logo{font-size:27px;font-weight:900;letter-spacing:-1px}#studio-proto .ob-logo span{color:var(--brand-accent)}#studio-proto .ob-tools{display:flex;gap:8px;flex-wrap:wrap}#studio-proto button,#studio-proto .ob-link{border:1px solid var(--border-subtle);border-radius:12px;padding:10px 14px;background:var(--surface-raised);color:var(--text-primary);text-decoration:none;min-height:44px}#studio-proto .ob-nav{display:flex;flex-wrap:wrap;gap:5px;padding:14px 24px;border-bottom:1px solid var(--border-subtle)}#studio-proto .ob-nav button{font-size:12px;border:0;border-radius:24px}#studio-proto button[aria-current=step]{background:var(--selection-strong-bg);color:var(--selection-strong-fg)}#studio-proto .ob-layout{display:grid;grid-template-columns:45% 55%;min-height:550px}#studio-proto aside{background:var(--surface-stage);padding:28px;display:flex;flex-direction:column;justify-content:center;align-items:center}#studio-proto .ob-art{width:100%;max-width:410px}#studio-proto .s-cartoon-svg{width:100%;height:auto;display:block;overflow:visible}#studio-proto .ob-guide{background:var(--guide-bg);border:2px solid var(--guide-border);border-radius:18px 18px 18px 3px;padding:16px;max-width:350px;color:var(--guide-fg)}#studio-proto .ob-guide p{margin:0 0 12px}#studio-proto .ob-guide button{border:0;border-top:1px solid var(--guide-border);border-radius:0;width:100%;text-align:left;padding:10px 0 0;color:var(--guide-fg);background:transparent}#studio-proto main{padding:36px;min-width:0}#studio-proto h1{font:900 clamp(30px,4vw,44px)/1.1 'Trebuchet MS',Arial,sans-serif;letter-spacing:-1.4px;margin:12px 0 16px;color:var(--text-primary)}#studio-proto h2{font-size:22px;color:var(--text-primary)}#studio-proto .ob-eyebrow{color:var(--brand-accent);font-size:12px;letter-spacing:1px}#studio-proto p{color:inherit}#studio-proto .ob-muted{color:var(--text-secondary)}#studio-proto .ob-fields{display:grid;gap:16px;margin:24px 0}#studio-proto label{display:grid;gap:7px;color:var(--text-secondary);font-size:13px}#studio-proto input,#studio-proto select{width:100%;min-width:0;padding:12px;border:2px solid var(--border-subtle);border-radius:var(--radius-control);background:var(--surface-raised);color:var(--text-primary);font-size:16px}#studio-proto .ob-pair,#studio-proto .ob-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}#studio-proto button[aria-pressed=true]{background:var(--selection-bg);border-color:var(--selection-border)}#studio-proto .ob-primary{background:var(--action-primary-bg);color:var(--action-primary-fg);border:2px solid var(--border-strong);box-shadow:0 4px 0 var(--border-strong);font-weight:bold}#studio-proto .ob-actions{display:flex;gap:12px;margin-top:24px}#studio-proto .ob-actions .ob-primary{flex:1}#studio-proto button:disabled{opacity:.55;cursor:wait}#studio-proto .ob-example{background:var(--surface-stage);padding:16px;border-radius:14px}#studio-proto .ob-creation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}#studio-proto .ob-creation button{font-size:11px;min-width:0;padding:10px 3px}#studio-proto .ob-error{color:var(--feedback-error-fg)}#studio-proto .ob-success{color:var(--feedback-success-fg)}#studio-proto .ob-review{margin:0}#studio-proto .ob-review div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--border-subtle)}#studio-proto dd{margin:0;max-width:65%;text-align:right}#studio-proto .ob-intro{padding:35px 24px 55px;text-align:center;background:var(--art-ink);color:var(--art-paper);position:relative;overflow:hidden;min-height:600px}#studio-proto .ob-intro-content{position:relative;z-index:2;max-width:440px;margin:auto}#studio-proto .ob-intro .ob-art{max-width:290px;margin:auto}#studio-proto .ob-intro h1{color:var(--art-paper);font-size:37px}#studio-proto .ob-skip{position:relative;z-index:3;float:right}#studio-proto .ob-curtain{position:absolute;inset:0 auto 0 0;width:51%;background:repeating-linear-gradient(90deg,var(--curtain-base) 0 7%,var(--curtain-light) 7% 16%,var(--curtain-shadow) 16% 19%,var(--curtain-highlight) 19% 27%);transition:transform 1.2s cubic-bezier(.6,0,.25,1);border-bottom-right-radius:40%}#studio-proto .ob-curtain.right{left:auto;right:0;transform:scaleX(-1)}#studio-proto .ob-opening .ob-curtain{transform:translateX(-105%)}#studio-proto .ob-opening .ob-curtain.right{transform:translateX(105%) scaleX(-1)}#studio-proto .ob-opening .ob-intro-content{opacity:0;transition:opacity .7s .3s}#studio-proto .toon-person{transform-origin:210px 250px;animation:ob-hop .8s both}#studio-proto .toon-arm{transform-origin:290px 225px;animation:ob-wave 1s .15s both}#studio-proto .toon-prop{animation:ob-prop .7s .15s both}#studio-proto .toon-hat{transform-origin:146px 170px;animation:ob-wave .5s}#studio-proto .ob-thinking .toon-person{animation:ob-think .7s}#studio-proto .ob-guide-target{outline:3px solid var(--focus-ring);outline-offset:4px}#studio-proto .ob-enter{animation:ob-prop .4s both}@keyframes ob-hop{0%{transform:translateY(10px) scale(1.04,.96)}45%{transform:translateY(-12px) scale(.98,1.02)}75%{transform:translateY(3px)}100%{transform:none}}@keyframes ob-wave{0%,100%{transform:rotate(0)}35%{transform:rotate(-15deg)}65%{transform:rotate(8deg)}}@keyframes ob-prop{from{translate:0 14px;opacity:.2}to{translate:0 0;opacity:1}}@keyframes ob-think{40%{transform:rotate(-5deg)}100%{transform:none}}#studio-proto[data-motion=off] *,#studio-proto[data-motion=off] *:before,#studio-proto[data-motion=off] *:after{animation:none!important;transition:none!important}@media(prefers-reduced-motion:reduce){#studio-proto *,#studio-proto *:before,#studio-proto *:after{animation:none!important;transition:none!important}}@media(max-width:700px){#studio-proto{margin:8px;border-radius:18px}#studio-proto header,#studio-proto footer{padding:16px}#studio-proto .ob-layout{grid-template-columns:1fr}#studio-proto aside{padding:16px;display:grid;grid-template-columns:110px 1fr;gap:10px}#studio-proto .ob-guide{font-size:12px;padding:12px}#studio-proto main{padding:24px 20px}#studio-proto .ob-nav{padding:8px;gap:2px}#studio-proto .ob-nav button{padding:8px;font-size:10px}#studio-proto .ob-tools button{font-size:11px;padding:8px}#studio-proto .ob-intro h1{font-size:32px}#studio-proto .ob-pair{grid-template-columns:1fr}}
/* Adapta os componentes compartilhados somente dentro do onboarding. */
#studio-proto{--surface:var(--surface-raised);--border:var(--border-subtle);--tx:var(--text-primary);--tx-2:var(--text-secondary);--brand:var(--brand-accent);--brand-ink:var(--text-primary)}
#studio-proto .card{background:var(--surface-raised);color:var(--text-primary);border-color:var(--border-subtle);box-shadow:none}
#studio-proto .sub{color:var(--text-secondary)}

/* Checkboxes mantêm área de toque no rótulo, sem herdar a largura de campos de texto. */
#studio-proto .social-ad-choice{display:flex;align-items:center;gap:10px;min-height:44px}
#studio-proto .social-ad-choice input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;padding:0;accent-color:var(--selection-strong-bg)}

/* Estados e layouts adicionados ao fluxo sem furar os papéis do sistema de design. */
#studio-proto main{display:flex;flex-direction:column}
#studio-proto main>.ob-enter{flex:1;min-width:0}
#studio-proto .studio-button--success,#studio-proto .btn.verde{background:var(--studio-feedback-success-bg);color:var(--studio-feedback-success-fg);border-color:var(--studio-feedback-success-fg);box-shadow:none}
#studio-proto .studio-button--success:hover:not(:disabled),#studio-proto .btn.verde:hover:not(:disabled){background:color-mix(in srgb,var(--studio-feedback-success-bg) 72%,var(--studio-feedback-success-fg))}
#studio-proto .ob-integration-saved{padding:16px;border:2px solid var(--studio-feedback-success-fg);border-radius:var(--radius-panel);background:var(--studio-feedback-success-bg);color:var(--studio-feedback-success-fg)}
#studio-proto .ob-integration-saved p{margin:6px 0 14px}
#studio-proto .ob-integration-saved button{border-color:var(--studio-feedback-success-fg);color:var(--studio-feedback-success-fg)}
#studio-proto .campo-senha{position:relative;display:flex}
#studio-proto .campo-senha input{padding-right:50px}
#studio-proto .campo-senha-olho{position:absolute;right:4px;top:50%;translate:0 -50%;width:38px;min-height:38px;padding:0;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;color:var(--text-secondary)}
#studio-proto .ob-voice-preview{display:grid;gap:10px}
#studio-proto .ob-voice-preview audio{width:100%}
#studio-proto .ob-volume-label span{font-size:15px;line-height:1.5;color:var(--text-primary);text-transform:none;letter-spacing:0;font-weight:400}
#studio-proto .ob-volume-label strong{color:var(--feedback-warning-fg);background:var(--studio-feedback-warning-bg);padding:2px 5px;border-radius:6px}
#studio-proto .ob-actions--sticky{position:sticky;bottom:0;z-index:var(--studio-z-sticky);margin:24px -12px -12px;padding:12px;background:color-mix(in srgb,var(--surface-page) 94%,transparent);border-top:1px solid var(--border-subtle);backdrop-filter:blur(8px)}
#studio-proto .ob-review-actions{display:grid;gap:10px}

/* Mockups rápidos das etapas que não têm configuração. */
#studio-proto .ob-creation-mockup{padding:4px 0 8px}
#studio-proto .ob-mock-window{width:min(100%,460px);height:205px;margin:auto;overflow:hidden;border:2px solid var(--border-strong);border-radius:16px;background:var(--surface-raised);box-shadow:8px 8px 0 var(--surface-stage)}
#studio-proto .ob-mock-toolbar{height:28px;display:flex;align-items:center;gap:5px;padding:0 10px;border-bottom:1px solid var(--border-subtle);background:var(--surface-stage)}
#studio-proto .ob-mock-toolbar i{width:7px;height:7px;border-radius:50%;background:var(--brand-accent)}
#studio-proto .ob-mock-toolbar i:nth-child(2){background:var(--action-primary-bg)}
#studio-proto .ob-mock-toolbar i:nth-child(3){background:var(--selection-border)}
#studio-proto .ob-mock-product{width:145px;margin:20px auto;padding:10px;display:grid;grid-template-columns:48px 1fr;gap:7px;border:1px solid var(--border-subtle);border-radius:12px;background:var(--surface-raised);animation:ob-product-in .8s var(--studio-ease-out) both}
#studio-proto .ob-mock-product i{grid-row:1/4;width:48px;height:62px;border-radius:8px;background:linear-gradient(145deg,var(--selection-bg),var(--surface-stage))}
#studio-proto .ob-mock-product span{height:8px;border-radius:99px;background:var(--border-subtle)}
#studio-proto .ob-mock-product b{font-size:12px}
#studio-proto .ob-mock-product em{padding:3px;border-radius:5px;background:var(--action-primary-bg);font-size:9px;font-style:normal;text-align:center}
#studio-proto .ob-mock-copy{position:relative;margin:25px auto;width:76%;display:grid;gap:13px}
#studio-proto .ob-mock-copy b,#studio-proto .ob-mock-copy span{height:10px;border-radius:99px;background:var(--border-subtle);transform-origin:left;animation:ob-line-write .55s var(--studio-ease-out) both}
#studio-proto .ob-mock-copy b{width:62%;height:16px;background:var(--selection-strong-bg)}
#studio-proto .ob-mock-copy span:nth-of-type(1){width:94%;animation-delay:.15s}
#studio-proto .ob-mock-copy span:nth-of-type(2){width:82%;animation-delay:.3s}
#studio-proto .ob-mock-copy span:nth-of-type(3){width:68%;animation-delay:.45s}
#studio-proto .ob-mock-copy i{position:absolute;right:0;top:-12px;font-style:normal;animation:ob-pop .55s .65s var(--studio-ease-out) both}
#studio-proto .ob-mock-media{display:grid;grid-template-columns:repeat(2,90px);gap:10px;justify-content:center;padding:20px}
#studio-proto .ob-mock-media i{height:60px;border-radius:9px;background:linear-gradient(145deg,var(--surface-stage),var(--selection-bg));border:1px solid var(--border-subtle);animation:ob-pop .45s var(--studio-ease-out) both}
#studio-proto .ob-mock-media i:nth-child(2){animation-delay:.12s}#studio-proto .ob-mock-media i:nth-child(3){animation-delay:.24s}#studio-proto .ob-mock-media i:nth-child(4){animation-delay:.36s}
#studio-proto .ob-mock-timeline{position:relative;margin:26px 22px;height:120px;padding-top:18px;background:repeating-linear-gradient(90deg,transparent 0 39px,var(--border-subtle) 40px);border-block:1px solid var(--border-subtle)}
#studio-proto .ob-mock-timeline span,#studio-proto .ob-mock-timeline b{position:absolute;height:24px;border-radius:5px;background:var(--selection-strong-bg);animation:ob-clip-slide .75s var(--studio-ease-out) both}
#studio-proto .ob-mock-timeline span:nth-of-type(1){top:20px;left:8px;width:38%}#studio-proto .ob-mock-timeline span:nth-of-type(2){top:20px;left:49%;width:32%;animation-delay:.12s}
#studio-proto .ob-mock-timeline b:nth-of-type(1){top:62px;left:19%;width:27%;background:var(--selection-border);animation-delay:.24s}#studio-proto .ob-mock-timeline b:nth-of-type(2){top:62px;left:52%;width:38%;background:var(--action-primary-bg);animation-delay:.36s}
#studio-proto .ob-mock-playhead{position:absolute;z-index:2;top:0;bottom:0;left:58%;width:2px;background:var(--brand-accent);animation:ob-playhead 1.2s .25s var(--studio-ease-out) both}
#studio-proto .ob-mock-review{display:grid;gap:16px;padding:30px 20%}
#studio-proto .ob-mock-review span{display:flex;align-items:center;gap:10px}
#studio-proto .ob-mock-review i{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:var(--studio-feedback-success-bg);color:var(--studio-feedback-success-fg);font-style:normal;font-weight:bold;animation:ob-pop .4s var(--studio-ease-out) both}
#studio-proto .ob-mock-review span:nth-child(2) i{animation-delay:.2s}#studio-proto .ob-mock-review span:nth-child(3) i{animation-delay:.4s}
#studio-proto .ob-mock-review b{height:9px;flex:1;border-radius:99px;background:var(--border-subtle)}
#studio-proto .ob-mock-publish{height:170px;display:flex;align-items:center;justify-content:center;gap:20px}
#studio-proto .ob-mock-publish>span{width:75px;height:105px;padding:8px;border:1px solid var(--border-subtle);border-radius:10px;background:var(--selection-bg);animation:ob-publish-card .8s var(--studio-ease-out) both}
#studio-proto .ob-mock-publish>span i{display:block;height:70px;border-radius:7px;background:var(--surface-stage)}#studio-proto .ob-mock-publish>span b{display:block;width:75%;height:7px;margin:8px auto;border-radius:99px;background:var(--selection-strong-bg)}
#studio-proto .ob-mock-publish em{color:var(--brand-accent);font-size:28px;font-style:normal;animation:ob-line-write .5s .55s both}
#studio-proto .ob-mock-publish strong{width:105px;height:95px;padding:28px 10px 10px;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;border:1px solid var(--border-subtle);border-radius:10px;background:linear-gradient(var(--action-primary-bg) 0 22px,var(--surface-raised) 22px);animation:ob-pop .5s .75s var(--studio-ease-out) both}
#studio-proto .ob-mock-publish strong i{height:18px;border-radius:4px;background:var(--selection-bg)}
@keyframes ob-product-in{from{opacity:0;transform:translateY(38px) rotate(-4deg)}to{opacity:1;transform:none}}
@keyframes ob-line-write{from{opacity:.2;transform:scaleX(.05)}to{opacity:1;transform:scaleX(1)}}
@keyframes ob-pop{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}
@keyframes ob-clip-slide{from{opacity:.2;transform:translateX(55px)}to{opacity:1;transform:none}}
@keyframes ob-playhead{from{left:5%;opacity:.3}to{left:58%;opacity:1}}
@keyframes ob-publish-card{from{opacity:.2;transform:translateX(-35px) rotate(-5deg)}to{opacity:1;transform:none}}

/* Modais de revisão, mantidos dentro do escopo claro do onboarding. */
#studio-proto .ob-modal{color:var(--text-primary);background:var(--surface-raised)}
#studio-proto .ob-modal .modal-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
#studio-proto .ob-modal .modal-heading h3{margin:0;font-size:22px}
#studio-proto .ob-modal label{color:var(--text-secondary)}
#studio-proto .ob-modal input,#studio-proto .ob-modal select{border-color:var(--studio-field-border)}
#studio-proto .ob-modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
#studio-proto .ob-modal .ob-primary{background:var(--action-primary-bg);color:var(--action-primary-fg);border:2px solid var(--border-strong);box-shadow:0 4px 0 var(--border-strong)}
#studio-proto .ob-modal-success{padding:16px;border:2px solid var(--studio-feedback-success-fg);border-radius:14px;background:var(--studio-feedback-success-bg);color:var(--studio-feedback-success-fg)}
#studio-proto .ob-invite-code{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#studio-proto .ob-invite-code code{max-width:100%;overflow-wrap:anywhere;color:var(--text-primary)}
#studio-proto .ob-credit-packages{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}
#studio-proto .ob-credit-package{display:grid;gap:5px;text-align:left;align-content:start;min-height:132px}
#studio-proto .ob-credit-package span{font-weight:bold}#studio-proto .ob-credit-package b{font-size:21px}#studio-proto .ob-credit-package small{color:var(--text-secondary);line-height:1.35}
#studio-proto .ob-credit-package[aria-pressed=true]{background:var(--selection-bg);border:2px solid var(--selection-border)}
#studio-proto .ob-credit-notice{padding:10px 12px;border-radius:10px;background:var(--studio-feedback-warning-bg);color:var(--feedback-warning-fg)}
@media(max-width:700px){
  #studio-proto .ob-actions--sticky{margin-inline:-8px;padding-inline:8px;bottom:var(--studio-safe-bottom)}
  #studio-proto .ob-mock-window{height:185px}
  #studio-proto .ob-credit-packages{grid-template-columns:1fr}
  #studio-proto .ob-credit-package{min-height:110px}
  #studio-proto .ob-modal-actions>*{flex:1;justify-content:center}
}
