/* ViralCuts Studio — CSS local como fallback de produção ao Tailwind Play CDN. */
:root{color-scheme:dark;--bg:#090c12;--panel:#10141d;--panel2:#141a25;--line:#242b38;--line2:#2f3847;--text:#f1f4fa;--muted:#8c96a8;--soft:#b1bac9;--orange:#ff995f;--purple:#9a85ff;--cyan:#54b7df;--green:#55ddaf;--radius:16px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.65}input,select{outline:none}svg{width:21px;height:21px}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.035em}h1{font-weight:760}h2,h3{font-weight:730}.container{width:min(1250px,calc(100% - 64px));margin-inline:auto}.site-background{position:fixed;z-index:-1;inset:0;overflow:hidden;pointer-events:none;background:radial-gradient(ellipse 80% 70% at 80% -20%,#151b2b 0,transparent 68%),#090c12}.site-background span{position:absolute;display:block;filter:blur(55px);border-radius:50%;opacity:.1}.site-background span:nth-child(1){width:350px;height:350px;top:-160px;left:14%;background:#c975f7}.site-background span:nth-child(2){width:480px;height:480px;bottom:-330px;right:6%;background:#3655c8}.site-background span:nth-child(3){width:240px;height:240px;top:30%;right:-180px;background:#ef8f6a}
/* Cabeçalho */
.topbar{height:79px;border-bottom:1px solid #232835;background:#0b0e15e8;position:sticky;top:0;z-index:30;backdrop-filter:blur(18px)}.bar-content,.bar-actions,.brand,.desktop-nav,.btn-logout{display:flex;align-items:center}.bar-content{height:100%;justify-content:space-between;gap:22px}.brand{gap:11px;white-space:nowrap}.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;color:#fff;background:linear-gradient(150deg,#ffac6b,#ff735f 54%,#b157aa);box-shadow:0 5px 25px #f277572a}.brand-mark svg{width:24px;height:24px}.brand-name{font-size:21px;line-height:1;font-weight:800;letter-spacing:-1px}.brand-name>span{color:#ff946c}.brand-name small{display:block;margin-top:6px;color:#8892a4;font-size:8px;letter-spacing:2.8px;font-weight:750}.desktop-nav{gap:4px;padding:5px;border-radius:10px;background:#11151f;border:1px solid #232936}.nav-link{padding:9px 15px;border-radius:7px;font-size:12px;color:#8793a7;font-weight:650;transition:background .18s,color .18s}.nav-link:hover{color:#fff;background:#1b2130}.nav-link.active{background:#232b3a;color:#f4f5fb}.bar-actions{gap:12px}.private-pill{display:flex;align-items:center;gap:9px;padding:9px 12px;border:1px solid #264038;background:#12231e;color:#8ce0ba;font-size:11px;border-radius:99px;white-space:nowrap;font-weight:650}.live-dot,.footer-indicator{display:inline-block;width:7px;height:7px;border-radius:50%;background:#4de2ab;box-shadow:0 0 0 4px #4de2ab18}.btn-logout{gap:8px;color:#c1c9d5;border:1px solid #303643;padding:9px 12px;border-radius:9px;background:#171c27;font-size:11px;font-weight:700;white-space:nowrap}.btn-logout:hover{border-color:#d27878;color:#fff}.btn-logout svg{width:17px;height:17px}
/* Visão geral */
.dashboard-content{padding-top:46px;padding-bottom:90px}.eyebrow-row,.section-kicker{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:2px;font-weight:800;color:#8995a8}.dot-azure{width:7px;height:7px;border-radius:50%;background:#a181ff;box-shadow:0 0 0 3px #a181ff26}.eyebrow-divider{color:#353c4d}.page-intro{display:flex;align-items:center;justify-content:space-between;gap:25px;margin:12px 0 30px}.page-intro h1{font-size:clamp(29px,3.2vw,42px);line-height:1.18;margin:0 0 10px}.page-intro h1 span,.section-heading h2 span{background:linear-gradient(105deg,#ffa171,#d88dc4 65%,#a795ff);background-clip:text;-webkit-background-clip:text;color:transparent}.page-intro p{font-size:13px;color:#94a0b4;margin:0}.overview-pill{border:1px solid #273042;background:#151b27;padding:12px 17px;border-radius:12px;display:flex;align-items:center;gap:13px;min-width:200px}.overview-pill strong{display:block;font-size:12px}.overview-pill small{color:#8f9aaf;font-size:10px}.pulse-ring{height:11px;width:11px;background:var(--green);border-radius:50%;box-shadow:0 0 0 6px #43d69c22;flex-shrink:0}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:27px}.stat-card{padding:20px 22px 17px;border:1px solid #252c3a;border-radius:14px;background:linear-gradient(150deg,#151b27,#10141d);min-height:134px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#a3adbe;font-size:12px;font-weight:570}.stat-symbol{display:grid;place-items:center;font-size:18px;width:30px;height:30px;border-radius:9px;background:#3f2c2d;color:#f69b79}.stat-symbol.purple{background:#302945;color:#aa96fa}.stat-symbol.violet{background:#2c304d;color:#b8b5ff}.stat-symbol.green{background:#1c3d36;color:#6be3b6}.stat-card strong{display:block;margin:4px 0 0;font-size:30px;line-height:1.15;letter-spacing:-1px;font-weight:790}.stat-card small{display:block;font-size:10px;color:#78869b;margin-top:8px}
/* Painéis */
.panel{background:linear-gradient(145deg,#141925,#10141c 78%);border:1px solid #293041;border-radius:16px;box-shadow:0 14px 40px #00000012}.workspace-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,.9fr);gap:20px;align-items:stretch}.ingest-panel{padding:25px 28px 29px}.panel-title-row{display:flex;align-items:center;gap:13px}.panel-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;flex-shrink:0;font-size:21px;font-weight:600}.panel-icon.orange{background:linear-gradient(140deg,#4a302c,#302129);color:#f9a182}.panel-icon.cyan{background:#1c3541;color:#83cee9}.panel-kicker{color:#a9a3ff;font-size:9px;letter-spacing:1.8px;font-weight:780;margin:0 0 2px}.panel-title-row h2{font-size:21px;margin:0;line-height:1.2}.tag-feature{margin-left:auto;border:1px solid #6b4640;color:#ffc099;font-size:9px;font-weight:790;border-radius:6px;letter-spacing:.8px;padding:7px 9px;white-space:nowrap;background:#302221}.panel-subtitle{font-size:12px;color:#8693a6;line-height:1.75;margin:17px 0 25px}.form-label{display:block;margin:0 0 9px;color:#b9c1cd;font-size:10px;font-weight:790;letter-spacing:1.1px}.form-label em{font-style:normal;font-weight:400;text-transform:none;letter-spacing:0;color:#707f91}.url-field,.password-field{position:relative}.url-field .input-symbol{position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:19px;color:#7e8ba3}.url-field input,.field-input,.password-field input{width:100%;border:1px solid #303849;background:#0d111a;color:#e6ecf5;border-radius:9px;min-height:48px;padding:13px 15px;transition:border-color .16s,box-shadow .16s}.url-field input{padding-left:45px}.url-field input::placeholder,.field-input::placeholder,.password-field input::placeholder{color:#586577}.url-field input:focus,.field-input:focus,.password-field input:focus{border-color:#9787e5;box-shadow:0 0 0 3px #a492f71a}.platform-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 25px}.platform-row>span:first-child{font-size:10px;color:#637184;margin-right:4px}.platform-chip{display:inline-block;padding:3px 9px;border:1px solid #2b3242;background:#151b25;color:#8c97a9;border-radius:20px;font-size:10px}.optional-label{margin-top:0}.form-grid-title{display:flex;align-items:center;justify-content:space-between;margin-top:24px}.form-grid-title>span{font-size:10px;color:#7a879a}.layout-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0 0 24px}.radio-card{display:block;cursor:pointer;min-width:0}.radio-card input{position:absolute;opacity:0;pointer-events:none}.radio-card-content{min-height:101px;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;gap:4px;border:1px solid #303849;border-radius:10px;background:#101520;color:#a3aebf;padding:10px 5px;transition:border-color .14s,background .14s}.radio-card:hover .radio-card-content{background:#1d2431}.radio-card input:checked+.radio-card-content{border-color:#bc8bf5;background:linear-gradient(135deg,#32273f,#202539);color:#fff;box-shadow:0 0 0 1px #b58df03a}.radio-card input:focus-visible+.radio-card-content{outline:2px solid #d0b8ff;outline-offset:2px}.radio-icon{font-size:23px;color:#c3a6ff;line-height:1.2}.radio-card strong{display:block;font-size:11px;white-space:nowrap}.radio-card small{font-size:9px;color:#7b889b}.radio-card input:checked+.radio-card-content small{color:#c4b3e7}.select-wrap{position:relative;margin-bottom:22px}.select-wrap select{appearance:none;cursor:pointer}.select-wrap option{color:#fff;background:#161b26}.select-arrow{position:absolute;right:17px;top:50%;transform:translateY(-50%);color:#8590a5;pointer-events:none}.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:10px;padding:13px 20px;background:linear-gradient(110deg,#ff9a69,#ec757a 52%,#ca72a9);color:#1c1215;font-weight:820;box-shadow:0 8px 28px #e5776635;transition:transform .15s,filter .15s}.btn-primary:hover{filter:brightness(1.08);transform:translateY(-1px)}.btn-primary:active{transform:translateY(0)}.submit-ingest{width:100%;min-height:50px}.submit-ingest>span:last-child{margin-left:auto;font-size:19px}.submit-ingest>span:first-child{font-size:17px}.insights-column{display:flex;flex-direction:column;gap:18px}.flow-panel{padding:26px 24px;flex:1}.side-title{display:flex;gap:11px;align-items:center}.side-title h3{font-size:16px;margin:0}.spark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#30273e;color:#c5a7ff;font-size:18px}.flow-panel>p{color:#8794a8;font-size:11px;line-height:1.7;margin:15px 0 28px}.steps{padding:0;margin:0;list-style:none}.steps li{display:flex;align-items:start;gap:14px;min-height:75px;position:relative}.steps li:not(:last-child):before{content:"";position:absolute;left:16px;top:34px;bottom:4px;width:1px;background:#394051}.step-number{display:grid;place-items:center;height:33px;width:33px;flex-shrink:0;border:1px solid #383e50;background:#1e2432;border-radius:11px;font-size:10px;font-weight:770;color:#bfb2ff}.steps strong{display:block;font-size:12px;font-weight:700;margin:2px 0 2px}.steps small{display:block;font-size:10px;line-height:1.6;color:#8290a3}.insight-highlight{padding:23px 24px;background:radial-gradient(circle at 90% 15%,#2b2445,#151b29 65%);border-color:#3c3458}.insight-top{display:flex;align-items:center;justify-content:space-between}.insight-emoji{color:#d5bcff;font-size:23px}.status-mini{font-size:9px;letter-spacing:.6px;color:#c1abff;background:#302746;padding:6px 9px;border-radius:7px}.insight-highlight h3{margin:14px 0 5px;font-size:17px}.insight-highlight p{margin:0;color:#9b97b7;font-size:11px;line-height:1.8}
/* Tabelas e seção */
.section-block{margin-top:52px;scroll-margin-top:100px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}.section-kicker{color:#a3a0f7;font-size:9px;margin-bottom:5px}.section-heading h2{font-size:24px;margin:0}.section-heading p{margin:6px 0 0;color:#8794a8;font-size:12px}.btn-secondary{border:1px solid #343c4d;background:#171d28;color:#d1d8e5;border-radius:9px;padding:9px 15px;font-size:11px;font-weight:680;display:flex;gap:8px}.btn-secondary:hover{background:#252d3a}.btn-secondary[aria-busy=true]{opacity:.6}.table-panel{overflow:hidden}.table-scroll{overflow-x:auto}.project-table{width:100%;border-collapse:collapse;min-width:800px}.project-table th{text-align:left;color:#79879a;letter-spacing:1px;font-size:9px;font-weight:750;padding:15px 20px;border-bottom:1px solid #29303e;background:#151a25}.project-table td{padding:17px 20px;border-bottom:1px solid #222937;vertical-align:middle}.project-table tr:last-child td{border-bottom:0}.project-table tbody tr:hover{background:#1c223022}.project-title-cell{display:flex;align-items:center;gap:12px;min-width:200px}.platform-square,.channel-avatar{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:10px;font-size:16px;background:#313338;color:#f3bdb1}.platform-square.youtube,.channel-avatar.youtube{background:#3d2529;color:#ff969c}.platform-square.twitch,.channel-avatar.twitch{background:#322a49;color:#c6acff}.platform-square.kick,.channel-avatar.kick{background:#2c3c2a;color:#a6e08e}.project-title-cell strong,.channel-text strong{display:block;font-size:12px;line-height:1.4;max-width:255px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-title-cell small,.channel-text small{display:block;font-size:10px;color:#7e8a9e;margin-top:4px}.status-badge{display:inline-flex;align-items:center;gap:6px;border-radius:7px;padding:5px 9px;font-size:10px;font-weight:700;white-space:nowrap;background:#272f41;color:#b8c5de}.status-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.status-ready{background:#1b342c;color:#7cdbaf}.status-failed,.status-canceled{background:#3b242c;color:#f0a0a9}.status-rendering,.status-transcribing,.status-analyzing{background:#302741;color:#c7b1ff}.status-downloading{background:#293a44;color:#9dddeb}.dispatch-warning{display:block;margin-top:4px;color:#e9a483;font-size:9px}.progress-group{width:185px}.progress-row{display:flex;justify-content:space-between;gap:7px;color:#77869d;font-size:10px}.progress-row span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:145px}.progress-row strong{font-size:10px;color:#a9b5c9}.progress-native{margin-top:8px;width:100%;height:5px;appearance:none;border:0;border-radius:99px;background:#313b4b;display:block}.progress-native::-webkit-progress-bar{background:#313b4b;border-radius:99px}.progress-native::-webkit-progress-value{border-radius:99px;background:linear-gradient(90deg,#a88df0,#ee92a5)}.progress-native::-moz-progress-bar{border-radius:99px;background:linear-gradient(90deg,#a88df0,#ee92a5)}.clip-count{font-weight:760;color:#e3eaf4}.table-date{color:#9ca9ba;font-size:10px;white-space:nowrap}.table-footnote{border-top:1px solid #282f3d;padding:12px 19px;font-size:10px;color:#75849a}.empty-state{text-align:center;padding:54px 25px}.empty-icon{margin:0 auto 13px;display:grid;place-items:center;width:55px;height:55px;border:1px solid #343d50;background:#1b2331;color:#a7a2f3;border-radius:16px;font-size:27px}.empty-state h3{font-size:17px;margin:0 0 6px}.empty-state p{font-size:12px;color:#8996aa;margin:0 auto 14px;max-width:325px}.text-link{font-size:12px;color:#bea8ff;font-weight:750}.text-link:hover{text-decoration:underline}
/* Canais */
.bot-tag{color:#a7e6c7;font-weight:750;font-size:9px;letter-spacing:1px;border:1px solid #2e5144;background:#152921;border-radius:8px;padding:8px 12px;display:flex;gap:9px;align-items:center;white-space:nowrap}.channel-grid{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:20px;align-items:start}.channel-form-panel,.channel-list-panel{padding:25px 26px}.panel-title-row.compact h3{font-size:18px;margin:0}.channel-form-panel .panel-subtitle{margin:18px 0 20px}.channel-form .field-input{margin-bottom:18px}.channel-submit{width:100%;margin-top:2px}.help-line{padding-top:18px;color:#8493a8;font-size:10px}.channel-list-heading{display:flex;justify-content:space-between;gap:14px;align-items:start;padding-bottom:20px;border-bottom:1px solid #29303c}.channel-list-heading h3{font-size:18px;margin:0 0 4px}.channel-list-heading p{font-size:11px;color:#8290a4;margin:0}.channel-total{padding:6px 10px;background:#24273c;color:#bbb1ff;border-radius:8px;font-size:10px;white-space:nowrap}.channel-item{display:flex;align-items:center;gap:12px;padding:17px 1px;border-bottom:1px solid #232b39}.channel-item:last-child{border-bottom:0}.channel-text{flex:1;min-width:0}.channel-text strong{max-width:100%}.channel-text small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.btn-icon-danger{width:29px;height:29px;display:grid;place-items:center;border-radius:7px;border:1px solid #49313d;color:#e8aab2;background:#291e29;font-size:18px}.btn-icon-danger:hover{background:#56303d}.small-empty{padding:55px 20px}.small-empty h3{font-size:14px}.small-empty p{font-size:11px}
/* Footer e alertas */
.site-footer{border-top:1px solid #252b36;padding:25px 0;background:#0c1017}.footer-inner{display:flex;justify-content:space-between;gap:20px;color:#637286;font-size:10px}.footer-indicator{width:5px;height:5px;box-shadow:none;margin-right:6px}.footer-separator{margin:0 7px;color:#313b48}.alert{display:flex;align-items:start;gap:11px;padding:13px 14px;border-radius:10px;font-size:12px;line-height:1.6}.alert-error{background:#3b232a;border:1px solid #854550;color:#f6b9c0}.alert-success{background:#1a3930;border:1px solid #366c56;color:#a5f0cc}.alert-icon{flex-shrink:0;display:grid;place-items:center;height:21px;width:21px;border-radius:6px;background:#ffffff16;font-weight:900}.flash-alert{margin:0 0 23px;align-items:center}.flash-alert button{margin-left:auto;border:none;background:none;color:inherit;font-size:22px;line-height:1}.flash-alert button:hover{color:#fff}
/* Tela de bloqueio */
.screen-locked .site-background{background:radial-gradient(ellipse 55% 38% at 50% 28%,#262340,#0b0e16 75%)}.screen-locked .site-background span:nth-child(1){opacity:.22;top:10%;left:16%;background:#8751cf}.screen-locked .site-background span:nth-child(2){opacity:.17;bottom:-250px;right:11%;background:#e57b7f}.lock-layout{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:45px 20px;gap:24px}.lock-topline,.lock-bottomline{font-size:9px;letter-spacing:2px;color:#78859b;font-weight:780;display:flex;align-items:center;justify-content:center;gap:12px;text-align:center}.mini-mark{font-size:17px;color:#cba4ff;line-height:1}.lock-topline-dot{height:3px;width:3px;border-radius:100%;background:#687183}.lock-card{border:1px solid #3b3c51;background:linear-gradient(145deg,#171a29f7,#10141df7);width:min(100%,445px);border-radius:22px;box-shadow:0 32px 100px #0008;padding:40px 40px 0;text-align:center;position:relative;overflow:hidden}.lock-card::before{content:"";position:absolute;top:0;left:18%;right:18%;height:1px;background:linear-gradient(90deg,transparent,#c5a3e7,transparent)}.lock-icon{margin:0 auto 22px;display:grid;place-items:center;width:70px;height:70px;border-radius:21px;background:radial-gradient(circle at 30% 25%,#494263,#262334);border:1px solid #62557b;box-shadow:0 9px 35px #7c4cb12e;color:#dbc9ff}.lock-icon svg{width:33px;height:33px}.lock-eyebrow{color:#c6b6ea;display:flex;align-items:center;justify-content:center;gap:9px;font-size:9px;font-weight:800;letter-spacing:2px;margin-bottom:11px}.lock-card h1{font-size:clamp(29px,5vw,37px);line-height:1.15;margin:0 0 14px}.lock-card h1 span{color:#baabfa}.lock-desc{font-size:12px;color:#98a2b4;max-width:310px;margin:0 auto 27px;line-height:1.8}.lock-form{text-align:left}.lock-form .form-label{margin-bottom:10px}.password-field svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#8592a7}.password-field>input{padding-left:46px;padding-right:50px;height:52px}.password-toggle{position:absolute;right:0;top:0;height:100%;width:48px;border:none;background:transparent;color:#96a2b8}.password-toggle svg{left:13px;width:20px;height:20px}.password-toggle:hover svg{color:#fff}.password-hint{font-size:10px;color:#7b889b;margin:10px 0 20px}.btn-lock{width:100%;min-height:50px;display:flex;justify-content:space-between;padding:0 21px;font-size:13px}.btn-lock span{font-size:20px}.lock-card .alert{text-align:left;margin-bottom:19px}.lock-card .alert small{font-size:10px}.lock-card-bottom{border-top:1px solid #343947;padding:20px 0;margin-top:32px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:10px;color:#8793a6}.lock-card-bottom svg{width:15px;height:15px;color:#8fd2b5}.bottomline-divide{height:13px;width:1px;background:#41495a}.lock-bottomline .live-dot{width:6px;height:6px}
/* Acessibilidade e mobile */
:focus-visible{outline:2px solid #b8a8ff;outline-offset:3px}::selection{background:#805db7;color:#fff}@media(max-width:1100px){.desktop-nav{display:none}.workspace-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}.layout-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:800px){.container{width:calc(100% - 32px)}.stats-grid{grid-template-columns:repeat(2,1fr)}.workspace-grid,.channel-grid{grid-template-columns:1fr}.insights-column{display:grid;grid-template-columns:1fr 1fr}.steps li{min-height:72px}.overview-pill{display:none}.page-intro{margin-top:12px}.dashboard-content{padding-top:30px}.section-block{margin-top:40px}}@media(max-width:570px){.topbar{height:67px}.brand-name{font-size:18px}.brand-mark{width:34px;height:34px}.private-pill{display:none}.btn-logout{padding:9px;font-size:10px}.btn-logout svg{width:16px;height:16px}.btn-logout>span{display:none}.page-intro h1{font-size:30px}.page-intro p{font-size:12px}.stats-grid{gap:9px}.stat-card{padding:14px;min-height:113px}.stat-card strong{font-size:27px}.stat-top span:first-child{font-size:10px}.stat-card small{font-size:9px}.ingest-panel,.flow-panel,.insight-highlight,.channel-form-panel,.channel-list-panel{padding:19px}.layout-grid{grid-template-columns:repeat(2,1fr)}.panel-title-row h2{font-size:18px}.tag-feature{display:none}.insights-column{grid-template-columns:1fr}.section-heading{align-items:start}.section-heading h2{font-size:21px}.section-heading p{font-size:11px}.bot-tag{font-size:8px;padding:6px}.footer-inner{flex-direction:column;text-align:center;gap:10px}.lock-card{padding:33px 24px 0}.lock-layout{padding:30px 18px}.lock-topline,.lock-bottomline{font-size:8px;letter-spacing:1.5px;gap:7px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

/* PARTE 4: Galeria de cortes + editor rápido. Sem estilos inline (compatível com CSP estrita). */
.project-studio{padding-top:32px;padding-bottom:85px}.back-link{display:inline-flex;align-items:center;color:#a99aff;font-size:12px;margin-bottom:22px}.back-link:hover{color:#fff}.project-hero{display:flex;justify-content:space-between;align-items:center;gap:28px;margin-bottom:25px}.project-hero h1{font-size:clamp(27px,3vw,40px);line-height:1.15;margin:10px 0 12px}.project-hero p{color:#9aa5b7;font-size:13px;margin:0;max-width:640px}.project-hero-stats{display:flex;align-items:center;gap:14px}.hero-bubble{display:flex;align-items:baseline;gap:7px;background:#19202c;border:1px solid #2d3545;padding:9px 15px;border-radius:11px}.hero-bubble strong{font-size:20px}.hero-bubble small{color:#929eaf;font-size:11px}.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;color:#8f9caf;font-size:11px;border-bottom:1px solid #242d3a;padding:12px 0 18px;margin-bottom:23px}.clips-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}.viral-card{overflow:hidden;min-width:0}.clip-visual{height:380px;position:relative;background:radial-gradient(circle at 60% 25%,#31324e,#0a0e17 70%);display:grid;place-items:center}.clip-video{width:100%;height:100%;object-fit:contain;background:#05070d}.clip-video-placeholder{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;color:#9aa8b8}.clip-video-placeholder span{font-size:35px;width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:#40405b66;color:#ece5ff}.clip-video-placeholder small{font-size:11px}.clip-visual-top{position:absolute;top:13px;left:13px;right:13px;display:flex;justify-content:space-between;align-items:center;gap:8px;pointer-events:none}.trend-chip,.format-chip{display:inline-flex;padding:6px 9px;font-weight:800;font-size:10px;border-radius:8px;background:#25233dcb;color:#ddcaff;border:1px solid #4a3b78}.trend-chip{color:#ffce84;background:#3c2c20e8;border-color:#71502e}.format-chip{margin-left:auto;color:#deddeb}.clip-card-body{padding:18px 19px 19px}.clip-head{display:flex;gap:12px;align-items:start;justify-content:space-between}.clip-number{font-size:9px;letter-spacing:1px;font-weight:760;color:#a6a2ce}.clip-head h2{font-size:16px;line-height:1.38;letter-spacing:-.03em;margin:6px 0 12px;overflow-wrap:anywhere}.viral-score{display:flex;flex-shrink:0;align-items:baseline;border:1px solid #6e5f4a;border-radius:11px;background:#2b2522;padding:8px 9px;color:#ffc283}.viral-score strong{font-size:24px;line-height:1}.viral-score small{font-size:9px;margin-left:2px}.score-bars{display:grid;gap:9px;margin:7px 0 19px}.score-row{display:grid;grid-template-columns:52px minmax(0,1fr) 27px;gap:11px;align-items:center}.score-row span,.score-row strong{font-size:10px;color:#9fa9ba}.score-row strong{text-align:right;color:#d3dded}.score-meter{width:100%;height:7px;appearance:none;border:0;border-radius:99px;background:#303847;overflow:hidden}.score-meter::-webkit-progress-bar{border-radius:99px;background:#303847}.score-meter::-webkit-progress-value{background:#aa92fb;border-radius:99px}.score-meter::-moz-progress-bar{background:#aa92fb;border-radius:99px}.score-hook_score::-webkit-progress-value{background:#f8aa74}.score-hook_score::-moz-progress-bar{background:#f8aa74}.score-emotion_score::-webkit-progress-value{background:#b18cf6}.score-emotion_score::-moz-progress-bar{background:#b18cf6}.score-loop_score::-webkit-progress-value{background:#69c9b9}.score-loop_score::-moz-progress-bar{background:#69c9b9}.suggestion-block{border-top:1px solid #28313f;padding:13px 0}.suggestion-block h3{font-size:10px;letter-spacing:.65px;text-transform:uppercase;color:#9cabc0;margin:0 0 8px}.suggestion-block p{font-size:11px;color:#acb8c9;margin:0;line-height:1.6;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.suggestion-block ul{padding-left:18px;margin:0;color:#c8d1df;font-size:11px}.suggestion-block li{margin-bottom:6px}.clip-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.clip-actions .btn-primary,.clip-actions .btn-secondary{padding:10px 11px;font-size:11px;flex:1;white-space:nowrap}.disabled-download{padding:10px;font-size:11px;color:#728096}.clip-warning,.clip-processing{font-size:11px;margin:9px 0;color:#f0ba9e}.clip-processing{color:#b7a3f9}.clip-revision{display:block;margin-top:12px;font-size:10px;color:#78869b}.gallery-empty{text-align:center;padding:70px 20px}.gallery-empty .empty-icon{margin-bottom:20px}.gallery-empty h2{font-size:22px}.gallery-empty p{font-size:12px;color:#9ba8b8}.gallery-empty .btn-primary{margin-top:8px}.gallery-pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:28px;font-size:12px;color:#97a5b7}.gallery-pagination .btn-secondary{padding:10px 15px}.project-link{color:#f5f4fe}.project-link:hover{color:#c8b8ff;text-decoration:underline}
/* Editor modal */
.dialog-open{overflow:hidden}.editor-overlay[hidden],.editor-fields[hidden],.editor-fallback[hidden],.editor-preview-headline[hidden]{display:none!important}.editor-overlay{position:fixed;inset:0;z-index:99;background:#020409dc;backdrop-filter:blur(11px);padding:20px;display:flex;align-items:center;justify-content:center}.editor-dialog{background:#101620;border:1px solid #354057;border-radius:18px;width:min(1080px,100%);max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 25px 100px #000b;outline:none}.editor-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 23px;border-bottom:1px solid #273141;gap:14px}.editor-heading h2{font-size:21px;margin:5px 0 0}.editor-close{font-size:28px;line-height:1;width:34px;height:34px;border:1px solid #3b485b;background:#1b2330;color:#c5cdd9;border-radius:9px}.editor-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:22px;padding:21px}.editor-preview{min-width:0}.editor-preview-inner{height:535px;max-height:67vh;aspect-ratio:9/16;position:relative;background:#05070b;margin:0 auto;border-radius:12px;overflow:hidden;border:1px solid #394255}.editor-preview video{height:100%;width:100%;object-fit:contain}.editor-preview p{font-size:10px;color:#7d8aa1;margin-top:12px;line-height:1.6;text-align:center}.editor-fallback{position:absolute;inset:0;display:grid;place-items:center;background:#0b0f1a;color:#929da8;font-size:12px}.editor-preview-headline{position:absolute;pointer-events:none;top:9%;left:5%;right:5%;text-align:center;font-weight:900;color:#fff;text-shadow:0 3px 10px #000,0 3px 2px #000;line-height:1.1;font-size:20px;text-transform:uppercase;overflow-wrap:anywhere}.editor-preview-caption{position:absolute;pointer-events:none;bottom:19%;left:6%;right:6%;text-align:center;font-weight:850;font-size:23px;text-shadow:0 3px 7px #000,0 2px 2px #000;color:#fff;overflow-wrap:anywhere}.editor-preview-caption.style-hormozi_bold{font-size:29px;text-transform:uppercase;color:#ffd58d}.editor-preview-caption.style-minimalist_neon{color:#9dfcff;text-shadow:0 0 12px #65d9d3aa}.editor-preview-caption.style-karaoke_box{background:#ffde61;color:#12161d;text-shadow:none;border-radius:5px;padding:2px 8px}.editor-preview-caption.style-podcast_clean{font-size:20px;font-weight:650}.editor-fields{min-width:0;display:flex;flex-direction:column;gap:15px}.editor-field{display:flex;flex-direction:column;gap:7px;min-width:0}.editor-field label,.editor-transcript-title label{font-size:10px;letter-spacing:.8px;color:#b4c0d3;font-weight:800}.editor-fields .field-input{min-height:42px;padding:9px 11px}.editor-trim{display:grid;grid-template-columns:1fr 1fr;gap:12px}.editor-transcript-title{display:flex;justify-content:space-between;gap:12px;align-items:center}.editor-add-word{background:#24243d;color:#d5caff;border:1px solid #48416c;border-radius:8px;padding:7px 11px;font-size:11px}.editor-subhelp{color:#8592a7;font-size:10px;margin:-10px 0 0}.editor-words{max-height:240px;min-height:65px;overflow-y:auto;display:grid;align-content:start;gap:6px;border:1px solid #313a4b;border-radius:9px;padding:9px;background:#0b1019}.editor-words:empty:before{content:'Nenhuma palavra com timestamp disponível';font-size:11px;color:#8592a2;padding:13px}.editor-word-row{display:grid;grid-template-columns:minmax(0,1fr) 92px 92px 25px;gap:7px;align-items:center}.editor-word-row .field-input{min-height:35px;padding:6px 8px;font-size:11px}.word-remove{width:25px;height:28px;border-radius:5px;border:1px solid #503240;color:#f2a4b4;background:#31202b;font-size:17px}.editor-feedback{font-size:11px;color:#9bd6b8;min-height:20px;line-height:1.5}.editor-feedback.is-error{color:#f2aaaa}.editor-footer{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-top:auto;padding-top:10px}.editor-footer button{font-size:11px;padding:11px 14px}
@media(max-width:1080px){.clips-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.clip-visual{height:420px}}
@media(max-width:760px){.project-hero{align-items:start;flex-direction:column}.clips-grid{grid-template-columns:1fr}.clip-visual{height:450px}.editor-overlay{padding:7px}.editor-dialog{max-height:calc(100dvh - 14px)}.editor-layout{grid-template-columns:1fr;padding:14px}.editor-preview-inner{height:280px;aspect-ratio:9/16}.editor-preview-headline{font-size:12px}.editor-preview-caption,.editor-preview-caption.style-hormozi_bold{font-size:15px}.editor-preview p{margin-bottom:0}.editor-heading{padding:15px}.gallery-toolbar{flex-direction:column;align-items:start}}
@media(max-width:470px){.editor-word-row{grid-template-columns:minmax(0,1fr) 68px 68px 25px;gap:4px}.editor-word-row .field-input{font-size:10px;padding:6px 4px}.project-studio{padding-top:25px}.editor-trim{gap:7px}.clip-actions .btn-primary,.clip-actions .btn-secondary{font-size:10px}}
