:root{color-scheme:dark;--pink:#ff27a7;--pink-soft:#ff81cb;--bg:#080809;--surface:#121216;--line:#2b2b31;--muted:#929298}
*{box-sizing:border-box}html.auth-checking body{visibility:hidden}body{min-height:100vh;margin:0;background:radial-gradient(circle at 78% -8%,#ff27a715,transparent 29rem),radial-gradient(circle at 8% 52%,#8a245c0b,transparent 34rem),var(--bg);color:#f6f3f5;font-family:Pulso,Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{color:inherit;cursor:pointer}svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.library-header{border-bottom:1px solid #ffffff08}.library-account{display:flex;align-items:center;gap:10px}.credit-balance,.account-chip{display:flex;align-items:center;gap:8px;min-height:42px;border:1px solid #ffffff16;border-radius:999px;background:#131319;padding:7px 13px;text-decoration:none}.credit-balance span{color:#ff69bf;font-size:18px}.credit-balance strong{font-size:13px}.account-chip{padding:5px 13px 5px 5px}.account-chip>span{display:grid;width:31px;height:31px;place-items:center;border-radius:50%;background:linear-gradient(145deg,#ff7aca,#e6239c);font-size:11px;font-weight:800}.account-chip b{font-size:12px}.library-main{width:min(1180px,calc(100% - 48px));margin:auto;padding:62px 0 100px}.library-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:42px}.library-eyebrow{margin:0 0 16px;color:var(--pink-soft);font-size:11px;font-weight:800;letter-spacing:.2em}.library-eyebrow:before{display:inline-block;width:29px;height:1px;margin-right:12px;background:var(--pink);vertical-align:middle;content:""}.library-hero h1{margin:0;font-size:clamp(44px,7vw,82px);font-weight:680;letter-spacing:-.065em;line-height:.92}.library-hero h1 em{color:#ff55b6;font-family:Georgia,serif;font-weight:400}.hero-copy{max-width:590px;margin:22px 0 0;color:#a6a3a9;font-size:16px;line-height:1.65}.create-new{flex:none;gap:9px;margin-bottom:5px;text-decoration:none}.create-new svg{width:18px;height:18px;fill:currentColor;stroke:none}.summary-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:60px}.summary-row article{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:5px 15px;min-height:104px;border:1px solid #ffffff11;border-radius:18px;background:linear-gradient(145deg,#16151b,#0d0d11);padding:20px 22px}.summary-row span{color:#7f7b84;font-size:9px;font-weight:800;letter-spacing:.16em}.summary-row strong{grid-row:1/3;grid-column:2;align-self:center;color:#fff;font-size:35px;letter-spacing:-.06em}.summary-row small{color:#9e9ba2;font-size:12px}.library-title-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:19px}.library-title-row h2{margin:0;font-size:32px;letter-spacing:-.045em}.library-title-row p{margin:6px 0 0;color:#85838a;font-size:13px}.refresh-button{display:grid;width:42px;height:42px;place-items:center;border:1px solid #ffffff15;border-radius:50%;background:#15151a}.refresh-button svg{width:18px;height:18px}.refresh-button.is-loading svg{animation:spin .8s linear infinite}.library-tools{display:flex;justify-content:space-between;gap:16px;margin-bottom:23px}.filter-pills{display:flex;gap:7px;overflow:auto;scrollbar-width:none}.filter-pills button{border:1px solid #29292f;border-radius:999px;background:#121216;padding:10px 16px;color:#939097;font-size:12px;white-space:nowrap}.filter-pills button.active{border-color:#ff61bc55;background:#ff2aa414;color:#ff9dd6}.library-search{position:relative;width:min(320px,100%)}.library-search input{width:100%;height:42px;border:1px solid #29292f;border-radius:999px;background:#111115;color:#eee;padding:0 42px 0 16px;outline:0}.library-search input:focus{border-color:#ff60bc88;box-shadow:0 0 0 3px #ff2aa411}.library-search svg{position:absolute;top:12px;right:15px;width:18px;height:18px;color:#77747c}.creation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.creation-card{min-width:0;overflow:hidden;border:1px solid #ffffff10;border-radius:19px;background:linear-gradient(145deg,#15151a,#0e0e12);transition:transform .2s,border-color .2s}.creation-card:hover{transform:translateY(-3px);border-color:#ff67bf55}.creation-preview{position:relative;isolation:isolate;aspect-ratio:1.23;overflow:hidden;background:linear-gradient(140deg,#26131f,#111116)}.creation-preview:after{position:absolute;z-index:1;inset:35% 0 0;background:linear-gradient(transparent,#070709dc);content:"";pointer-events:none}.creation-preview img,.creation-preview video{display:block;width:100%;height:100%;object-fit:cover}.creation-preview video{background:#050506}.audio-cover{display:grid;width:100%;height:100%;place-items:center;background:radial-gradient(circle at 50% 40%,#ff38aa29,transparent 35%),linear-gradient(145deg,#21151e,#0b0b10)}.audio-cover svg{width:42px;height:42px;color:#ff70c2}.creation-status,.creation-type{position:absolute;z-index:2;top:12px;border:1px solid #ffffff1b;border-radius:999px;background:#09090bb8;padding:6px 9px;font-size:9px;font-weight:800;letter-spacing:.08em;backdrop-filter:blur(10px)}.creation-type{left:12px;color:#e8e3e8}.creation-status{right:12px}.status-ready{color:#82e8ba}.status-active{color:#ffd176}.status-failed{color:#ff8f9d}.creation-open{position:absolute;z-index:3;inset:0;width:100%;border:0;background:transparent}.creation-open span{position:absolute;right:15px;bottom:14px;display:grid;width:38px;height:38px;place-items:center;border:1px solid #ffffff40;border-radius:50%;background:#111116b8;color:#fff;backdrop-filter:blur(9px)}.creation-open svg{width:17px;height:17px}.creation-copy{padding:16px}.creation-copy h3{overflow:hidden;margin:0;color:#f1eef1;font-size:16px;font-weight:600;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.creation-copy>p{overflow:hidden;margin:7px 0 12px;color:#85828a;font-size:11px;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}.creation-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#6f6c74;font-size:10px}.creation-meta b{overflow:hidden;color:#aaa6ad;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.creation-skeleton{overflow:hidden;border:1px solid #ffffff0d;border-radius:19px;background:#111115;padding-bottom:18px}.creation-skeleton span{display:block;aspect-ratio:1.23;background:linear-gradient(90deg,#15151a,#202027,#15151a);background-size:200% 100%;animation:shine 1.2s linear infinite}.creation-skeleton i{display:block;width:68%;height:11px;margin:15px 16px 0;border-radius:5px;background:#222228}.creation-skeleton i:last-child{width:42%;height:8px;margin-top:9px}.library-empty{grid-column:1/-1;display:grid;justify-items:center;min-height:330px;place-content:center;border:1px dashed #34333b;border-radius:22px;background:radial-gradient(circle at 50% 15%,#ff2aa410,transparent 19rem);padding:35px;text-align:center}.library-empty>span{display:grid;width:58px;height:58px;place-items:center;border:1px solid #ff64bd2e;border-radius:18px;background:#ff2aa410;color:#ff74c4}.library-empty svg{width:27px;height:27px}.library-empty h3{margin:19px 0 8px;font-size:23px;letter-spacing:-.04em}.library-empty p{max-width:420px;margin:0 0 22px;color:#85828b;font-size:13px;line-height:1.6}.library-empty a{min-height:44px;text-decoration:none}.asset-dialog,.confirm-dialog{max-height:calc(100dvh - 28px);border:1px solid #39353d;background:#0e0e11;color:#f5f1f4;padding:0}.asset-dialog{width:min(700px,calc(100% - 28px));border-radius:23px}.asset-dialog::backdrop,.confirm-dialog::backdrop{background:#000b;backdrop-filter:blur(9px)}.asset-dialog-shell>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:21px 22px 17px}.asset-dialog-shell header span,.confirm-dialog>form>span{color:#ff80ca;font-size:9px;font-weight:800;letter-spacing:.17em}.asset-dialog-shell h2{margin:7px 0 0;font-size:24px;letter-spacing:-.04em}.asset-dialog-shell header button{display:grid;width:39px;height:39px;place-items:center;border:1px solid #ffffff12;border-radius:50%;background:#19191e}.asset-dialog-shell header svg{width:18px}.dialog-media{display:grid;max-height:53dvh;min-height:260px;place-items:center;background:#050506}.dialog-media video,.dialog-media img{display:block;max-width:100%;width:100%;max-height:53dvh;object-fit:contain}.dialog-media audio{width:calc(100% - 44px)}.dialog-details{padding:19px 22px}.dialog-details>p{display:-webkit-box;overflow:hidden;margin:0 0 17px;color:#aaa6ad;font-size:13px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:3}.dialog-details dl{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0}.dialog-details dl>div{border:1px solid #29292f;border-radius:11px;background:#151519;padding:10px}.dialog-details dt{color:#706d74;font-size:9px}.dialog-details dd{overflow:hidden;margin:5px 0 0;color:#ddd8dd;font-size:11px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.asset-dialog footer{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #27272c;padding:15px 22px}.asset-dialog footer button,.asset-dialog footer a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;border-radius:999px;padding:10px 16px;font-size:12px;font-weight:700;text-decoration:none}.asset-dialog footer svg{width:16px}.delete-button{border:1px solid #54303a;background:#2a141a;color:#ff98aa}.download-button{margin-left:auto;background:linear-gradient(120deg,#ff65bf,#ff27a7);color:#1a0712}.download-button[hidden]{display:none}.confirm-dialog{width:min(430px,calc(100% - 30px));border-radius:21px}.confirm-dialog form{padding:27px}.confirm-dialog h2{margin:10px 0 11px;font-size:26px}.confirm-dialog p{margin:0;color:#96929a;font-size:13px;line-height:1.6}.confirm-dialog form>div{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.confirm-dialog button{min-height:42px;border:1px solid #34343a;border-radius:999px;background:#18181d;padding:9px 15px;font-size:12px}.confirm-dialog #confirm-delete{border-color:#78364d;background:#d51f69;color:#fff}.library-toast{position:fixed;z-index:100;right:20px;bottom:20px;max-width:calc(100% - 40px);border:1px solid #3b3640;border-radius:13px;background:#18171dea;padding:13px 16px;box-shadow:0 18px 60px #0009;font-size:12px;backdrop-filter:blur(16px)}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes shine{to{background-position:-200% 0}}
@media(max-width:850px){.creation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-hero h1{font-size:58px}}
@media(max-width:760px){.library-header{min-height:76px}.library-account .account-chip b{display:none}.account-chip{padding-right:5px}.library-main{width:calc(100% - 32px);padding:34px 0 105px}.library-hero{display:grid;margin-bottom:28px}.library-hero h1{font-size:44px;line-height:.96}.hero-copy{margin-top:17px;font-size:14px}.create-new{width:100%;margin:0}.summary-row{gap:8px;margin-bottom:42px}.summary-row article{display:flex;min-height:82px;flex-direction:column;gap:4px;padding:14px}.summary-row strong{order:-1;font-size:27px}.summary-row span{font-size:7px}.summary-row small{font-size:9px}.library-title-row h2{font-size:26px}.library-tools{display:grid}.filter-pills{margin-right:-16px;padding-right:16px}.library-search{width:100%}.creation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.creation-card{border-radius:16px}.creation-preview{aspect-ratio:.9}.creation-copy{padding:12px}.creation-copy h3{font-size:14px}.creation-copy>p{margin:5px 0 10px;font-size:10px}.creation-meta{display:grid;gap:4px}.creation-status,.creation-type{top:8px;padding:5px 7px;font-size:7px}.creation-type{left:8px}.creation-status{right:8px}.creation-open span{right:9px;bottom:9px;width:33px;height:33px}.asset-dialog{width:100%;max-height:92dvh;margin:auto 0 0;border-right:0;border-bottom:0;border-left:0;border-radius:23px 23px 0 0}.dialog-media{min-height:220px}.dialog-details dl{grid-template-columns:1fr}.asset-dialog footer{padding-bottom:max(16px,env(safe-area-inset-bottom))}.confirm-dialog form>div{display:grid}.confirm-dialog button{width:100%}.library-toast{bottom:88px}}
@media(max-width:370px){.creation-grid{grid-template-columns:1fr}.creation-preview{aspect-ratio:1.25}.library-hero h1{font-size:39px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.creation-card{transition:none}.creation-skeleton span{animation:none}}

/* Estúdio de Criação integrado à Biblioteca */
.creation-studio{scroll-margin-top:96px;margin:0 0 76px;border:1px solid #ffffff13;border-radius:28px;background:radial-gradient(circle at 92% 0,#ff279d1d,transparent 27rem),linear-gradient(145deg,#16121a,#0d0d11 58%);box-shadow:0 32px 90px #0004;overflow:hidden}
.studio-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:36px;border-bottom:1px solid #ffffff0e;padding:39px 42px 34px}.studio-heading .library-eyebrow{margin-bottom:13px}.studio-heading h2{margin:0;font-size:clamp(32px,5vw,54px);font-weight:680;letter-spacing:-.055em;line-height:.98}.studio-heading h2 em{color:#ff67bd;font-family:Georgia,serif;font-weight:400}.studio-heading p:not(.library-eyebrow){max-width:590px;margin:18px 0 0;color:#97939b;font-size:14px;line-height:1.65}.studio-advanced{display:flex;flex:none;align-items:center;gap:8px;color:#e2dde2;font-size:12px;font-weight:700;text-decoration:none}.studio-advanced svg{width:17px;height:17px;transition:transform .2s}.studio-advanced:hover svg{transform:translateX(3px)}
.quick-create{padding:31px 42px 38px}.studio-media-tabs{display:flex;gap:8px;margin-bottom:20px}.studio-media-tabs button{display:flex;align-items:center;gap:8px;min-height:42px;border:1px solid #2b2930;border-radius:999px;background:#111115;padding:9px 18px;color:#96929a;font-size:12px;font-weight:700}.studio-media-tabs button.active{border-color:#ff54b966;background:#ff2aa416;color:#ff9cd4;box-shadow:inset 0 0 0 1px #ff55b51c}.studio-media-tabs svg{width:16px;height:16px}.studio-media-tabs [data-studio-media="video"] svg{fill:currentColor;stroke:none}
.studio-prompt{position:relative;display:block}.studio-prompt>span,.studio-select>span{display:block;margin:0 0 9px;color:#d9d4d9;font-size:11px;font-weight:700}.studio-prompt textarea{display:block;width:100%;min-height:150px;resize:vertical;border:1px solid #312e36;border-radius:19px;background:#0b0b0f;color:#f4eff3;padding:20px 22px 31px;outline:0;font:500 18px/1.55 Pulso,Arial,sans-serif;transition:border-color .2s,box-shadow .2s}.studio-prompt textarea::placeholder{color:#64616a}.studio-prompt textarea:focus{border-color:#ff4db873;box-shadow:0 0 0 4px #ff2ca410}.studio-prompt small{position:absolute;right:16px;bottom:13px;color:#6f6b73;font-size:9px}.studio-prompt small b{font-weight:500}
.studio-controls{display:grid;grid-template-columns:minmax(230px,1.7fr) repeat(2,minmax(130px,.65fr));gap:11px;margin-top:17px}.studio-select{min-width:0}.studio-select select{width:100%;height:51px;border:1px solid #302e35;border-radius:14px;background:#101014;color:#e8e3e7;padding:0 39px 0 15px;outline:0;text-overflow:ellipsis}.studio-select select:focus{border-color:#ff4db86b}.studio-select[hidden]{display:none}
.studio-reference{margin-top:17px}.studio-reference>button,.studio-file-preview{display:flex;width:100%;min-height:77px;align-items:center;gap:14px;border:1px dashed #3b3840;border-radius:16px;background:#0d0d11;padding:12px 15px;text-align:left}.studio-reference>button:hover{border-color:#ff50b866;background:#ff2aa407}.studio-upload-icon,.studio-file-preview>div{display:grid;width:46px;height:46px;flex:none;place-items:center;overflow:hidden;border:1px solid #ffffff10;border-radius:12px;background:#1a151d;color:#ff72c2}.studio-upload-icon svg{width:19px;height:19px}.studio-reference strong,.studio-file-preview strong{display:block;overflow:hidden;color:#e9e4e8;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.studio-reference small,.studio-file-preview small{display:block;margin-top:5px;color:#7f7b84;font-size:10px}.studio-file-preview>div img,.studio-file-preview>div video{width:100%;height:100%;object-fit:cover}.studio-file-preview>span{min-width:0;flex:1}.studio-file-preview>button{display:grid;width:36px;height:36px;flex:none;place-items:center;border:1px solid #ffffff13;border-radius:50%;background:#19181d}.studio-file-preview>button svg{width:15px;height:15px}
.studio-submit-row{display:flex;align-items:center;justify-content:space-between;gap:26px;margin-top:24px}.studio-submit-row>div{min-width:0}.studio-submit-row>div span{display:block;color:#74717a;font-size:9px;text-transform:uppercase;letter-spacing:.09em}.studio-submit-row>div strong{display:block;margin-top:6px;color:#d6d1d6;font-size:13px}.studio-generate{width:min(330px,100%);min-height:56px;gap:9px;border:0}.studio-generate svg{width:17px;height:17px;fill:currentColor;stroke:none}.studio-generate:disabled{cursor:wait;filter:saturate(.3);opacity:.66}.studio-error{margin:15px 0 0;border:1px solid #ff6f8c30;border-radius:12px;background:#ff244f0b;color:#ff9aaa;padding:11px 13px;font-size:11px}
.studio-job{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;border-top:1px solid #ffffff0f;background:#ff2aa408;padding:24px 42px}.studio-job-icon{display:grid;width:46px;height:46px;place-items:center;border-radius:14px;background:#ff28a718;color:#ff79c5}.studio-job-icon svg{width:20px;height:20px;fill:currentColor;stroke:none}.studio-job span{color:#ff79c5;font-size:8px;font-weight:800;letter-spacing:.15em}.studio-job h3{margin:5px 0 4px;font-size:17px}.studio-job p{margin:0;color:#85818a;font-size:11px}.studio-job progress{width:min(400px,100%);height:4px;margin-top:12px;border:0;border-radius:20px;overflow:hidden;background:#29272e}.studio-job progress::-webkit-progress-bar{background:#29272e}.studio-job progress::-webkit-progress-value{background:linear-gradient(90deg,#ff70c2,#ff22a4)}.studio-job progress::-moz-progress-bar{background:#ff28a8}.studio-job>a{color:#f1ebef;font-size:11px;font-weight:700;text-decoration:none}.library-content{scroll-margin-top:95px}
@media(max-width:850px){.studio-heading{align-items:flex-start}.studio-controls{grid-template-columns:1fr 1fr}.studio-model{grid-column:1/-1}}
@media(max-width:760px){.creation-studio{margin:0 -16px 55px;border-right:0;border-left:0;border-radius:0;scroll-margin-top:78px}.studio-heading{display:grid;gap:22px;padding:30px 20px 25px}.studio-heading h2{font-size:35px}.studio-heading p:not(.library-eyebrow){font-size:12px}.quick-create{padding:23px 20px 29px}.studio-media-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.studio-media-tabs button{justify-content:center;min-width:0;padding:8px}.studio-prompt textarea{min-height:164px;padding:17px 17px 30px;font-size:16px}.studio-controls{grid-template-columns:1fr 1fr}.studio-select select{height:49px}.studio-reference>button,.studio-file-preview{min-height:70px}.studio-submit-row{display:grid;grid-template-columns:1fr;justify-content:stretch;gap:17px}.studio-generate{width:100%;order:-1}.studio-job{grid-template-columns:auto 1fr;gap:13px;padding:20px}.studio-job>a{grid-column:2}.library-content{scroll-margin-top:78px}}
@media(max-width:390px){.studio-media-tabs button{font-size:10px}.studio-media-tabs svg{display:none}.studio-controls{grid-template-columns:1fr}.studio-model{grid-column:auto}.studio-heading h2{font-size:31px}}
