:root{--s-bg:#f3f6fe;--s-panel:#fff;--s-line:#dce2ec;--s-ink:#172b4d;--s-muted:#58657a;--s-accent:#315fce;--s-tint:#edf2ff;--s-ok:#17644c;--s-okbg:#eaf7f0;--s-warn:#925418;--s-warnbg:#fff5e6;--s-c3:#1e8a6e}[data-theme=dark]{--s-bg:#0d1324;--s-panel:#131b31;--s-line:#263253;--s-ink:#eef2fb;--s-muted:#9aa7c2;--s-accent:#7b9cff;--s-tint:#1a2440;--s-ok:#7fd3b0;--s-okbg:#163329;--s-warn:#f0b36b;--s-warnbg:#3a2a14;color-scheme:dark}html,body{height:100%}body{background:var(--s-bg);color:var(--s-ink);margin:0;font-family:DM Sans,Arial,sans-serif;font-size:14px;line-height:1.5}.studio{grid-template-rows:52px 1fr;grid-template-columns:280px 1fr 440px;height:100vh;min-height:0;display:grid}.bar{border-bottom:1px solid var(--s-line);background:var(--s-panel);grid-column:1/-1;align-items:center;gap:16px;padding:0 16px;display:flex}.wm{letter-spacing:-.03em;color:inherit;font-size:18px;font-weight:700;text-decoration:none}.wm b{color:var(--s-accent)}.wm span{color:var(--s-muted);margin-left:6px;font-size:13px;font-weight:500}.bar-mid{flex:1;align-items:baseline;gap:12px;min-width:0;display:flex}.run-title{white-space:nowrap;text-overflow:ellipsis;font-weight:600;overflow:hidden}.run-meta{color:var(--s-muted);white-space:nowrap;font-size:12px}.bar-right{align-items:center;gap:10px;display:flex}.who{color:var(--s-muted);text-overflow:ellipsis;max-width:220px;font-size:12px;overflow:hidden}button{font:inherit;cursor:pointer}.icon{border:1px solid var(--s-line);background:var(--s-panel);color:var(--s-ink);border-radius:8px;width:30px;height:30px}.link{color:var(--s-accent);background:0 0;border:0;padding:4px 6px}.link:disabled{color:var(--s-muted);cursor:default}.btn{background:var(--s-accent);color:#fff;border:0;border-radius:10px;padding:10px 16px;font-weight:600}.btn:disabled{opacity:.5;cursor:default}.left,.right{background:var(--s-panel);border-right:1px solid var(--s-line);flex-direction:column;min-height:0;display:flex;overflow:auto}.right{border-right:0;border-left:1px solid var(--s-line)}.left-head,.right-head{text-transform:uppercase;letter-spacing:.08em;color:var(--s-muted);justify-content:space-between;align-items:center;padding:14px 16px 6px;font-size:11px;display:flex}.steps{margin:0;padding:0 8px;list-style:none}.steps li{color:var(--s-muted);border-radius:8px;align-items:center;gap:10px;padding:8px;font-size:13px;display:flex}.steps li .dot{border:2px solid var(--s-line);border-radius:50%;flex:none;place-items:center;width:18px;height:18px;font-size:10px;display:grid}.steps li.andamento{color:var(--s-ink);background:var(--s-tint)}.steps li.andamento .dot{border-color:var(--s-accent);animation:1.2s infinite pulse}.steps li.concluida{color:var(--s-ink)}.steps li.concluida .dot{background:var(--s-ok);border-color:var(--s-ok);color:#fff}@keyframes pulse{0%,to{box-shadow:0 0 #315fce59}50%{box-shadow:0 0 0 6px #315fce00}}.activity{flex:1;min-height:0;padding:0 10px;font-size:12px;overflow:auto}.act{border-left:2px solid var(--s-line);color:var(--s-muted);margin:0 0 4px 8px;padding:6px 8px;animation:.3s fade}.act b{color:var(--s-ink);font-weight:500}.act .res{margin-top:3px;display:block}.act .res a{color:var(--s-ok);white-space:nowrap;text-overflow:ellipsis;text-decoration:none;display:block;overflow:hidden}.act img{vertical-align:-2px;border-radius:2px;width:12px;height:12px;margin-right:4px}@keyframes fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1}}.left-foot{border-top:1px solid var(--s-line);color:var(--s-muted);padding:10px 16px;font-size:12px}.left-foot a{color:var(--s-accent);padding:2px 0;text-decoration:none;display:block}.center{flex-direction:column;min-width:0;min-height:0;display:flex}.gate{flex:1;place-items:start center;padding:32px 16px;display:grid;overflow:auto}.gate-card{background:var(--s-panel);border:1px solid var(--s-line);border-radius:20px;width:100%;max-width:520px;padding:32px}.gate-card.wide{max-width:860px}.gate-card h1{letter-spacing:-.02em;margin:6px 0 14px;font-family:Newsreader,Georgia,serif;font-size:34px;font-weight:500;line-height:1.1}.eyebrow{text-transform:uppercase;letter-spacing:.1em;color:var(--s-accent);font-size:11px;font-weight:600}.gate-card form{gap:8px;display:flex}.gate-card input,.pf input,.pf textarea,#answer{font:inherit;border:1px solid var(--s-line);background:var(--s-bg);color:var(--s-ink);box-sizing:border-box;border-radius:10px;width:100%;padding:10px 12px}.msg{color:var(--s-muted);min-height:18px;font-size:13px}.muted{color:var(--s-muted)}.consent{align-items:flex-start;gap:10px;margin:14px 0;font-size:13px;display:flex}.consent input{margin-top:3px}.pf{grid-template-columns:1fr 1fr;gap:10px 14px;display:grid!important}.pf label{color:var(--s-muted);flex-direction:column;gap:4px;font-size:12px;display:flex}.pf .full{grid-column:1/-1}.pf-actions{justify-content:space-between;align-items:center;display:flex}.chat{flex-direction:column;flex:1;min-height:0;display:flex}.log{scroll-behavior:smooth;flex-direction:column;flex:1;gap:14px;padding:20px 24px;display:flex;overflow:auto}.m{max-width:820px;animation:.25s fade}.m .who{text-transform:uppercase;letter-spacing:.08em;color:var(--s-accent);margin-bottom:4px;font-size:11px;font-weight:600;display:block}.m.user{background:var(--s-tint);border-radius:14px;align-self:flex-end;padding:10px 14px}.m.user .who{color:var(--s-muted)}.m p{white-space:pre-wrap;margin:0;line-height:1.6}.m.sys{color:var(--s-muted);background:var(--s-panel);border:1px solid var(--s-line);border-radius:999px;align-self:center;padding:4px 12px;font-size:12px}.m .cursor:after{content:"▍";color:var(--s-accent);animation:1s infinite blink}@keyframes blink{50%{opacity:0}}.question{background:var(--s-panel);border:1px solid var(--s-accent);border-radius:16px;margin:0 24px 12px;padding:14px 16px;animation:.3s fade;box-shadow:0 8px 30px #315fce1f}.q-head{justify-content:space-between;gap:12px;font-size:12px;display:flex}.q-badge{background:var(--s-tint);color:var(--s-accent);border-radius:999px;padding:2px 10px;font-weight:600}.q-text{margin:8px 0;font-size:15px}.chips{flex-wrap:wrap;gap:6px;margin-bottom:8px;display:flex}.chips button{border:1px solid var(--s-line);background:var(--s-bg);color:var(--s-ink);border-radius:999px;padding:5px 12px;font-size:13px}.chips button:hover{border-color:var(--s-accent)}#answer-form{align-items:flex-end;gap:8px;display:flex}#answer{resize:vertical}.composer{border-top:1px solid var(--s-line);background:var(--s-panel);padding:10px 24px}.typing{color:var(--s-muted);align-items:center;gap:4px;margin-bottom:6px;font-size:12px;display:flex}.typing i{background:var(--s-accent);border-radius:50%;width:6px;height:6px;animation:1.2s infinite bounce}.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}@keyframes bounce{0%,80%,to{opacity:.4;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}.composer-foot{color:var(--s-muted);justify-content:space-between;font-size:11px;display:flex}.skeleton{padding:12px 16px;overflow:auto}.sk-kpis{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px;display:grid}.kp{background:var(--s-bg);border:1px solid var(--s-line);border-radius:12px;min-height:58px;padding:10px 12px}.kp .v{font-variant-numeric:tabular-nums;font-size:20px;font-weight:600}.kp .l{color:var(--s-muted);font-size:11px}.kp.sk .v{background:linear-gradient(90deg,var(--s-line),var(--s-tint),var(--s-line));background-size:200% 100%;border-radius:4px;width:70%;height:20px;animation:1.4s infinite shimmer}@keyframes shimmer{to{background-position:-200% 0}}.dash-sections{margin:0;padding:0;list-style:none}.dash-sections li{color:var(--s-muted);border:1px dashed var(--s-line);border-radius:8px;align-items:center;gap:8px;margin-bottom:6px;padding:7px 8px;font-size:13px;display:flex}.dash-sections li.on{color:var(--s-ink);background:var(--s-bg);border-style:solid}.dash-sections li.on:before{content:"✓";color:var(--s-ok);font-weight:700}.dash-sections li.writing{border-color:var(--s-accent);color:var(--s-ink)}.dash-sections li.writing:before{content:"✎";color:var(--s-accent)}.dash-frame{background:#fff;border:0;flex:1;width:100%;min-height:0}.palette{background:var(--s-panel);border:1px solid var(--s-line);z-index:60;border-radius:14px;width:min(560px,92vw);padding:8px;position:fixed;top:12vh;left:50%;transform:translate(-50%);box-shadow:0 20px 60px #00000040}.palette input{box-sizing:border-box;width:100%;font:inherit;color:var(--s-ink);background:0 0;border:0;outline:0;padding:12px}.palette ul{margin:0;padding:4px 0 0;list-style:none}.palette li{cursor:pointer;border-radius:8px;padding:8px 12px}.palette li:hover,.palette li.sel{background:var(--s-tint)}.palette kbd{float:right;color:var(--s-muted);font-size:11px}.toast{background:var(--s-ink);color:var(--s-bg);z-index:70;border-radius:10px;padding:10px 16px;font-size:13px;animation:.2s fade;position:fixed;bottom:20px;left:50%;transform:translate(-50%)}@media (width<=1100px){.studio{grid-template-columns:240px 1fr}.right{display:none}}@media (width<=760px){.studio{grid-template-columns:1fr}.left{display:none}}.studio[data-gate=loading],.studio[data-gate=gate-login],.studio[data-gate=gate-consent]{height:auto;min-height:100svh;padding-bottom:48px;display:block}.studio[data-gate=loading]>.bar,.studio[data-gate=gate-login]>.bar,.studio[data-gate=loading]>.left,.studio[data-gate=gate-login]>.left,.studio[data-gate=loading]>.right,.studio[data-gate=gate-login]>.right,.studio[data-gate=gate-consent]>.left,.studio[data-gate=gate-consent]>.right{display:none}.studio[data-gate=loading] .gate,.studio[data-gate=gate-login] .gate{padding:0;display:block;overflow:visible}.auth-shell{--auth-ink:#182b4b;--auth-muted:#54647d;min-height:calc(100svh - 48px);color:var(--auth-ink);background:#fff;grid-template-columns:minmax(0,1fr) minmax(0,1fr);display:grid}.auth-story{isolation:isolate;background:#f0f5ff;flex-direction:column;justify-content:center;gap:32px;padding:40px clamp(28px,5vw,88px);display:flex;position:relative;overflow:hidden}.auth-story:before{content:"";z-index:-1;background:linear-gradient(#f4f7ffef 0%,#f4f7ffb5 42%,#f4f7ff00 85%),url(/brand/arctic-wide.webp) 45% 65%/cover;position:absolute;inset:0}.auth-brand{width:max-content;margin-bottom:auto;display:block}.auth-kicker{letter-spacing:.13em;color:#4c52a2;font-size:11px;font-weight:700;display:block}.auth-story h2{letter-spacing:-.055em;margin:16px 0;font-size:clamp(34px,4.1vw,64px);font-weight:500;line-height:1.06}.auth-story-copy>p{color:#445671;font-size:17px;line-height:1.6}.auth-preview{backdrop-filter:blur(12px);background:#ffffffdb;border:1px solid #fff;border-radius:15px;max-width:520px;text-decoration:none;transition:transform .2s,box-shadow .2s;display:block;overflow:hidden;box-shadow:0 20px 50px #2738741c}.auth-preview>span{justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;font-size:13px;font-weight:600;display:flex}.auth-preview small{color:#65738b;font-size:11px;font-weight:400}.auth-preview img{aspect-ratio:1265/712;object-fit:cover;border-block:1px solid #e6eafa;width:100%;height:auto;display:block}.auth-preview>span:last-child{color:#4545a4}.auth-preview:hover{transform:translateY(-3px);box-shadow:0 24px 60px #27387426}.auth-story-foot{color:#25375c;gap:24px;margin-top:auto;font-size:11px;display:flex}.auth-story-foot span:before{content:"✓";margin-right:6px}.auth-content{background:#fff;flex-direction:column;min-width:0;padding:32px clamp(24px,5vw,80px) 40px;display:flex}.auth-back{color:var(--auth-muted);align-items:center;width:max-content;min-height:44px;font-size:13px;text-decoration:none;display:flex}.auth-back:hover{text-decoration:underline}.auth-form-wrap{width:100%;max-width:420px;margin:auto;padding:32px 0}.auth-progress{color:#67758d;gap:28px;margin:0 0 36px;padding:0;font-size:12px;list-style:none;display:flex}.auth-progress li{align-items:center;gap:8px;display:flex}.auth-progress li>span{border:1px solid #ccd5e6;border-radius:50%;place-items:center;width:24px;height:24px;font-size:11px;display:grid}.auth-progress [aria-current=step]{color:#4342a5;font-weight:600}.auth-progress [aria-current=step]>span{background:#eeecfc;border-color:#b5aee5}.auth-shell h1,.auth-shell #otp-title{letter-spacing:-.055em;margin:14px 0 18px;font-family:DM Sans,Arial,sans-serif;font-size:clamp(32px,3.2vw,46px);font-weight:500;line-height:1.1}.auth-lead{color:var(--auth-muted);margin-bottom:26px;font-size:15px;line-height:1.65}.auth-lead strong{color:var(--auth-ink);overflow-wrap:anywhere;font-weight:600}.auth-shell .auth-form{flex-direction:column;gap:0;display:flex}.auth-form label{margin-bottom:8px;font-size:13px;font-weight:600}.auth-form input{color:var(--auth-ink);background:#fff;border:1px solid #aebbd1;border-radius:9px;width:100%;min-height:54px;padding:15px 16px;font-size:16px;transition:border-color .15s,box-shadow .15s}.auth-form input:hover{border-color:#7b83b6}.auth-form input:focus{border-color:#6254c7;outline:2px solid #0000;box-shadow:0 0 0 3px #6254c718}.auth-form input[aria-invalid=true]{border-color:#b7374d}.auth-field-help{color:var(--auth-muted);margin:10px 0 22px;font-size:12px;line-height:1.6}.auth-primary{color:#fff;background:linear-gradient(110deg,#3158c5,#6b45b5);border:1px solid #6352c5;border-radius:9px;justify-content:center;align-items:center;gap:16px;width:100%;min-height:54px;padding:14px 20px;font-size:15px;font-weight:600;transition:transform .15s,box-shadow .15s,filter .15s;display:flex;box-shadow:0 5px 12px #4d44ad25}.auth-primary>span:last-child{font-size:21px;line-height:1}.auth-primary:hover:not(:disabled){filter:brightness(1.1);transform:translateY(-1px);box-shadow:0 7px 18px #4d44ad38}.auth-primary:active:not(:disabled){transform:translateY(0)}.auth-primary:disabled{cursor:wait;box-shadow:none;background:#555e85;border-color:#555e85}.auth-primary[aria-busy=true]:before{content:"";border:2px solid #ffffff60;border-top-color:#fff;border-radius:50%;width:14px;height:14px;animation:.8s linear infinite auth-spin}.auth-reassurance{text-align:center;color:var(--auth-muted);margin-top:12px;font-size:12px}.auth-message{color:#365a91;overflow-wrap:anywhere;margin:18px 0 0;font-size:13px;line-height:1.6}.auth-message:empty{display:none}.auth-message[data-error=true]{color:#8f2438;background:#fff3f5;border-left:3px solid #b7374d;border-radius:4px;padding:10px 12px}.auth-help{border-top:1px solid #e3e8f2;margin-top:26px;padding-top:5px;font-size:13px}.auth-help summary{cursor:pointer;color:#404593;justify-content:space-between;align-items:center;min-height:44px;font-weight:500;list-style:none;display:flex}.auth-help summary::-webkit-details-marker{display:none}.auth-help summary:after{content:"+";font-size:22px;font-weight:400}.auth-help[open] summary:after{content:"−"}.auth-help h3{letter-spacing:0;margin:16px 0 5px;font-size:13px;font-weight:600}.auth-help p{color:var(--auth-muted);line-height:1.65}.auth-help>div{padding-bottom:12px}.auth-terms{color:var(--auth-muted);margin-top:22px;font-size:11px;line-height:1.8}.auth-terms a{color:#44518a}.auth-text-button{color:#4b45a3;text-underline-offset:4px;background:0 0;border:0;min-height:44px;padding:8px 0;font-size:13px;font-weight:600;text-decoration:underline}.auth-text-button:disabled{color:#64718b;cursor:default;text-decoration:none}.auth-resend{color:var(--auth-muted);flex-wrap:wrap;align-items:center;gap:2px 12px;margin-top:16px;font-size:12px;display:flex}#change-email{margin:-20px 0 10px}#otp-code{letter-spacing:.4em;font-variant-numeric:tabular-nums;text-align:center;font-size:27px}#otp-title:focus{outline:none}.auth-shell :is(a,button,summary):focus-visible{outline-offset:4px;outline:3px solid #6559c4}.auth-loading{z-index:5;color:#54647d;background:#fff;border:1px solid #e3e8f2;border-radius:20px;padding:6px 12px;font-size:12px;position:fixed;top:12px;right:16px}.studio[data-gate=loading] .auth-primary{pointer-events:none;opacity:.65}.studio:not([data-gate=loading]) .auth-loading{display:none}.studio[data-gate=gate-consent] .gate{padding:64px 16px}.studio[data-gate=gate-consent] .gate-card{box-sizing:border-box;padding:32px}.studio[data-gate=gate-consent] .gate-card h1{font-family:DM Sans,Arial,sans-serif}.studio[data-gate=gate-consent] .consent{gap:12px;font-size:14px;line-height:1.6}.studio[data-gate=gate-consent] .consent input{accent-color:#6553c5;flex:none;width:20px;height:20px}.studio[data-gate=gate-consent] #consent-btn{background:linear-gradient(110deg,#3158c5,#6b45b5);width:100%;min-height:52px;margin-top:14px}.studio-legal{color:#54647d;text-align:center;z-index:40;background:#fffffff2;border-top:1px solid #e1e6ef;padding:10px 16px;font-size:11px;line-height:1.5;position:fixed;inset:auto 0 0}.studio-legal strong{color:#182b4b}@keyframes auth-spin{to{transform:rotate(360deg)}}.studio[data-gate=gate-consent] :is(#btn-theme,#btn-palette){display:none}.studio[data-gate=gate-consent] .bar-right{min-width:0}.studio[data-gate=gate-consent] .who{text-overflow:ellipsis;white-space:nowrap;max-width:150px}.studio[data-gate=gate-consent] #btn-signout{white-space:nowrap;min-height:44px}.studio[data-gate=gate-consent] .gate-card small{color:var(--s-muted);margin-top:8px;font-size:11px;display:block}@media (width>=701px) and (height<=800px){.auth-story{gap:22px;padding-block:28px}.auth-content{padding-top:16px;padding-bottom:20px}.auth-form-wrap{padding-block:16px}.auth-progress{margin-bottom:24px}.auth-shell h1,.auth-shell #otp-title{margin-block:12px 14px}.auth-lead{margin-bottom:20px}.auth-help{margin-top:18px}.auth-terms{margin-top:14px}.auth-preview{max-width:460px}}@media (width>=1450px){.auth-story{padding-inline:max(72px,50vw - 625px) 72px}.auth-content{padding-right:max(72px,50vw - 625px)}}@media (width<=900px){.auth-shell{grid-template-columns:.85fr 1fr}.auth-story{gap:28px;padding:32px 28px}.auth-story h2{font-size:40px}.auth-story-foot{flex-wrap:wrap;gap:12px}.auth-content{padding-inline:28px}.auth-preview>span{padding:12px;font-size:12px}}@media (width<=700px){.auth-shell{flex-direction:column;display:flex}.auth-story{background:#f4f7ff;gap:0;min-height:0;padding:25px 24px 20px}.auth-story:before{opacity:.65;background-position:45% 35%}.auth-story-copy,.auth-preview,.auth-story-foot{display:none}.auth-brand svg{width:90px;height:auto}.auth-content{padding:0 24px 24px}.auth-back{align-self:flex-end;min-height:44px;font-size:12px}.auth-form-wrap{max-width:440px;padding:8px 0 12px}.auth-progress{margin-bottom:27px}.auth-shell h1,.auth-shell #otp-title{font-size:36px}.auth-lead{margin-bottom:24px;font-size:14px}.auth-help{margin-top:20px}.auth-terms{margin-top:16px}.studio-legal{padding:8px 16px;font-size:10px}.studio[data-gate=gate-consent] .bar-mid,.studio[data-gate=gate-consent] .wm span{display:none}.studio[data-gate=gate-consent] .bar{justify-content:space-between;min-height:64px}.studio[data-gate=gate-consent] .gate{padding:24px 16px}.studio[data-gate=gate-consent] .gate-card{padding:24px}}@media (width<=360px){.auth-content,.auth-story{padding-inline:16px}.auth-shell h1,.auth-shell #otp-title{font-size:32px}}@media (prefers-reduced-motion:reduce){.auth-preview,.auth-primary{transition:none}.auth-primary[aria-busy=true]:before{animation:none}}
