/* DM Sans e Manrope do Google Fonts: carregadas por <link> no index.html, antes desta folha (mesma ordem do antigo @import, sem esperar este arquivo). */
:root{--ink:#102e54;--muted:#647f9f;--bg:#eef6ff;--line:#dce8f5;--blue:#2478f4;--orange:#ff7019;--green:#199a69;--radius:16px;--shadow:0 8px 28px #173e6b08;font-family:'DM Sans',system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button,a{transition:background .18s,color .18s,border-color .18s,box-shadow .18s,transform .18s}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed;transform:none!important}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #6da8ff;outline-offset:3px}.skip{position:fixed;top:-60px;left:10px;z-index:100;background:white;padding:12px}.skip:focus{top:8px}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}header{position:sticky;top:0;z-index:20;background:#fffefef2;backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.topbar{height:78px;max-width:1472px;margin:auto;padding:0 40px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;gap:10px;font-family:Manrope,sans-serif;font-size:23px;font-weight:800;letter-spacing:-1px;white-space:nowrap}.brand svg{width:32px;height:36px;fill:var(--orange)}.workspace{background:#f7faff;border:1px solid var(--line);border-radius:8px;font-weight:650;color:var(--ink);padding:9px 28px 9px 12px}.nav{display:flex;align-self:stretch;gap:25px;flex:1}.nav a{display:flex;align-items:center;position:relative;font-weight:600;white-space:nowrap;color:#647a94}.nav a:hover{color:var(--blue)}.nav a.active{color:var(--blue)}.nav a.active:after{content:'';height:3px;background:var(--blue);position:absolute;bottom:0;left:0;right:0;border-radius:3px}.top-actions{display:flex;align-items:center;gap:18px}.avatar{width:35px;height:35px;border-radius:50%;background:#d3e6ff;color:#1a61b1;display:grid;place-items:center;font-weight:700}.icon-btn{padding:8px;border:0;background:transparent;color:var(--muted);border-radius:8px;display:inline-grid;place-items:center}.icon-btn:hover{background:#e9f2ff;color:var(--blue)}.connection-bar{background:#fff5e9;border-bottom:1px solid #f5e2c9;color:#8b5828;min-height:40px;padding:9px 32px;display:flex;align-items:center;justify-content:center;gap:14px;font-size:12px}.connection-bar a{font-weight:700;text-decoration:underline}.connection-bar.connected{background:#eaf8f1;color:#227b54}main{max-width:1392px;margin:0 auto;padding:38px 40px 70px;min-height:80vh}h1,h2,h3{font-family:Manrope,system-ui,sans-serif;letter-spacing:-.04em}h1{font-size:34px;margin:0 0 8px;font-weight:800}h2{font-size:21px;margin:0;font-weight:800}h3{font-size:16px;margin:0;font-weight:750}p{line-height:1.55}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:.2em;text-transform:uppercase}.page-head{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:28px}.page-head p{margin:0;color:var(--muted)}.flex{display:flex;align-items:center;gap:12px}.spread{display:flex;justify-content:space-between;align-items:center;gap:12px}.wrap{flex-wrap:wrap}.stack{display:grid;gap:18px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);padding:11px 17px;font-weight:650;line-height:1.25;white-space:nowrap}.btn:hover{border-color:#a3c5ee;background:#f6faff;box-shadow:0 3px 9px #143d6810}.btn:active{transform:translateY(1px)}.btn.primary{background:var(--orange);border-color:var(--orange);color:white;box-shadow:0 3px 8px #ff701920}.btn.primary:hover{background:#eb6110;border-color:#eb6110;box-shadow:0 5px 15px #ff70192b}.btn.blue{color:white;background:var(--blue);border-color:var(--blue)}.btn.ghost{background:transparent;border-color:transparent;color:var(--blue);padding:8px 3px}.btn.danger{color:#bd4245;border-color:#f3cdd1}.btn.sm{font-size:12px;padding:8px 12px}.btn.full{width:100%}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:7px;padding:6px 9px;font-size:11px;font-weight:650;white-space:nowrap;background:#eaf1f8;color:#61768e}.badge.blue{background:#e6f0ff;color:#246dc7}.badge.orange{background:#fff1e1;color:#c66a16}.badge.green{background:#e3f6ed;color:#168355}.badge.red{background:#fcebed;color:#bd4245}.dot{width:6px;height:6px;border-radius:50%;background:currentColor;display:inline-block}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-pad{padding:24px}.section-head{margin:28px 0 16px;display:flex;align-items:center;justify-content:space-between}.section-head p{margin:5px 0 0;font-size:13px;color:var(--muted)}.hero{background:linear-gradient(112deg,#102e54,#173d69);border-radius:20px;padding:36px;color:white;position:relative;overflow:hidden}.hero:after{content:'';position:absolute;width:450px;height:450px;background:linear-gradient(130deg,#eaf5ff,#c3dff6);border-radius:0 0 0 100%;right:-140px;top:-295px;pointer-events:none}.hero h1{font-size:38px;margin:8px 0}.hero p{color:#b5d2f0;margin:0 0 22px}.hero .eyebrow{color:#a8cdf4}.hero .hero-caption{position:absolute;top:35px;right:38px;z-index:1;width:140px;color:#789dc2;font-size:9px;letter-spacing:.2em;line-height:1.8}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.metric{border:1px solid var(--line);border-radius:12px;background:white;display:flex;align-items:center;gap:16px;padding:22px;text-align:left;color:var(--ink)}button.metric:hover{border-color:#a8caef;box-shadow:var(--shadow)}.metric-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#eaf3ff;color:var(--blue)}.metric strong{font-family:Manrope,sans-serif;font-size:28px;display:block;letter-spacing:-1px}.metric small{font-size:12px;color:var(--muted)}.hero .metrics{margin-bottom:0}.hero .metric{background:#ffffff08;border-color:#ffffff21;color:white}.hero .metric small{color:#b9d1e9}.hero .metric-icon{background:#b1d5ff;color:var(--ink)}.two-col{display:grid;grid-template-columns:1.7fr 1fr;gap:22px}.empty{padding:42px 24px;text-align:center;color:var(--muted)}.empty .empty-icon{width:64px;height:64px;margin:0 auto 17px;border-radius:18px;background:#edf5ff;display:grid;place-items:center;color:#729dc8}.empty .empty-icon svg{width:30px;height:30px}.empty h3{color:var(--ink);margin-bottom:7px}.empty p{max-width:440px;margin:0 auto 18px;font-size:13px}.toolbar{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:12px;background:white;margin-bottom:20px}.search{position:relative;flex:1;min-width:160px}.search svg{position:absolute;left:12px;top:12px;color:var(--muted);width:18px}.search input{padding-left:38px}input,select,textarea{border:1px solid #d2e0ef;border-radius:8px;background:#fff;color:var(--ink);padding:11px 12px;width:100%;outline:none;font-size:13px;transition:border-color .18s,box-shadow .18s}input:focus,select:focus,textarea:focus{border-color:#78aeef;box-shadow:0 0 0 3px #2478f410}input::placeholder,textarea::placeholder{color:#9aabc0}textarea{resize:vertical;min-height:100px;line-height:1.6}select{width:auto;max-width:100%}label.field{display:grid;gap:8px;font-weight:650;font-size:12px}.field select{width:100%}.field small{font-weight:400;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.span2{grid-column:1/-1}.tabs{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:16px 0 22px}.tab{border:1px solid transparent;background:transparent;border-radius:8px;padding:9px 15px;color:var(--muted);font-weight:550;font-size:13px}.tab:hover{background:#e4effc;color:var(--ink)}.tab.active{background:#e5f0ff;border-color:#c8dfff;color:var(--blue)}.tabs.pills .tab{border:1px solid var(--line);background:white;border-radius:24px}.tabs.pills .active{background:var(--blue);color:white;border-color:var(--blue)}.count{font-size:11px;opacity:.7;margin-left:5px}.segmented{display:flex;gap:4px;padding:4px;background:#edf3fa;border-radius:8px}.segmented button{border:0;border-radius:6px;padding:9px 16px;color:var(--muted);background:transparent;font-size:12px}.segmented .active{background:white;color:var(--blue);box-shadow:0 1px 5px #183b6210}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.project-card{position:relative;background:white;border:1px solid var(--line);border-radius:14px;padding:9px;transition:box-shadow .2s,border-color .2s;min-width:0}.project-card:hover{box-shadow:0 9px 25px #153c6710;border-color:#adcae9}.cover{height:170px;border-radius:9px;position:relative;overflow:hidden;background:linear-gradient(130deg,#d1e3f5,#e8f3ff 55%,#bfd8ef);display:grid;place-items:center;color:#769dc5}.cover .icon{width:42px;height:42px;stroke-width:1}.cover.hist{background:linear-gradient(120deg,#d8deef,#e8effa,#d8cce7)}.cover img{position:absolute;width:100%;height:100%;object-fit:cover}.cover:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#102e5420,transparent)}.cover-label{position:absolute;bottom:13px;left:14px;font-size:9px;text-transform:uppercase;letter-spacing:.14em;font-weight:750;color:#315980;z-index:1}.card-check{position:absolute;top:19px;left:18px;z-index:2;accent-color:var(--blue);width:17px;height:17px}.card-menu{position:absolute;top:15px;right:15px;z-index:2;background:white;border-radius:50%}.project-info{padding:14px 10px 10px}.project-info h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:4px}.project-info .badge{margin:13px 0}.progress{height:6px;background:#e6eef8;border-radius:10px;overflow:hidden}.progress span{display:block;height:100%;background:var(--blue);border-radius:10px;transition:width .35s}.card-bottom{border-top:1px solid #edf2f8;padding-top:12px;margin-top:14px;display:flex;justify-content:space-between;align-items:center;gap:6px}.project-grid.list-view{grid-template-columns:1fr}.list-view .project-card{display:flex;align-items:center;gap:20px}.list-view .cover{width:160px;height:100px;flex-shrink:0}.list-view .project-info{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:10px;align-items:center;flex:1}.list-view .project-info .progress,.list-view .project-info>.small{display:none}.list-view .card-bottom{border:0;margin:0;padding:0}.list-view .card-check{top:15px;left:14px}.list-view .card-menu{right:12px}.list-view .project-info h3{grid-column:1}.notice{display:flex;gap:12px;background:#e5f1ff;border:1px solid #d3e5fa;border-radius:10px;padding:15px 18px;font-size:12px;color:#4c729a;line-height:1.6;margin:18px 0}.notice .icon{color:#5691d1}.notice.warning{background:#fff6ec;border-color:#ffe0bf;color:#966226}.notice.error{background:#fff0f1;color:#a8394b;border-color:#f5cad1}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}th{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;background:#f7faff;font-weight:650;padding:14px 20px}td{padding:18px 20px;border-top:1px solid #edf2f8}td small{display:block;color:var(--muted);margin-top:5px}tr:hover td{background:#fbfdff}.queue-name{display:flex;align-items:center;gap:12px}.mini-cover{width:43px;height:43px;border-radius:8px;background:#e8f1fb;display:grid;place-items:center;flex-shrink:0}.table-progress{min-width:130px}.table-progress .progress{margin-top:7px}.expanded{padding:20px;background:#f3f8ff}.scene-grid{display:flex;gap:10px;flex-wrap:wrap;margin-top:13px}.scene{width:92px;border:1px solid var(--line);border-radius:9px;background:white;padding:12px;font-size:11px;display:grid;gap:8px}.scene.complete{color:var(--green);border-color:#c5e8d8}.profile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.profile-card{padding:24px;display:flex;flex-direction:column;gap:18px;min-height:280px}.profile-icon{width:45px;height:45px;border-radius:12px;background:#edf4ff;display:grid;place-items:center;color:var(--blue)}.profile-body{flex:1;border-top:1px solid var(--line);padding-top:18px}.profile-body p{margin:0 0 14px}.profile-footer{display:flex;gap:8px}.profile-footer .btn{flex:1}.activity-row{display:flex;align-items:center;gap:16px;padding:16px 20px;border-bottom:1px solid #edf2f8;font-size:13px}.activity-row:last-child{border:0}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.step{display:flex;gap:12px;align-items:flex-start}.step b{border-radius:50%;width:30px;height:30px;flex-shrink:0;background:var(--blue);color:white;display:grid;place-items:center}.step p{margin:5px 0;font-size:12px;color:var(--muted)}.source-tabs{margin:0 0 23px;display:flex;background:#edf3fa;border-radius:9px;padding:5px}.source-tabs .tab{flex:1;margin:0}.source-tabs .active{background:white;border-color:#d9e7f9;box-shadow:0 2px 6px #183b6210}.analyzer-layout{display:grid;grid-template-columns:1.55fr 1fr;gap:24px;align-items:start}.analyzer-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:14px 0 19px}.check-option{display:flex;gap:8px;align-items:center;min-height:58px;padding:12px;border:1px solid var(--line);border-radius:9px;font-size:11px;font-weight:600;cursor:pointer}.check-option:has(input:checked){background:#f2f7ff;border-color:#c4dcfb}.check-option input,input[type=checkbox],input[type=radio]{width:16px;height:16px;accent-color:var(--blue);box-shadow:none}.check-option .icon{width:18px}.drop-zone{border:1px dashed #8bb8e7;border-radius:12px;padding:35px 20px;text-align:center;background:#f7fbff;cursor:pointer}.drop-zone.dragging{background:#e1efff;border-color:var(--blue)}.drop-zone p{margin:10px 0}.drop-zone .icon{width:28px;height:28px;color:var(--blue)}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.result-grid img{width:100%;max-height:420px;object-fit:contain;background:#f4f8fd;border-radius:10px}.file-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.file-row span{flex:1;font-size:13px}.script{white-space:pre-wrap;line-height:1.7;font-size:13px;max-height:450px;overflow:auto;margin:0;font-family:inherit;color:#385779}.analyzer-side .panel{margin-bottom:20px}.privacy{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:11px;padding-top:17px}.selection-bar{position:sticky;bottom:20px;z-index:10;background:var(--ink);color:white;padding:14px 22px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 12px 24px #102e5430;margin-top:20px}.selection-bar .btn{background:#ffffff15;color:white;border-color:#ffffff30}.selection-bar .btn.danger{color:#ffc0bd}.bottom-meta{display:flex;justify-content:space-between;margin-top:20px;font-size:12px;color:var(--muted)}dialog{padding:0;border:1px solid var(--line);border-radius:18px;box-shadow:0 25px 90px #0c233d40;width:min(650px,calc(100% - 32px));max-height:88vh;color:var(--ink)}dialog::backdrop{background:#0b23466e;backdrop-filter:blur(4px)}.modal-head{padding:24px 26px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.modal-body{padding:24px 26px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}#toasts{position:fixed;bottom:25px;right:25px;z-index:100;display:grid;gap:9px;max-width:440px}.toast{padding:14px 18px;background:var(--ink);color:white;border-radius:10px;box-shadow:0 8px 30px #102e5420;font-size:13px;animation:enter .18s ease}.toast.error{background:#a23d4c}.hidden{display:none!important}.spinner{width:16px;height:16px;border:2px solid #9ec8fe;border-top-color:var(--blue);border-radius:50%;display:inline-block;animation:spin 1s linear infinite}.skeleton{height:150px;border-radius:12px;background:linear-gradient(90deg,#e5eff9,#f6faff,#e5eff9);background-size:200%;animation:shimmer 1.4s infinite}.project-detail-tabs{border-bottom:1px solid var(--line);gap:15px;padding-bottom:8px}.project-detail-tabs .tab{padding:10px 15px}.media-video{width:100%;max-height:420px;background:#102e54;border-radius:12px}.artifact-editor{min-height:400px;font-family:ui-monospace,monospace;font-size:12px}.draft-note{font-size:12px;color:#8c652c;background:#fff6e9;padding:12px;border-radius:8px}.stats-inline{display:flex;gap:25px}.settings-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:24px}.setting-row{padding:17px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:20px}.setting-row:last-child{border:0}.health-light{font-size:12px;color:var(--green)}.footer{margin-top:45px;text-align:center;color:#8ea3b9;font-size:11px}.text-button{color:var(--blue);background:none;border:0;padding:0;font:inherit}.outline-illustration{color:#89add4;display:flex;align-items:center;gap:16px;padding:25px 0}.outline-illustration svg{width:40px;height:40px}.open-project{display:block}.page-enter{animation:enter .22s ease}@keyframes enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmer{to{background-position:-200% 0}}
@media(min-width:1600px){main{padding-top:44px}.cover{height:195px}}
@media(max-width:1150px){.topbar{gap:18px;padding:0 24px}.nav{gap:18px}.brand{font-size:19px}main{padding:28px 24px 50px}.profile-grid{grid-template-columns:repeat(2,1fr)}.analyzer-layout{grid-template-columns:1fr}.analyzer-side{display:grid;grid-template-columns:1fr 1fr;gap:20px}.toolbar{flex-wrap:wrap}.search{min-width:250px}.metrics{gap:10px}.metric{padding:18px 14px;gap:10px}.metric-icon{width:38px;height:38px}}
@media(max-width:850px){.topbar{height:auto;min-height:70px;flex-wrap:wrap;gap:15px;padding:14px 22px 0}.nav{order:3;flex-basis:100%;height:46px;overflow-x:auto;gap:28px}.top-actions{margin-left:auto}.project-grid{grid-template-columns:repeat(2,1fr)}.two-col,.settings-grid{grid-template-columns:1fr}.hero{padding:28px}.hero .metrics{grid-template-columns:repeat(2,1fr)}.hero-caption{display:none}.list-view .project-info{display:block}.list-view .card-bottom{margin-top:10px}.analyzer-options{grid-template-columns:repeat(3,1fr)}.page-head{align-items:flex-start}.metrics{grid-template-columns:repeat(2,1fr)}.steps{grid-template-columns:1fr}.analyzer-side{display:block}.toolbar>select{flex:1}.connection-bar{font-size:11px;align-items:flex-start;padding:10px 22px}}
@media(max-width:560px){main{padding:24px 16px 40px}.page-head{flex-wrap:wrap;gap:15px}h1{font-size:29px}.brand{font-size:19px}.brand svg{width:25px}.topbar{padding-left:16px;padding-right:16px}.workspace{padding:8px;font-size:12px}.top-actions{gap:3px}.nav{gap:24px;font-size:12px}.project-grid,.profile-grid,.form-grid,.result-grid{grid-template-columns:1fr}.cover{height:195px}.span2{grid-column:auto}.hero{padding:24px 20px}.hero h1{font-size:30px}.hero .metric{padding:12px;gap:9px}.metric strong{font-size:25px}.metric small{font-size:10px}.hero .metric-icon{display:none}.metric-icon{width:32px;height:32px}.panel-pad{padding:20px}.toolbar{padding:12px;gap:8px}.toolbar .search{flex-basis:100%}.toolbar select{font-size:11px;padding:10px 7px;min-width:0}.analyzer-options{grid-template-columns:repeat(2,1fr)}.source-tabs .tab{font-size:11px;padding:10px 5px}.btn{font-size:12px}.profile-grid{gap:15px}.page-head>.btn{width:100%}.tabs{gap:5px}.tab{font-size:11px;padding:8px 10px}.selection-bar{gap:10px;flex-wrap:wrap}.list-view .project-card{display:block}.list-view .cover{width:100%;height:150px}.modal-body,.modal-head{padding:20px}.result-grid img{max-height:300px}.connection-bar{flex-wrap:wrap;gap:5px}#toasts{left:16px;right:16px;bottom:16px}.page-head h1 .badge{vertical-align:middle}.profile-footer{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.scene.complete{background:#f4fcf8}.scene.failed{color:#b53f4b;border-color:#f3c5ca;background:#fff7f8}.scene.generating{color:#176bcc;border-color:#bdd9fb;background:#f2f7ff}.scene.pending{color:#687f99;background:#f8fbff}.scene strong{color:inherit}.scene small{overflow:hidden;text-overflow:ellipsis}.status-meta{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;margin:7px 0 2px;color:var(--muted);font-size:11px}.status-meta span{display:inline-flex;align-items:center;gap:5px}.production-error-details{margin-top:10px}.production-error-details summary{cursor:pointer;font-size:11px;font-weight:700;color:var(--muted)}.production-error-details pre{max-height:220px;overflow:auto;white-space:pre-wrap;word-break:break-word;margin:9px 0 0;padding:12px;border-radius:8px;background:#102e54;color:#dcecff;font:11px/1.5 ui-monospace,monospace}
.manual-upload{display:inline-grid;gap:6px;overflow:visible}.manual-upload>input.hidden{display:none!important}.manual-upload-status{display:block;max-width:260px;color:var(--muted);font-size:10px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.manual-upload.is-uploading{pointer-events:none}.manual-upload.is-uploading .btn{opacity:.7}
.file-row>span:nth-child(2){display:grid;gap:3px}.file-row>span:nth-child(2) small{margin:0}.file-actions{display:flex;align-items:center;gap:6px;margin-left:auto}.artifact-preview-modal{width:min(980px,calc(100% - 32px))}.artifact-preview-modal .modal-body{padding:0}.artifact-preview-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 26px;border-bottom:1px solid var(--line);background:#f7faff;color:var(--muted);font-size:12px}.artifact-preview-head>span{display:flex;align-items:center;gap:8px}.artifact-preview-body{max-height:70vh;overflow:auto;background:#fff}.artifact-reader{margin:0;padding:30px 34px;color:#213f62;font-size:13px;line-height:1.75}.code-reader{white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#0e2743;color:#d9ebff;min-height:300px}.markdown-reader{max-width:820px;margin:auto}.markdown-reader h1{font-size:28px;margin:6px 0 22px}.markdown-reader h2{font-size:21px;margin:28px 0 12px}.markdown-reader h3{font-size:16px;margin:22px 0 8px}.markdown-reader p{margin:0 0 10px}.markdown-reader .md-list{padding:3px 0 3px 18px}.markdown-reader .md-space{height:10px}.markdown-reader pre{background:#102e54;color:#dcecff;border-radius:10px;padding:16px;overflow:auto}
.image-slot-preview{width:100%;border:0;font:inherit;cursor:pointer;overflow:hidden}.image-slot-preview:focus-visible{outline:3px solid #6da8ff;outline-offset:-3px}.image-slot-preview img{transition:transform .24s,filter .24s}.image-slot-preview:hover img{transform:scale(1.025);filter:brightness(.82)}.image-open-hint{position:absolute!important;left:50%;top:50%;z-index:3;transform:translate(-50%,-40%);display:flex;align-items:center;gap:7px;padding:9px 13px;border-radius:22px;background:#fff;color:var(--blue);font-size:11px;font-weight:750;box-shadow:0 8px 24px #102e5440;opacity:0;transition:opacity .2s,transform .2s}.image-slot-preview:hover .image-open-hint,.image-slot-preview:focus-visible .image-open-hint{opacity:1;transform:translate(-50%,-50%)}.image-open-hint .icon{width:16px!important;height:16px!important}.image-gallery-modal{width:min(1040px,calc(100% - 32px))}.image-gallery{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:14px;align-items:center}.image-gallery-stage{position:relative;height:min(62vh,720px);min-height:440px;border-radius:13px;background:#102e54;display:grid;place-items:center;overflow:hidden}.image-gallery-stage img{width:100%;height:100%;object-fit:contain}.image-gallery-stage .gallery-loading{position:absolute;color:#dcecff}.image-prompt-panel{margin:18px 62px 0;padding:17px 20px;border:1px solid #cfe0f4;border-left:4px solid var(--blue);border-radius:10px;background:#f7faff}.image-prompt-panel>span{display:block;margin-bottom:7px;color:var(--blue);font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.image-prompt-panel p{margin:0;max-height:170px;overflow:auto;color:#294a6f;font-size:12px;line-height:1.65;white-space:pre-wrap}.image-prompt-panel.is-pending{border-left-color:#9aabc0}.image-missing{height:min(62vh,720px)}@media(max-width:650px){.image-gallery{grid-template-columns:32px minmax(0,1fr) 32px;gap:6px}.image-gallery-stage{min-height:360px}.image-prompt-panel{margin:14px 38px 0}}
#modal.image-gallery-modal{width:min(1000px,94vw);max-width:1000px}.image-gallery-stage{height:min(65vh,720px);min-height:0;background:#081a30}.image-gallery-stage img{display:block;width:100%;height:100%;object-fit:contain}.image-gallery-modal .gallery-footer{margin-top:18px}.image-gallery-modal .modal-body{overflow:hidden}@media(max-width:600px){.image-gallery-stage{height:min(58vh,560px);min-height:300px}}
.image-gallery-stage{width:min(100%,405px);height:min(65vh,720px);aspect-ratio:9/16;justify-self:center}.image-gallery-stage img{width:100%;height:100%;object-fit:cover}.image-gallery>.image-missing{width:min(100%,405px);height:min(65vh,720px);aspect-ratio:9/16;min-height:0;justify-self:center}.image-gallery-modal .modal-body{overflow:hidden}.image-gallery-modal .gallery-footer{position:relative;z-index:2;background:#fff}@media(max-width:600px){.image-gallery-stage,.image-gallery>.image-missing{width:min(100%,315px);height:min(58vh,560px)}}
.image-gallery [data-image-drop]{position:relative}.image-drop-hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);padding:8px 12px;border-radius:18px;background:#102e54d9;color:#fff;font-size:12px;font-weight:700;white-space:nowrap;pointer-events:none}.image-gallery [data-image-drop].is-dragging{outline:4px dashed #3387ff;outline-offset:-7px}.image-gallery [data-image-drop].is-dragging .image-drop-hint{background:#fff;color:#125ec1}.image-gallery.is-uploading{opacity:.55;pointer-events:none}
.manual-prompt-toggle{display:flex;align-items:flex-start;gap:12px;padding:15px 16px;border:1px solid #cfe0f4;border-radius:11px;background:#f7fbff;cursor:pointer}.manual-prompt-toggle input{width:18px;height:18px;margin-top:2px}.manual-prompt-toggle span{display:grid;gap:3px}.manual-prompt-toggle small{color:var(--muted);font-weight:400}.manual-prompts-panel{display:grid;gap:12px}.manual-prompt-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.manual-prompt-card{display:flex;align-items:center;gap:12px;width:100%;padding:16px;border:1px solid #cfe0f4;border-radius:11px;background:#fff;color:var(--ink);text-align:left}.manual-prompt-card:hover{border-color:#75aaec;background:#f7fbff}.manual-prompt-card.is-ready{border-color:#78caaa;background:#f2fbf7}.manual-prompt-card>span{display:grid;gap:4px;flex:1}.manual-prompt-card small{color:var(--muted)}.manual-prompt-card>.icon:first-child{color:var(--blue);width:25px;height:25px}.prompt-editor-layer{display:block;background:#fff}.prompt-editor-card{display:grid;gap:16px;width:100%;max-height:90vh;padding:26px;border-radius:16px;background:#fff}.prompt-file-picker{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border:1px dashed #8ab5e5;border-radius:9px;background:#f5faff;color:var(--blue);font-weight:700;cursor:pointer}.prompt-file-picker input{display:none}.prompt-source-editor{height:min(48vh,460px);min-height:260px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.55}#modal.prompt-editor-open{width:min(760px,calc(100% - 32px));max-height:92vh;overflow:hidden}#modal.prompt-editor-open .modal-head{display:none}#modal.prompt-editor-open .modal-body{padding:0}#modal.prompt-editor-open #new-project-form>:not(.prompt-editor-layer){display:none!important}@media(max-width:650px){.manual-prompt-grid{grid-template-columns:1fr}.prompt-editor-card{padding:20px}.prompt-source-editor{height:45vh;min-height:240px}}

#new-project-form{position:relative}

.story-folder-picker{cursor:pointer}.story-folder-picker input{display:none}.story-assets-panel{margin-top:2px}.story-assets-panel .notice{margin-top:0}


.story-reference-sections{display:grid;gap:24px;margin-top:22px}.story-reference-group{display:grid;gap:12px}.story-reference-group h3{margin:0}.story-reference-group+.story-reference-group{padding-top:22px;border-top:1px solid var(--line)}


.debug-profile-badge{background:#fff1e1;color:#d65c08;border:1px solid #ffd2b3}.debug-profile-badge>.icon{width:14px;height:14px}.debug-profile-option{align-items:flex-start}.debug-profile-option span{display:grid;gap:3px}.debug-profile-option small{font-weight:400;color:var(--muted);line-height:1.4}

.project-bulk-tools{display:flex;justify-content:flex-end;margin-top:14px}
/* Consistent scrollbars across the app, including modal and editor scroll areas. */
*{scrollbar-width:thin;scrollbar-color:#79a9e7 #edf4fc}
*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-track{background:#edf4fc;border-radius:999px}
*::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#8bbaf3,#5d97df);border:2px solid #edf4fc;border-radius:999px}
*::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#67a6f3,#347bd5)}
*::-webkit-scrollbar-corner{background:#edf4fc}

@media(max-width:1300px){.topbar .nav{min-width:0;overflow-x:auto;scrollbar-width:none}.topbar .nav::-webkit-scrollbar{display:none}.topbar .nav a{flex:none}.topbar .top-actions{flex:none}}
