.resources-page{min-height:calc(100% - 46 * var(--v2-u));margin:calc(18 * var(--v2-u)) calc(14 * var(--v2-u)) 0;padding:calc(30 * var(--v2-u)) calc(42 * var(--v2-u));overflow-y:auto;border:1px solid #e7eaf2;border-radius:calc(24 * var(--v2-u));background:#fff;box-shadow:0 calc(7 * var(--v2-u)) calc(22 * var(--v2-u)) #303d620e;animation:route-in .2s ease both}.resources-page--reader{padding:0;overflow:hidden}.resources-page--reader>.resources-content{height:100%;min-height:0;display:flex;flex-direction:column}.resources-page--reader .resource-document-toolbar{flex:0 0 auto;margin:0;padding:14px 28px;border-bottom:1px solid #edf0f5}.resources-page--reader .resource-reader{min-height:0;height:100%;flex:1 1 auto;overflow:hidden;border:0;border-radius:0}.resources-page--reader .resource-reader{grid-template-columns:minmax(270px,calc(370 * var(--v2-u))) minmax(0,1fr)}.resources-page--reader .resource-reader-sidebar{height:100%;max-height:none;padding:0;border-right:1px solid #e9ecf2;background:#fff}.resources-page--reader .resource-reader-sidebar-title{min-height:calc(62 * var(--v2-u));box-sizing:border-box;display:flex;align-items:center;padding:calc(21 * var(--v2-u)) calc(24 * var(--v2-u)) calc(20 * var(--v2-u));border-bottom:1px solid #eceef3;color:#303949;font-size:calc(22 * var(--v2-u))!important;font-weight:600;line-height:1.3}.resources-page--reader .resource-reader-sidebar nav{padding:calc(25 * var(--v2-u)) calc(28 * var(--v2-u))}.resources-page--reader .resource-reader-main{height:100%;max-height:none;padding:calc(48 * var(--v2-u)) calc(64 * var(--v2-u)) calc(70 * var(--v2-u))}.resources-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding-bottom:calc(22 * var(--v2-u));border-bottom:1px solid #edf0f5}.resource-eyebrow{color:#6d8fc5;font-size:calc(10 * var(--v2-u));font-weight:700;letter-spacing:.12em}.resources-heading h1{margin:calc(7 * var(--v2-u)) 0 0;color:#2b3039;font-size:calc(28 * var(--v2-u));font-weight:650}.resources-heading p{margin:calc(7 * var(--v2-u)) 0 0;color:#8a919e;font-size:calc(13 * var(--v2-u))}.resource-login-state{flex:0 0 auto;padding:calc(8 * var(--v2-u)) calc(12 * var(--v2-u));border-radius:calc(18 * var(--v2-u));color:#6f7c8d;background:#f5f7fb;font-size:calc(12 * var(--v2-u))}.resources-tabs{display:flex;gap:calc(12 * var(--v2-u));margin:calc(20 * var(--v2-u)) 0;border-bottom:1px solid #edf0f5}.resources-tab{position:relative;padding:0 calc(13 * var(--v2-u)) calc(13 * var(--v2-u));color:#747c88;background:transparent;font-size:calc(14 * var(--v2-u));cursor:pointer}.resources-tab:after{position:absolute;right:0;bottom:-1px;left:0;height:2px;background:#247cff;content:"";opacity:0}.resources-tab:hover,.resources-tab.active{color:#247cff}.resources-tab.active:after{opacity:1}.resources-content{min-height:calc(440 * var(--v2-u))}.resource-section-intro,.resource-list-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:calc(14 * var(--v2-u)) 0}.resource-section-intro h2,.resource-package-copy h2{margin:0;color:#343943;font-size:calc(19 * var(--v2-u))}.resource-section-intro p,.resource-package-copy p{margin:calc(7 * var(--v2-u)) 0 0;color:#89909c;font-size:calc(12 * var(--v2-u))}.resource-chapter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:calc(12 * var(--v2-u))}.resource-chapter{min-height:calc(78 * var(--v2-u));display:flex;align-items:center;gap:calc(14 * var(--v2-u));padding:calc(14 * var(--v2-u)) calc(16 * var(--v2-u));border:1px solid #edf0f5;border-radius:calc(11 * var(--v2-u));background:#fff;transition:border-color .16s ease,box-shadow .16s ease}.resource-chapter:hover{border-color:#d9e6fb;box-shadow:0 5px 16px #2a57990f}.resource-index{width:calc(38 * var(--v2-u));height:calc(38 * var(--v2-u));flex:0 0 auto;display:grid;place-items:center;border-radius:calc(10 * var(--v2-u));color:#247cff;background:#edf4ff;font-size:calc(12 * var(--v2-u));font-weight:650}.resource-chapter h3{margin:0;color:#454b55;font-size:calc(14 * var(--v2-u));font-weight:550}.resource-chapter p{margin:calc(5 * var(--v2-u)) 0 0;color:#9aa1ac;font-size:calc(11 * var(--v2-u));line-height:1.5}.resource-package-card{display:flex;align-items:center;justify-content:space-between;gap:calc(20 * var(--v2-u));padding:calc(22 * var(--v2-u));border:1px solid #e8edf5;border-radius:calc(14 * var(--v2-u));background:linear-gradient(110deg,#f8faff,#fff)}.resource-package-copy{min-width:0}.resource-package-copy h2{margin-top:calc(6 * var(--v2-u))}.resource-package-copy small{display:block;margin-top:calc(8 * var(--v2-u));color:#a0a6b0;font-size:calc(11 * var(--v2-u))}.resource-claim-button{min-width:calc(110 * var(--v2-u));height:calc(39 * var(--v2-u));flex:0 0 auto;padding:0 calc(18 * var(--v2-u));border-radius:calc(20 * var(--v2-u));color:#fff;background:#247cff;font-size:calc(13 * var(--v2-u));cursor:pointer;transition:background .16s ease,transform .16s ease}.resource-claim-button:hover{background:#176be8;transform:translateY(-1px)}.resource-claim-button.claimed,.resource-claim-button:disabled{color:#6f8c79;background:#eaf4ed;cursor:default;transform:none}.resource-list-heading{margin-top:calc(22 * var(--v2-u));margin-bottom:calc(10 * var(--v2-u));color:#555d69;font-size:calc(13 * var(--v2-u))}.resource-list-heading span{color:#9aa1ac;font-size:calc(11 * var(--v2-u))}.resource-list{overflow:hidden;border:1px solid #edf0f5;border-radius:calc(10 * var(--v2-u))}.resource-row{min-height:calc(45 * var(--v2-u));display:grid;grid-template-columns:calc(52 * var(--v2-u)) minmax(0,1fr) auto;align-items:center;gap:calc(12 * var(--v2-u));padding:calc(7 * var(--v2-u)) calc(14 * var(--v2-u));border-bottom:1px solid #f0f2f6}.resource-row:last-child{border-bottom:0}.resource-row-index{color:#a2a8b2;font-size:calc(11 * var(--v2-u));font-variant-numeric:tabular-nums}.resource-row-copy{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px}.resource-row-copy strong{overflow:hidden;color:#545c68;font-size:calc(12 * var(--v2-u));font-weight:500;text-overflow:ellipsis;white-space:nowrap}.resource-row-copy span,.resource-row-status{color:#9aa1ac;font-size:calc(11 * var(--v2-u));white-space:nowrap}.resource-pagination{display:flex;align-items:center;justify-content:center;gap:calc(14 * var(--v2-u));padding:calc(14 * var(--v2-u)) 0;color:#858d99;font-size:calc(11 * var(--v2-u))}.resource-pagination button{padding:calc(6 * var(--v2-u)) calc(10 * var(--v2-u));border:1px solid #e8ecf2;border-radius:calc(6 * var(--v2-u));color:#626b78;background:#fff;font-size:calc(11 * var(--v2-u));cursor:pointer}.resource-pagination button:disabled{color:#b7bdc6;background:#f8f9fb;cursor:default}.resources-footnote{margin:calc(15 * var(--v2-u)) 0 0;color:#a0a6af;font-size:calc(11 * var(--v2-u));text-align:right}.resources-loading,.resources-empty,.resources-error{min-height:calc(300 * var(--v2-u));display:grid;place-items:center;color:#8b93a0;font-size:calc(13 * var(--v2-u))}.resources-error{color:#c35656}.resources-error .resource-retry,.resources-error .resource-login-state{min-height:34px;padding:0 14px;border:1px solid #d9e5f5;border-radius:9px;color:#3578d8;background:#fff;font-size:12px;cursor:pointer}.resources-error .resource-retry:hover,.resources-error .resource-login-state:hover{border-color:#a8c9f3;background:#f5f9ff}.resource-document-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:16px;margin:18px 0 28px}.resource-document-card{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px 14px;padding:22px;border:1px solid #e5ebf4;border-radius:14px;background:linear-gradient(145deg,#f9fbff,#fff);box-shadow:0 8px 24px #294a7d0b}.resource-document-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#e9f2ff;font-size:22px}.resource-document-card h3{margin:2px 0 8px;color:#25354d;font-size:17px;line-height:1.5}.resource-document-card p{margin:0;color:#8794a7;font-size:12px}.resource-document-card button{grid-column:2;justify-self:start;margin-top:8px;padding:9px 16px;border-radius:8px;color:#fff;background:#2878ee;font-size:13px;font-weight:650;cursor:pointer}.resource-document-card button:hover{background:#1769df}.resource-document-card.is-membership-locked{border-color:#e9e8f4;background:linear-gradient(145deg,#fbfaff,#fff)}.resource-membership-gate{width:min(100%,720px);margin:clamp(24px,6vh,72px) auto;padding:clamp(28px,5vw,56px);box-sizing:border-box;border:1px solid #e8edf6;border-radius:24px;background:radial-gradient(ellipse at top right,rgba(91,139,231,.11),transparent 42%),linear-gradient(145deg,#fff,#fbfcff);box-shadow:0 18px 55px #233a6617;text-align:center}.resource-gate-mark{width:54px;height:54px;display:grid;place-items:center;margin:0 auto 18px;border:1px solid rgba(56,120,235,.2);border-radius:18px;color:#286fe0;background:linear-gradient(145deg,#eef5ff,#fff);box-shadow:0 8px 24px #3068c51f;font-size:15px;font-weight:800;letter-spacing:.06em}.resource-gate-eyebrow{color:#8192ad;font-size:10px;font-weight:700;letter-spacing:.16em}.resource-gate-exclusive{margin:18px 0 9px;color:#de8b30;font-size:13px;font-weight:700}.resource-membership-gate h1{max-width:570px;margin:0 auto;color:#24334c;font-size:clamp(22px,3vw,30px);line-height:1.4}.resource-gate-description{margin:12px auto 0;color:#8190a6;font-size:14px;line-height:1.8}.resource-membership-gate ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;width:min(100%,420px);margin:28px auto;padding:0;list-style:none;text-align:left}.resource-membership-gate li{position:relative;padding-left:25px;color:#465772;font-size:14px}.resource-membership-gate li:before{position:absolute;left:0;top:1px;width:17px;height:17px;display:grid;place-items:center;border-radius:50%;color:#138b69;background:#e8f7f1;content:"✓";font-size:11px;font-weight:800}.resource-gate-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.resource-gate-purchase-blocked{flex-basis:100%;margin:0;color:#75859d;font-size:13px;line-height:1.6;text-align:center}.resource-gate-upgrade,.resource-gate-back{min-height:44px;padding:0 22px;border-radius:11px;font-size:14px;font-weight:650;cursor:pointer}.resource-gate-upgrade{color:#fff;background:linear-gradient(110deg,#337ef0,#4c75e6);box-shadow:0 8px 18px #3670dd33}.resource-gate-upgrade:hover{filter:brightness(.97)}.resource-gate-upgrade:disabled{opacity:.72;cursor:wait}.resource-gate-back{border:1px solid #e0e7f1;color:#61728d;background:#fff}.resource-gate-error{margin:14px 0 0;color:#c64b55;font-size:13px}.resource-gate-signup{margin:13px 0 0;color:#8190a6;font-size:13px}.resource-document-toolbar{display:flex;align-items:center;gap:16px;margin:8px 0 16px;color:#65758d;font-size:13px}.resource-document-toolbar button{padding:8px 12px;border:1px solid #dce7f8;border-radius:8px;color:#286dd2;background:#f4f8ff;cursor:pointer}.resource-document-toolbar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.resource-reader{min-height:min(78vh,920px);display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);overflow:hidden;border:1px solid #e8edf5;border-radius:16px;background:#fff}.resource-reader-sidebar{position:sticky;top:0;align-self:start;max-height:78vh;overflow:auto;padding:18px 14px;border-right:1px solid #e8edf5;background:#fafbfe}.resource-reader-sidebar-title{padding:0 8px 12px;color:#8f959e;font-size:12px;font-weight:500;line-height:20px}.resource-tree,.resource-tree ul{margin:0;padding:0;list-style:none}.resource-tree ul{padding-left:14px}.resource-tree-row{display:flex;align-items:center;gap:2px;min-width:0}.resource-tree-toggle,.resource-tree-spacer{width:16px;height:28px;flex:0 0 16px;display:grid;place-items:center;border:0;box-shadow:none;padding:0;color:#8f959e;background:transparent;font-size:11px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.resource-tree-toggle{cursor:pointer}.resource-tree-link{display:block;min-width:0;flex:1;min-height:30px;padding:5px 8px;border:0;border-radius:4px;box-shadow:none;color:#646a73;background:transparent;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.resource-tree-link:hover,.resource-tree-link.active{color:#176be8;background:#eaf2ff}.resource-tree-item.level-1>.resource-tree-row .resource-tree-link{color:#373c43;font-weight:500}.resource-reader .resource-tree-item .resource-tree-row .resource-tree-link.active{color:#3370ff;background:#eef3ff}.resource-tree-link:focus-visible,.resource-tree-toggle:focus-visible{outline:2px solid #3370ff;outline-offset:-2px}.resource-reader-main{min-width:0;max-height:78vh;overflow:auto;padding:26px clamp(18px,2.5vw,40px) 60px;scroll-behavior:smooth}.resource-reader-title{padding-bottom:20px;border-bottom:0}.resource-reader-title span{color:#8491a5;font-size:12px}.resource-reader-title h1{margin:8px 0;color:#26364d;font-size:clamp(22px,2.1vw,30px);line-height:1.35}.resource-reader-title p{margin:0;color:#99a2b0;font-size:12px}.resource-reader-body{color:#343b48;font-size:15px;line-height:1.85;overflow-wrap:anywhere}.resource-reader-body h1,.resource-reader-body h2,.resource-reader-body h3,.resource-reader-body h4{color:#26364d;line-height:1.45;scroll-margin-top:20px}.resource-reader-body h1{margin:36px 0 16px;font-size:25px}.resource-reader-body h2{margin:30px 0 12px;font-size:21px}.resource-reader-body h3{margin:24px 0 10px;font-size:18px}.resource-reader-body h4{margin:20px 0 8px;font-size:16px}.resource-reader-paragraph{margin:12px 0;white-space:pre-wrap}.resource-reader-body a{color:#247cff;text-decoration:underline;text-underline-offset:2px}.resource-reader-list{margin:10px 0 10px 24px;padding-left:18px}.resource-reader-list li{padding-left:3px}.resource-reader-quote,.resource-reader-callout{margin:18px 0;padding:14px 18px;border-left:3px solid #73a9ff;border-radius:4px 10px 10px 4px;background:#f4f8ff}.resource-reader-quote p,.resource-reader-callout p{margin:5px 0}.resource-reader-code{overflow:auto;padding:16px;border-radius:9px;color:#e5edff;background:#202b3c;font-size:13px;line-height:1.65;white-space:pre-wrap}.resource-reader-divider{margin:24px 0;border:0;border-top:1px solid #e8edf4}.resource-reader-figure{margin:20px auto;text-align:center}.resource-reader-figure img,.resource-reader-figure video{display:block;max-width:100%;max-height:720px;margin:0 auto;border-radius:9px;object-fit:contain}.resource-reader-figure figcaption{margin-top:7px;color:#8b95a5;font-size:12px}.resource-reader-table-wrap{max-width:100%;overflow:auto;margin:20px 0}.resource-reader-table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.6}.resource-reader-table td{min-width:90px;padding:9px 11px;border:1px solid #dfe6ef;vertical-align:top}.resource-reader-cell p{margin:0}.resource-reader-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px}.resource-reader-audio{display:grid;gap:9px;margin:18px 0;padding:14px;border:1px solid #e5eaf2;border-radius:10px;background:#fafbfe}.resource-reader-audio audio{width:min(100%,560px)}.resource-reader-attachment{padding:12px;border:1px solid #e5eaf2;border-radius:8px;background:#fafbfe}.resource-reader-body{max-width:1280px;margin:0 auto}.resource-reader-figure img{max-width:100%;height:auto}.resource-image-open{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}.resource-image-open img{width:auto}.resource-video-card{width:min(100%,900px);margin:20px auto}.resource-video-card video{display:block;width:100%;aspect-ratio:16 / 9;max-height:680px;background:#101721;object-fit:contain}.resource-video-card.portrait video{width:auto;max-width:100%;height:min(70vh,680px);aspect-ratio:9 / 16}.resource-video-caption{display:flex;align-items:center;justify-content:space-between;gap:12px}.resource-video-expand{flex:0 0 auto;padding:5px 10px;border:1px solid #dce7f8;border-radius:7px;color:#176be8;background:#f4f8ff;cursor:pointer}.resource-media-table{display:grid;gap:20px;margin:28px 0}.resource-media-row{min-width:0;display:grid;grid-template-columns:minmax(0,50fr) minmax(0,30fr) minmax(0,20fr);gap:14px;padding:18px;border:1px solid #dce5f1;border-radius:14px;background:#fbfcff}.resource-media-cell{min-width:0;overflow-wrap:anywhere}.resource-media-cell-label{margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid #e3eaf4;color:#395077;font-size:14px}.resource-cell-content{min-width:0}.resource-cell-content>:first-child{margin-top:0}.resource-cell-content>:last-child{margin-bottom:0}.resource-media-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}.resource-media-gallery .resource-reader-figure{margin:0}.resource-media-gallery img{width:100%;height:auto;max-height:420px;object-fit:contain;background:#fff}.resource-media-row:has(.resource-video-card),.resource-media-table.has-video .resource-media-row{display:block}.resource-media-table.has-video .resource-media-cell{margin:0;padding:18px 4px;border:0;border-bottom:1px solid #e8edf5;border-radius:0;background:transparent}.resource-media-table.has-video .resource-media-cell:first-child{padding-top:4px}.resource-media-table.has-video .resource-media-cell:last-child{padding-bottom:4px;border-bottom:0}.resource-media-table.has-video .resource-media-cell-label{color:#243b5c;font-size:15px}.resource-media-table .resource-video-card{width:min(100%,900px);margin:16px auto}.resource-media-table .resource-video-card video{width:100%;min-width:min(100%,640px)}.resource-media-table .resource-video-card.portrait video{width:auto;min-width:0;max-width:100%;height:min(70vh,680px);aspect-ratio:9 / 16}.resource-reader-table th,.resource-reader-table td{padding:10px 13px;border:1px solid #dfe6ef;vertical-align:top}.resource-reader-table .resource-video-card{min-width:min(100%,640px)}.resource-lightbox{position:fixed;z-index:9999;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;padding:60px 24px 24px;background:#0d1421e6}.resource-lightbox img,.resource-lightbox video{display:block;max-width:min(94vw,1320px);max-height:78vh;object-fit:contain}.resource-lightbox video{width:min(94vw,1100px);aspect-ratio:16 / 9;background:#000}.resource-lightbox video.portrait{width:auto;height:78vh;aspect-ratio:9 / 16}.resource-lightbox-close,.resource-lightbox-fullscreen{border:1px solid rgba(255,255,255,.65);border-radius:9px;color:#fff;background:#141e2db3;cursor:pointer}.resource-lightbox-close{position:absolute;top:18px;right:22px;width:38px;height:38px;font-size:26px}.resource-lightbox-fullscreen{padding:8px 16px;font-size:14px}@media (max-width: 1180px){.resource-media-row{display:block}.resource-media-cell{margin-bottom:18px}.resource-media-cell:last-child{margin-bottom:0}}@media (max-width: 820px){.resource-reader,.resources-page--reader .resource-reader{grid-template-columns:1fr}.resource-reader-sidebar{position:static;max-height:240px;border-right:0;border-bottom:1px solid #e8edf5}.resource-reader-main{max-height:none;padding:22px 18px 42px}.resources-page--reader .resource-reader-sidebar{height:auto;max-height:36svh;padding:0;border-right:0;border-bottom:1px solid #e9ecf2}.resources-page--reader .resource-reader-sidebar-title{min-height:54px;padding:14px 16px;font-size:18px!important}.resources-page--reader .resource-reader-sidebar nav{padding:14px 16px}.resources-page--reader .resource-reader-main{height:auto;padding:28px 24px 48px}}@media (max-width: 760px){.resources-page{margin:12px;padding:22px 18px;border-radius:17px}.resources-page--reader{padding:0;overflow:visible}.resources-page--reader>.resources-content{height:auto}.resources-page--reader .resource-reader{height:auto;flex:initial}.resources-page--reader .resource-document-toolbar{padding:12px 16px}.resources-page--reader .resource-reader-main{padding:24px 18px 42px}.resources-heading{align-items:flex-start;flex-direction:column}.resources-heading h1{font-size:24px}.resources-heading p,.resource-package-copy p{font-size:12px}.resource-login-state{align-self:flex-start}.resources-tabs{gap:4px}.resources-tab{padding:0 10px 12px;font-size:13px}.resource-chapter-grid{grid-template-columns:1fr;gap:9px}.resource-chapter{min-height:70px;padding:12px}.resource-chapter h3{font-size:13px}.resource-package-card{align-items:flex-start;flex-direction:column;padding:17px}.resource-claim-button{width:100%}.resource-row{grid-template-columns:38px minmax(0,1fr);gap:8px;padding:8px 10px}.resource-row-copy{align-items:flex-start;flex-direction:column;gap:3px}.resource-row-status{grid-column:2}.resources-footnote{text-align:left}}.agent-tutorials-page{--v2-u:1px}.agent-tutorial-tabs{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap}.agent-tutorial-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}.agent-tutorial-grid .card{padding:24px}.agent-tutorial-grid h2{font-size:20px}.agent-tutorial-empty{padding:36px;text-align:center}.agent-reader-host .resource-reader{height:calc(100vh - 250px);min-height:480px;display:grid;grid-template-columns:248px minmax(0,1fr)}.agent-reader-host .resource-reader-sidebar,.agent-reader-host .resource-reader-main{overflow:auto;max-height:100%;height:auto}.agent-reader-host .resource-reader-main{padding:36px 44px 64px}.agent-reader-host .resource-reader-sidebar{padding:22px 12px;background:#fff;scrollbar-width:thin}.agent-reader-host video,.agent-reader-host img{max-width:100%}@media (max-width:760px){.agent-reader-host .resource-reader{grid-template-columns:1fr;height:auto}.agent-reader-host .resource-reader-sidebar{max-height:220px}.agent-reader-host .resource-reader-main{max-height:70vh;padding:18px}}.agent-tutorial-switcher{display:flex;align-items:center;gap:10px;font-size:13px}.agent-tutorial-switcher select{max-width:360px;min-height:36px;padding:6px 10px;border:1px solid #dce4f0;border-radius:8px;background:#fff;font:inherit}@media (max-width:760px){.agent-tutorial-switcher{flex-wrap:wrap}.agent-tutorial-switcher select{width:100%;max-width:100%}}.agent-reader-host .resource-reader{border-radius:8px;border-color:#e5e6eb;min-height:460px}.agent-reader-host .resource-reader-main{scrollbar-width:thin;scrollbar-color:#d5d8de transparent}.agent-reader-host .resource-reader-title,.agent-reader-host .resource-reader-body{max-width:800px;margin-left:auto;margin-right:auto}.agent-reader-host .resource-reader-title{padding-bottom:16px}.agent-reader-host .resource-reader-title h1{margin:0 0 8px;font-size:28px;font-weight:600;line-height:1.5;color:#1f2329}.agent-reader-host .resource-reader-body{font-size:15px;line-height:1.75;color:#1f2329}.agent-reader-host .resource-reader-body h1{font-size:24px;font-weight:600;margin:32px 0 14px}.agent-reader-host .resource-reader-body h2{font-size:20px;font-weight:600;margin:28px 0 12px}.agent-reader-host .resource-reader-body h3{font-size:18px;font-weight:600;margin:24px 0 10px}.agent-reader-host .resource-reader-paragraph{margin:8px 0}.agent-reader-host .resource-reader-figure{margin:16px auto}.agent-reader-host .resource-reader-figure img{border-radius:4px}@media (max-width:760px){.agent-reader-host .resource-reader{grid-template-columns:1fr}.agent-reader-host .resource-reader-sidebar{padding:14px 12px;max-height:200px}.agent-reader-host .resource-reader-main{padding:24px 20px 40px}.agent-reader-host .resource-reader-title h1{font-size:24px}}.h3-studio{max-width:1200px;margin:auto;padding:28px 24px 60px;color:#102544}.h3-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.h3-header h1{font-size:26px}.h3-note{color:#64748b;font-size:13px}.h3-inputs,.h3-results{padding:24px;margin-top:20px}.h3-studio h2{font-size:19px}.h3-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}.h3-studio select{padding:8px;border:1px solid #dce3ee;border-radius:8px;background:#fff}.h3-images{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}.h3-images>div{border:1px solid #e2e8f0;border-radius:12px;padding:12px}.h3-images strong{display:block;margin-bottom:8px}.h3-images img,.h3-placeholder{width:100%;height:140px;object-fit:contain;border-radius:8px;background:#f8fafc}.h3-placeholder{display:grid;place-items:center;color:#94a3b8}.h3-studio textarea{width:100%;box-sizing:border-box;margin-top:10px;padding:14px;line-height:1.6;border:1px solid #cbd5e1;border-radius:10px;resize:vertical;font-family:inherit}.h3-review{padding:16px;background:#f1f5ff;border-radius:10px}.h3-studio pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.h3-result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:20px 0}.h3-result-grid img,.h3-result-grid video{width:100%;max-height:320px;object-fit:contain;background:#0f172a}.h3-studio details{margin:14px 0}.h3-studio summary{cursor:pointer}.h3-studio .alert{margin-top:14px}@media (max-width:650px){.h3-images{grid-template-columns:repeat(2,1fr)}.h3-studio,.h3-inputs,.h3-results{padding:16px}.h3-header h1{font-size:22px}}.h3-image-dropzone{border:1px dashed #dce3ec;border-radius:10px;cursor:pointer;outline:none;height:140px;box-sizing:border-box;overflow:hidden}.h3-image-dropzone img,.h3-image-dropzone .h3-placeholder{display:grid;height:100%;border-radius:9px}.h3-image-dropzone .h3-image-help{text-align:center;margin:0;padding:8px;line-height:1.8}.h3-image-dropzone:focus,.h3-image-dropzone.is-dragging{border-color:var(--brand,#2459df);background:var(--surface,#f1f5ff)}.h3-image-dropzone[aria-disabled=true]{cursor:default;opacity:.7}.h3-image-dropzone[draggable=true]{cursor:grab;transition:border-color .18s,box-shadow .18s,opacity .18s}.h3-image-dropzone[draggable=true]:active{cursor:grabbing}.h3-image-dropzone.is-moving{opacity:.5}.h3-image-dropzone.is-dragging{box-shadow:0 0 0 3px #2459df21}.h3-image-help{display:block;color:var(--ink-3,#64748b);font-size:12px;line-height:1.5;margin:8px 0}.h3-image-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;margin-bottom:8px}.h3-image-slot>small{display:block;line-height:1.5}.h3-workspace{border:0;padding:0;margin:0;min-width:0}.h3-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-left:auto}.h3-mode-control{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;white-space:nowrap}.h3-mode-control select{height:40px;min-width:128px;font-weight:400}.h3-header-actions>.btn{min-height:40px}@media (max-width:650px){.h3-header-actions{width:100%;justify-content:space-between;gap:10px}.h3-mode-control select{min-width:110px}}.h3-task-metrics .h3-segment-remaining{font-size:13px;line-height:1.6;color:var(--ink-2,#64748b)}.h3-produced-link{font-size:13px;color:var(--brand,#2459df);text-decoration:none}.h3-produced-link:hover{text-decoration:underline}#studio-results{scroll-margin-top:100px}.h3-stop-dialog{border:0;margin:auto;color:var(--ink,#102544)}.h3-stop-dialog:not([open]){display:none}.h3-stop-dialog::backdrop{background:#0f172a80;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.h3-prompt-editor.is-dragging textarea{border-color:var(--brand,#2459df);background:#f5f8ff;box-shadow:0 0 0 2px #2459df1a}.h3-prompt-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}.h3-prompt-import{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.h3-prompt-import .btn{min-width:96px;height:34px;padding:0 12px;font-size:13px}.h3-prompt-import .h3-field-hint{margin:0}.h3-header .h3-creation-title{font-size:24px}.h3-studio .h3-inputs>h2,.h3-studio .h3-results>h2{font-size:18px;font-weight:700}.h3-step-heading{margin:24px 0 12px}.h3-step-heading h3{display:flex;align-items:center;gap:8px;margin:0;font-size:16px;font-weight:600;line-height:1.5}.h3-step-number{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;border-radius:50%;background:#eaf0ff;color:var(--brand,#2459df);font-size:13px;font-weight:600}.h3-step-heading p,.h3-field-hint{margin:6px 0 0;color:var(--ink-2,#64748b);font-size:13px;line-height:1.7}.h3-inputs .h3-row>label{font-size:14px;font-weight:600}.h3-inputs select,.h3-inputs input{font-weight:400}.h3-field-label{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:600;line-height:1.6}.h3-required-label{padding:1px 6px;border-radius:4px;background:#fff0ef;color:#c1372d;font-size:12px;font-weight:500}.h3-step-heading+.h3-images{margin-top:12px}.h3-results>h2+.h3-field-hint{margin-top:-4px;margin-bottom:16px}@media (max-width:650px){.h3-header .h3-creation-title{font-size:22px}}.h3-studio .h3-prompt-check{width:auto;min-width:104px;padding:0 14px;flex:none;white-space:nowrap;justify-content:center;gap:6px}.h3-check-icon{display:inline-block;flex:none;width:16px;height:16px;box-sizing:border-box}.h3-action-feedback{flex:0 1 240px;min-height:20px;line-height:20px;font-size:13px;color:var(--ink-2,#64748b)}.h3-check-report{margin:16px 0;border:1px solid var(--line,#dce3ee);border-radius:12px;padding:16px;background:var(--surface,#fff)}.h3-check-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.h3-check-summary h3{margin:0 0 6px;font-size:16px}.h3-check-summary p{margin:0;color:var(--ink-2,#64748b)}.h3-check-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.h3-check-details{max-height:420px;overflow:auto;overscroll-behavior:contain;margin-top:14px;border-top:1px solid var(--line,#dce3ee);padding-top:8px}.h3-check-details[hidden]{display:none}.h3-check-explanation{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.h3-check-category{border:1px solid var(--line,#dce3ee);border-radius:8px;padding:10px}.h3-check-category>summary{font-weight:600}.h3-check-occurrences{max-height:280px;overflow:auto;overscroll-behavior:contain;padding-right:8px}.h3-check-occurrences:focus-visible{outline:2px solid var(--brand,#2459df);outline-offset:2px}.h3-check-group>summary{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.h3-check-count{margin-left:8px;color:var(--ink-2,#64748b);white-space:nowrap}.h3-check-group ul{padding-left:22px}.h3-check-group li{padding:8px 0;font-size:13px;overflow-wrap:anywhere}.h3-check-group li p{margin:6px 0}.h3-review>details{max-height:320px;overflow:auto;overscroll-behavior:contain}.h3-studio .h3-generate-button{width:auto;min-width:120px;padding:0 20px;flex:none;white-space:nowrap;justify-content:center;gap:8px}.h3-generate-button .machine-creation-spinner{border-color:#fff6;border-top-color:currentColor}.h3-studio .h3-generate-button.is-generating{position:relative;overflow:hidden;isolation:isolate;opacity:1}.h3-generate-button.is-generating:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;background:linear-gradient(100deg,transparent 20%,rgba(255,255,255,.2) 50%,transparent 80%);transform:translate(-100%);animation:h3-generation-shimmer 2.8s ease-in-out infinite}@keyframes h3-generation-shimmer{0%,15%{transform:translate(-100%)}85%,to{transform:translate(100%)}}@media (prefers-reduced-motion:reduce){.h3-generate-button.is-generating:after{animation:none;display:none}}.h3-generation-guidance{min-height:0;line-height:20px;font-size:13px;color:var(--ink-2,#64748b);overflow-wrap:anywhere;margin:8px 0}.h3-action-feedback{display:inline-flex;align-items:center;gap:6px}.h3-analysis-hourglass{flex:none;font-size:16px;line-height:20px}.h3-task-progress{margin:16px 0;padding:18px;border:1px solid var(--line,#dce3ee);border-radius:12px;background:var(--surface,#f8faff)}@property --h3-border-angle{syntax:"<angle>";inherits:false;initial-value:0deg}.h3-task-progress.is-generating{position:relative;isolation:isolate}.h3-task-progress.is-generating:before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;padding:2px;border-radius:inherit;pointer-events:none;background:conic-gradient(from var(--h3-border-angle),transparent 0deg 235deg,#c4b5fd 275deg,#7954ed 305deg,#22c8f3 335deg,transparent 360deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;filter:drop-shadow(0 0 3px rgba(94,104,245,.3));animation:h3-border-orbit 24s linear infinite}@keyframes h3-border-orbit{to{--h3-border-angle:360deg}}@media (prefers-reduced-motion:reduce){.h3-task-progress.is-generating:before{animation:none}}.h3-task-progress-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.h3-task-progress-heading>span:last-child{margin-left:auto;color:var(--ink-2,#64748b);font-size:13px}.h3-task-phases{display:flex;gap:8px;flex-wrap:wrap;list-style:none;margin:16px 0;padding:0}.h3-task-phases li{padding:6px 10px;background:var(--bg,#eef2f7);border-radius:8px;font-size:13px;color:var(--ink-2,#64748b)}.h3-task-phases .is-current{color:var(--brand,#2459df);background:#e8efff;font-weight:600}.h3-task-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.h3-task-metrics>div{display:flex;flex-direction:column;gap:6px}.h3-task-metrics span,.h3-progress-note{color:var(--ink-2,#64748b);font-size:12px}.h3-task-metrics strong{font-size:14px;overflow-wrap:anywhere;font-weight:500}.h3-real-progress{margin-top:16px}.h3-real-progress label{font-size:13px}.h3-real-progress progress{display:block;width:100%;height:10px;margin-top:8px;accent-color:var(--brand,#2459df)}.h3-progress-note{margin:12px 0 0;line-height:1.6}.h3-task-followup{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}.h3-task-followup span{font-size:12px;color:var(--ink-2,#64748b)}.h3-result-media video,.h3-result-media img{border-radius:8px}.h3-result-media p{font-size:13px;color:var(--ink-2,#64748b)}.h3-real-progress .h3-progress-native{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.h3-progress-track{height:14px;margin-top:12px;padding:2px;box-sizing:border-box;overflow:hidden;border:1px solid #dbe5fa;border-radius:999px;background:linear-gradient(180deg,#e8eef8,#f3f6fc);box-shadow:inset 0 1px 3px #23427d1a}.h3-progress-fill{position:relative;height:100%;overflow:hidden;border-radius:inherit;background:linear-gradient(90deg,#3258f5,#7954ed 48%,#22c8f3);box-shadow:0 0 12px #4f68f473,inset 0 1px 1px #ffffff8c;transition:width .55s ease}.h3-progress-fill:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:repeating-linear-gradient(115deg,transparent 0 12px,rgba(255,255,255,.17) 12px 20px);background-size:44px 100%}.h3-progress-fill:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(100deg,transparent 25%,rgba(255,255,255,.65) 50%,transparent 75%);transform:translate(-100%)}.h3-progress-track.is-active .h3-progress-fill:before{animation:h3-progress-flow 1.5s linear infinite}.h3-progress-track.is-active .h3-progress-fill:after{animation:h3-progress-glint 2.6s ease-in-out infinite}.h3-terminal-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.h3-terminal-heading h2{margin:0 0 6px}.h3-terminal-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.h3-terminal-actions label{display:flex;align-items:center;gap:6px;font-size:13px;color:#536681}.h3-terminal-output{margin-top:16px;padding:18px 20px;max-height:380px;min-height:160px;overflow:auto;border:1px solid #263651;border-radius:10px;background:#101827;color:#b7e5c3;font:12px/1.8 Consolas,Cascadia Code,monospace;white-space:pre-wrap;overflow-wrap:anywhere;-moz-tab-size:4;tab-size:4;scrollbar-color:#4c607e #101827}.h3-terminal-output .is-error{color:#ff9b9b}.h3-terminal-output .is-warning{color:#f2d48b}.h3-terminal-empty{color:#8c9bb0}.h3-terminal-section>.h3-field-hint{margin-top:12px}@keyframes h3-progress-flow{to{background-position:44px 0}}@keyframes h3-progress-glint{0%,10%{transform:translate(-100%)}90%,to{transform:translate(100%)}}@media (prefers-reduced-motion:reduce){.h3-progress-fill{transition:none}.h3-progress-track.is-active .h3-progress-fill:before,.h3-progress-track.is-active .h3-progress-fill:after{animation:none}.h3-progress-fill:after{display:none}}.h3-final-video{margin:24px 0;padding:24px 0;border-top:1px solid var(--line,#dce3ee);border-bottom:1px solid var(--line,#dce3ee)}.h3-final-video h3{margin:0 0 8px;font-size:20px}.h3-final-video>p{margin:0 0 18px;color:var(--ink-2,#64748b)}.h3-final-video video{display:block;width:100%;aspect-ratio:16/9;max-height:680px;object-fit:contain;background:#0f172a}.h3-final-video-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-top:16px}.h3-machine-identity{display:flex;align-items:center;flex-wrap:wrap;gap:6px 24px;font-size:13px;line-height:1.6}.h3-provider-identity{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}.h3-provider-id{-webkit-user-select:text;user-select:text;overflow-wrap:anywhere}.h3-provider-identity>span{min-width:0}.h3-provider-identity [role=status]{color:var(--ink-2)}.h3-machine-specs{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 24px;margin-top:12px;font-size:13px;line-height:1.6}.h3-advanced-info>p{margin:8px 0 0;font-size:13px;line-height:1.6}.h3-creation-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.h3-creation-origin{display:inline-flex;align-items:center;font-size:16px;font-weight:500;white-space:nowrap}.h3-creation-origin .h3-origin-number{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:1.3em;height:1.3em;padding:0 .12em;margin-left:4px;border:1px solid currentColor;border-radius:50%;font-size:1em;font-weight:inherit;line-height:1;font-variant-numeric:tabular-nums}.h3-task-progress{padding:22px 24px;background:linear-gradient(145deg,#fff 55%,#f6f8ff);box-shadow:0 3px 16px #1a356e09}.h3-task-progress.is-complete{border-color:#d4e9e2;background:linear-gradient(125deg,#fff 45%,#f0faf6)}.h3-task-progress-heading>strong{font-size:16px;font-weight:650}.h3-status-emblem{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#eaf0ff;color:#3560e7;font-size:18px}.h3-status-emblem.is-complete{background:#dcf5e9;color:#15835c}.h3-task-phases{gap:0;flex-wrap:nowrap;margin:24px 0;padding:0 0 22px;border-bottom:1px solid #e6ebf3}.h3-task-phases li{position:relative;display:flex;align-items:center;flex:1;gap:8px;padding:0;background:none;border-radius:0;white-space:nowrap;font-size:13px}.h3-task-phases li:not(:last-child):after{content:"";flex:1;height:1px;background:#dfe6f1;margin:0 14px}.h3-phase-dot{display:inline-grid;place-items:center;flex:none;width:27px;height:27px;border-radius:50%;background:#edf1f7;color:#8290a7;font-size:12px;font-weight:600}.h3-task-phases li.is-current{color:#2459df;background:none;font-weight:650}.h3-task-phases .is-current .h3-phase-dot{background:#2d5be9;color:#fff;box-shadow:0 0 0 4px #eaf0ff}.h3-task-phases li.is-done{color:#326754}.h3-task-phases .is-done .h3-phase-dot{background:#e1f3ea;color:#16825c}.h3-task-phases .is-done:after{background:#bfdece}.h3-task-metrics{align-items:start;gap:20px}.h3-task-metrics .h3-current-summary{padding:2px 0;gap:9px}.h3-current-summary>strong{font-size:16px;font-weight:600;line-height:1.6}.h3-task-metrics>div>span:first-child{font-size:12px;color:#7a879c}.h3-task-metrics .h3-segment-summary{position:relative;padding:0 160px 0 20px;border-left:1px solid #e1e8ef;min-height:76px;justify-content:center}.h3-task-metrics .h3-segment-count{font-size:28px;font-weight:650;line-height:1.3;color:#2459df;font-variant-numeric:tabular-nums}.h3-segment-count small{font-size:14px;color:#7a879c;font-weight:400}.h3-segment-summary .h3-produced-link{position:absolute;right:0;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:9px;background:#eaf0ff;color:#2459df;font-size:13px;font-weight:600;transition:background .2s,box-shadow .2s}.h3-segment-summary .h3-produced-link:hover{background:#dde7ff;text-decoration:none;box-shadow:0 3px 10px #2459df15}.h3-produced-link:focus-visible{outline:2px solid #2459df;outline-offset:3px}@media (max-width:850px){.h3-task-phases li{flex-direction:column;gap:8px;font-size:12px}.h3-task-phases li:not(:last-child):after{position:absolute;top:13px;left:calc(50% + 21px);right:calc(-50% + 21px);margin:0}.h3-task-metrics .h3-segment-summary{padding-right:0}.h3-segment-summary .h3-produced-link{position:static;transform:none;align-self:flex-start;margin-top:5px}}@media (max-width:520px){.h3-task-progress{padding:18px 14px}.h3-task-phases{margin:22px 0 18px}.h3-task-phases li{font-size:11px}.h3-phase-dot{width:24px;height:24px}.h3-task-metrics{grid-template-columns:1fr}.h3-task-metrics .h3-segment-summary{padding:14px 0 0;border-left:0;border-top:1px solid #e1e8ef}}.h3-result-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:24px 0 16px}.h3-result-section-heading h3{margin:0}.h3-result-section-heading .btn{white-space:nowrap}.h3-segment-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.h3-segment-actions .btn{padding:7px 10px;min-height:34px;font-size:12px}.h3-segment-regenerate{color:#2459df;border-color:#cbd9ff;background:#f5f8ff}.h3-merge-notice{padding:12px 16px;border:1px solid #f0d9a8;border-radius:9px;background:#fff9ed;color:#92641a;font-size:13px}.h3-segment-editor{width:min(880px,calc(100vw - 32px));max-height:85vh;box-sizing:border-box;padding:24px;border:1px solid #dce3ee;border-radius:16px;color:#142b4a;background:#fff;box-shadow:0 24px 80px #10254430}.h3-segment-editor::backdrop{background:#10254470;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.h3-segment-editor header{display:flex;justify-content:space-between;align-items:center;gap:16px}.h3-segment-editor h2{font-size:20px;margin:4px 0 8px}.h3-segment-editor label{display:block;font-size:14px;font-weight:600;margin:18px 0 8px}.h3-segment-editor textarea{width:100%;box-sizing:border-box;min-height:320px;resize:vertical;line-height:1.8;font-size:14px;border:1px solid #ccd8eb;border-radius:10px;padding:14px}.h3-segment-editor footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:22px}.h3-editor-error{font-size:13px;color:#c13737}.h3-segment-editor textarea:focus{outline:2px solid #bad0ff;border-color:#2459df}@media (max-width:650px){.h3-segment-editor{padding:18px}.h3-segment-editor textarea{min-height:240px}.h3-result-section-heading>.btn{width:100%}}.main.main-studio{padding-top:20px}.main-studio .h3-studio{padding-top:0}.h3-header h1{margin-top:0}.h3-input-lock-note{margin:0 0 16px;padding:10px 14px;border-radius:8px;background:#edf3ff;color:#365c9b;font-size:13px;line-height:1.7}.h3-inputs textarea[readonly]{background:#f7f9fc;color:#53627a;cursor:default}.h3-patient-hint{margin:18px 0 0;padding:11px 14px;border-radius:9px;background:#edf3ff;color:#4a6393;font-size:13px;line-height:1.8}.h3-check-reasons{margin:12px 0;padding-left:22px;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.h3-check-reasons span{color:var(--ink-2,#64748b)}.h3-prompt-import .h3-prompt-clear{display:inline-flex;align-items:center;justify-content:center;width:34px;min-width:34px;height:34px;padding:0;color:var(--ink-2,#64748b);transition:color .18s,border-color .18s,background .18s}.h3-prompt-import .h3-prompt-clear:not(:disabled):hover{color:#c1372d;border-color:#f1b8b3;background:#fff5f4}.h3-studio .h3-repair-cancel{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;min-width:36px;height:36px;padding:0;border-radius:50%;color:#c1372d}.h3-repair-cancel:hover{background:#fff2f1;border-color:#f1b8b3}.h3-generation-guidance:empty{display:none}.h3-review-result.is-success{border-color:#c7e6d8;background:#f7fcf9}.h3-review-result.is-pending{border-color:#cddaff;background:#f8faff}.h3-review-verdict{display:flex;align-items:flex-start;gap:10px}.h3-review-status-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:26px;height:26px;border-radius:50%;background:#fff2df;color:#a86b12;font-size:16px;font-weight:700}.is-success .h3-review-status-icon{background:#e0f3e9;color:#23835b}.is-pending .h3-review-status-icon{background:#e9efff;color:var(--brand,#2459df)}.h3-review-result .h3-check-summary p{font-size:13px;line-height:1.7}.h3-review-result .h3-check-summary h3{font-size:15px;margin-bottom:3px}.h3-repair-proposal{margin-top:14px;border-top:1px solid var(--line,#dce3ee);padding-top:12px}.h3-repair-proposal details{max-height:320px;overflow:auto}.h3-repair-proposal-actions{display:flex;gap:8px;margin-top:12px}.h3-review-result.is-warning{border-color:#f0c9c5;background:snow}.h3-review-result.is-warning .h3-review-verdict h3,.h3-review-result.is-warning .h3-review-verdict p,.h3-review-result.is-warning .h3-check-reasons,.h3-review-result.is-warning .h3-check-details{color:#b42318}.h3-review-result.is-warning .h3-review-status-icon{background:#fee9e7;color:#b42318}.h3-review-result.is-success .h3-review-verdict h3,.h3-review-result.is-success .h3-review-verdict p{color:#1f7a4f}.h3-log-summary{margin-top:18px;padding:14px 16px;border-radius:10px;background:#f1f5ff;border:1px solid #dce5fa;color:#28466e}.h3-log-summary p{margin:5px 0 0;font-size:13px;line-height:1.7}.h3-log-summary.is-success{background:#f3fbf7;border-color:#c4e9d7;color:#14805b}.h3-log-summary.is-error{background:#fff5f5;border-color:#f4caca;color:#b62b35}.h3-log-summary.is-warning{background:#fffbf1;border-color:#efdeb0;color:#88631b}.h3-log-view-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.h3-log-view-controls [role=group]{display:flex;gap:6px}.h3-log-view-controls button[aria-pressed=true]{background:#eef3ff;border-color:#b5c7fa;color:#2459d8}.h3-log-view-controls label{display:flex;align-items:center;gap:6px;color:#536681;font-size:13px}.h3-log-readable{max-height:300px;overflow:auto;margin-top:12px;border:1px solid #e2e8f2;border-radius:10px;padding:4px 16px}.h3-log-readable ol{list-style:none;padding:0;margin:0}.h3-log-readable li{display:flex;align-items:baseline;gap:16px;padding:11px 0;border-bottom:1px solid #edf0f6;font-size:13px;line-height:1.7;color:#344b68}.h3-log-readable li:last-child{border-bottom:0}.h3-log-readable time{color:#71829a;font-variant-numeric:tabular-nums;flex-shrink:0}.h3-log-readable small{color:#71829a}.h3-log-readable .is-warning{color:#88631b}.h3-log-readable .is-error{color:#b62b35}.h3-log-readable .is-success{color:#14805b}.h3-terminal-output[hidden]{display:none}.h3-workspace-tabs{display:flex;align-items:flex-end;gap:0;margin-top:24px;padding:10px 18px 0;border:1px solid var(--line,#dce3ee);border-radius:14px 14px 0 0;background:linear-gradient(110deg,#f5f8ff,var(--surface,#fff) 75%);width:100%;box-sizing:border-box}.h3-workspace-tabs [role=tab]{position:relative;isolation:isolate;overflow:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;margin-bottom:-1px;background:transparent;color:#536681;padding:14px 28px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap;transition:background .2s,color .2s,box-shadow .2s,border-color .2s}.h3-workspace-tabs [role=tab]:hover{color:#2459df;background:#eaf1ff;box-shadow:inset 0 3px 12px #3775f50c}.h3-workspace-tabs [role=tab][aria-selected=true]{background:linear-gradient(180deg,#edf4ff 0%,var(--surface,#fff) 85%);border-color:var(--line,#dce3ee);color:#2459df;box-shadow:0 -4px 14px #497cf519,inset 0 2px #578bff;text-shadow:0 0 14px #3775f52b}.h3-workspace-tabs [role=tab][aria-selected=true]:after{content:"";position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;background:linear-gradient(110deg,transparent 25%,#a9ceff40 50%,transparent 75%);transform:translate(-120%);animation:h3-tab-shine 4s ease-in-out infinite;pointer-events:none}.h3-workspace-tabs [role=tab]:focus-visible{outline:2px solid #2459df;outline-offset:3px}.h3-workspace-panel[hidden]{display:none!important}.h3-sync-status{margin:12px 0 0;color:var(--ink-2,#64748b);font-size:12px;line-height:1.7}@keyframes h3-tab-shine{0%,25%{transform:translate(-120%)}65%,to{transform:translate(120%)}}@media (prefers-reduced-motion:reduce){.h3-workspace-tabs [role=tab]{transition:none}.h3-workspace-tabs [role=tab][aria-selected=true]:after{animation:none;transform:none;opacity:.3}}@media (max-width:520px){.h3-workspace-tabs{padding:8px 8px 0;gap:0}.h3-workspace-tabs [role=tab]{flex:1;padding:13px 8px;font-size:13px}}.h3-workspace-panel>.card{margin-top:0;padding:24px;border-top:0;border-radius:0 0 14px 14px}.h3-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.h3-studio .h3-panel-heading h2{margin:.83em 0;font-size:18px;font-weight:700;line-height:normal;color:inherit}.h3-panel-heading h2+.h3-field-hint{margin-top:-4px;margin-bottom:16px}.h3-panel-heading .h3-terminal-actions{margin-top:10px}@media (max-width:650px){.h3-workspace-panel>.card{padding:16px}}#studio-generation{scroll-margin-top:130px}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}.creation-environment{padding:22px;margin-bottom:20px}.creation-environment h2,.creation-module-card h2{font-size:18px;margin:0 0 14px}.creation-environment dl{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:20px;margin:0}.creation-environment dt{font-size:12px;color:var(--ink-2);margin-bottom:8px}.creation-environment dd{margin:0;font-size:15px;overflow-wrap:anywhere}.creation-environment p{font-size:13px;color:var(--ink-2)}.creation-environment .machine-creation-summary{margin-top:16px}.creation-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.creation-module-card{display:flex;flex-direction:column;padding:26px;min-height:210px}.creation-module-card p{color:var(--ink-2);font-size:14px;line-height:1.7;margin:0 0 28px}.creation-module-action{display:flex;align-items:center;gap:12px;margin-top:auto}.creation-module-action .btn{min-width:120px}.creation-module-action small{color:var(--ink-3)}.machine-creative-buttons.machine-creation-center-entry,.creation-module-grid--simple{grid-template-columns:1fr}.creation-machine-section>h2{font-size:20px;margin:24px 0 8px}.creation-machine-section>p{font-size:14px;color:var(--ink-2);margin:0 0 20px}.creation-center .creation-machine-grid>.creation-machine-card{margin:0}.creation-machine-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 16px}.creation-machine-meta .creation-machine-model{margin:0;font-size:13px;line-height:1.7}.creation-machine-meta .creation-machine-identity{gap:6px 8px}.creation-machine-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.creation-machine-heading h3{margin:0}.creation-machine-heading .tag{flex:none;white-space:nowrap}.creation-machine-model{margin:0 0 12px;font-size:14px;line-height:1.6}.creation-machine-identity{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;line-height:1.7}.creation-machine-identity>span{min-width:0}.creation-machine-full-id{-webkit-user-select:text;user-select:text;overflow-wrap:anywhere}.creation-machine-identity .machine-copy-id{white-space:nowrap}.creation-machine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.creation-machine-grid>.creation-machine-card{margin:0;padding:24px;min-width:0}.creation-machine-card h3{font-size:18px;line-height:1.5;margin:0 0 10px;overflow-wrap:anywhere}.creation-machine-identity,.creation-selected-machine{font-size:13px;color:var(--ink-2)}.creation-machine-action{margin-top:24px}.creation-machine-action .btn{min-width:120px}@media (max-width:700px){.creation-machine-grid{grid-template-columns:1fr}.creation-machine-grid>.creation-machine-card{padding:20px}.creation-machine-action .btn{width:100%}}@media (max-width:700px){.creation-environment dl,.creation-module-grid{grid-template-columns:1fr}.creation-environment dl{gap:16px}.creation-module-card{min-height:180px;padding:20px}}:root{--brand: #1a56db;--brand-dark: #1e429f;--brand-soft: #eef4ff;--ink: #101828;--ink-2: #475467;--ink-3: #98a2b3;--line: #e4e7ec;--bg: #f7f8fa;--surface: #ffffff;--danger: #b42318;--danger-soft: #fef3f2;--success: #027a48;--success-soft: #ecfdf3;--warn: #b54708;--warn-soft: #fffaeb;--radius: 10px;--shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04)}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}html{scrollbar-gutter:stable}@supports not (scrollbar-gutter: stable){html{overflow-y:scroll}}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,Hiragino Sans GB,sans-serif;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}.app-shell{min-height:100%;display:flex;flex-direction:column}.topbar{background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.topbar-inner{max-width:1120px;margin:0 auto;padding:0 24px;height:60px;display:flex;align-items:center;gap:28px}.brand-block{display:flex;align-items:center;gap:10px;font-weight:600;font-size:16px;color:var(--ink);white-space:nowrap}.brand-block:hover{text-decoration:none}.brand-logo{width:30px;height:30px;border-radius:7px;object-fit:contain;background:var(--brand-soft)}.brand-logo-fallback{width:30px;height:30px;border-radius:7px;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;flex:none}.nav-links{display:flex;gap:20px;flex:1}.nav-link{color:var(--ink-2);font-size:14px;padding:4px 0;border-bottom:2px solid transparent}.nav-link:hover{color:var(--brand);text-decoration:none}.nav-link.active{color:var(--brand);border-bottom-color:var(--brand);font-weight:500}.topbar-right{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--ink-2)}.topbar-user{display:inline-flex;align-items:center;gap:8px;color:var(--ink-2);max-width:220px}.topbar-user:hover{text-decoration:none;color:var(--brand)}.topbar-user>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;overflow:hidden;border-radius:50%;vertical-align:middle;background:#eef2f7}.user-avatar svg,.user-avatar img{display:block;width:100%;height:100%;object-fit:cover}.account-avatar-summary,.avatar-picker-current{display:flex;align-items:center;gap:14px}.account-avatar-summary{margin:0 0 18px}.account-page{width:100%}.account-profile-card{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr);align-items:center;gap:24px}.account-profile-identity{display:flex;min-width:0;align-items:center;gap:18px}.account-profile-name{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px}.account-profile-name h2{margin:0 0 5px;font-size:15px;font-weight:600}.account-profile-name>strong{max-width:100%;overflow:hidden;color:var(--ink);font-size:19px;text-overflow:ellipsis;white-space:nowrap}.account-profile-name>span{color:var(--ink-2);font-size:13px}.account-profile-actions,.account-nickname-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.account-profile-actions .btn,.account-nickname-actions .btn{min-height:36px;padding:7px 12px}.account-profile-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}.account-profile-details>div{display:flex;min-width:0;min-height:82px;flex-direction:column;justify-content:center;padding:12px;border:1px solid #edf1f7;border-radius:10px;background:#f7f9fc}.account-profile-details dt{margin-bottom:5px;color:var(--ink-2);font-size:12px}.account-profile-details dd{margin:0;color:var(--ink);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.account-nickname-form{grid-column:1 / -1;display:flex;align-items:flex-end;gap:12px;padding-top:16px;border-top:1px solid var(--line)}.account-nickname-form .field{flex:1;max-width:420px;margin:0}.account-nickname-actions{margin:0}.account-profile-message{grid-column:1 / -1;font-size:13px}.account-profile-message.is-success{color:var(--success)}.account-profile-message.is-error{color:var(--danger)}.account-profile-card>.avatar-picker{grid-column:1 / -1;width:100%}.account-section-heading,.account-ledger-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.account-section-heading .card-title,.account-ledger-heading .card-title{margin-bottom:3px}.account-section-heading p,.account-ledger-heading p{margin:0;color:var(--ink-2);font-size:13px}.account-points-balance{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:16px 18px;border:1px solid #d9e5ff;border-radius:12px;background:linear-gradient(115deg,#f1f6ff,#f8faff)}.account-points-balance>span{color:var(--ink-2);font-size:14px}.account-points-balance>strong{color:var(--brand-dark);font-size:32px;line-height:1.2}.account-points-balance small{font-size:15px;font-weight:500}.account-membership-summary{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr);align-items:center;gap:18px;margin-top:12px;padding:15px 18px;border:1px solid #e5ebf5;border-radius:12px;background:#fbfcff}.account-membership-main{display:flex;flex-direction:column;gap:4px}.account-membership-main>span,.account-membership-main>small{color:var(--ink-2);font-size:12px}.account-membership-main>strong{color:var(--ink);font-size:17px}.account-membership-progress{min-width:0}.account-membership-facts{display:flex;justify-content:space-between;gap:12px;margin-bottom:9px;color:var(--ink-2);font-size:12px}.account-membership-facts strong{color:var(--ink);font-weight:600}.account-membership-track{overflow:hidden;height:8px;border-radius:999px;background:#e8edf5}.account-membership-track>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#4f7ff0,#2257df);transition:width .18s ease}.account-point-estimate del{color:var(--ink-2);font-size:12px}.account-point-estimates{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;margin-top:12px}.account-point-estimate{display:flex;min-width:0;flex-direction:column;gap:5px;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:#fff}.account-point-estimate strong{overflow-wrap:anywhere;color:var(--ink);font-size:14px}.account-point-estimate span{color:var(--ink-2);font-size:13px}.account-point-estimate b{color:var(--brand-dark);font-size:13px;font-weight:600}.account-point-estimates-empty{grid-column:1 / -1;padding:14px;border-radius:9px;background:#f7f9fc;color:var(--ink-2);font-size:13px}.account-recharge-button{flex:none;white-space:nowrap}.account-entitlements-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px}.account-entitlement-card{min-width:0;padding:16px;border:1px solid var(--line);border-radius:10px;background:#fff}.account-entitlement-name{margin-bottom:14px;color:var(--ink);font-size:15px;font-weight:600}.account-entitlement-balance{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.account-entitlement-balance>span{color:var(--ink-2);font-size:13px}.account-entitlement-balance>strong{color:var(--brand-dark);font-size:24px;line-height:1.25}.account-entitlement-secondary,.account-entitlement-frozen{margin-top:10px;color:var(--ink-3);font-size:12px;line-height:1.5}.account-entitlement-secondary{display:flex;flex-wrap:wrap;gap:5px}.account-entitlement-frozen{color:var(--warn)}.account-ledger-filter{display:flex;align-items:center;gap:10px;margin:0 0 12px}.account-ledger-filter label{color:var(--ink-2);font-size:13px}.account-ledger-filter select{width:min(100%,240px);min-height:38px;padding:7px 10px}.account-ledger-window{position:relative;height:414px}.account-ledger-window>.empty{display:grid;height:100%;place-items:center}.account-ledger-table-wrap{width:100%;height:100%;overflow:auto}.account-ledger-table{min-width:880px;table-layout:fixed}.account-ledger-table th,.account-ledger-table td{height:44px;padding:6px 10px;vertical-align:middle}.account-ledger-table th:nth-child(1){width:19%}.account-ledger-table th:nth-child(2){width:14%}.account-ledger-table th:nth-child(3),.account-ledger-table th:nth-child(4){width:15%}.account-ledger-table th:nth-child(5){width:19%}.account-ledger-table th:nth-child(6){width:18%}.account-ledger-cell-copy{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:16px;overflow-wrap:anywhere}.account-ledger-loading{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#ffffffbf;color:var(--brand-dark);font-weight:600}.account-ledger-time,.account-ledger-balance{white-space:nowrap}.account-ledger-related{max-width:240px;overflow-wrap:anywhere}.account-ledger-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.account-ledger-pagination>div{display:flex;gap:8px}.account-ledger-filter{flex-wrap:wrap}.account-ledger-change{font-weight:600;white-space:nowrap}.account-ledger-change.is-credit{color:var(--success)}.account-ledger-change.is-debit{color:var(--danger)}.account-ledger-description{min-width:140px;color:var(--ink-2)}.avatar-picker{border-top:1px solid var(--line);padding-top:16px}.avatar-picker-current{margin-bottom:16px}.avatar-picker-current>div{flex:1}.avatar-upload-trigger{position:relative;overflow:hidden}.avatar-upload-trigger input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.avatar-upload-trigger.disabled{opacity:.55;pointer-events:none}.avatar-category-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 0 12px}.avatar-category-tabs button{flex:none;border:1px solid var(--line);border-radius:999px;padding:6px 13px;color:var(--ink-2);background:#fff;cursor:pointer;font:inherit}.avatar-category-tabs button.active{color:var(--brand);border-color:#b8cdfa;background:var(--brand-soft);font-weight:600}.avatar-preset-grid{display:grid;grid-template-columns:repeat(8,minmax(66px,1fr));gap:10px}.avatar-preset{position:relative;display:flex;align-items:center;flex-direction:column;gap:5px;border:1px solid transparent;border-radius:12px;padding:8px 4px 6px;background:transparent;color:var(--ink-2);cursor:pointer;font:inherit}.avatar-preset:hover{background:#f8faff;border-color:var(--line)}.avatar-preset.selected{background:var(--brand-soft);border-color:#85a9f5;color:var(--brand);font-weight:600}.avatar-preset:disabled{cursor:wait;opacity:.7}.avatar-check{position:absolute;top:3px;right:calc(50% - 36px);width:20px;height:20px;border-radius:50%;background:var(--brand);color:#fff;font-size:13px;line-height:20px}.avatar-picker-footer{min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:12px}.avatar-crop-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;place-items:center;padding:18px;background:#1018288f}.avatar-crop-dialog{width:min(100%,420px);padding:22px;border-radius:14px;background:#fff;box-shadow:0 18px 60px #10182840}.avatar-crop-dialog h3{margin:0 0 4px;font-size:18px}.avatar-crop-dialog p{margin:0 0 16px}.avatar-crop-preview{display:block;width:192px;height:192px;margin:0 auto 16px;border-radius:50%;background:#eef2f7}.avatar-crop-dialog label{display:grid;grid-template-columns:48px 1fr;align-items:center;gap:10px;margin:10px 0;color:var(--ink-2)}.avatar-crop-dialog input[type=range]{width:100%;accent-color:var(--brand)}.avatar-crop-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.usage-reminder{display:flex;align-items:flex-start;gap:12px;margin:0 0 20px;padding:14px 16px;border:1px solid #f5c26b;border-radius:12px;background:linear-gradient(110deg,#fffaeb,#fffdf7);color:#7a4b00;box-shadow:0 1px 2px #7a4b000d}.usage-reminder-icon{flex:none;padding-top:1px;font-size:19px;line-height:1.4}.usage-reminder strong{display:block;margin-bottom:2px;color:#7a4b00;font-size:14px}.usage-reminder p{margin:0;color:#694100;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.machine-status-cell{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.machine-row-actions{white-space:nowrap}.machine-row-actions .btn+.btn{margin-left:8px}.machine-row-actions .machine-enter-studio:not(:disabled){background:#1a56db;border-color:#1a56db;color:#fff;font-weight:600;opacity:1;cursor:pointer;box-shadow:0 2px 5px #1a56db33;transition:background-color .15s ease,box-shadow .15s ease}.machine-row-actions .machine-enter-studio:hover:not(:disabled){background:#1445b5;border-color:#1445b5;box-shadow:0 4px 10px #1a56db4d}.machine-row-actions .machine-enter-studio:focus-visible{outline:3px solid #a8c5ff;outline-offset:2px}.machine-row-actions .machine-enter-studio:disabled{background:#eef0f4;border-color:#dce1e8;color:#98a2b3;opacity:1;cursor:not-allowed;box-shadow:none}.machine-row-actions .machine-enter-studio.is-preparing:disabled{display:inline-flex;align-items:center;gap:8px;background:#edf4ff;border-color:#c8dcff;color:#1a56db}.machine-creation-spinner{flex:none;width:16px;height:16px;border:2px solid #bdd2fa;border-top-color:#1a56db;border-radius:50%;animation:machine-creation-spin 1s linear infinite}.machine-creation-control{max-width:100%}.machine-creation-detail{max-width:250px;color:#536b91;font-size:12px;line-height:1.6;white-space:normal}@keyframes machine-creation-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.machine-creation-spinner{animation:none}}.machine-usage-caption{color:#b54708;font-size:12px;line-height:1.4}.machine-startup-wait-message{color:var(--ink-2);font-size:12px;line-height:1.4}.machine-startup-wait-elapsed,.machine-startup-wait-hint{color:var(--ink-3);font-size:11px;line-height:1.4}.machine-sync-warning{color:var(--ink-2);font-size:12px;line-height:1.4}.machine-confirm-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:120;display:grid;place-items:center;padding:20px;background:#10182885;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.machine-confirm-dialog{display:grid;grid-template-columns:44px minmax(0,1fr);gap:16px;width:min(100%,480px);padding:26px;border:1px solid rgba(228,231,236,.9);border-radius:16px;background:var(--surface);box-shadow:0 24px 64px #1018283d,0 4px 12px #10182814;animation:machine-confirm-in .18s ease-out}.machine-confirm-icon{display:grid;width:42px;height:42px;place-items:center;border:1px solid #fedf89;border-radius:50%;background:var(--warn-soft);color:var(--warn);font-size:21px;font-weight:700}.machine-destroy-icon{color:var(--color-danger, #dc2626);background:#fee2e2}.machine-lifecycle-progress{display:flex;align-items:center;gap:10px}.machine-lifecycle-spinner{display:inline-block;transform-origin:50% 50%;animation:hourglass-turn 1.4s ease-in-out infinite}.machine-waitlist{width:100%;color:var(--brand-dark)}.machine-waitlist-title{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:14px}.machine-waitlist-title .machine-lifecycle-spinner{flex:none;font-size:22px;line-height:1}.machine-waitlist small{display:block;margin-top:4px;color:var(--ink-3);font-size:12px;line-height:1.5}.machine-waitlist-actions{display:flex;gap:8px;margin-top:6px}.machine-waitlist-actions .btn{padding:5px 12px;font-size:12px}.waitlist-ready-notice{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.waitlist-ready-notice .btn{padding:5px 10px;margin-left:auto}.ready-sound-setting{display:flex;align-items:center;gap:4px;color:var(--ink-3);font-size:12px}.waitlist-ready-icon{color:#16a34a;font-size:22px;line-height:1}.machine-confirm-content{min-width:0}.machine-confirm-content:only-child{grid-column:1 / -1}.machine-confirm-content h2{margin:0 0 12px;color:var(--ink);font-size:18px;line-height:1.4}.machine-confirm-name{margin:0 0 12px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:#f9fafb;color:var(--ink);font-weight:600}.machine-confirm-description{margin:0;color:var(--ink-2);font-size:13px;line-height:1.7}.machine-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.machine-confirm-actions .btn-danger{border-color:var(--danger);background:var(--danger);color:#fff}.machine-confirm-actions .btn-danger:hover:not(:disabled){border-color:#912018;background:#912018}.machine-confirm-actions .btn:focus-visible{outline:3px solid rgba(26,86,219,.28);outline-offset:2px}@keyframes machine-confirm-in{0%{opacity:0;transform:translateY(6px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@media (max-width: 480px){.my-machines-heading{flex-direction:column;gap:10px}.my-machines-heading>.btn{width:100%}.usage-reminder{gap:9px;padding:12px}.usage-reminder-icon{font-size:17px}.acquisition-status{align-items:flex-start;flex-wrap:wrap;gap:10px}.acquisition-status-copy{flex-basis:calc(100% - 48px)}.acquisition-status-actions{width:100%;justify-content:flex-end}.acquisition-stop-hint{max-width:none;text-align:right}.machine-confirm-dialog{grid-template-columns:36px minmax(0,1fr);gap:12px;padding:20px}.machine-confirm-icon{width:36px;height:36px;font-size:18px}.machine-confirm-actions{flex-direction:column-reverse}.machine-confirm-actions .btn{width:100%}}@media (prefers-reduced-motion: reduce){.machine-confirm-dialog{animation:none}}.acquisition-status{display:flex;align-items:center;gap:16px;margin:0 0 18px;padding:16px 18px;border:1px solid #c8d8fb;border-radius:var(--radius);background:linear-gradient(110deg,#f1f5ff,#f8faff);color:var(--ink)}.acquisition-status--delayed{border-color:#f5d58a;background:linear-gradient(110deg,#fff9e9,#fffdf7)}.acquisition-status--orbit{position:relative;overflow:hidden;border-color:#fbbf244d;animation:acquisition-status-glow 2.2s ease-in-out infinite}.acquisition-status--orbit:before{content:"";position:absolute;top:-55%;right:-55%;bottom:-55%;left:-55%;border-radius:inherit;background:conic-gradient(from 0deg,transparent 0deg 292deg,rgba(251,191,36,.08) 312deg,rgba(255,239,170,.95) 340deg,rgba(251,191,36,.18) 354deg,transparent 360deg);animation:acquisition-border-orbit 2.4s linear infinite;pointer-events:none;z-index:0}.acquisition-status--orbit:after{content:"";position:absolute;top:2px;right:2px;bottom:2px;left:2px;border-radius:calc(var(--radius) - 2px);background:linear-gradient(110deg,#f1f5ff,#f8faff);pointer-events:none;z-index:0}.acquisition-status--orbit>*{position:relative;z-index:1}@keyframes acquisition-status-glow{0%,to{box-shadow:inset 0 0 18px #fbbf2409,0 0 10px #fbbf240a}50%{box-shadow:inset 0 0 24px #fbbf2414,0 0 18px #fbbf241f}}@keyframes acquisition-border-orbit{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.acquisition-status--orbit,.acquisition-status--orbit:before{animation:none}}.acquisition-hourglass{flex:none;font-size:30px;line-height:1;animation:hourglass-turn 1.8s ease-in-out infinite}.acquisition-hourglass--paused{animation:none}.acquisition-status-copy{display:flex;flex:1;flex-direction:column;gap:2px}.acquisition-status-copy .acquisition-product-name{color:var(--brand-dark);font-size:12px;font-weight:600}.acquisition-status-copy strong{font-size:15px}.acquisition-status-copy>span{color:var(--ink-2);font-size:13px}.acquisition-status-copy .acquisition-elapsed,.acquisition-status-copy .acquisition-auto-refresh-hint{color:var(--ink-3);font-size:12px}.acquisition-status-actions{display:flex;flex:none;align-items:center;justify-content:flex-end;gap:12px}.acquisition-status-actions .btn-danger{min-width:112px}.acquisition-stop-hint{max-width:230px;color:var(--ink-2);font-size:12px;line-height:1.5;text-align:right}.machine-create-failure{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;padding:13px 16px;border:1px solid #fda29b;border-radius:var(--radius);background:var(--danger-soft);color:var(--danger)}.machine-create-failure>div{display:flex;min-width:0;flex-direction:column;gap:3px}.machine-create-failure>div>span{overflow-wrap:anywhere;font-size:13px}.machine-create-failure>.btn{flex:none}@keyframes hourglass-turn{0%,35%{transform:rotate(0)}65%,to{transform:rotate(180deg)}}.machine-product-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));align-items:stretch}.machine-product-grid>.machine-product-card+.machine-product-card{margin-top:0}.machine-product-card{display:flex;min-height:218px;flex-direction:column;padding:22px}.machine-product-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.machine-product-title{margin:2px 0 0;color:var(--ink);font-size:18px;font-weight:650;line-height:1.35}.machine-capacity-pill{flex:none;border-radius:999px;padding:5px 10px;font-size:12px;line-height:1.2}.machine-capacity-pill--available{background:#e8f7ee;color:#187642}.machine-capacity-pill--unavailable{background:#f1f2f4;color:#626b78}.machine-capacity-pill--unknown{background:#fff5df;color:#946300}.machine-product-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:22px}.machine-product-metric{display:flex;min-height:68px;flex-direction:column;justify-content:center;gap:5px;border-radius:10px;background:#f6f8fc;padding:10px 14px}.machine-product-metric>span{color:var(--ink-2);font-size:12px}.machine-product-metric>strong{color:var(--ink);font-size:18px;font-weight:650}.machine-product-metric small{color:var(--ink-2);font-size:12px;font-weight:500}.machine-product-rate-values{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:2px}.machine-product-rate-values>del{color:var(--ink-2);font-size:12px;line-height:1.2}.machine-product-rate-values>strong{color:var(--ink);font-size:18px;font-weight:650;line-height:1.25}.machine-product-rate-values>small{color:var(--brand-dark);font-size:11px}.machine-product-action{margin-top:auto;padding-top:18px}.machine-product-action .btn{width:100%;min-height:44px;white-space:normal}.machine-product-unavailable{display:flex;min-height:52px;align-items:center;justify-content:center;gap:10px;padding:8px 14px;border:1px solid #d0d5dd;border-radius:9px;background:#f2f4f7;color:#475467;text-align:center}.machine-product-unavailable>div{display:flex;flex-direction:column;gap:1px}.machine-product-unavailable strong{font-size:14px;font-weight:650;line-height:1.4}.machine-product-unavailable span:not(.machine-product-unavailable-icon){font-size:12px;line-height:1.4}.machine-product-unavailable.is-insufficient{border-color:#e9a83a;background:#fff5dd;color:#8a4b08}.machine-product-unavailable-icon{display:grid;width:24px;height:24px;flex:none;place-items:center;border:1px solid #e9a83a;border-radius:50%;background:#ffebbd;color:#8a4b08;font-size:15px;font-weight:700}.machine-product-unavailable .machine-recharge-button{width:auto;min-height:34px;margin-left:4px;padding:6px 12px;white-space:nowrap}.recharge-page{width:100%}.recharge-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.recharge-heading .page-title{margin-bottom:4px}.recharge-heading .page-subtitle{margin-bottom:0}.recharge-subtitle-hint{display:block;margin-top:3px;color:var(--ink-3);font-size:12px}.recharge-balance-card{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.recharge-balance-card>div{display:flex;flex-direction:column;gap:3px}.recharge-balance-card>div>span{color:var(--ink-2);font-size:13px}.recharge-balance-card>div>strong{color:var(--brand-dark);font-size:25px}.recharge-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.recharge-section-title h2{margin:0;font-size:16px}.recharge-section-title>span{color:var(--ink-2);font-size:13px}.recharge-quick-amounts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}.recharge-amount-option{min-height:46px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit;font-weight:600;cursor:pointer}.recharge-amount-option:hover{border-color:#9bb8f5;color:var(--brand)}.recharge-amount-option.is-selected{border-color:var(--brand);background:var(--brand-soft);color:var(--brand);box-shadow:0 0 0 1px var(--brand) inset}.recharge-custom-amount{display:grid;gap:8px;margin-top:16px;color:var(--ink-2);font-size:13px}.recharge-custom-amount-input{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink-2)}.recharge-custom-amount-input:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #2563eb1f}.recharge-custom-amount-input input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:16px}.recharge-custom-label{display:block;margin-bottom:6px;color:var(--ink-2);font-size:13px}.recharge-custom-input{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 13px;border:1px solid var(--line);border-radius:9px;background:#fff}.recharge-custom-input:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #1a56db1f}.recharge-custom-input>span{color:var(--ink-2);font-size:15px}.recharge-custom-input input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:16px}.recharge-validation-error{margin:6px 0 0;color:var(--danger);font-size:12px}.recharge-preview{display:grid;gap:10px;margin-top:auto;padding:14px 16px;border:1px solid #d7e4ff;border-radius:10px;background:#f4f7ff}.recharge-preview-item{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.recharge-preview-item>span{color:var(--ink-2)}.recharge-preview strong{color:var(--brand-dark);font-size:16px;text-align:right}.recharge-payment-title{margin-top:24px}.recharge-payment-title>span{border-radius:999px;padding:3px 9px;background:#eff6ff;color:var(--brand);font-size:12px}.recharge-payment-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.recharge-payment-method{display:flex;align-items:center;gap:11px;min-height:68px;padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink)}.recharge-payment-method:not(:disabled):hover{border-color:#b2ccff}.recharge-payment-method.is-disabled{background:#f8f9fb;color:#667085}.recharge-payment-method.is-selected{border-color:#7ea7f8;background:#f3f7ff;color:var(--ink);box-shadow:0 0 0 1px #2563eb1a}.recharge-method-check{margin-left:auto;color:var(--brand);font-weight:700}.recharge-payment-copy{display:flex;min-width:0;flex-direction:column;gap:2px;text-align:left}.recharge-payment-method strong{font-size:14px}.recharge-payment-method small{color:var(--ink-3);font-size:12px}.recharge-payment-mark{display:grid;width:36px;height:36px;flex:0 0 36px;place-items:center;border-radius:9px;color:#fff;font-size:14px;font-weight:700}.alipay-mark{background:#1677ff}.wechat-mark{background:#22a06b}.recharge-unavailable-notice{margin-top:16px;padding:11px 13px;border:1px solid #f1d6a8;border-radius:9px;background:#fff9ed;color:#80520c;font-size:13px}.recharge-unavailable-notice.is-ready{border-color:#b2ccff;background:#f4f7ff;color:#344054}.recharge-submit{width:100%;min-height:46px;margin-top:auto;padding-top:14px}.recharge-order-reference{margin-top:4px;color:inherit;font-size:12px}.recharge-order-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}@media (max-width: 700px){.topbar-inner{gap:12px;padding:0 14px}.nav-links{gap:10px;overflow-x:auto}.topbar-user>span:last-child{display:none}.avatar-preset-grid{grid-template-columns:repeat(4,minmax(56px,1fr))}.avatar-picker-current{flex-wrap:wrap}.avatar-upload-trigger{margin-left:auto}.acquisition-status{align-items:flex-start;gap:10px;padding:13px}.acquisition-status .btn{padding:6px 10px}.machine-create-failure{align-items:flex-start;flex-direction:column}.machine-create-failure>.btn{width:100%;justify-content:center}.machine-product-card{min-height:0;padding:18px}.machine-product-metrics{margin-top:16px}.machine-product-metric{min-height:62px;padding:9px 11px}}.main{flex:1;width:100%;max-width:1120px;margin:0 auto;padding:28px 24px 56px}.footer-registration{margin-top:8px;line-height:1.8}.footer-registration a{color:inherit;white-space:nowrap}.footer-registration a:hover{text-decoration:underline}.footer{border-top:1px solid var(--line);background:var(--surface);padding:28px 24px;text-align:center;font-size:12px;color:var(--ink-3)}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px 22px}.card+.card{margin-top:16px}.card-title{font-size:15px;font-weight:600;margin:0 0 14px;color:var(--ink)}.page-title{font-size:22px;font-weight:600;margin:0 0 6px}.page-subtitle{color:var(--ink-2);margin:0 0 22px;font-size:14px}.my-machines-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.my-machines-heading .page-subtitle{margin-bottom:0}.my-machines-heading>.btn{flex:none;margin-top:2px}.machine-history-tabs{display:flex;gap:8px;margin:18px 0 12px;border-bottom:1px solid var(--line)}.machine-history-tab{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:transparent;color:var(--ink-2);font:inherit;cursor:pointer}.machine-history-tab span{min-width:22px;padding:1px 6px;border-radius:999px;background:#edf1f7;color:var(--ink-2);font-size:12px;text-align:center}.machine-history-tab.is-active{border-bottom-color:var(--brand);color:var(--brand);font-weight:600}.machine-history-tab.is-active span{background:#e9efff;color:var(--brand)}.machine-boot-control{display:inline-flex;flex-direction:column;align-items:flex-end;gap:5px}.machine-boot-error{max-width:220px;color:#9a4b16;text-align:right;line-height:1.4}.compute-hero{background:linear-gradient(135deg,var(--brand) 0%,var(--brand-dark) 100%);border-radius:var(--radius);padding:26px 28px;color:#fff;display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap}.compute-hero .label{font-size:13px;opacity:.85;margin-bottom:6px}.compute-hero .value{font-size:34px;font-weight:700;line-height:1.2;letter-spacing:-.5px}.compute-hero .unit{font-size:15px;font-weight:500;opacity:.9;margin-left:6px}.compute-hero .hint{font-size:12px;opacity:.8;margin-top:8px}.hero-secondary{display:flex;gap:26px;flex-wrap:wrap}.hero-secondary .item .k{font-size:12px;opacity:.8}.hero-secondary .item .v{font-size:17px;font-weight:600}.grid{display:grid;gap:16px}.grid-3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.grid-2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px}.stat .k{font-size:12px;color:var(--ink-2);margin-bottom:6px}.stat .v{font-size:20px;font-weight:600}.form{max-width:380px}.field{margin-bottom:16px}.field label{display:block;font-size:13px;font-weight:500;color:var(--ink);margin-bottom:6px}.field .hint{font-size:12px;color:var(--ink-3);margin-top:5px}input[type=text],input[type=password],input[type=tel]{width:100%;height:38px;padding:0 11px;border:1px solid var(--line);border-radius:8px;font-size:14px;font-family:inherit;color:var(--ink);background:var(--surface);outline:none;transition:border-color .15s,box-shadow .15s}input:focus{border-color:var(--brand);box-shadow:0 0 0 3px #1a56db1f}input:disabled{background:#f9fafb;color:var(--ink-3)}.btn{height:38px;padding:0 18px;border-radius:8px;border:1px solid transparent;font-size:14px;font-family:inherit;font-weight:500;cursor:pointer;transition:background .15s,border-color .15s;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn-primary{background:var(--brand);color:#fff}.btn-primary:hover:not(:disabled){background:var(--brand-dark)}.btn-ghost{background:var(--surface);border-color:var(--line);color:var(--ink)}.btn-ghost:hover:not(:disabled){border-color:var(--ink-3)}.btn-danger{background:var(--surface);border-color:#fda29b;color:var(--danger)}.btn-danger:hover:not(:disabled){background:var(--danger-soft)}.btn-block{width:100%}.btn:disabled{opacity:.55;cursor:not-allowed}.alert{padding:10px 13px;border-radius:8px;font-size:13px;margin-bottom:16px;border:1px solid transparent}.alert-error{background:var(--danger-soft);color:var(--danger);border-color:#fda29b}.alert-success{background:var(--success-soft);color:var(--success);border-color:#a6f4c5}.alert-info{background:var(--brand-soft);color:var(--brand-dark);border-color:#b2ccff}.alert-warn{background:var(--warn-soft);color:var(--warn);border-color:#fedf89}.tag{display:inline-block;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:500;line-height:19px;white-space:nowrap}.tag-free{background:#f2f4f7;color:var(--ink-2)}.tag-pro{background:var(--brand-soft);color:var(--brand-dark)}.tag-active{background:var(--success-soft);color:var(--success)}.tag-suspended{background:var(--danger-soft);color:var(--danger)}.table{width:100%;border-collapse:collapse;font-size:13px}.table th{text-align:left;font-weight:500;color:var(--ink-2);padding:9px 10px;border-bottom:1px solid var(--line);background:#fafbfc;white-space:nowrap}.table td{padding:10px;border-bottom:1px solid #f2f4f7;color:var(--ink)}.table tbody tr:hover{background:#fafbfc}.table .num{font-variant-numeric:tabular-nums}.empty{text-align:center;padding:34px 16px;color:var(--ink-3);font-size:13px}.auth-wrap{flex:1;display:flex;align-items:center;justify-content:center;padding:40px 24px}.auth-card{width:100%;max-width:400px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:30px 30px 26px}.auth-head{text-align:center;margin-bottom:24px}.auth-head .t{font-size:19px;font-weight:600;margin-bottom:4px}.auth-head .s{font-size:13px;color:var(--ink-2)}.auth-login-modes{display:flex;gap:8px;margin:-5px 0 18px}.auth-login-modes .btn{flex:1;min-height:38px}.auth-foot{margin-top:18px;text-align:center;font-size:13px;color:var(--ink-2)}.center-page{padding:60px 0;text-align:center;color:var(--ink-2)}.kv-list{display:grid;grid-template-columns:130px 1fr;gap:12px 16px;font-size:13px}.kv-list dt{color:var(--ink-2)}.kv-list dd{margin:0;color:var(--ink);word-break:break-all}.section-gap{margin-top:16px}.row-between{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.text-muted{color:var(--ink-2)}.machine-name-cell{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.machine-provider-id{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--ink-2);font-size:12px}.machine-copy-id{border:0;padding:0;background:transparent;color:var(--brand);font:inherit;cursor:pointer}.machine-copy-id:hover{text-decoration:underline}.text-small{font-size:12px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}@media (max-width: 760px){.account-profile-card{grid-template-columns:minmax(0,1fr);gap:18px}.account-profile-details{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width: 560px){.account-page .page-title{font-size:20px}.account-page .card{padding:16px}.account-profile-identity{align-items:flex-start;gap:12px}.account-profile-name>strong{white-space:normal;overflow-wrap:anywhere}.account-profile-details{grid-template-columns:minmax(0,1fr);gap:8px}.account-profile-details>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px}.account-profile-details dt{margin:0}.account-profile-details dd{text-align:right;white-space:normal}.account-nickname-form{align-items:stretch;flex-direction:column}.account-nickname-form .field{max-width:none}.account-nickname-actions{justify-content:flex-end}.account-section-heading,.account-ledger-heading{align-items:flex-start}.account-entitlement-balance>strong{font-size:21px}.account-points-balance>strong{font-size:27px}.account-membership-summary{grid-template-columns:minmax(0,1fr);gap:12px;padding:13px}.account-membership-facts{align-items:flex-start;flex-direction:column;gap:4px}.account-section-heading{flex-wrap:wrap}.account-recharge-button{width:100%;justify-content:center}.account-ledger-filter{align-items:flex-start;flex-direction:column;gap:6px}.account-ledger-filter select{width:100%}.recharge-heading{flex-direction:column}.recharge-heading>.btn{width:100%}.recharge-quick-amounts{grid-template-columns:repeat(2,minmax(0,1fr))}.recharge-payment-methods{grid-template-columns:minmax(0,1fr)}.recharge-order-actions,.recharge-preview{align-items:flex-start;flex-direction:column}.recharge-preview-arrow{display:none}.recharge-preview strong{text-align:left}.machine-product-unavailable{flex-wrap:wrap}.machine-product-unavailable .machine-recharge-button{margin-left:0}}:root{--page-max-width: 1200px;--page-gutter: 24px;--card-radius: 12px;--control-height: 40px}.topbar-inner,.page-container{width:100%;max-width:var(--page-max-width);min-width:0;margin:0 auto;padding-left:var(--page-gutter);padding-right:var(--page-gutter)}.topbar-inner{height:112px;padding-top:24px;padding-bottom:8px;gap:24px}.brand-block{width:246px;min-width:246px;flex:0 0 246px;font-size:18px}.brand-logo{display:block;width:224px;max-width:100%;height:auto;max-height:60px;border-radius:0;background:transparent;object-fit:contain}.brand-logo-fallback{display:none}.nav-links{min-width:0;align-items:center;gap:20px}.nav-link{font-size:15px}.topbar-right{flex:none}.main{width:100%;max-width:none;margin:0;padding:28px 0 48px}.page-container{padding-top:0;padding-bottom:0}.page-header{display:flex;min-width:0;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 22px}.page-header-copy{min-width:0}.page-header .page-title{margin:0 0 5px;font-size:23px;line-height:1.35}.page-header .page-subtitle{margin:0;line-height:1.55}.page-header-actions{display:flex;flex:none;align-items:center;gap:8px}.card{min-width:0;border-radius:var(--card-radius);padding:20px}.btn{min-height:var(--control-height);border-radius:9px;padding:8px 15px;line-height:1.25}input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{min-height:var(--control-height);border-radius:9px}.ui-tabs{display:flex;min-width:0;gap:8px;margin:0 0 14px;border-bottom:1px solid var(--line)}.ui-tab{display:inline-flex;min-height:42px;align-items:center;gap:8px;padding:9px 14px;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:transparent;color:var(--ink-2);font:inherit;cursor:pointer}.ui-tab>span{min-width:22px;padding:1px 6px;border-radius:999px;background:#edf1f7;color:var(--ink-2);font-size:12px;text-align:center}.ui-tab.is-active{border-bottom-color:var(--brand);color:var(--brand);font-weight:600}.ui-tab.is-active>span{background:#e9efff;color:var(--brand)}.ui-status-badge{display:inline-flex;min-height:24px;align-items:center;justify-content:center;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:550;line-height:1.3;white-space:nowrap}.ui-status-badge--available{background:var(--success-soft);color:var(--success)}.ui-status-badge--unavailable,.ui-status-badge--neutral{background:#f2f4f7;color:#475467}.ui-status-badge--unknown,.ui-status-badge--warning{background:var(--warn-soft);color:var(--warn)}.ui-status-badge--error{background:var(--danger-soft);color:var(--danger)}.ui-empty-state{display:flex;min-height:112px;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:22px 16px;color:var(--ink-2);text-align:center}.ui-empty-state>strong{color:var(--ink);font-size:14px;font-weight:550}.ui-empty-state>p{max-width:560px;margin:0;color:var(--ink-3);font-size:13px}.my-machines-heading{margin-bottom:17px}.usage-reminder{min-height:0;align-items:center;margin:0 0 17px;padding:11px 14px;border-color:#f1d59f;border-radius:10px;box-shadow:none}.usage-reminder-icon{font-size:17px}.usage-reminder strong{margin-bottom:0;font-size:13px}.usage-reminder p{font-size:12px;line-height:1.55}.machine-history-tabs{margin:0 0 13px;border-bottom:0}.machine-history-tab{min-height:40px;border:1px solid transparent;border-radius:9px;margin:0}.machine-history-tab.is-active{border-color:#d6e2fb;background:var(--brand-soft)}.machine-history-tab.is-active span{background:#fff}.empty{min-height:120px;padding:28px 16px}.machine-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;align-items:stretch;gap:16px}.machine-product-card{height:100%;min-height:320px;padding:20px;border-radius:var(--card-radius)}.machine-product-header{min-height:45px;align-items:flex-start}.machine-product-copy{min-width:0;max-width:calc(100% - 92px)}.machine-product-title-row{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.machine-product-title{min-height:25px;margin:0;font-size:17px;line-height:1.4}.machine-product-badge,.home-product-badge{display:inline-flex;align-items:center;flex:none;padding:3px 8px;border-radius:999px;background:#fff4e5;color:#a45a00;font-size:11px;font-weight:600;line-height:1.35}.machine-product-subtitle{margin:4px 0 0;color:var(--ink-2);font-size:12px;line-height:1.4;overflow-wrap:anywhere}.machine-product-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0 0 12px;color:var(--ink-3);font-size:12px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere}.home-product-estimate .home-product-description{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-3);font-size:12px}.machine-capacity-pill{flex:none}.machine-product-metrics{grid-template-rows:repeat(2,minmax(76px,1fr));gap:9px;margin-top:14px}.machine-product-metric{min-height:76px;border-radius:9px}.machine-product-action{height:104px;flex:0 0 104px;box-sizing:border-box;display:flex;align-items:flex-end;padding-top:12px}.machine-resource-action{width:100%;display:grid;gap:8px}.machine-resource-action>small{font-size:12px;line-height:18px}.machine-resource-caption{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:24px}.machine-resource-caption strong{font-size:13px}.machine-resource-caption small{color:var(--ink-3);font-size:12px}.machine-product-action .machine-waitlist>small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.machine-product-action>.btn{min-height:44px}.machine-inventory-retry{width:100%;display:grid;gap:8px}.machine-inventory-retry small{color:var(--text-muted, #64748b);line-height:1.5}.machine-capacity-pill{flex-shrink:0;white-space:normal;text-align:center}.machine-product-action .machine-waitlist-actions{flex:none;margin:0 0 0 auto}.machine-product-action .machine-waitlist .btn{width:auto;min-height:24px;padding:3px 6px;font-size:12px;white-space:nowrap}.machine-waitlist-title strong{min-width:0;font-size:13px}.machine-waitlist-detail{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.machine-product-unavailable.is-insufficient{width:100%;min-height:44px;justify-content:space-between;padding:4px 10px;border-color:#f1d7a9;background:#fffbf2;color:#7a4b00;text-align:left}.machine-product-unavailable.is-insufficient>div{flex:1;flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.machine-product-unavailable.is-insufficient strong{font-size:13px}.machine-product-unavailable.is-insufficient span:not(.machine-product-unavailable-icon){display:none}.machine-product-unavailable-icon{display:none}.machine-product-unavailable .machine-recharge-button{min-height:34px;margin:0;padding:6px 12px}.account-page,.recharge-page{width:100%;max-width:none;margin:0}.account-page .page-header,.recharge-page .page-header{margin-bottom:22px}.account-page>.card+.card{margin-top:16px}.account-legacy-card{border-color:#eaecf0;box-shadow:none}.account-legacy-card .card-title{color:#475467}.account-legacy-card .account-entitlement-card{background:#fcfcfd}.recharge-balance-card{min-height:106px;margin-bottom:16px}.recharge-form-card{width:100%}.recharge-form-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:28px}.recharge-amount-section,.recharge-payment-section{display:flex;min-width:0;flex-direction:column}.recharge-quick-amounts{grid-template-columns:repeat(4,minmax(0,1fr))}.recharge-payment-title{margin-top:0}.recharge-payment-methods{grid-template-columns:repeat(2,minmax(0,1fr))}.recharge-preview{min-height:60px}.recharge-submit{min-height:44px}@media (min-width: 901px){.recharge-payment-section .recharge-submit{margin-top:14px}}.home-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:16px}.home-overview-grid>.card{min-height:208px;height:100%;margin-top:0}.home-balance-card{display:flex;flex-direction:column;align-items:flex-start}.home-balance-topline{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px}.home-recharge-button{min-height:34px;flex:none;gap:5px;padding:6px 11px;font-size:12px}.home-balance-card .home-recharge-button{margin-top:0}.home-card-label{color:var(--ink-2);font-size:13px;font-weight:550}.home-balance-value{margin-top:7px;color:var(--brand-dark);font-size:38px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums}.home-balance-value small{color:var(--ink-2);font-size:16px;font-weight:500}.home-balance-card p,.home-membership-card p{margin:8px 0 14px;color:var(--ink-2);font-size:13px}.home-balance-card .btn{margin-top:auto}.home-membership-value{margin-top:9px;color:var(--ink);font-size:25px;font-weight:650}.home-membership-progress{margin-top:auto}.home-membership-progress>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px;color:var(--ink-2);font-size:12px}.home-membership-progress strong{color:var(--ink);white-space:nowrap}.home-membership-note{margin-top:auto;color:var(--ink-3);font-size:12px}.home-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.home-shortcut{display:flex;min-width:0;min-height:74px;align-items:center;gap:12px;padding:13px 15px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}.home-shortcut:hover{border-color:#b8cbf5;color:var(--brand-dark);text-decoration:none}.home-shortcut-icon{display:grid;width:38px;height:38px;flex:none;place-items:center;border-radius:10px;background:var(--brand-soft);color:var(--brand);font-size:12px;font-weight:700}.home-shortcut>span:nth-child(2){display:flex;min-width:0;flex:1;flex-direction:column;gap:2px}.home-shortcut strong{font-size:14px}.home-shortcut small{color:var(--ink-3);font-size:12px}.home-shortcut-arrow{color:#98a2b3;font-size:22px}.home-products-card{margin-top:0}.home-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.home-section-heading .card-title{margin:0 0 3px}.home-section-heading p{margin:0;color:var(--ink-2);font-size:13px}.home-section-link{flex:none;font-size:13px}.home-product-estimates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-product-estimate{display:flex;min-width:0;flex-direction:column;gap:5px;padding:13px 14px;border:1px solid var(--line);border-radius:10px;color:var(--ink)}.home-product-estimate:hover{border-color:#b8cbf5;text-decoration:none}.home-product-estimate-title{display:flex;min-width:0;align-items:center;flex-wrap:wrap;gap:7px}.home-product-estimate-title strong,.home-product-estimate strong{overflow-wrap:anywhere;font-size:14px}.home-product-estimate span{color:var(--ink-2);font-size:12px}.home-product-estimate b{color:var(--brand-dark);font-size:13px}.home-welcome-card{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:148px}.home-welcome-card .card-title{margin-bottom:7px;font-size:18px}.home-welcome-card p{margin:0;color:var(--ink-2)}.home-welcome-actions{display:flex;flex:none;gap:9px}@media (max-width: 900px){.brand-block{width:220px;min-width:220px;flex-basis:220px}.topbar-inner{gap:16px}.nav-links{gap:13px}.topbar-user{max-width:150px}.recharge-form-layout{grid-template-columns:minmax(0,1fr);gap:24px}.recharge-payment-title{margin-top:0}}@media (max-width: 760px){:root{--page-gutter: 18px}.topbar-inner{padding-left:var(--page-gutter);padding-right:var(--page-gutter)}.page-header{gap:12px}.page-header .page-title{font-size:21px}.machine-product-grid{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto}.machine-product-card{min-height:0}.machine-product-metrics{grid-template-rows:repeat(2,minmax(70px,auto))}.home-overview-grid{grid-template-columns:minmax(0,1fr)}.home-overview-grid>.card{min-height:0}.home-shortcuts,.home-product-estimates{grid-template-columns:minmax(0,1fr)}.home-welcome-card{align-items:flex-start;flex-direction:column}}@media (max-width: 560px){:root{--page-gutter: 14px}.main{padding-top:22px;padding-bottom:36px}.topbar-inner{height:100px;gap:10px}.brand-block{width:auto;min-width:0;flex-basis:auto;gap:0;font-size:16px}.brand-logo{width:112px;max-width:112px;max-height:34px}.topbar-right{gap:7px}.nav-links{gap:11px}.nav-link{font-size:13px;white-space:nowrap}.page-header{flex-direction:column;align-items:stretch}.page-header-actions{width:100%}.page-header-actions>.btn{width:100%;justify-content:center}.home-balance-value{font-size:34px}.home-section-heading{align-items:flex-start}.recharge-form-layout{gap:21px}.recharge-quick-amounts{grid-template-columns:repeat(3,minmax(0,1fr))}.recharge-payment-methods{grid-template-columns:repeat(2,minmax(0,1fr))}.recharge-balance-card{align-items:flex-start}.home-welcome-actions{width:100%}.home-welcome-actions .btn{flex:1;justify-content:center}}.mobile-menu-toggle,.mobile-menu-backdrop{display:none}.page-container>*,.card>*,.field{min-width:0}.alert,.page-subtitle,.machine-provider-id{overflow-wrap:anywhere}.machine-list-wrap{width:100%;min-width:0;overflow-x:auto}.machine-list-frame{box-sizing:border-box;padding:12px;border:1px dashed #b8c8e0;border-radius:14px}:root[data-theme=dark] .machine-list-frame{border-color:#465775}.machine-list-table{min-width:780px}.machine-list-table th{white-space:nowrap}.machine-list-current{table-layout:fixed}.machine-list-current th:nth-child(1){width:20%}.machine-list-current th:nth-child(2){width:12%}.machine-list-current th:nth-child(3){width:23%}.machine-list-current th:nth-child(4){width:12%}.machine-list-current th:nth-child(5){width:33%}.machine-list-current td{vertical-align:top;padding-top:16px;padding-bottom:16px}.machine-list-current .machine-status-cell{gap:7px;line-height:1.6}.machine-list-current .machine-usage-caption{line-height:1.6;overflow-wrap:break-word}.machine-list-current .machine-status-cell .tag{max-width:100%;white-space:normal}.machine-list-current .machine-name-cell{min-width:0}.machine-action-list{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:flex-start;gap:8px;white-space:normal}.machine-action-list .btn{margin:0!important;white-space:nowrap}.machine-action-list .machine-boot-control{min-width:0;align-items:flex-start}.machine-action-list .machine-creation-control .machine-enter-studio{max-width:100%;white-space:normal;overflow-wrap:break-word;line-height:1.5}.machine-notification-slot{margin-bottom:12px;overflow-anchor:none}.machine-notification-slot .alert{margin:0}.machine-creation-summary{display:flex;align-items:center;gap:8px;color:var(--ink-2);font-size:inherit}.machine-creation-progress{margin-top:20px;overflow-anchor:none}.machine-creation-progress .acquisition-status{margin-top:12px}.machine-confirm-dialog{max-height:calc(100dvh - 32px);overflow-y:auto}@media (max-width: 1024px){.topbar-inner{height:84px;padding-top:12px;padding-bottom:12px;gap:14px}.brand-block{width:200px;min-width:0;flex:0 1 200px}.brand-logo{width:190px;max-width:100%;max-height:52px}.mobile-menu-toggle{display:inline-flex;order:3;flex:none;gap:6px}.mobile-menu-toggle>span:first-child{font-size:19px}.topbar-right{margin-left:auto;min-width:0}.nav-links{display:none;position:absolute;top:100%;left:var(--page-gutter);right:var(--page-gutter);padding:10px;border:1px solid var(--line);border-radius:var(--card-radius);background:var(--surface);box-shadow:var(--shadow)}.nav-links.is-open{display:flex;flex-direction:column;align-items:stretch;gap:4px;max-height:calc(100dvh - 100px);overflow-y:auto}.nav-links .nav-link{padding:11px 14px;border:0;border-radius:8px;font-size:15px}.nav-links .nav-link.active{background:var(--brand-soft)}.mobile-menu-backdrop{display:block;position:fixed;top:84px;right:0;bottom:0;left:0;z-index:19;border:0;background:#1018283d}.account-profile-card{grid-template-columns:minmax(0,1fr)}.account-profile-details dd{white-space:normal;overflow-wrap:anywhere}}@media (max-width: 760px){.card{padding:16px}.grid-2,.grid-3{grid-template-columns:minmax(0,1fr)}.account-ledger-heading{flex-wrap:wrap;gap:10px}.account-ledger-pagination{flex-wrap:wrap}.account-ledger-pagination>div{margin-left:auto}.machine-product-grid{grid-template-columns:minmax(0,1fr)}.acquisition-status-card,.acquisition-status-actions{min-width:0;flex-wrap:wrap}.machine-confirm-actions{flex-wrap:wrap}}@media (max-width: 560px){.topbar-inner{height:80px;gap:8px;padding-top:12px;padding-bottom:12px}.brand-block{flex:0 1 152px}.brand-logo{width:152px;max-width:100%;max-height:44px}.topbar-user>span:last-child{display:none}.topbar-right{gap:6px}.topbar-right>.btn{padding-left:9px;padding-right:9px}.mobile-menu-toggle{padding:8px 10px}.mobile-menu-toggle>span:last-child{display:none}.mobile-menu-backdrop{top:80px}.recharge-quick-amounts{grid-template-columns:repeat(2,minmax(0,1fr))}.recharge-payment-methods{grid-template-columns:minmax(0,1fr)}.recharge-balance-card{gap:10px}.home-balance-topline,.home-welcome-actions{flex-wrap:wrap}.avatar-preset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.avatar-picker-current{flex-wrap:wrap}.ui-tabs{overflow-x:auto}.ui-tab{flex:none}.machine-list-wrap{overflow:visible}.machine-list-table{display:block;min-width:0;width:100%;background:transparent}.machine-list-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.machine-list-table tbody{display:grid;gap:14px}.machine-list-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border:1px solid var(--line);border-radius:var(--card-radius);background:var(--surface);box-shadow:var(--shadow)}.machine-list-table td{display:block;min-width:0;padding:0;border:0;white-space:normal;text-align:left;overflow-wrap:anywhere}.machine-list-table td:before{content:attr(data-label);display:block;margin-bottom:4px;color:var(--ink-2);font-size:12px}.machine-list-table td:first-child,.machine-list-table td[data-label=状态],.machine-list-table td[data-label=操作],.machine-list-table td[data-label="实例 ID"],.machine-list-table td[data-label=最终状态]{grid-column:1 / -1}.machine-list-table .machine-row-actions{display:flex;flex-wrap:wrap;gap:8px}.machine-list-table .machine-row-actions:before{width:100%}.machine-action-list{width:100%}.machine-action-list>.btn,.machine-list-table .machine-boot-control{flex:1 1 140px;margin:0}.machine-boot-control>.btn{width:100%}.machine-confirm-dialog{padding:18px}.machine-confirm-actions .btn{flex:1 1 120px}input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;max-width:100%}}@media (max-width: 560px){.account-profile-details>div{flex-direction:row;min-height:48px}.account-profile-details dd{margin:0;text-align:right}.machine-product-metric>strong{font-size:16px}}.wechat-checkout{text-align:center;margin-bottom:20px;overflow-wrap:anywhere}.wechat-checkout img{display:block;width:min(256px,100%);height:auto;margin:16px auto}button.recharge-payment-method{text-align:left;font:inherit;cursor:pointer}.recharge-section-title.recharge-payment-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.recharge-payment-title>span{position:static;flex-shrink:0}.payment-modal{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:28px;border:1px solid var(--line);border-radius:16px;color:var(--ink);text-align:center;box-shadow:0 20px 70px #0f172a33}.payment-modal::backdrop{background:#0f172a6b}.payment-modal-heading{display:flex;align-items:center;justify-content:center;gap:10px}.payment-modal-heading h2{margin:0;font-size:22px}.payment-modal p{color:var(--ink-2)}.payment-modal-amount{display:block;margin:18px 0 10px;font-size:20px}.payment-modal-qr{min-height:256px;display:grid;place-items:center}.payment-modal-qr img{max-width:100%;height:auto}.payment-modal-actions{display:flex;flex-direction:column;gap:10px;margin:20px 0 12px}.payment-modal small{color:var(--ink-3);font-size:12px}.payment-modal-status{font-size:12px}.register-page{padding:40px 20px;background:#f5f7fb}.register-page .auth-card{max-width:480px;padding:32px;border-radius:16px}.register-page .auth-head{margin-bottom:28px}.register-page .auth-head .t{margin:0 0 8px;font-size:26px;line-height:1.3;font-weight:700}.register-page .auth-head .s{font-size:14px}.register-form .field{margin-bottom:20px}.register-form .field label{margin-bottom:8px;font-size:14px}.register-form input,.register-form .btn{height:44px;min-height:44px;border-radius:8px}.register-form input{font-size:14px}.register-form input[aria-invalid=true]{border-color:#dc2626}.register-code-row{display:grid;grid-template-columns:minmax(0,1fr) 144px;gap:10px}.register-code-row .btn{padding:0 10px;white-space:nowrap;color:#1a56db;border-color:#bfd0f5;background:#f5f8ff}.register-code-row .btn:disabled{color:#8793a5;background:#f1f4f8;border-color:#dde3ec;cursor:not-allowed;opacity:1}.register-form .hint{margin-top:7px;font-size:12px;line-height:1.6;color:#8491a5}.register-field-error{margin:7px 0 0;color:#dc2626;font-size:12px;line-height:1.6}.register-code-success{margin:7px 0 0;color:#059669;font-size:12px}.register-agreement{margin:0 0 18px;font-size:12px;line-height:1.8;color:#8491a5}.register-policy-link{color:#1a56db}.register-page .auth-foot{margin-top:22px}.register-page .auth-foot a{margin-left:4px}@media (max-width: 520px){.register-page{padding:24px 16px;align-items:flex-start}.register-page .auth-card{padding:26px 20px}.register-page .auth-head .t{font-size:24px}.register-code-row{grid-template-columns:minmax(0,1fr) 132px;gap:8px}}.auth-suite{min-height:100vh;box-sizing:border-box}.auth-brand{display:inline-flex;justify-content:center;margin-bottom:24px}.auth-brand img{display:block;width:220px;max-width:100%;height:auto}.auth-password-row{position:relative}.auth-password-row input{padding-right:48px}.auth-password-toggle{position:absolute;right:4px;top:2px;width:40px;height:40px;border:0;background:transparent;border-radius:6px;color:#7b89a0;cursor:pointer}.auth-password-toggle svg{width:20px;height:20px;vertical-align:middle}.auth-password-toggle:hover{color:#1a56db;background:#f1f5ff}.auth-password-toggle:focus-visible{outline:2px solid #1a56db}.auth-password-toggle:disabled{cursor:not-allowed;opacity:.5}.auth-forgot{margin-top:10px;text-align:right;font-size:13px}.auth-agreement{margin:16px 0 0;text-align:center}.auth-reset-success{text-align:center;color:#059669}.auth-reset-success p{margin-bottom:24px}@media (max-width: 520px){.auth-brand img{width:190px}.auth-brand{margin-bottom:22px}}.auth-register-compact{padding:20px 16px}.auth-register-compact .auth-card{padding:24px 28px}.auth-register-compact .auth-brand{margin-bottom:12px}.auth-register-compact .auth-brand img{width:180px}.auth-register-compact .auth-head{margin-bottom:18px}.auth-register-compact .auth-head .t{margin-bottom:4px;font-size:24px}.auth-register-compact .register-form .field{margin-bottom:12px}.auth-register-compact .register-form .field label{margin-bottom:5px}.auth-register-compact .register-form input,.auth-register-compact .register-form .btn{height:40px;min-height:40px}.auth-register-compact .register-form .hint{margin-top:4px;line-height:1.45}.auth-register-compact .auth-password-toggle{width:36px;height:36px}.auth-register-compact .auth-foot{margin-top:14px}.register-consent{display:flex;align-items:flex-start;gap:8px;margin-top:12px;font-size:13px;line-height:1.7;color:#64748b}.auth-register-compact .register-consent input{flex:none;width:18px;height:18px;min-height:18px;margin:2px 0 0;padding:0;accent-color:#1a56db;cursor:pointer}.register-consent label{display:inline;margin:0;font-size:inherit;cursor:pointer}.register-consent a{color:#1a56db}.register-consent a:hover{text-decoration:underline}.legal-page{width:100%;min-height:100vh;background:#f5f7fb;padding:28px 20px 48px}.legal-nav,.legal-card{max-width:900px;margin:0 auto}.legal-nav{display:flex;justify-content:space-between;gap:16px;margin-bottom:18px;font-size:14px}.legal-card{background:#fff;padding:36px 44px;border:1px solid #e4e7ec;border-radius:16px;box-shadow:0 1px 3px #1018280d}.legal-head{padding-bottom:20px;border-bottom:1px solid #e4e7ec}.legal-head img{display:block;width:190px;max-width:100%;height:auto;margin-bottom:24px}.legal-head h1{margin:0 0 12px;font-size:28px;line-height:1.4}.legal-head p{font-size:13px;color:#64748b;margin:6px 0}.legal-intro,.legal-card section p{color:#475467;font-size:15px;line-height:1.9;overflow-wrap:anywhere}.legal-intro{margin:24px 0}.legal-contents{display:grid;gap:8px;padding:18px 20px;background:#f5f8ff;border-radius:10px;font-size:14px}.legal-card section{margin-top:28px;scroll-margin-top:24px}.legal-card section h2{font-size:19px;margin:0 0 12px}.legal-card section p{margin:10px 0}.legal-footer{display:flex;gap:18px;flex-wrap:wrap;padding-top:24px;margin-top:32px;border-top:1px solid #e4e7ec;font-size:14px}@media (max-width: 520px){.auth-register-compact{padding:16px}.auth-register-compact .auth-card{padding:22px 20px}.auth-register-compact .auth-brand img{width:170px}.auth-register-compact .register-form input,.auth-register-compact .register-form .btn{height:42px;min-height:42px}.auth-register-compact .register-consent input{height:18px;min-height:18px}.auth-register-compact .auth-password-toggle{height:38px}.legal-page{padding:18px 14px 30px}.legal-card{padding:24px 20px}.legal-head h1{font-size:24px}}.auth-login-fixed .auth-login-phone-slot{min-height:112px}.auth-login-fixed .auth-login-method-slot{min-height:180px}.auth-login-fixed .auth-login-phone-slot>.field,.auth-login-fixed .auth-login-method-slot>.field{margin-bottom:0}@media (max-width: 520px){.auth-login-fixed .auth-login-method-slot{min-height:204px}}.auth-login-fixed .sms-account-note{margin:6px 0;font-size:12px;line-height:1.5;color:#8491a5}.auth-login-fixed .sms-login-consent{margin-top:6px;font-size:12px;line-height:1.6}.auth-login-fixed .sms-login-consent input{flex:none;width:16px;height:16px;min-height:16px;padding:0;margin:2px 0 0;accent-color:#1a56db}.auth-login-fixed .sms-consent-error{margin-top:5px;line-height:1.4}.payment-modal-countdown{color:#64748b;font-variant-numeric:tabular-nums}.payment-modal-qr.is-expired{background:#f1f5f9;color:#64748b;border-radius:12px}.payment-modal-success{color:#15803d;font-size:18px}.instance-status-summary{position:relative;font-size:13px}.instance-status-trigger{display:flex;align-items:center;gap:12px;border:1px solid #dce3ed;border-radius:9px;background:#fff;color:#23446b;padding:10px 13px;cursor:pointer}.instance-status-trigger:focus-visible{outline:2px solid #2459e0;outline-offset:2px}.instance-status-popover{position:absolute;right:0;top:100%;z-index:20;width:240px;max-width:calc(100vw - 40px);padding:14px;border:1px solid #e0e7f0;border-radius:10px;background:#fff;box-shadow:0 8px 24px #17335b18}.instance-status-scope{color:#8492a6;font-size:12px;margin-bottom:10px}.instance-status-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:7px 0}.instance-status-row strong{color:#203a5c;font-variant-numeric:tabular-nums}.instance-status-popover p{color:#8492a6;margin:8px 0}@media (max-width: 600px){.instance-status-summary{margin-left:auto}}.machine-environment-status{max-width:280px;gap:5px;text-align:left}.machine-environment-label{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.6}.machine-environment-status.is-preparing{color:#1a56db;padding:8px 10px;border-radius:8px;background:#edf4ff}.machine-environment-status .machine-creation-spinner{flex-shrink:0}.machine-environment-status .machine-creation-detail{max-width:100%}@media (max-width: 640px){.machine-action-list .machine-environment-status{flex-basis:100%;max-width:100%;width:100%}}@media (max-width: 640px){.machine-page-header .page-header-actions>.btn{width:auto;flex:1}.machine-page-header .instance-status-summary{margin-left:0;flex:none}.machine-page-header .instance-status-trigger{white-space:nowrap}}:root[data-theme=dark]{color-scheme:dark;--brand: #7aa2ff;--brand-dark: #a8c0ff;--brand-soft: #243653;--ink: #e6edf7;--ink-2: #c2ccda;--ink-3: #8795a8;--line: #344154;--bg: #111821;--surface: #192330;--danger: #ff9388;--danger-soft: #3d2527;--success: #6ee7b7;--success-soft: #17362e;--warn: #fbbf72;--warn-soft: #3b3020;--shadow: 0 1px 3px rgba(0,0,0,.28), 0 1px 2px rgba(0,0,0,.18)}:root[data-theme=dark] .topbar,:root[data-theme=dark] .footer,:root[data-theme=dark] .instance-status-trigger,:root[data-theme=dark] .instance-status-popover{background:var(--surface);color:var(--ink)}:root[data-theme=dark] .h3-studio{color:var(--ink)}:root[data-theme=dark] .h3-inputs,:root[data-theme=dark] .h3-results,:root[data-theme=dark] .h3-images>div{background:var(--surface);border-color:var(--line)}:root[data-theme=dark] .h3-studio select,:root[data-theme=dark] .h3-studio textarea{background:#111821;color:var(--ink);border-color:var(--line)}.machine-action-list{display:grid;grid-template-columns:minmax(0,1fr);width:100%;gap:6px}.machine-creative-area{min-width:0}.machine-creative-buttons,.machine-operation-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.machine-creation-center-entry{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}.machine-action-list .machine-creation-center-entry .btn{height:48px;white-space:normal;overflow:visible;text-overflow:clip;line-height:18px}.machine-enter-legacy span{display:block;font-size:11px;line-height:16px;color:var(--ink-2)}.machine-action-list .btn{width:100%;min-width:0;height:36px;padding:6px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.machine-environment-slot{display:grid;grid-template-columns:minmax(0,1fr) 78px;align-items:center;gap:6px;height:48px;color:var(--ink-2);text-align:left}.machine-environment-slot.is-preparing{color:var(--brand)}.machine-environment-slot.is-error{color:var(--danger)}.machine-environment-slot.is-ready{color:var(--success)}.machine-environment-copy{display:flex;align-items:center;gap:6px;min-width:0}.machine-environment-icon{flex:0 0 16px;width:16px;height:16px;display:grid;place-items:center}.machine-environment-icon .machine-creation-spinner{width:14px;height:14px;margin:0}.machine-environment-text{display:grid;min-width:0;line-height:20px}.machine-environment-text>span,.machine-environment-text>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.machine-environment-text>small{font-size:11px;color:var(--ink-2)}.machine-environment-slot--header{display:flex;justify-content:flex-end;height:auto;min-height:20px;margin-bottom:6px;text-align:right}.machine-environment-slot--header .machine-environment-copy{margin-left:auto}.machine-action-list .machine-environment-slot--header .machine-environment-retry{width:78px;flex:none}.machine-environment-slot--header .machine-environment-retry[aria-hidden=true]{display:none}.machine-operation-note{display:block;height:18px;line-height:18px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--danger)}.machine-operation-note.is-progress{color:var(--brand)}.machine-list-current .machine-usage-caption{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (max-width: 560px){.machine-list-table .machine-action-list{display:grid}.machine-action-list .machine-creative-buttons .btn{font-size:12px}}.machine-product-action .machine-queue-action{width:100%;display:grid;grid-template-rows:44px 44px;gap:4px}.machine-queue-info{min-width:0;overflow:hidden;font-size:13px;line-height:20px}.machine-queue-info>strong{display:block}.machine-product-action .machine-queue-info small{display:block;margin:0;color:var(--ink-3);font-size:12px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.machine-product-action .machine-waitlist-title{flex-wrap:nowrap;height:20px;overflow:hidden}.machine-product-action .machine-waitlist-title .machine-lifecycle-spinner{font-size:18px}.machine-product-action .machine-queue-wait-icon{display:inline-block;margin-right:5px;font-size:14px;line-height:1;vertical-align:-1px}.machine-product-action .machine-queue-action .btn .machine-queue-wait-icon{margin-right:6px;font-size:13px}@media (prefers-reduced-motion: reduce){.machine-product-action .machine-queue-action .machine-queue-wait-icon{animation:none}}.machine-product-action .machine-waitlist-title small{margin-left:auto;flex:none}.machine-queue-buttons{display:flex;gap:8px;min-width:0}.machine-product-action .machine-queue-action .btn{height:44px;min-height:44px;padding:8px 10px;font-size:13px;white-space:nowrap}.machine-queue-buttons>.btn:first-child{flex:1;min-width:0}.machine-queue-buttons>.btn:not(:first-child){width:auto;flex:none}.machine-queue-buttons-fixed{display:grid;grid-template-columns:minmax(0,1fr) 96px}.machine-queue-buttons-fixed>.btn:not(:first-child){width:100%;overflow:hidden;text-overflow:ellipsis}.machine-queue-secondary-empty{visibility:hidden;pointer-events:none}.machine-batch-selector{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-top:8px}.machine-batch-selector label{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;font-size:13px}.machine-batch-selector select{width:92px;min-height:34px;padding:4px 8px;border:1px solid var(--border, #dce3ed);border-radius:8px;color:inherit;background:var(--surface)}.machine-batch-selector small{font-size:12px;color:var(--text-muted, #8995aa);text-align:right}@media (max-width: 480px){.machine-batch-selector{gap:8px}.machine-batch-selector select{width:88px}.machine-batch-selector small{max-width:150px}}.machine-operations-heading-content{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;text-align:left}.machine-header-environments{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 12px;min-width:0;flex:1;font-weight:400}.machine-header-environments .machine-environment-slot--header{margin:0;max-width:100%;min-width:0;font-size:12px}.machine-header-environments .machine-environment-text>span{font-size:12px}.machine-header-environments .machine-environment-text>small{max-width:240px}.machine-header-environments .machine-environment-retry{width:78px;flex:none}.page-scroll-buttons{position:fixed;left:auto;right:max(24px,calc((100vw - var(--page-max-width,1200px))/2 - 44px));bottom:176px;z-index:40;display:flex;flex-direction:column;gap:12px}.page-scroll-buttons button{position:relative;display:grid;place-items:center;width:56px;height:56px;padding:0;border:1px solid var(--line,#dce3ee);border-radius:50%;background:var(--surface,#fff);color:var(--brand,#2459df);box-shadow:0 4px 16px #1e3a6e1a;cursor:pointer;transition:box-shadow .25s,color .25s,border-color .25s}.page-scroll-buttons button:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;background:linear-gradient(145deg,#fffdf5 8%,#fbefca 42%,#efd28b 78%,#e3bc62);opacity:0;pointer-events:none;transition:opacity .3s}.page-scroll-buttons button:before{z-index:1;content:"";position:absolute;top:5px;right:5px;bottom:5px;left:5px;border:1px solid #ffffff80;border-radius:inherit;pointer-events:none}.page-scroll-buttons svg{position:relative;z-index:1;width:25px;height:25px;filter:drop-shadow(0 1px 0 #ffffffb3)}.page-scroll-buttons button:hover,.page-scroll-buttons button:focus-visible{color:#886016;border-color:#d6b76a;box-shadow:inset 0 1px 2px #fff,inset 0 0 0 4px #fff9e95c,0 7px 24px #a8792838;transform:none}.page-scroll-buttons button:hover:after,.page-scroll-buttons button:focus-visible:after{opacity:1}.page-scroll-buttons button:focus-visible{outline:3px solid var(--brand,#2459df);outline-offset:4px}.page-scroll-buttons button:active{transform:none}@media (max-width:650px){.page-scroll-buttons{right:14px;bottom:calc(112px + env(safe-area-inset-bottom,0px));gap:10px}.page-scroll-buttons button{width:48px;height:48px}.page-scroll-buttons svg{width:23px;height:23px}}@media (prefers-reduced-motion:reduce){.page-scroll-buttons button,.page-scroll-buttons button:after{transition:none}}.creation-running-status{display:inline-flex;align-items:center;gap:6px}.creation-running-light{display:inline-block;flex:none;width:12px;height:12px;border-radius:50%;background:#00c96b;animation:creation-running-breathe 2.4s ease-in-out infinite}@keyframes creation-running-breathe{0%,to{opacity:.55;box-shadow:0 0 #00c96b14}50%{opacity:1;box-shadow:0 0 0 4px #00c96b29}}@media (prefers-reduced-motion:reduce){.creation-running-light{animation:none}}.btn .creation-entry-number{display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:1.45em;height:1.45em;margin-left:2px;border:1px solid currentColor;border-radius:50%;background:transparent;color:inherit;font-size:1em;font-weight:inherit;line-height:1;font-variant-numeric:tabular-nums}@media (max-width:800px){.machine-list-current thead{position:static;width:auto;height:auto;overflow:visible;clip-path:none}.machine-list-current thead tr{display:block}.machine-list-current thead th:not(.machine-operations-heading){display:none}.machine-list-current thead .machine-operations-heading{display:block;width:100%}}.low-balance-dialog{width:min(460px,calc(100vw - 32px));padding:26px;border:1px solid var(--line,#dce3ee);border-radius:14px;background:var(--surface,#fff);color:var(--ink,#17243b);box-shadow:0 20px 80px #18253b30}.low-balance-dialog::backdrop{background:#17243b66}.low-balance-dialog-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}.low-balance-dialog-heading>span{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:50%;background:#fff3d6;color:#a46310;font-size:22px;font-weight:700}.low-balance-dialog h2{margin:0;font-size:19px;line-height:1.5}.low-balance-dialog p{margin:0 0 14px;font-size:14px;line-height:1.8}.low-balance-dialog .low-balance-policy{padding:12px;border-radius:8px;background:#fff8e8;color:#895f22;font-size:13px}.low-balance-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.historical-settlement{margin-top:8px;min-width:260px;max-width:420px;color:var(--ink-1,#24334a);font-size:12px;white-space:normal}.historical-settlement summary{cursor:pointer;color:#2463e8;font-weight:500;list-style-position:inside}.historical-settlement dl{margin:10px 0 0;padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.historical-settlement dl>div{display:grid;grid-template-columns:104px minmax(0,1fr);gap:8px;padding:5px 0;line-height:1.65}.historical-settlement dt{color:var(--ink-2,#64748b)}.historical-settlement dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.historical-settlement dd small{display:block;margin-top:3px;color:#64748b}@media (max-width:640px){.historical-settlement{min-width:240px}.historical-settlement dl{padding:10px}.historical-settlement dl>div{grid-template-columns:96px minmax(0,1fr)}}.account-ledger-time>small{display:block;color:var(--ink-2,#64748b);font-size:11px}.account-ledger-table:has(.historical-settlement) th:nth-child(1){width:20%}.account-ledger-table:has(.historical-settlement) th:nth-child(2){width:12%}.account-ledger-table:has(.historical-settlement) th:nth-child(3),.account-ledger-table:has(.historical-settlement) th:nth-child(4){width:13%}.account-ledger-table:has(.historical-settlement) th:nth-child(5){width:14%}.account-ledger-table:has(.historical-settlement) th:nth-child(6){width:28%}.account-ledger-window:has(.historical-settlement[open]){height:auto}.account-ledger-window:has(.historical-settlement[open]) .account-ledger-table-wrap{height:auto;max-height:720px}.video-preservation-status{max-width:30rem;margin-bottom:.5rem;padding:.75rem;border:1px solid #bfdbfe;border-radius:.5rem;background:#eff6ff;color:#1e40af}.video-preservation-status p{margin:.4rem 0}.video-preservation-status progress{display:block;width:100%;margin:.5rem 0}.video-preservation-status small{display:block}.fq-instance-badge{display:inline-block;margin:4px 0 4px 8px;padding:3px 9px;border-radius:6px;background:#eaf1ff;color:#174397;font-size:16px;font-weight:750;line-height:1.4;white-space:nowrap}.mw-page{padding:0;color:var(--ink)}.mw-page header p{color:var(--text-secondary,#63758a);line-height:1.8}.mw-page button,.mw-page select,.mw-page input{font:inherit;border:1px solid var(--border-color,#dce3ec);border-radius:8px;padding:8px 12px;background:var(--card-bg,#fff);color:inherit}.mw-page button{cursor:pointer}.mw-page button:disabled{opacity:.5;cursor:not-allowed}.mw-page button[aria-pressed=true]{background:#245bdf;color:#fff}.mw-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.mw-stats>div,.mw-results,.mw-filters,.mw-zip{border:1px solid var(--border-color,#dce3ec);background:var(--card-bg,#fff);border-radius:12px;padding:20px}.mw-stats strong{display:block;font-size:26px;color:#245bdf}.mw-stats span,.mw-page small{display:block;color:var(--text-secondary,#63758a);font-size:12px;line-height:1.8}.mw-filters,.mw-toolbar,.mw-pagination,.mw-actions,.mw-zip{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.mw-filters label{display:grid;gap:8px;min-width:160px;flex:1}.mw-filters label:first-child{flex:2}.mw-toolbar{justify-content:space-between}.mw-toolbar>div{display:flex;gap:8px}.mw-table-wrap{overflow-x:auto}.mw-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:650px;font-size:14px}.mw-table th,.mw-table td{text-align:left;padding:14px 10px;border-bottom:1px solid var(--border-color,#e8edf3);overflow-wrap:anywhere}.mw-badge{display:inline-block;padding:3px 8px;border-radius:6px;background:#fff0d8;color:#775000}.mw-badge.ready{background:#e2f6ed;color:#086c48}.mw-task{border:1px solid var(--border-color,#e5eaf1);border-radius:10px;margin-bottom:12px}.mw-task-head{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:18px}.mw-task-head>div:first-child{flex:1;min-width:180px}.mw-task code{overflow-wrap:anywhere}.mw-task-head button{margin-left:6px}.mw-task-videos{padding:0 14px}.mw-pagination{justify-content:flex-end;margin:20px 0 0}.mw-pagination form{display:flex;gap:6px}.mw-pagination input{width:80px}.mw-error{padding:12px;background:#fff0ee;color:#a82b27;border-radius:8px}.mw-error button{margin-left:12px}.mw-empty{padding:52px 16px;text-align:center;color:var(--text-secondary,#63758a)}.mw-scroll{position:fixed;right:18px;bottom:22px;display:grid;gap:8px;z-index:8}.mw-scroll button{box-shadow:0 2px 10px #0001}@media (max-width:720px){.mw-stats{gap:8px}.mw-stats>div{padding:12px}.mw-stats strong{font-size:21px}.mw-task-head{align-items:flex-start;gap:12px}.mw-results{padding:12px}.mw-scroll button{padding:7px}.mw-pagination{justify-content:flex-start}.mw-task-head>span{width:100%}}.mw-search-panel{border:1px solid var(--border-color,#dce3ec);background:var(--card-bg,#fff);border-radius:12px;padding:20px;margin-bottom:20px}.mw-search-panel h2{font-size:18px;margin:0 0 8px}.mw-search-panel header p{font-size:13px;margin:0 0 18px}.mw-search-panel .mw-filters{padding:0;margin:0;border:0;border-radius:0;gap:16px;align-items:flex-end}.mw-search-panel .mw-search-keyword{flex:1 0 100%;min-width:0}.mw-search-keyword input{width:100%;box-sizing:border-box}.mw-search-actions{display:flex;gap:10px;flex-wrap:wrap;padding-top:4px}.mw-page .mw-button-primary{background:#245bdf;border-color:#245bdf;color:#fff;font-weight:600}.mw-page .mw-button-secondary{background:transparent}.mw-search-panel input:focus-visible,.mw-search-panel button:focus-visible,.mw-search-panel select:focus-visible{outline:2px solid #245bdf;outline-offset:3px}.mw-retention-rule{font-size:13px}.mw-view-help{font-size:13px;color:var(--text-secondary,#63758a);line-height:1.8;margin:-4px 0 18px}.mw-retention{border-left:3px solid #245bdf;padding-left:10px;min-width:150px;margin-top:8px}.mw-retention>strong{display:block;font-size:15px;color:var(--text-primary,#18314e)}.mw-retention-urgent{border-color:#b46a00}.mw-retention-urgent>strong{color:#a45c00}.mw-retention-expired{border-color:#bc3e38}.mw-retention-expired>strong{color:#a82b27}.mw-retention-unknown{border-color:#8d99a8}.mw-task-head>.mw-retention{flex:1;max-width:350px}[data-theme=dark] .mw-retention-urgent>strong{color:#ffc977}[data-theme=dark] .mw-retention-expired>strong{color:#ffaaa2}@media (max-width:720px){.mw-search-panel{padding:16px}.mw-search-panel .mw-filters>label{min-width:0;flex-basis:100%}.mw-search-actions{width:100%}.mw-search-actions button{flex:1}.mw-task-head>.mw-retention{max-width:none;flex-basis:100%}}.mw-actions button.mw-zip-ready{background:#e5f7ed;color:#11633e;border-color:#8bc9a8;font-weight:700}.mw-actions button.mw-zip-ready:hover:not(:disabled){background:#cef0dd}.mw-task-head .mw-save-pending{color:#854d0e;background:#fef3c7;border-radius:4px;padding:1px 4px;font-weight:700;white-space:nowrap}.mw-completion{display:flex;justify-content:flex-end;margin-bottom:6px}.mw-completion span{display:inline-block;padding:4px 11px;border:2px solid currentColor;border-radius:5px;font-size:20px;font-weight:800;line-height:1.2;letter-spacing:.08em;white-space:nowrap;background:#fff7df;color:#854d0e;transform:rotate(-4deg)}.mw-completion span[data-complete=true]{background:#e5f7ed;color:#11633e}.referral-page{--referral-ink: #142844;--referral-muted: #4d607a;--referral-line: #dfe7f1;--referral-tint: #f2f6fc;--referral-accent: #174da5;display:grid;gap:16px;color:var(--referral-ink)}.referral-page .page-header{margin:0}.referral-page .card{min-width:0;padding:20px;border:1px solid var(--referral-line);border-radius:14px;box-shadow:0 2px 6px #18365a08}.referral-page .card+.card{margin-top:0}.referral-page h2{margin:0;font-size:18px;line-height:1.4}.referral-page h3{margin:0 0 8px;font-size:16px}.referral-top{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:14px}.referral-card-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px}.referral-card-heading p{margin:4px 0 0;color:var(--referral-muted)}.referral-share{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:14px 20px}.referral-share .referral-share-heading{display:grid;grid-column:1 / -1;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}.referral-share-heading .ui-status-badge,.referral-qr-hint{justify-self:end}.referral-share-heading p{margin:0}.referral-qr-hint{color:var(--referral-muted);text-align:end}.referral-qr,.referral-qr-hint{font-size:12px}.referral-share-main{min-width:0}.referral-copy-fields{display:grid;gap:11px}.referral-copy-fields label,.referral-form label{display:grid;gap:5px;color:var(--referral-ink);font-weight:600}.referral-copy-row{display:flex;gap:8px;margin-top:5px}.referral-copy-row .btn{flex-shrink:0}.referral-copy-row input,.referral-form label input:not([type=radio]){min-width:0;width:100%;min-height:42px;padding:8px 11px;border:1px solid #cedbeb;border-radius:8px;background:var(--surface);color:var(--referral-ink);font:inherit}.referral-copy-row input{background:var(--referral-tint)}.referral-copy-row .referral-code{font-family:ui-monospace,Consolas,monospace}.referral-copy-feedback{min-height:1.5em;margin:7px 0 0;color:var(--referral-accent);font-size:13px}.referral-qr{display:grid;justify-items:center;justify-self:end;width:190px;max-width:100%;gap:4px;padding:12px;border:1px solid var(--referral-line);border-radius:12px;background:#fff;color:#4d607a}.referral-qr img,.referral-qr-placeholder{display:block;width:160px;max-width:100%;height:auto;aspect-ratio:1}.referral-qr-placeholder{display:grid;place-items:center;padding:10px;text-align:center}.referral-page .referral-wallet{display:flex;flex-direction:column;align-items:flex-start;gap:10px;border-color:#d7e5fa;background:#eff5ff;color:#263d5a}.referral-wallet h2{color:inherit;font-size:15px}.referral-wallet-amount{color:#245bb5;font-size:clamp(26px,3.5vw,40px);line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.referral-wallet-details{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 0;border-top:1px solid #dce6f3}.referral-wallet-details span,.referral-wallet-details strong{display:block;overflow-wrap:anywhere}.referral-wallet-details span{color:#475d79;font-size:12px}.referral-wallet-details strong{font-size:15px;font-variant-numeric:tabular-nums}.referral-wallet .referral-wallet-link{margin-top:auto;border-color:#d7e5fa;background:#fff;color:#245bb5;font-weight:650}.referral-wallet .referral-wallet-link:hover{background:#f6f9ff}.referral-wallet-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;margin-top:auto}.referral-wallet-actions .referral-withdrawal-message{flex-basis:100%}.referral-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0 0}.referral-metrics>div{min-width:0;padding:11px 12px;border-radius:9px;background:var(--referral-tint)}.referral-metrics dt{color:var(--referral-muted);font-size:13px}.referral-metrics dd{margin:4px 0 0;font-size:20px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.referral-overview-meta{display:flex;flex-wrap:wrap;gap:5px 22px;margin-top:12px;color:var(--referral-muted);font-size:13px}.referral-overview-meta strong{color:var(--referral-ink)}.referral-records{scroll-margin-top:110px}.referral-record-nav{display:flex;gap:4px;margin:0 0 16px;padding:4px;width:fit-content;max-width:100%;border-radius:10px;background:var(--referral-tint)}.referral-record-nav button{min-height:36px;padding:4px 13px;border:0;border-radius:7px;background:transparent;color:var(--referral-muted);cursor:pointer;font:inherit}.referral-record-nav button[aria-pressed=true]{background:var(--surface);color:var(--referral-accent);font-weight:650;box-shadow:0 1px 3px #152b4d22}.referral-records .ui-empty-state{margin-top:12px}.referral-table{margin-top:14px;overflow-x:auto;border:1px solid var(--referral-line);border-radius:10px}.referral-table table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;font-variant-numeric:tabular-nums}.referral-table :is(td,th){padding:11px 10px}.referral-table th{background:var(--referral-tint);color:var(--referral-muted);font-weight:600;white-space:nowrap}.referral-table tbody tr+tr td{border-top:1px solid var(--referral-line)}.referral-mobile-label{display:none}.referral-member-name{display:grid}.referral-member-name small{color:var(--referral-muted)}.referral-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}.referral-withdrawal{margin-top:14px;padding:14px;border:1px solid var(--referral-line);border-radius:10px;background:var(--referral-tint)}.referral-form p{margin:8px 0}.referral-form fieldset{min-width:0;margin:0;padding:0;border:0}.referral-payout-fields{display:grid;gap:16px}.referral-payout-destination{display:grid;min-width:0;align-items:start}.referral-payout-destination>*{grid-area:1 / 1;min-width:0}.referral-payout-destination>[aria-hidden=true]{visibility:hidden}.referral-payout-top,.referral-payout-info{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:start;gap:12px}.referral-form label input:not([type=radio]){min-height:54px}.referral-payout-methods legend{margin-bottom:5px;padding:0;color:var(--referral-ink);font-weight:600}.referral-payout-options{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px}.referral-form .referral-payout-option{position:relative;min-width:0}.referral-payout-option input{position:absolute;inline-size:1px;block-size:1px;margin:0;opacity:0}.referral-payout-option-card{display:flex;min-height:54px;align-items:center;justify-content:center;gap:7px;padding:6px 8px;border:1px solid var(--referral-line);border-radius:8px;background:var(--surface);cursor:pointer}.referral-payout-option[data-method=WECHAT]{--payout-brand: #12854c;--payout-tint: #eaf8ef}.referral-payout-option[data-method=ALIPAY]{--payout-brand: #1264bf;--payout-tint: #eaf4ff}.referral-payout-option[data-method=BANK]{--payout-brand: #485f87;--payout-tint: #eef2f9}.referral-payout-brand{display:grid;flex:0 0 26px;height:26px;place-items:center;border-radius:7px;background:var(--payout-brand);color:#fff;font-size:16px;line-height:1}.referral-payout-brand svg{width:20px;height:20px}.referral-payout-option-check{flex:0 0 13px;height:13px;border:1px solid #a7b6ca;border-radius:50%}.referral-payout-option input:checked+.referral-payout-option-card{border-color:var(--payout-brand);background:var(--payout-tint);color:var(--payout-brand)}.referral-payout-option input:checked+.referral-payout-option-card .referral-payout-option-check{border-color:var(--payout-brand);background:radial-gradient(circle,var(--payout-brand) 0 3px,transparent 4px)}.referral-payout-option input:focus-visible+.referral-payout-option-card{outline:2px solid var(--brand);outline-offset:2px}.referral-payout-option input:disabled+.referral-payout-option-card{cursor:default}.referral-payout-details{display:grid;min-width:0;align-items:start;container-type:inline-size}.referral-payout-details>*{grid-area:1 / 1}.referral-payout-details>[aria-hidden=true],.referral-payout-preview-hint[aria-hidden=true]{visibility:hidden}.referral-form .referral-payout-placeholder{margin:0;padding:14px;border:1px dashed #b8cbe5;border-radius:8px;color:var(--referral-muted)}.referral-payout-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0 0;padding:10px;border:1px solid var(--referral-line);border-radius:8px;background:var(--surface)}.referral-payout-totals dt{color:var(--referral-muted);font-size:12px}.referral-payout-totals dd{margin:3px 0 0;font-weight:650;overflow-wrap:anywhere}.referral-payout-totals div:last-child dd{color:var(--referral-accent)}.referral-form .btn{margin-top:8px}.referral-payout-qr{display:grid;gap:6px;width:min(380px,100%)}.referral-payout-qr small{color:var(--referral-muted)}.referral-payout-dropzone-wrap{position:relative}.referral-payout-dropzone{display:flex;width:100%;align-items:center;min-height:96px;padding:9px 12px 9px 100px;border:1px dashed #9cb5d8;border-radius:10px;background:var(--surface);color:var(--referral-ink);font:inherit;text-align:start;cursor:pointer}.referral-payout-dropzone:not(:disabled):hover,.referral-payout-dropzone-wrap[data-dragging=true] .referral-payout-dropzone{border-color:var(--brand);background:var(--brand-soft)}.referral-payout-dropzone:disabled{cursor:default}.referral-payout-dropzone>*{pointer-events:none}.referral-payout-upload-icon{position:absolute;inset:50% auto auto 31px;transform:translateY(-50%);display:grid;width:40px;height:40px;place-items:center;border-radius:8px;background:var(--brand-soft);color:var(--referral-accent)}.referral-payout-dropzone-text{display:grid;gap:3px;min-width:0}.referral-payout-dropzone-text strong{color:var(--referral-accent)}.referral-payout-dropzone-text>span{color:var(--referral-muted);font-size:12px}.referral-payout-preview-trigger{position:absolute;inset:10px auto auto 13px;width:76px;height:76px;padding:0;border:0;border-radius:6px;background:#fff;cursor:zoom-in}.referral-payout-preview-trigger img{display:block;width:100%;height:100%;border-radius:inherit;object-fit:contain}.referral-payout-hover-preview,.referral-payout-preview-hint span{display:none}@media (hover: hover){.referral-payout-preview-hint span{display:inline}.referral-payout-dropzone-wrap[data-dragging=false] .referral-payout-preview-trigger:hover+.referral-payout-hover-preview{position:fixed;z-index:30;top:50%;transform:translateY(-50%);display:grid;gap:8px;margin-inline-start:clamp(0px,calc(100cqw - 400px),392px);width:min(360px,calc(100cqw - 44px));padding:12px;border:1px solid var(--referral-line);border-radius:12px;background:var(--surface);box-shadow:0 12px 36px #152b4d33;pointer-events:none}@media (min-width: 1360px){.referral-payout-dropzone-wrap[data-dragging=false] .referral-payout-preview-trigger:hover+.referral-payout-hover-preview{margin-inline-start:clamp(0px,calc(100cqw - 340px),392px)}}.referral-payout-hover-preview img{display:block;width:100%;height:min(336px,70vh);object-fit:contain;background:#fff}}.referral-payout-preview-dialog{width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:16px;border:1px solid var(--referral-line);border-radius:14px;background:var(--surface);color:var(--referral-ink)}.referral-payout-preview-dialog::backdrop{background:#152b4d66}.referral-payout-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.referral-payout-preview-heading h3{margin:0}.referral-payout-preview-dialog img{display:block;width:100%;height:min(500px,70dvh);object-fit:contain;background:#fff}.referral-available{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-radius:8px;background:var(--surface)}.referral-available strong{color:var(--referral-accent);font-size:20px;overflow-wrap:anywhere}.referral-withdrawal-message{display:flex;align-items:flex-start;gap:9px;margin-top:10px;padding:10px 12px;border:1px solid;border-radius:8px;overflow-wrap:anywhere}.referral-withdrawal-message.is-error,.referral-failure-badge{background:#fff0ef;color:#a52e26;border-color:#f1b8b3}.referral-withdrawal-message.is-success{background:#eaf8ef;color:#137445;border-color:#a9dbbf}.referral-withdrawal-message-icon{display:grid;place-items:center;flex:0 0 20px;height:20px;border:1px solid;border-radius:50%;font-weight:700}.referral-withdrawal-message strong{display:block}.referral-withdrawal-dialog{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:20px;border:1px solid var(--referral-line);border-radius:14px;background:var(--surface);color:var(--referral-ink)}.referral-withdrawal-dialog::backdrop{background:#152b4d66}.referral-dialog-data{display:grid;grid-template-columns:minmax(96px,auto) minmax(0,1fr);gap:8px 14px;margin:12px 0}.referral-dialog-data dt{color:var(--referral-muted)}.referral-dialog-data dd{margin:0;overflow-wrap:anywhere}.referral-dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:14px}.referral-bank-picker{min-width:0}.referral-form .referral-bank-hint{margin:4px 0 0;font-size:13px}.referral-bank-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));align-content:start;gap:8px;block-size:100px;overflow:auto;margin:6px 0 8px}.referral-bank-card{min-width:0;border:1px solid var(--referral-line);border-radius:9px;background:var(--surface)}.referral-bank-card[data-selected=true]{border-color:var(--brand);background:var(--brand-soft)}.referral-bank-select{display:grid;gap:3px;width:100%;padding:11px;border:0;background:transparent;color:inherit;text-align:start;cursor:pointer;overflow-wrap:anywhere}.referral-bank-select span,.referral-bank-select small{color:var(--referral-muted)}.referral-bank-actions{display:flex;flex-wrap:wrap;gap:4px 9px;padding:0 11px 9px}.referral-bank-actions button{border:0;padding:2px 0;background:transparent;color:var(--referral-accent);cursor:pointer}.referral-bank-editor{display:grid;gap:10px}.referral-form .referral-bank-editor label input{min-height:42px}:is(.referral-bank-editor,.referral-payout-info) label input::placeholder{color:var(--referral-muted);opacity:1;font-weight:400}:is(.referral-bank-editor,.referral-payout-info) label input:focus::placeholder{color:transparent}.referral-record-status{display:grid;justify-items:start;gap:5px}.referral-failure-badge{padding:2px 7px;border:1px solid #f1b8b3;border-radius:6px;font-weight:650}.referral-alert{margin:10px 0 0;padding:10px 12px;border-radius:8px;background:#fff1f0;color:#a52e26}.referral-hint,.referral-rules ul{color:var(--referral-muted)}.referral-rules ul{margin:8px 0 0;padding-inline-start:19px}.referral-rules li+li{margin-top:4px}.referral-page :is(a,button,input,select):focus-visible{outline:2px solid var(--brand);outline-offset:2px}.referral-wallet .referral-wallet-link:focus-visible{outline-color:#245bb5}:root[data-theme=dark] .referral-page{--referral-ink: var(--ink);--referral-muted: var(--ink-2);--referral-line: var(--line);--referral-tint: #202e43;--referral-accent: var(--brand-dark)}:root[data-theme=dark] :is(.referral-copy-row input,.referral-form label input:not([type=radio])){border-color:var(--referral-line)}@media (max-width: 900px){.referral-top{grid-template-columns:minmax(0,1fr)}.referral-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.referral-table table,.referral-table tbody{display:block}.referral-table{overflow:visible;border:0;border-radius:0}.referral-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.referral-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;padding:12px;border:1px solid var(--referral-line);border-radius:10px}.referral-table tbody tr+tr{margin-top:8px}.referral-table tbody td,.referral-table tbody tr+tr td{display:grid;align-content:start;gap:2px;padding:0;border:0;overflow-wrap:anywhere}.referral-mobile-label{display:block;color:var(--referral-muted);font-size:12px}}@media (max-width: 560px){.referral-page{gap:12px}.referral-page .card{padding:14px}.referral-share{grid-template-columns:minmax(0,1fr);gap:10px}.referral-share-heading p,.referral-qr-hint{grid-column:1 / -1}.referral-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.referral-metrics dd{font-size:18px}.referral-copy-row input,.referral-form label input:not([type=radio]){font-size:16px}.referral-payout-top,.referral-payout-info{grid-template-columns:minmax(0,1fr)}.referral-payout-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.referral-payout-options{gap:6px}.referral-payout-option-card{flex-direction:column;gap:4px;padding-inline:4px;text-align:center}.referral-payout-option-check{position:absolute;top:6px;right:6px;width:10px;height:10px}.referral-record-nav{width:100%}.referral-record-nav button{flex:1;padding-inline:5px}}.fq-announcement-banner{position:relative;z-index:30;display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:42px;padding:9px 20px;border:0;background:#eaf1ff;color:#163b72;font:inherit;cursor:pointer;text-align:left;box-sizing:border-box}.fq-announcement-banner strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px;font-weight:800;line-height:1.5}.fq-announcement-badge{border:1px solid currentColor;border-radius:5px;padding:1px 6px;font-size:11px;white-space:nowrap}.fq-announcement-more{font-size:12px;white-space:nowrap;opacity:.8}.fq-announcement-maintenance{background:#fff4df;color:#74440d}.fq-announcement-urgent{background:#ffebeb;color:#9b2727}.fq-announcement-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10050;background:#0f172a75;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}.fq-announcement-dialog{background:#fff;color:#1e293b;border-radius:16px;box-shadow:0 20px 80px #0003;max-width:600px;width:100%;max-height:85vh;overflow:auto;padding:24px;box-sizing:border-box}.fq-announcement-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:13px;font-weight:600;color:#24528c}.fq-announcement-heading button{border:0;background:transparent;color:#64748b;font-size:28px;cursor:pointer;min-width:40px;min-height:40px}.fq-announcement-dialog h2{font-size:28px;font-weight:800;line-height:1.4;margin:10px 0 18px;overflow-wrap:anywhere}.fq-announcement-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.8}.fq-announcement-banner-main{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.fq-announcement-view-all{flex-shrink:0;padding:3px 0 3px 12px;border:0;border-left:1px solid currentColor;background:transparent;color:inherit;font:inherit;font-size:12px;cursor:pointer}.fq-announcements-collection{padding:0;display:flex;flex-direction:column;overflow:hidden}.fq-collection-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:24px;border-bottom:1px solid #e6eaf0;flex-shrink:0}.fq-collection-header h2{margin:0;font-size:23px}.fq-collection-header h2 small{font-size:13px;color:#738195;font-weight:500}.fq-collection-header p{font-size:12px;color:#738195;margin:8px 0 0}.fq-collection-header button{min-width:36px;min-height:36px;font-size:24px;border:0;background:transparent;color:#64748b;cursor:pointer}.fq-collection-body{overflow:auto;overscroll-behavior:contain;min-height:0;padding:20px 24px}.fq-collection-item+.fq-collection-item{border-top:1px solid #e6eaf0;padding-top:22px;margin-top:22px}.fq-collection-meta{display:flex;align-items:center;gap:12px;font-size:12px;color:#8a94a3}.fq-collection-kind{padding:3px 7px;border-radius:5px}.fq-collection-kind.fq-announcement-normal{color:#17488e;background:#eaf1ff}.fq-collection-item h3{font-size:21px;line-height:1.5;margin:12px 0;font-weight:800;overflow-wrap:anywhere}.fq-collection-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.9;color:#45536a}.fq-collection-footer{padding:16px 24px;border-top:1px solid #e6eaf0;background:#fafbfd;flex-shrink:0}.fq-collection-footer p{font-size:12px;color:#748095;margin:0 0 12px}.fq-collection-footer [role=alert]{color:#a52e36}.fq-collection-footer>div{display:flex;justify-content:flex-end;gap:10px}.fq-collection-footer button{font:inherit;font-size:14px;min-height:40px;padding:8px 16px;border:1px solid #d9e0e8;border-radius:8px;background:#fff;color:#43506a;cursor:pointer}.fq-collection-footer .fq-collection-read{background:#215be2;color:#fff;border-color:#215be2}.fq-collection-footer button:disabled{opacity:.6;cursor:wait}@media (max-width:640px){.fq-announcement-banner-main{flex:1;gap:8px;justify-content:flex-start}.fq-announcement-banner-main .fq-announcement-more{display:none}.fq-announcement-view-all{font-size:11px;padding-left:8px}.fq-collection-header{padding:20px 18px}.fq-collection-header h2{font-size:21px}.fq-collection-body{padding:18px}.fq-collection-item h3{font-size:20px}.fq-collection-footer{padding:16px 18px}.fq-collection-footer>div button{flex:1;padding:8px}}@media (max-width:640px){.fq-announcement-banner{padding:9px 12px;gap:8px}.fq-announcement-banner strong{flex:1;min-width:0;font-size:16px}.fq-announcement-backdrop{padding:14px}.fq-announcement-dialog{padding:18px;max-height:80dvh}.fq-announcement-dialog h2{font-size:23px}}.fq-announcements-collection{width:520px;max-width:100%;max-height:min(82vh,720px);padding:0;border:1px solid #e8edf4;border-radius:12px;box-shadow:0 20px 64px #12274726,0 3px 12px #1227470c;background:#fff}.fq-collection-header{align-items:center;padding:20px 22px 14px;border:0;gap:12px}.fq-announcements-collection .fq-collection-header h2{display:flex;align-items:center;gap:9px;margin:0;font-size:20px;line-height:30px;font-weight:700;letter-spacing:-.2px;color:#17253d}.fq-collection-header h2 small{padding:1px 7px;border-radius:5px;background:#f0f3f8;color:#8090a6;font-size:11px;line-height:20px;font-weight:500;letter-spacing:0}.fq-collection-header button{display:grid;place-items:center;min-width:32px;min-height:32px;width:32px;height:32px;padding:6px;border:0;border-radius:6px;background:transparent;color:#8b97a8;cursor:pointer;outline:none;box-shadow:none}.fq-collection-header button:hover{background:#f1f4f8;color:#4c5d75}.fq-collection-header button:focus-visible{outline:2px solid #b4ccfc;outline-offset:2px}.fq-collection-body{padding:0 22px 8px;scrollbar-width:thin;scrollbar-color:#d9e1ec transparent}.fq-collection-item{padding:15px 16px;background:#f7f9fc;border-radius:8px}.fq-collection-item+.fq-collection-item{border:0;padding-top:15px;margin-top:10px}.fq-collection-meta{gap:9px;font-size:11px;color:#93a0b1;line-height:20px}.fq-collection-kind{padding:0 6px;border-radius:4px;font-size:11px;font-weight:500}.fq-collection-kind.fq-announcement-urgent{background:#ffeded;color:#b84b56}.fq-collection-kind.fq-announcement-maintenance{background:#fff2dc;color:#9a6b2a}.fq-collection-kind.fq-announcement-normal{background:#eaf1fd;color:#4c73ad}.fq-collection-item h3{font-size:17px;line-height:1.55;font-weight:700;letter-spacing:-.15px;margin:7px 0;color:#23334d}.fq-collection-text{font-size:13px;line-height:1.85;color:#66758a}.fq-collection-footer{padding:16px 22px 20px;border:0;background:#fff}.fq-collection-footer>div{justify-content:flex-end;gap:10px}.fq-collection-footer button{box-sizing:border-box;min-height:36px;height:36px;width:144px;padding:0 12px;border:1px solid #e3e8f0;border-radius:6px;background:#f5f7fa;color:#66758a;font-size:13px;font-weight:500;white-space:nowrap;outline:none;box-shadow:none}.fq-collection-footer button:hover{background:#ebeff5}.fq-collection-footer .fq-collection-read{background:#2463e8;border-color:#2463e8;color:#fff}.fq-collection-footer .fq-collection-read:hover{background:#1d54cd}.fq-collection-footer button:focus-visible{outline:2px solid #b4ccfc;outline-offset:2px}@media (max-width:640px){.fq-announcements-collection{padding:0;border-radius:12px;max-height:82dvh}.fq-collection-header{padding:17px 18px 12px}.fq-announcements-collection .fq-collection-header h2{font-size:19px}.fq-collection-body{padding:0 18px 6px}.fq-collection-item{padding:13px 14px}.fq-collection-item+.fq-collection-item{padding-top:13px}.fq-collection-item h3{font-size:16px}.fq-collection-footer{padding:14px 18px 17px}.fq-collection-footer>div button{flex:0 1 144px;min-width:0;padding:0 8px;font-size:12px}}.fq-announcements-collection .fq-collection-header{padding:22px 24px 18px}.fq-announcements-collection .fq-collection-body{padding:0 24px 6px}.fq-announcements-collection .fq-collection-item{padding:20px;background:#fff;border:1px solid #e8edf4;border-radius:10px}.fq-announcements-collection .fq-collection-item+.fq-collection-item{padding-top:20px;margin-top:12px}.fq-announcements-collection .fq-collection-meta{margin-bottom:10px;gap:8px}.fq-announcements-collection .fq-collection-item h3{font-size:19px;line-height:1.55;letter-spacing:0;margin:0 0 16px;font-weight:700;color:#172b49}.fq-announcements-collection .fq-collection-text{font-size:14px;line-height:1.9;color:#495970;white-space:normal}.fq-announcements-collection .fq-collection-text p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.fq-announcements-collection .fq-collection-text p+p{margin-top:10px}.fq-announcements-collection .fq-collection-footer{padding:20px 24px 22px}@media (max-width:640px){.fq-announcements-collection .fq-collection-header{padding:18px 18px 14px}.fq-announcements-collection .fq-collection-body{padding:0 16px 4px}.fq-announcements-collection .fq-collection-item{padding:17px 16px}.fq-announcements-collection .fq-collection-item+.fq-collection-item{padding-top:17px}.fq-announcements-collection .fq-collection-item h3{font-size:18px;margin-bottom:14px}.fq-announcements-collection .fq-collection-text{font-size:14px;line-height:1.85}.fq-announcements-collection .fq-collection-footer{padding:16px 18px 18px}}

.topbar-user[data-account-tooltip] { position: relative; }
.topbar-user[data-account-tooltip]::after {
  content: attr(data-account-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1000;
  padding: 7px 12px;
  border: 1px solid #ead9a5;
  border-radius: 8px;
  background: #fff8dc;
  color: #765c22;
  box-shadow: 0 3px 10px rgb(118 92 34 / 8%);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease;
}
.topbar-user[data-account-tooltip]:hover::after,
.topbar-user[data-account-tooltip]:focus-visible::after { opacity: 1; visibility: visible; }

.machine-history-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:16px 0; font-size:13px; color:var(--ink-2); }
.machine-history-page-actions, .machine-history-page-jump { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.machine-history-page-jump { margin:0; }
.machine-history-page-jump label { display:flex; align-items:center; gap:6px; }
.machine-history-page-jump input { width:64px; min-width:0; height:36px; padding:6px 8px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); text-align:center; box-sizing:border-box; }
.machine-history-page-jump input:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.machine-history-page-error { flex-basis:100%; color:#b42318; }
@media(max-width:600px) { .machine-history-page-actions { width:100%; } .machine-history-pagination .btn { padding:8px 10px; } }

/* Compact invitation summary: keep content at the top, not stretched grid rows. */
.referral-top { grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr); }
.referral-top > .card { padding: 18px; }
.referral-top .referral-share { align-content: start; gap: 16px; }
.referral-share .referral-share-heading { align-items: center; }
.referral-share-main { align-self: center; }
.referral-page .referral-wallet { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; align-items: center; gap: 10px; }
.referral-wallet h2 { margin: 0; }
.referral-wallet-amount { font-size: 32px; text-align: right; }
.referral-wallet > .referral-hint { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.5; }
.referral-wallet-details { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; margin: 0; padding: 12px 0 4px; }
.referral-wallet-details strong { font-size: 14px; line-height: 1.5; }
.referral-wallet-details > div > span:not(:first-child) { margin-top: 3px; font-size: 11px; line-height: 1.45; }
.referral-wallet-actions { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 1100px) {
  .referral-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .referral-top > .card { padding: 14px; }
  .referral-wallet-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .referral-wallet-amount { font-size: 28px; }
}


.referral-invitee-status { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 500; line-height: 20px; white-space: nowrap; }


.invited-members { display: grid; gap: 16px; min-width: 0; }
.invited-members-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.invited-members-summary > div { display: grid; gap: 7px; padding: 14px 16px; border: 1px solid var(--referral-line); border-radius: 10px; background: var(--referral-tint); }
.invited-members-summary span { color: var(--referral-muted); font-size: 13px; }
.invited-members-summary strong { font-size: 22px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.invited-members-table { width: 100%; overflow-x: auto; border: 1px solid var(--referral-line); border-radius: 10px; transition: opacity .15s; }
.invited-members-table table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.invited-members-table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--referral-muted); background: var(--referral-tint); }
.invited-members-table :is(th, td) { padding: 12px 14px; }
.invited-members-table th:first-child { width: 36%; }
.invited-members-table th:nth-child(2) { width: 14%; }
.invited-members-table th:nth-child(3) { width: 22%; }
.invited-members-table tbody tr + tr { border-top: 1px solid var(--referral-line); }
.invited-members-table time, .invited-members-id { font-variant-numeric: tabular-nums; }
.invited-members-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.invited-members-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invited-members-avatar { display: inline-flex; flex: 0 0 40px; width: 40px; height: 40px; }
.invited-members-avatar .user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; overflow: hidden; }
.invited-members-avatar svg { display: block; width: 100%; height: 100%; }
.invited-members-empty { margin: 0; padding: 34px 14px; text-align: center; color: var(--referral-muted); }
.invited-members-pagination, .invited-members-page-actions, .invited-members-page-actions form, .invited-members-page-actions label { display: flex; align-items: center; gap: 8px; }
.invited-members-pagination { flex-wrap: wrap; justify-content: space-between; font-size: 12px; color: var(--referral-muted); }
.invited-members-page-actions { flex-wrap: wrap; }
.invited-members-page-actions > span { min-width: 75px; text-align: center; font-variant-numeric: tabular-nums; }
.invited-members-page-actions .btn { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.invited-members-page-actions input { width: 48px; min-width: 0; height: 32px; padding: 5px; border: 1px solid var(--referral-line); border-radius: 6px; background: var(--surface); color: var(--referral-ink); font: inherit; text-align: center; }
@media (max-width: 600px) {
  .invited-members-summary { gap: 7px; }
  .invited-members-summary > div { padding: 10px 8px; }
  .invited-members-summary span { font-size: 11px; }
  .invited-members-summary strong { font-size: 16px; }
  .invited-members-table { border: 0; overflow: visible; }
  .invited-members-table table, .invited-members-table tbody { display: block; }
  .invited-members-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .invited-members-table tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 14px; padding: 12px; border: 1px solid var(--referral-line); border-radius: 10px; }
  .invited-members-table tbody tr + tr { margin-top: 9px; }
  .invited-members-table td { display: grid; gap: 4px; padding: 0; min-width: 0; }
  .invited-members-table td:first-child, .invited-members-table td:last-child { grid-column: 1 / -1; }
  .invited-members-table td:not(:first-child)::before { content: attr(data-label); font-size: 11px; color: var(--referral-muted); }
  .invited-members-pagination { justify-content: flex-start; }
}


.invited-members-table th:nth-child(2){width:24%}.invited-members-table th:nth-child(3){width:17%}.invited-members-table th:first-child{width:30%}.public-member-number{max-width:100%}.users-list-panel .users-table:not(.users-deleted-table){min-width:1100px}


.withdrawal-history{display:grid;gap:14px;min-width:0;color:var(--ink,#142844)}
.withdrawal-history-table{overflow-x:auto;max-width:100%;border:1px solid var(--line,#dfe7f1);border-radius:10px}
.withdrawal-history table{width:100%;border-collapse:collapse;font-size:13px;min-width:980px}
.withdrawal-history.is-admin table{min-width:1450px}
.withdrawal-history th,.withdrawal-history td{padding:11px 12px;text-align:left;vertical-align:top;line-height:1.5}
.withdrawal-history th{font-weight:500;font-size:12px;background:var(--surface-2,#f2f6fc);white-space:nowrap}
.withdrawal-history tbody tr+tr{border-top:1px solid var(--line,#dfe7f1)}
.withdrawal-history small{display:block;margin-top:3px;font-size:11px;color:var(--ink-2,#60708a)}
.withdrawal-history-status{display:inline-flex;align-items:center;min-height:24px;padding:2px 8px;border-radius:6px;font-size:12px;white-space:nowrap}
.withdrawal-history-status.is-success{color:#087443;background:#eaf8f0}.withdrawal-history-status.is-pending{color:#8a5a0a;background:#fff6e6}.withdrawal-history-status.is-danger{color:#b13438;background:#fff0f0}.withdrawal-history-status.is-neutral{color:#50637a;background:#f0f3f7}
.withdrawal-history-reason{min-width:140px;max-width:260px;overflow-wrap:anywhere}.withdrawal-history-event{min-width:230px;padding:6px 0;border-bottom:1px solid var(--line,#dfe7f1)}
.withdrawal-history-actions{display:flex;gap:5px;flex-wrap:wrap;min-width:130px}.withdrawal-history details summary{cursor:pointer;white-space:nowrap}
.withdrawal-history-empty{margin:0;padding:28px;text-align:center;color:var(--ink-2,#60708a)}
.withdrawal-history-filters,.withdrawal-history-pagination,.withdrawal-history-pagination>div,.withdrawal-history-pagination label,.withdrawal-history-pagination form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.withdrawal-history-filters .input:first-child{width:260px;max-width:100%}.withdrawal-history-filters select{width:auto}
.withdrawal-history-pagination{justify-content:space-between;font-size:12px}.withdrawal-history-pagination input{width:48px;text-align:center}.withdrawal-history-pagination select,.withdrawal-history-pagination input{height:32px;border:1px solid var(--line,#dfe7f1);border-radius:6px;background:var(--surface,#fff);color:inherit;padding:4px}
.withdrawal-history-pagination .btn{min-height:32px;padding:4px 9px;font-size:12px}.withdrawal-history-pagination>div>span{min-width:80px;text-align:center;font-variant-numeric:tabular-nums}
@media(max-width:600px){.withdrawal-history:not(.is-admin) .withdrawal-history-table{border:0;overflow:visible}.withdrawal-history:not(.is-admin) table,.withdrawal-history:not(.is-admin) tbody{display:block;min-width:0}.withdrawal-history:not(.is-admin) thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.withdrawal-history:not(.is-admin) tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;border:1px solid var(--line,#dfe7f1);border-radius:10px;padding:12px}.withdrawal-history:not(.is-admin) tbody tr+tr{margin-top:10px}.withdrawal-history:not(.is-admin) td{display:grid;gap:3px;padding:0;min-width:0;overflow-wrap:anywhere}.withdrawal-history:not(.is-admin) td::before{content:attr(data-label);font-size:11px;color:var(--ink-2,#60708a)}.withdrawal-history:not(.is-admin) td:last-child{grid-column:1/-1}.withdrawal-history-pagination{justify-content:flex-start}.withdrawal-history-filters .input:first-child{width:100%}}


.fq-notice-carousel{--notice-bg:#eef4ff;--notice-ink:#244776;display:flex;align-items:center;gap:20px;box-sizing:border-box;height:76px;margin:12px auto;padding:0 24px;width:calc(100% - 32px);max-width:1440px;border:1px solid #e8eaf0;border-radius:12px;background:var(--notice-bg);color:var(--notice-ink);box-shadow:0 3px 14px #182c4d08;overflow:hidden;transition:background .45s,color .45s}.fq-notice-theme-urgent{--notice-bg:#fff1f0;--notice-ink:#a13b40}.fq-notice-theme-reward{--notice-bg:#fff8e7;--notice-ink:#8b651e}.fq-notice-window{flex:1;height:100%;min-width:0;overflow:hidden}.fq-notice-track{height:100%;transition:transform .55s cubic-bezier(.22,.68,.25,1)}.fq-notice-slide{height:100%;display:flex;align-items:center}.fq-notice-slide>a,.fq-notice-slide>button{display:flex;align-items:center;gap:18px;height:100%;width:100%;min-width:0;padding:0;border:0;background:none;color:inherit;text-decoration:none;text-align:left;font:inherit;cursor:pointer}.fq-notice-label{flex:none;width:64px;text-align:center;font-size:12px;font-weight:600;border:1px solid currentColor;border-radius:6px;padding:4px 0}.fq-notice-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.fq-notice-copy strong{font-size:16px;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.fq-notice-copy small{font-size:12px;opacity:.8;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.fq-notice-detail{flex:none;font-size:12px}.fq-notice-all{flex:none;border:0;border-left:1px solid #9993;padding:6px 0 6px 18px;background:none;color:inherit;font:inherit;font-size:12px;cursor:pointer}.fq-notice-slide a:focus-visible,.fq-notice-slide button:focus-visible{outline:2px solid currentColor;outline-offset:-3px}@media(max-width:640px){.fq-notice-carousel{height:86px;width:calc(100% - 20px);padding:0 12px;gap:8px}.fq-notice-slide>a,.fq-notice-slide>button{gap:10px}.fq-notice-label{width:54px;font-size:11px}.fq-notice-copy strong{font-size:14px}.fq-notice-copy small{font-size:11px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.fq-notice-detail{font-size:11px}.fq-notice-all{font-size:10px;padding-left:8px;max-width:64px}}@media(prefers-reduced-motion:reduce){.fq-notice-track,.fq-notice-carousel{transition:none}}


.fq-center-backdrop{padding:24px;background:rgba(19,32,53,.38);backdrop-filter:blur(3px)}.fq-announcement-dialog.fq-notice-center{display:flex;flex-direction:column;width:680px;max-width:100%;max-height:min(86dvh,820px);padding:0;overflow:hidden;border:1px solid #e4e9f0;border-radius:18px;background:#fff;box-shadow:0 24px 90px #15274329;color:#21324b}.fq-center-header{flex:none;display:flex;align-items:center;justify-content:space-between;padding:22px 28px 18px;border-bottom:1px solid #edf0f5;background:#fff}.fq-center-eyebrow{font-size:11px;letter-spacing:1px;color:#8795a7}.fq-notice-center .fq-center-header h2{margin:5px 0 0;font-size:21px;line-height:1.4;font-weight:700;color:#20314b}.fq-center-header h2 small{font-size:12px;font-weight:400;margin-left:10px;color:#8795a7}.fq-center-close{flex:none;width:34px;height:34px;border:1px solid #e9edf3;border-radius:9px;background:#f7f9fc;color:#758399;font-size:24px;line-height:1;cursor:pointer}.fq-center-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:24px 28px;background:#f7f9fc;scrollbar-width:thin}.fq-center-list{display:grid;gap:12px}.fq-center-card{display:flex;flex-direction:column;align-items:stretch;gap:11px;width:100%;padding:20px;border:1px solid #e3e9f2;border-radius:12px;background:#fff;box-shadow:0 2px 7px #1d355706;text-align:left;font:inherit;color:#243750;cursor:pointer;transition:border-color .2s,box-shadow .2s}.fq-center-card:hover{border-color:#aec6ed;box-shadow:0 5px 16px #294b7a0d}.fq-center-meta{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:11px;color:#8a97a8;line-height:1.6}.fq-center-meta time{margin-left:auto}.fq-center-tag{display:inline-block;padding:3px 8px;border-radius:5px;font-size:11px;font-weight:600}.fq-center-normal{color:#3b70b6;background:#edf4ff}.fq-center-urgent{color:#b04d58;background:#fff0f1}.fq-center-maintenance,.fq-center-reward{color:#a4792a;background:#fff5df}.fq-center-unread{color:#3572cf}.fq-center-read{color:#8b98aa}.fq-center-card-title{font-size:17px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}.fq-center-excerpt{font-size:13px;line-height:1.75;color:#718096;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.fq-center-open{font-size:12px;color:#4478bd}.fq-center-article{padding:24px;background:#fff;border:1px solid #e5eaf2;border-radius:12px}.fq-center-article h1{margin:17px 0 20px;font-size:25px;font-weight:700;line-height:1.45;color:#1c304c;overflow-wrap:anywhere}.fq-center-article>.fq-center-meta time{margin-left:0}.fq-center-intro-label{margin:0 0 10px;font-size:13px;font-weight:600;color:#9b752b}.fq-center-markdown{font-size:14px;line-height:1.85;color:#53657c;overflow-wrap:anywhere;word-break:normal}.fq-center-markdown p{margin:0 0 12px;white-space:pre-line}.fq-center-markdown h3{margin:22px 0 10px;font-size:16px;line-height:1.6;font-weight:650;color:#263c58}.fq-center-markdown h3:first-child{margin-top:0}.fq-center-markdown ul,.fq-center-markdown ol{padding-left:21px;margin:8px 0 15px}.fq-center-markdown li{padding-left:3px;margin:4px 0}.fq-center-markdown strong{font-weight:650;color:#2f4c70}.fq-center-invite{display:inline-flex;align-items:center;gap:18px;margin-top:8px;padding:10px 16px;border:1px solid #ead6a8;border-radius:8px;background:#fff8e8;color:#916b24;text-decoration:none;font-size:13px;font-weight:600}.fq-center-footer{flex:none;padding:17px 28px;border-top:1px solid #e7ecf3;background:#fff}.fq-center-footer>div{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}.fq-center-footer button{min-height:38px;padding:8px 15px;border:1px solid #dee5ef;border-radius:8px;background:#f7f9fc;color:#61728a;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}.fq-center-footer .fq-center-primary{color:#fff;background:#2462da;border-color:#2462da}.fq-center-footer p[role=alert]{margin:0 0 12px;color:#b04750;font-size:12px}.fq-notice-center button:disabled{opacity:.55;cursor:wait}.fq-notice-center button:focus-visible,.fq-notice-center a:focus-visible{outline:2px solid #729ee3;outline-offset:3px}@media(max-width:640px){.fq-center-backdrop{padding:12px}.fq-announcement-dialog.fq-notice-center{max-height:calc(100dvh - 24px);border-radius:14px}.fq-center-header{padding:17px 18px 15px}.fq-center-scroll{padding:14px}.fq-center-card{padding:16px;gap:9px}.fq-center-card-title{font-size:16px}.fq-center-article{padding:18px}.fq-center-article h1{font-size:21px;margin:14px 0 17px}.fq-center-markdown{font-size:13px;line-height:1.85}.fq-center-footer{padding:14px}.fq-center-footer>div{gap:7px}.fq-center-footer button{padding:8px 10px;flex:1 1 auto;font-size:11px}.fq-center-meta{gap:7px}.fq-center-meta time{font-size:10px}}

.machine-product-card:has(.fixed-weekly-stamp) { position: relative; overflow: visible; }
.fixed-weekly-stamp {
  position: absolute;
  z-index: 2;
  top: -12px;
  right: 20px;
  display: inline-flex;
  width: 122px;
  height: 58px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  border: 3px solid #e44b26;
  border-radius: 7px;
  color: #d83a17;
  background: linear-gradient(130deg, #fff2dd, #fffdf7 75%);
  box-shadow: 0 4px 12px #d5481d1a;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 4px;
  white-space: nowrap;
  transform: rotate(8deg);
  pointer-events: none;
}
.fixed-weekly-stamp::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: .7;
}
.machine-capacity-pill:has(.fixed-weekly-stamp) { margin-top: 42px; }
.machine-product-card:has(.fixed-weekly-stamp) .machine-product-copy { max-width: calc(100% - 135px); }
@media (max-width: 640px) {
  .fixed-weekly-stamp { top: -9px; right: 15px; width: 108px; height: 52px; font-size: 25px; letter-spacing: 3px; }
  .machine-capacity-pill:has(.fixed-weekly-stamp) { margin-top: 39px; }
  .machine-product-card:has(.fixed-weekly-stamp) .machine-product-copy { max-width: calc(100% - 115px); }
}


.compute-type-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 20px;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  background: #eef2f8;
}
.compute-type-tabs button {
  min-width: 116px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #53647b;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.compute-type-tabs button.is-active {
  border-color: #d9e3fa;
  background: #fff;
  color: #2055d6;
  box-shadow: 0 1px 3px #17376712;
}
.compute-type-tabs button:focus-visible {
  outline: 2px solid #2055d6;
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .compute-type-tabs { display: flex; width: 100%; box-sizing: border-box; }
  .compute-type-tabs button { flex: 1; min-width: 0; }
}


.machine-header-environments--compact { display: block; text-align: right; font-weight: 400; }
.machine-header-environments--compact > summary {
  display: inline-block; color: #64748b; cursor: pointer;
  font-size: 12px; line-height: 24px; list-style: none;
}
.machine-header-environments--compact > summary::-webkit-details-marker { display: none; }
.machine-header-environments--compact > summary::after { content: '⌄'; padding-left: 6px; }
.machine-header-environments--compact[open] > summary::after { content: '⌃'; }
.machine-header-environments--compact[open] .machine-environment-slot { margin-top: 6px; }
.machine-history-use-again { display: block; margin-top: 8px; }


.btn.fixed-stock-disabled:disabled {
  background: #e5e7eb;
  border-color: #e5e7eb;
  color: #94a3b8;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
  transition: none;
}


.machine-resource-filter{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin:4px 0 16px;color:#65758b;font-size:13px}
.machine-resource-filter-label{font-weight:500}
.machine-resource-options{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.machine-resource-option{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:7px 14px;border:1px solid #dce5f2;border-radius:8px;background:#fff;color:#516176;font:inherit;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.machine-resource-option>span{min-width:19px;padding:0 5px;border-radius:10px;background:#f0f3f8;font-size:12px;line-height:19px;text-align:center;font-variant-numeric:tabular-nums}
.machine-resource-option:hover{border-color:#adc7ff;color:#1e55db}
.machine-resource-option.is-selected{border-color:#b9ceff;background:#edf3ff;color:#1551db}
.machine-resource-option.is-selected>span{background:#fff}
.machine-resource-option:focus-visible{outline:2px solid #2459df;outline-offset:3px}
.machine-resource-badge{display:inline-flex;align-items:center;align-self:flex-start;width:fit-content;max-width:100%;padding:3px 9px;margin:2px 0;border:1px solid transparent;border-radius:5px;font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap}
.machine-resource-fixed{border-color:#b3e5d3;background:#ecfaf4;color:#087c59}
.machine-resource-elastic{border-color:#c7d9ff;background:#eff5ff;color:#2156be}
.machine-resource-unknown{border-color:#e2e6ed;background:#f5f6f8;color:#6b7280}
.machine-list-history td>.machine-resource-badge{display:flex;margin-bottom:6px}
@media(max-width:480px){.machine-resource-filter{gap:8px;margin-bottom:14px}.machine-resource-filter-label{width:100%}.machine-resource-option{padding:7px 10px;gap:6px}}
@media(prefers-reduced-motion:reduce){.machine-resource-option{transition:none}}


/* Card spacing must survive the pagination wrapper (display: contents). */
.creation-center .creation-machine-grid{align-items:stretch;gap:20px}
.creation-center .creation-machine-grid .creation-machine-card{display:flex;flex-direction:column;box-sizing:border-box;height:100%;min-height:244px;min-width:0;margin:0;padding:20px;border-radius:12px}
.creation-center .creation-machine-card .creation-machine-heading{align-items:center;min-height:28px;gap:12px;margin:0 0 16px}
.creation-center .creation-machine-card .creation-machine-heading h3{margin:0;font-size:18px;line-height:28px}
.creation-center .creation-machine-card .creation-machine-meta{flex:1;align-content:flex-start;align-items:baseline;min-height:44px;gap:6px 12px}
.creation-center .creation-machine-card .creation-machine-model{margin:0;font-size:13px;line-height:22px}
.creation-center .creation-machine-card .creation-machine-identity{min-width:0;font-size:13px;line-height:22px}
.creation-center .creation-machine-card .creation-machine-action{margin-top:18px}
.creation-center .creation-machine-card .creation-machine-action>.btn{min-height:40px;min-width:144px}
.creation-center .creation-machine-card .creation-machine-action>small{min-height:38px;line-height:19px;overflow-wrap:anywhere}
@media(max-width:700px){.creation-center .creation-machine-grid{gap:16px}.creation-center .creation-machine-grid .creation-machine-card{padding:20px;min-height:244px}.creation-center .creation-machine-card .creation-machine-action>.btn{width:100%}}


.creation-center .creation-machine-card .creation-machine-heading{flex-wrap:wrap}
.creation-machine-indicators{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 10px;margin-left:auto}
.creation-resource-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border:1px solid transparent;border-radius:5px;font-size:12px;font-weight:600;line-height:17px;white-space:nowrap}
.creation-resource-badge svg{flex:0 0 14px}
.creation-resource-fixed{color:#087b58;background:#ecfaf4;border-color:#b8e7d6}
.creation-resource-elastic{color:#2458be;background:#eff5ff;border-color:#c9dafe}
.creation-resource-unknown{color:#65758b;background:#f3f5f8;border-color:#e0e5ec}


.machine-operation-buttons .btn.machine-destroy-busy{display:inline-flex;align-items:center;justify-content:center;gap:8px;opacity:1;color:#bd4135;background:#fff5f3;border-color:#f4c8c2;cursor:progress}
.machine-destroy-spinner{display:inline-block;box-sizing:border-box;flex:0 0 14px;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:machine-destroy-spin .8s linear infinite;vertical-align:middle}
@keyframes machine-destroy-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.machine-destroy-spinner{animation:none}}


.machine-page-header .page-header-actions{flex-wrap:wrap}
.machine-ready-sound-controls{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;max-width:100%;padding:5px 8px;background:#fff;border:1px solid #dce4ef;border-radius:8px;font-size:12px;color:#52627a}
.machine-ready-sound-controls label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;cursor:pointer}
.machine-ready-sound-controls input{margin:0;accent-color:#2158df}
.machine-ready-sound-controls .btn{min-height:28px;padding:4px 8px;font-size:12px}
.machine-ready-sound-feedback{flex-basis:100%;font-size:12px;line-height:1.5;max-width:240px;overflow-wrap:anywhere}


.h3-upload-card{min-width:0;display:flex;flex-direction:column;gap:0;min-height:238px}
.h3-upload-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:24px;margin-bottom:10px}
.h3-upload-heading>strong{margin:0;font-size:14px;line-height:24px;white-space:nowrap;flex-shrink:0}
.h3-upload-badge{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;border-radius:20px;padding:3px 7px;background:#edf3ff;color:#2459df;font-size:11px;font-weight:600;line-height:18px;white-space:nowrap}
.h3-upload-badge.is-queued{color:#64748b;background:#f0f3f8}.h3-upload-badge.is-uploaded{color:#14835e;background:#eaf9f1}.h3-upload-badge.is-failed{color:#c34747;background:#fff0ef}
.h3-upload-dot{width:5px;height:5px;background:currentColor;border-radius:50%}.is-uploading>.h3-upload-dot{animation:h3-upload-pulse 1.4s ease-in-out infinite}
.h3-upload-card .h3-image-dropzone{position:relative;flex-shrink:0;background:#f6f8fc;transition:border-color .2s,box-shadow .2s}
.h3-upload-card .h3-image-dropzone[aria-disabled=true]{opacity:1}
.h3-upload-card.is-uploading .h3-image-dropzone{border-style:solid;border-color:#bdd0ff;box-shadow:0 0 0 3px #2459df08}
.h3-upload-card.is-queued .h3-image-dropzone{border-color:#cbd5e1}.h3-upload-card.is-uploaded .h3-image-dropzone{border-style:solid;border-color:#c5e5d7}.h3-upload-card.is-failed .h3-image-dropzone{border-color:#f0c1c1}
.h3-upload-card .h3-placeholder{align-content:center;gap:5px}.h3-upload-card .h3-image-help{font-size:11px;line-height:1.7;padding:0 6px}
.h3-upload-empty-icon{width:26px;height:26px;margin:0 auto;color:#94a8c8}
.h3-upload-overlay{position:absolute;inset:0;box-sizing:border-box;padding:10px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:linear-gradient(145deg,#f8fbffed,#eef4fff5);color:#2459df;pointer-events:none;backdrop-filter:blur(3px)}
.h3-upload-overlay.is-queued{background:linear-gradient(145deg,#fafcffef,#f0f4f9f5);color:#71819b}
.h3-upload-orbit{position:relative;display:grid;place-items:center;width:43px;height:43px;margin-bottom:2px;background:#fff;border-radius:50%;box-shadow:0 3px 12px #2459df0c}
.h3-upload-orbit:before{content:"";position:absolute;inset:-1px;border:2px solid #dce7ff;border-top-color:#3d6ef0;border-radius:50%;animation:h3-upload-spin 1.2s linear infinite}
.h3-upload-overlay.is-queued .h3-upload-orbit:before{border-color:#dce3ed;animation:h3-upload-pulse 1.8s ease-in-out infinite}
.h3-upload-title{font-size:14px;font-weight:650;line-height:20px}.h3-upload-subtitle{font-size:11px;line-height:17px;color:#7890b3}
.h3-upload-track{display:block;position:relative;width:100px;height:3px;margin-top:4px;border-radius:6px;background:#dce7fc;overflow:hidden}
.h3-upload-track>span{position:absolute;inset:0 auto 0 0;width:45%;border-radius:6px;background:linear-gradient(90deg,#81a6ff,#3b6bf0);animation:h3-upload-slide 1.6s ease-in-out infinite}
.h3-upload-overlay.is-queued .h3-upload-track{background:#e0e6ef}.h3-upload-overlay.is-queued .h3-upload-track>span{background:#aebbd0;animation-duration:2.8s}
.h3-upload-card .h3-image-actions{margin:11px 0 7px;gap:7px;min-height:36px}.h3-upload-card .h3-image-actions .btn{min-height:34px;font-size:12px}
.h3-upload-feedback{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-height:31px;font-size:11px;line-height:17px;color:#91a0b6}
.h3-upload-feedback.is-uploading{color:#416ab8}.h3-upload-feedback.is-uploaded{color:#19845f}.h3-upload-feedback.is-failed{color:#c34747}
.h3-upload-indicator{display:grid;place-items:center;width:13px;height:13px;flex-shrink:0}.h3-upload-indicator svg{width:13px;height:13px}.h3-upload-indicator.is-spinning{box-sizing:border-box;border:1.5px solid #cbdcff;border-top-color:#3b6bf0;border-radius:50%;animation:h3-upload-spin .9s linear infinite}
.h3-upload-filename{flex-basis:100%;display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#91a0b6;font-size:10px}
@keyframes h3-upload-spin{to{transform:rotate(360deg)}}@keyframes h3-upload-pulse{0%,100%{opacity:.4}50%{opacity:1}}@keyframes h3-upload-slide{0%{transform:translateX(-110%)}100%{transform:translateX(330%)}}
@media(max-width:480px){.h3-images:has(.h3-upload-card){grid-template-columns:minmax(0,1fr)}.h3-upload-card .h3-image-help{font-size:12px}.h3-upload-card .h3-image-actions .btn{min-height:38px}.h3-upload-feedback{font-size:12px}}
@media(prefers-reduced-motion:reduce){.h3-upload-card *,.h3-upload-card *:before{animation:none!important;transition:none!important}.h3-upload-track>span{left:28%}}


/* apps/web/src/styles/instance-badge.css */

/* packages/shared/src/withdrawals.css */
.withdrawal-history {
  display: grid;
  gap: 14px;
  min-width: 0;
  color: var(--ink,#142844);
}
.withdrawal-history-table {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line,#dfe7f1);
  border-radius: 10px;
}
.withdrawal-history table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 980px;
}
.withdrawal-history.is-admin table {
  min-width: 1450px;
}
.withdrawal-history th,
.withdrawal-history td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.withdrawal-history th {
  font-weight: 500;
  font-size: 12px;
  background: var(--surface-2,#f2f6fc);
  white-space: nowrap;
}
.withdrawal-history tbody tr + tr {
  border-top: 1px solid var(--line,#dfe7f1);
}
.withdrawal-history small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-2,#60708a);
}
.withdrawal-history-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.withdrawal-history-status.is-success {
  color: #087443;
  background: #eaf8f0;
}
.withdrawal-history-status.is-pending {
  color: #8a5a0a;
  background: #fff6e6;
}
.withdrawal-history-status.is-danger {
  color: #b13438;
  background: #fff0f0;
}
.withdrawal-history-status.is-neutral {
  color: #50637a;
  background: #f0f3f7;
}
.withdrawal-history-reason {
  min-width: 140px;
  max-width: 260px;
  overflow-wrap: anywhere;
}
.withdrawal-history-event {
  min-width: 230px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line,#dfe7f1);
}
.withdrawal-history-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 130px;
}
.withdrawal-history details summary {
  cursor: pointer;
  white-space: nowrap;
}
.withdrawal-history-empty {
  margin: 0;
  padding: 28px;
  text-align: center;
  color: var(--ink-2,#60708a);
}
.withdrawal-history-filters,
.withdrawal-history-pagination,
.withdrawal-history-pagination > div,
.withdrawal-history-pagination label,
.withdrawal-history-pagination form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.withdrawal-history-filters .input:first-child {
  width: 260px;
  max-width: 100%;
}
.withdrawal-history-filters select {
  width: auto;
}
.withdrawal-history-pagination {
  justify-content: space-between;
  font-size: 12px;
}
.withdrawal-history-pagination input {
  width: 48px;
  text-align: center;
}
.withdrawal-history-pagination select,
.withdrawal-history-pagination input {
  height: 32px;
  border: 1px solid var(--line,#dfe7f1);
  border-radius: 6px;
  background: var(--surface,#fff);
  color: inherit;
  padding: 4px;
}
.withdrawal-history-pagination .btn {
  min-height: 32px;
  padding: 4px 9px;
  font-size: 12px;
}
.withdrawal-history-pagination > div > span {
  min-width: 80px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
@media (max-width:600px) {
  .withdrawal-history:not(.is-admin) .withdrawal-history-table {
    border: 0;
    overflow: visible;
  }
  .withdrawal-history:not(.is-admin) table,
  .withdrawal-history:not(.is-admin) tbody {
    display: block;
    min-width: 0;
  }
  .withdrawal-history:not(.is-admin) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .withdrawal-history:not(.is-admin) tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    border: 1px solid var(--line,#dfe7f1);
    border-radius: 10px;
    padding: 12px;
  }
  .withdrawal-history:not(.is-admin) tbody tr + tr {
    margin-top: 10px;
  }
  .withdrawal-history:not(.is-admin) td {
    display: grid;
    gap: 3px;
    padding: 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .withdrawal-history:not(.is-admin) td::before {
    content: attr(data-label);
    font-size: 11px;
    color: var(--ink-2,#60708a);
  }
  .withdrawal-history:not(.is-admin) td:last-child {
    grid-column: 1/-1;
  }
  .withdrawal-history-pagination {
    justify-content: flex-start;
  }
  .withdrawal-history-filters .input:first-child {
    width: 100%;
  }
}

/* apps/web/src/pages/latest/latest-studio.css */
.latest-studio-scope .h3-studio {
  max-width: 1200px;
  margin: auto;
  padding: 28px 24px 60px;
  color: #102544;
}
.latest-studio-scope .h3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-header h1 {
  font-size: 26px;
}
.latest-studio-scope .h3-note {
  color: #64748b;
  font-size: 13px;
}
.latest-studio-scope .h3-inputs,
.latest-studio-scope .h3-results {
  padding: 24px;
  margin-top: 20px;
}
.latest-studio-scope .h3-studio h2 {
  font-size: 19px;
}
.latest-studio-scope .h3-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-studio select {
  padding: 8px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: white;
}
.latest-studio-scope .h3-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-images > div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}
.latest-studio-scope .h3-images strong {
  display: block;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-images img,
.latest-studio-scope .h3-placeholder {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}
.latest-studio-scope .h3-placeholder {
  display: grid;
  place-items: center;
  color: #94a3b8;
}
.latest-studio-scope .h3-studio textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 14px;
  line-height: 1.6;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  resize: vertical;
  font-family: inherit;
}
.latest-studio-scope .h3-review {
  padding: 16px;
  background: #f1f5ff;
  border-radius: 10px;
}
.latest-studio-scope .h3-studio pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.latest-studio-scope .h3-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-result-grid img,
.latest-studio-scope .h3-result-grid video {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-studio details {
  margin: 14px 0;
}
.latest-studio-scope .h3-studio summary {
  cursor: pointer;
}
.latest-studio-scope .h3-studio .alert {
  margin-top: 14px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, 1fr);
  }
  .latest-studio-scope .h3-studio {
    padding: 16px;
  }
  .latest-studio-scope .h3-inputs,
  .latest-studio-scope .h3-results {
    padding: 16px;
  }
  .latest-studio-scope .h3-header h1 {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-image-dropzone {
  border: 1px dashed #dce3ec;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  height: 140px;
  box-sizing: border-box;
  overflow: hidden;
}
.latest-studio-scope .h3-image-dropzone img,
.latest-studio-scope .h3-image-dropzone .h3-placeholder {
  display: grid;
  height: 100%;
  border-radius: 9px;
}
.latest-studio-scope .h3-image-dropzone .h3-image-help {
  text-align: center;
  margin: 0;
  padding: 8px;
  line-height: 1.8;
}
.latest-studio-scope .h3-image-dropzone:focus,
.latest-studio-scope .h3-image-dropzone.is-dragging {
  border-color: var(--brand,#2459df);
  background: var(--surface,#f1f5ff);
}
.latest-studio-scope .h3-image-dropzone[aria-disabled=true] {
  cursor: default;
  opacity: .7;
}
.latest-studio-scope .h3-image-dropzone[draggable=true] {
  cursor: grab;
  transition:
    border-color .18s,
    box-shadow .18s,
    opacity .18s;
}
.latest-studio-scope .h3-image-dropzone[draggable=true]:active {
  cursor: grabbing;
}
.latest-studio-scope .h3-image-dropzone.is-moving {
  opacity: .5;
}
.latest-studio-scope .h3-image-dropzone.is-dragging {
  box-shadow: 0 0 0 3px rgba(36, 89, 223, .13);
}
.latest-studio-scope .h3-image-help {
  display: block;
  color: var(--ink-3,#64748b);
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
}
.latest-studio-scope .h3-image-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-image-slot > small {
  display: block;
  line-height: 1.5;
}
.latest-studio-scope .h3-workspace {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.latest-studio-scope .h3-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}
.latest-studio-scope .h3-mode-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .h3-mode-control select {
  height: 40px;
  min-width: 128px;
  font-weight: 400;
}
.latest-studio-scope .h3-header-actions > .btn {
  min-height: 40px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .latest-studio-scope .h3-mode-control select {
    min-width: 110px;
  }
}
.latest-studio-scope .h3-task-metrics .h3-segment-remaining {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-produced-link {
  font-size: 13px;
  color: var(--brand,#2459df);
  text-decoration: none;
}
.latest-studio-scope .h3-produced-link:hover {
  text-decoration: underline;
}
.latest-studio-scope #studio-results {
  scroll-margin-top: 100px;
}
.latest-studio-scope .h3-stop-dialog {
  border: 0;
  margin: auto;
  color: var(--ink,#102544);
}
.latest-studio-scope .h3-stop-dialog:not([open]) {
  display: none;
}
.latest-studio-scope .h3-stop-dialog::backdrop {
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(3px);
}
.latest-studio-scope .h3-prompt-editor.is-dragging textarea {
  border-color: var(--brand,#2459df);
  background: #f5f8ff;
  box-shadow: 0 0 0 2px rgba(36, 89, 223, .1);
}
.latest-studio-scope .h3-prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.latest-studio-scope .h3-prompt-import {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-prompt-import .btn {
  min-width: 96px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.latest-studio-scope .h3-prompt-import .h3-field-hint {
  margin: 0;
}
.latest-studio-scope .h3-header .h3-creation-title {
  font-size: 24px;
}
.latest-studio-scope .h3-studio .h3-inputs > h2,
.latest-studio-scope .h3-studio .h3-results > h2 {
  font-size: 18px;
  font-weight: 700;
}
.latest-studio-scope .h3-step-heading {
  margin: 24px 0 12px;
}
.latest-studio-scope .h3-step-heading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.latest-studio-scope .h3-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf0ff;
  color: var(--brand,#2459df);
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .h3-step-heading p,
.latest-studio-scope .h3-field-hint {
  margin: 6px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs .h3-row > label {
  font-size: 14px;
  font-weight: 600;
}
.latest-studio-scope .h3-inputs select,
.latest-studio-scope .h3-inputs input {
  font-weight: 400;
}
.latest-studio-scope .h3-field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-required-label {
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff0ef;
  color: #c1372d;
  font-size: 12px;
  font-weight: 500;
}
.latest-studio-scope .h3-step-heading + .h3-images {
  margin-top: 12px;
}
.latest-studio-scope .h3-results > h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header .h3-creation-title {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-studio .h3-prompt-check {
  width: auto;
  min-width: 104px;
  padding: 0 14px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 6px;
}
.latest-studio-scope .h3-check-icon {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
}
.latest-studio-scope .h3-action-feedback {
  flex: 0 1 240px;
  min-height: 20px;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-report {
  margin: 16px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface,#fff);
}
.latest-studio-scope .h3-check-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-summary h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.latest-studio-scope .h3-check-summary p {
  margin: 0;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-details {
  max-height: 420px;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 8px;
}
.latest-studio-scope .h3-check-details[hidden] {
  display: none;
}
.latest-studio-scope .h3-check-explanation {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.latest-studio-scope .h3-check-category {
  border: 1px solid var(--line,#dce3ee);
  border-radius: 8px;
  padding: 10px;
}
.latest-studio-scope .h3-check-category > summary {
  font-weight: 600;
}
.latest-studio-scope .h3-check-occurrences {
  max-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
}
.latest-studio-scope .h3-check-occurrences:focus-visible {
  outline: 2px solid var(--brand,#2459df);
  outline-offset: 2px;
}
.latest-studio-scope .h3-check-group > summary {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-count {
  margin-left: 8px;
  color: var(--ink-2,#64748b);
  white-space: nowrap;
}
.latest-studio-scope .h3-check-group ul {
  padding-left: 22px;
}
.latest-studio-scope .h3-check-group li {
  padding: 8px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-group li p {
  margin: 6px 0;
}
.latest-studio-scope .h3-review > details {
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
}
.latest-studio-scope .h3-studio .h3-generate-button {
  width: auto;
  min-width: 120px;
  padding: 0 20px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 8px;
}
.latest-studio-scope .h3-generate-button .machine-creation-spinner {
  border-color: rgba(255, 255, 255, .4);
  border-top-color: currentColor;
}
.latest-studio-scope .h3-studio .h3-generate-button.is-generating {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  opacity: 1;
}
.latest-studio-scope .h3-generate-button.is-generating::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      rgba(255, 255, 255, .2) 50%,
      transparent 80%);
  transform: translateX(-100%);
  animation: latest-h3-generation-shimmer 2.8s ease-in-out infinite;
}
@keyframes latest-h3-generation-shimmer {
  0%, 15% {
    transform: translateX(-100%);
  }
  85%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-generate-button.is-generating::after {
    animation: none;
    display: none;
  }
}
.latest-studio-scope .h3-generation-guidance {
  min-height: 0;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.latest-studio-scope .h3-action-feedback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.latest-studio-scope .h3-analysis-hourglass {
  flex: none;
  font-size: 16px;
  line-height: 20px;
}
.latest-studio-scope .h3-task-progress {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  background: var(--surface,#f8faff);
}
@property --latest-h3-border-angle { syntax:"<angle>";inherits:false;initial-value:0deg }
.latest-studio-scope .h3-task-progress.is-generating {
  position: relative;
  isolation: isolate;
}
.latest-studio-scope .h3-task-progress.is-generating::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(
      from var(--latest-h3-border-angle),
      transparent 0deg 235deg,
      #c4b5fd 275deg,
      #7954ed 305deg,
      #22c8f3 335deg,
      transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(94, 104, 245, .3));
  animation: latest-h3-border-orbit 24s linear infinite;
}
@keyframes latest-h3-border-orbit {
  to {
    --latest-h3-border-angle:360deg;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-task-progress.is-generating::before {
    animation: none;
  }
}
.latest-studio-scope .h3-task-progress-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-task-progress-heading > span:last-child {
  margin-left: auto;
  color: var(--ink-2,#64748b);
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.latest-studio-scope .h3-task-phases li {
  padding: 6px 10px;
  background: var(--bg,#eef2f7);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-task-phases .is-current {
  color: var(--brand,#2459df);
  background: #e8efff;
  font-weight: 600;
}
.latest-studio-scope .h3-task-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.latest-studio-scope .h3-task-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.latest-studio-scope .h3-task-metrics span,
.latest-studio-scope .h3-progress-note {
  color: var(--ink-2,#64748b);
  font-size: 12px;
}
.latest-studio-scope .h3-task-metrics strong {
  font-size: 14px;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.latest-studio-scope .h3-real-progress {
  margin-top: 16px;
}
.latest-studio-scope .h3-real-progress label {
  font-size: 13px;
}
.latest-studio-scope .h3-real-progress progress {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 8px;
  accent-color: var(--brand,#2459df);
}
.latest-studio-scope .h3-progress-note {
  margin: 12px 0 0;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-followup {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-task-followup span {
  font-size: 12px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-result-media video,
.latest-studio-scope .h3-result-media img {
  border-radius: 8px;
}
.latest-studio-scope .h3-result-media p {
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-real-progress .h3-progress-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.latest-studio-scope .h3-progress-track {
  height: 14px;
  margin-top: 12px;
  padding: 2px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #dbe5fa;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      #e8eef8,
      #f3f6fc);
  box-shadow: inset 0 1px 3px rgba(35, 66, 125, .1);
}
.latest-studio-scope .h3-progress-fill {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #3258f5 0%,
      #7954ed 48%,
      #22c8f3 100%);
  box-shadow: 0 0 12px rgba(79, 104, 244, .45), inset 0 1px 1px rgba(255, 255, 255, .55);
  transition: width .55s ease;
}
.latest-studio-scope .h3-progress-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 12px,
      rgba(255, 255, 255, .17) 12px 20px);
  background-size: 44px 100%;
}
.latest-studio-scope .h3-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      transparent 25%,
      rgba(255, 255, 255, .65) 50%,
      transparent 75%);
  transform: translateX(-100%);
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before {
  animation: latest-h3-progress-flow 1.5s linear infinite;
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
  animation: latest-h3-progress-glint 2.6s ease-in-out infinite;
}
.latest-studio-scope .h3-terminal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-heading h2 {
  margin: 0 0 6px;
}
.latest-studio-scope .h3-terminal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #536681;
}
.latest-studio-scope .h3-terminal-output {
  margin-top: 16px;
  padding: 18px 20px;
  max-height: 380px;
  min-height: 160px;
  overflow: auto;
  border: 1px solid #263651;
  border-radius: 10px;
  background: #101827;
  color: #b7e5c3;
  font:
    12px/1.8 Consolas,
    "Cascadia Code",
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 4;
  scrollbar-color: #4c607e #101827;
}
.latest-studio-scope .h3-terminal-output .is-error {
  color: #ff9b9b;
}
.latest-studio-scope .h3-terminal-output .is-warning {
  color: #f2d48b;
}
.latest-studio-scope .h3-terminal-empty {
  color: #8c9bb0;
}
.latest-studio-scope .h3-terminal-section > .h3-field-hint {
  margin-top: 12px;
}
@keyframes latest-h3-progress-flow {
  to {
    background-position: 44px 0;
  }
}
@keyframes latest-h3-progress-glint {
  0%, 10% {
    transform: translateX(-100%);
  }
  90%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-progress-fill {
    transition: none;
  }
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before,
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
    animation: none;
  }
  .latest-studio-scope .h3-progress-fill::after {
    display: none;
  }
}
.latest-studio-scope .h3-final-video {
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line,#dce3ee);
  border-bottom: 1px solid var(--line,#dce3ee);
}
.latest-studio-scope .h3-final-video h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.latest-studio-scope .h3-final-video > p {
  margin: 0 0 18px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-final-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 680px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-final-video-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .h3-machine-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-provider-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.latest-studio-scope .h3-provider-id {
  user-select: text;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-provider-identity > span {
  min-width: 0;
}
.latest-studio-scope .h3-provider-identity [role=status] {
  color: var(--ink-2);
}
.latest-studio-scope .h3-machine-specs {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-advanced-info > p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-creation-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-creation-origin {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.latest-studio-scope .h3-creation-origin .h3-origin-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 1.3em;
  height: 1.3em;
  padding: 0 .12em;
  margin-left: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1em;
  font-weight: inherit;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-task-progress {
  padding: 22px 24px;
  background:
    linear-gradient(
      145deg,
      #fff 55%,
      #f6f8ff);
  box-shadow: 0 3px 16px rgba(26, 53, 110, .035);
}
.latest-studio-scope .h3-task-progress.is-complete {
  border-color: #d4e9e2;
  background:
    linear-gradient(
      125deg,
      #fff 45%,
      #f0faf6);
}
.latest-studio-scope .h3-task-progress-heading > strong {
  font-size: 16px;
  font-weight: 650;
}
.latest-studio-scope .h3-status-emblem {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eaf0ff;
  color: #3560e7;
  font-size: 18px;
}
.latest-studio-scope .h3-status-emblem.is-complete {
  background: #dcf5e9;
  color: #15835c;
}
.latest-studio-scope .h3-task-phases {
  gap: 0;
  flex-wrap: nowrap;
  margin: 24px 0;
  padding: 0 0 22px;
  border-bottom: 1px solid #e6ebf3;
}
.latest-studio-scope .h3-task-phases li {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  padding: 0;
  background: none;
  border-radius: 0;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe6f1;
  margin: 0 14px;
}
.latest-studio-scope .h3-phase-dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #edf1f7;
  color: #8290a7;
  font-size: 12px;
  font-weight: 600;
}
.latest-studio-scope .h3-task-phases li.is-current {
  color: #2459df;
  background: none;
  font-weight: 650;
}
.latest-studio-scope .h3-task-phases .is-current .h3-phase-dot {
  background: #2d5be9;
  color: white;
  box-shadow: 0 0 0 4px #eaf0ff;
}
.latest-studio-scope .h3-task-phases li.is-done {
  color: #326754;
}
.latest-studio-scope .h3-task-phases .is-done .h3-phase-dot {
  background: #e1f3ea;
  color: #16825c;
}
.latest-studio-scope .h3-task-phases .is-done::after {
  background: #bfdece;
}
.latest-studio-scope .h3-task-metrics {
  align-items: start;
  gap: 20px;
}
.latest-studio-scope .h3-task-metrics .h3-current-summary {
  padding: 2px 0;
  gap: 9px;
}
.latest-studio-scope .h3-current-summary > strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-metrics > div > span:first-child {
  font-size: 12px;
  color: #7a879c;
}
.latest-studio-scope .h3-task-metrics .h3-segment-summary {
  position: relative;
  padding: 0 160px 0 20px;
  border-left: 1px solid #e1e8ef;
  min-height: 76px;
  justify-content: center;
}
.latest-studio-scope .h3-task-metrics .h3-segment-count {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
  color: #2459df;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-segment-count small {
  font-size: 14px;
  color: #7a879c;
  font-weight: 400;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #eaf0ff;
  color: #2459df;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, box-shadow .2s;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link:hover {
  background: #dde7ff;
  text-decoration: none;
  box-shadow: 0 3px 10px #2459df15;
}
.latest-studio-scope .h3-produced-link:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
@media (max-width:850px) {
  .latest-studio-scope .h3-task-phases li {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }
  .latest-studio-scope .h3-task-phases li:not(:last-child)::after {
    position: absolute;
    top: 13px;
    left: calc(50% + 21px);
    right: calc(-50% + 21px);
    margin: 0;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding-right: 0;
  }
  .latest-studio-scope .h3-segment-summary .h3-produced-link {
    position: static;
    transform: none;
    align-self: flex-start;
    margin-top: 5px;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-task-progress {
    padding: 18px 14px;
  }
  .latest-studio-scope .h3-task-phases {
    margin: 22px 0 18px;
  }
  .latest-studio-scope .h3-task-phases li {
    font-size: 11px;
  }
  .latest-studio-scope .h3-phase-dot {
    width: 24px;
    height: 24px;
  }
  .latest-studio-scope .h3-task-metrics {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid #e1e8ef;
  }
}
.latest-studio-scope .h3-result-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}
.latest-studio-scope .h3-result-section-heading h3 {
  margin: 0;
}
.latest-studio-scope .h3-result-section-heading .btn {
  white-space: nowrap;
}
.latest-studio-scope .h3-segment-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.latest-studio-scope .h3-segment-actions .btn {
  padding: 7px 10px;
  min-height: 34px;
  font-size: 12px;
}
.latest-studio-scope .h3-segment-regenerate {
  color: #2459df;
  border-color: #cbd9ff;
  background: #f5f8ff;
}
.latest-studio-scope .h3-merge-notice {
  padding: 12px 16px;
  border: 1px solid #f0d9a8;
  border-radius: 9px;
  background: #fff9ed;
  color: #92641a;
  font-size: 13px;
}
.latest-studio-scope .h3-segment-editor {
  width: min(880px, calc(100vw - 32px));
  max-height: 85vh;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #dce3ee;
  border-radius: 16px;
  color: #142b4a;
  background: #fff;
  box-shadow: 0 24px 80px #10254430;
}
.latest-studio-scope .h3-segment-editor::backdrop {
  background: #10254470;
  backdrop-filter: blur(4px);
}
.latest-studio-scope .h3-segment-editor header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .h3-segment-editor h2 {
  font-size: 20px;
  margin: 4px 0 8px;
}
.latest-studio-scope .h3-segment-editor label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}
.latest-studio-scope .h3-segment-editor textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 320px;
  resize: vertical;
  line-height: 1.8;
  font-size: 14px;
  border: 1px solid #ccd8eb;
  border-radius: 10px;
  padding: 14px;
}
.latest-studio-scope .h3-segment-editor footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.latest-studio-scope .h3-editor-error {
  font-size: 13px;
  color: #c13737;
}
.latest-studio-scope .h3-segment-editor textarea:focus {
  outline: 2px solid #bad0ff;
  border-color: #2459df;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-segment-editor {
    padding: 18px;
  }
  .latest-studio-scope .h3-segment-editor textarea {
    min-height: 240px;
  }
  .latest-studio-scope .h3-result-section-heading > .btn {
    width: 100%;
  }
}
.latest-studio-scope .main.main-studio {
  padding-top: 20px;
}
.latest-studio-scope .main-studio .h3-studio {
  padding-top: 0;
}
.latest-studio-scope .h3-header h1 {
  margin-top: 0;
}
.latest-studio-scope .h3-input-lock-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #edf3ff;
  color: #365c9b;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs textarea[readonly] {
  background: #f7f9fc;
  color: #53627a;
  cursor: default;
}
.latest-studio-scope .h3-patient-hint {
  margin: 18px 0 0;
  padding: 11px 14px;
  border-radius: 9px;
  background: #edf3ff;
  color: #4a6393;
  font-size: 13px;
  line-height: 1.8;
}
.latest-studio-scope .h3-check-reasons {
  margin: 12px 0;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-reasons span {
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-2,#64748b);
  transition:
    color .18s,
    border-color .18s,
    background .18s;
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear:not(:disabled):hover {
  color: #c1372d;
  border-color: #f1b8b3;
  background: #fff5f4;
}
.latest-studio-scope .h3-studio .h3-repair-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: #c1372d;
}
.latest-studio-scope .h3-repair-cancel:hover {
  background: #fff2f1;
  border-color: #f1b8b3;
}
.latest-studio-scope .h3-generation-guidance:empty {
  display: none;
}
.latest-studio-scope .h3-review-result.is-success {
  border-color: #c7e6d8;
  background: #f7fcf9;
}
.latest-studio-scope .h3-review-result.is-pending {
  border-color: #cddaff;
  background: #f8faff;
}
.latest-studio-scope .h3-review-verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.latest-studio-scope .h3-review-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff2df;
  color: #a86b12;
  font-size: 16px;
  font-weight: 700;
}
.latest-studio-scope .is-success .h3-review-status-icon {
  background: #e0f3e9;
  color: #23835b;
}
.latest-studio-scope .is-pending .h3-review-status-icon {
  background: #e9efff;
  color: var(--brand,#2459df);
}
.latest-studio-scope .h3-review-result .h3-check-summary p {
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-review-result .h3-check-summary h3 {
  font-size: 15px;
  margin-bottom: 3px;
}
.latest-studio-scope .h3-repair-proposal {
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 12px;
}
.latest-studio-scope .h3-repair-proposal details {
  max-height: 320px;
  overflow: auto;
}
.latest-studio-scope .h3-repair-proposal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.latest-studio-scope .h3-review-result.is-warning {
  border-color: #f0c9c5;
  background: #fffafa;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict p,
.latest-studio-scope .h3-review-result.is-warning .h3-check-reasons,
.latest-studio-scope .h3-review-result.is-warning .h3-check-details {
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-status-icon {
  background: #fee9e7;
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict p {
  color: #1f7a4f;
}
.latest-studio-scope .h3-log-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f1f5ff;
  border: 1px solid #dce5fa;
  color: #28466e;
}
.latest-studio-scope .h3-log-summary p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-log-summary.is-success {
  background: #f3fbf7;
  border-color: #c4e9d7;
  color: #14805b;
}
.latest-studio-scope .h3-log-summary.is-error {
  background: #fff5f5;
  border-color: #f4caca;
  color: #b62b35;
}
.latest-studio-scope .h3-log-summary.is-warning {
  background: #fffbf1;
  border-color: #efdeb0;
  color: #88631b;
}
.latest-studio-scope .h3-log-view-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.latest-studio-scope .h3-log-view-controls [role=group] {
  display: flex;
  gap: 6px;
}
.latest-studio-scope .h3-log-view-controls button[aria-pressed=true] {
  background: #eef3ff;
  border-color: #b5c7fa;
  color: #2459d8;
}
.latest-studio-scope .h3-log-view-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #536681;
  font-size: 13px;
}
.latest-studio-scope .h3-log-readable {
  max-height: 300px;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  padding: 4px 16px;
}
.latest-studio-scope .h3-log-readable ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.latest-studio-scope .h3-log-readable li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f6;
  font-size: 13px;
  line-height: 1.7;
  color: #344b68;
}
.latest-studio-scope .h3-log-readable li:last-child {
  border-bottom: 0;
}
.latest-studio-scope .h3-log-readable time {
  color: #71829a;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.latest-studio-scope .h3-log-readable small {
  color: #71829a;
}
.latest-studio-scope .h3-log-readable .is-warning {
  color: #88631b;
}
.latest-studio-scope .h3-log-readable .is-error {
  color: #b62b35;
}
.latest-studio-scope .h3-log-readable .is-success {
  color: #14805b;
}
.latest-studio-scope .h3-terminal-output[hidden] {
  display: none;
}
.latest-studio-scope .h3-workspace-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-top: 24px;
  padding: 10px 18px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 14px 14px 0 0;
  background:
    linear-gradient(
      110deg,
      #f5f8ff,
      var(--surface,#fff) 75%);
  width: 100%;
  box-sizing: border-box;
}
.latest-studio-scope .h3-workspace-tabs [role=tab] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  appearance: none;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  margin-bottom: -1px;
  background: transparent;
  color: #536681;
  padding: 14px 28px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background .2s,
    color .2s,
    box-shadow .2s,
    border-color .2s;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:hover {
  color: #2459df;
  background: #eaf1ff;
  box-shadow: inset 0 3px 12px #3775f50c;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true] {
  background:
    linear-gradient(
      180deg,
      #edf4ff 0%,
      var(--surface,#fff) 85%);
  border-color: var(--line,#dce3ee);
  color: #2459df;
  box-shadow: 0 -4px 14px #497cf519, inset 0 2px 0 #578bff;
  text-shadow: 0 0 14px #3775f52b;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 25%,
      #a9ceff40 50%,
      transparent 75%);
  transform: translateX(-120%);
  animation: latest-h3-tab-shine 4s ease-in-out infinite;
  pointer-events: none;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
.latest-studio-scope .h3-workspace-panel[hidden] {
  display: none !important;
}
.latest-studio-scope .h3-sync-status {
  margin: 12px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 12px;
  line-height: 1.7;
}
@keyframes latest-h3-tab-shine {
  0%, 25% {
    transform: translateX(-120%);
  }
  65%, 100% {
    transform: translateX(120%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    transition: none;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
    animation: none;
    transform: none;
    opacity: .3;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-workspace-tabs {
    padding: 8px 8px 0;
    gap: 0;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    flex: 1;
    padding: 13px 8px;
    font-size: 13px;
  }
}
.latest-studio-scope .h3-workspace-panel > .card {
  margin-top: 0;
  padding: 24px;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}
.latest-studio-scope .h3-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-studio .h3-panel-heading h2 {
  margin: .83em 0;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  color: inherit;
}
.latest-studio-scope .h3-panel-heading h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
.latest-studio-scope .h3-panel-heading .h3-terminal-actions {
  margin-top: 10px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-workspace-panel > .card {
    padding: 16px;
  }
}
.latest-studio-scope #studio-generation {
  scroll-margin-top: 130px;
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-workbench {
    scroll-behavior: auto;
  }
}
.latest-studio-scope .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters {
  margin: 24px 0;
  padding: 20px;
  border: 1px dashed #bdcde4;
  background: #f6f9fe;
  border-radius: 12px;
}
.latest-studio-scope .latest-parameters > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-parameters p {
  font-size: 13px;
  line-height: 1.8;
  color: #64748b;
  margin: 10px 0 0;
}
.latest-studio-scope .latest-pending-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 20px;
  background: #edf2fa;
  color: #526a90;
  font-size: 12px;
}
.latest-studio-scope .latest-pending-selection {
  font-size: 13px;
  color: #64748b;
  padding: 10px 0;
}
.latest-studio-scope .latest-workbench .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.latest-studio-scope .latest-parameter-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .latest-parameter-grid input,
.latest-studio-scope .latest-parameter-grid select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  background: white;
  border: 1px solid #d5dfef;
  border-radius: 8px;
  color: #18365c;
  font: inherit;
  font-weight: 400;
}
.latest-studio-scope .latest-parameter-grid input:focus,
.latest-studio-scope .latest-parameter-grid select:focus {
  outline: 2px solid #bdd0ff;
  outline-offset: 1px;
  border-color: #5784f5;
}
@media (max-width:900px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-workbench .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .h3-header {
  gap: 16px;
}
.latest-studio-scope .h3-header > div {
  min-width: 0;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .h3-header {
    align-items: flex-start;
  }
  .latest-studio-scope .h3-header-actions {
    flex-wrap: wrap;
  }
  .latest-studio-scope .h3-studio h1 {
    font-size: 22px;
  }
}
@media (max-width:380px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: 1fr;
  }
}


/* apps/web/src/pages/latest/latest-studio.css */
.latest-studio-scope .h3-studio {
  max-width: 1200px;
  margin: auto;
  padding: 28px 24px 60px;
  color: #102544;
}
.latest-studio-scope .h3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-header h1 {
  font-size: 26px;
}
.latest-studio-scope .h3-note {
  color: #64748b;
  font-size: 13px;
}
.latest-studio-scope .h3-inputs,
.latest-studio-scope .h3-results {
  padding: 24px;
  margin-top: 20px;
}
.latest-studio-scope .h3-studio h2 {
  font-size: 19px;
}
.latest-studio-scope .h3-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-studio select {
  padding: 8px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: white;
}
.latest-studio-scope .h3-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-images > div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}
.latest-studio-scope .h3-images strong {
  display: block;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-images img,
.latest-studio-scope .h3-placeholder {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}
.latest-studio-scope .h3-placeholder {
  display: grid;
  place-items: center;
  color: #94a3b8;
}
.latest-studio-scope .h3-studio textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 14px;
  line-height: 1.6;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  resize: vertical;
  font-family: inherit;
}
.latest-studio-scope .h3-review {
  padding: 16px;
  background: #f1f5ff;
  border-radius: 10px;
}
.latest-studio-scope .h3-studio pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.latest-studio-scope .h3-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-result-grid img,
.latest-studio-scope .h3-result-grid video {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-studio details {
  margin: 14px 0;
}
.latest-studio-scope .h3-studio summary {
  cursor: pointer;
}
.latest-studio-scope .h3-studio .alert {
  margin-top: 14px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, 1fr);
  }
  .latest-studio-scope .h3-studio {
    padding: 16px;
  }
  .latest-studio-scope .h3-inputs,
  .latest-studio-scope .h3-results {
    padding: 16px;
  }
  .latest-studio-scope .h3-header h1 {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-image-dropzone {
  border: 1px dashed #dce3ec;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  height: 140px;
  box-sizing: border-box;
  overflow: hidden;
}
.latest-studio-scope .h3-image-dropzone img,
.latest-studio-scope .h3-image-dropzone .h3-placeholder {
  display: grid;
  height: 100%;
  border-radius: 9px;
}
.latest-studio-scope .h3-image-dropzone .h3-image-help {
  text-align: center;
  margin: 0;
  padding: 8px;
  line-height: 1.8;
}
.latest-studio-scope .h3-image-dropzone:focus,
.latest-studio-scope .h3-image-dropzone.is-dragging {
  border-color: var(--brand,#2459df);
  background: var(--surface,#f1f5ff);
}
.latest-studio-scope .h3-image-dropzone[aria-disabled=true] {
  cursor: default;
  opacity: .7;
}
.latest-studio-scope .h3-image-dropzone[draggable=true] {
  cursor: grab;
  transition:
    border-color .18s,
    box-shadow .18s,
    opacity .18s;
}
.latest-studio-scope .h3-image-dropzone[draggable=true]:active {
  cursor: grabbing;
}
.latest-studio-scope .h3-image-dropzone.is-moving {
  opacity: .5;
}
.latest-studio-scope .h3-image-dropzone.is-dragging {
  box-shadow: 0 0 0 3px rgba(36, 89, 223, .13);
}
.latest-studio-scope .h3-image-help {
  display: block;
  color: var(--ink-3,#64748b);
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
}
.latest-studio-scope .h3-image-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-image-slot > small {
  display: block;
  line-height: 1.5;
}
.latest-studio-scope .h3-workspace {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.latest-studio-scope .h3-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}
.latest-studio-scope .h3-mode-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .h3-mode-control select {
  height: 40px;
  min-width: 128px;
  font-weight: 400;
}
.latest-studio-scope .h3-header-actions > .btn {
  min-height: 40px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .latest-studio-scope .h3-mode-control select {
    min-width: 110px;
  }
}
.latest-studio-scope .h3-task-metrics .h3-segment-remaining {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-produced-link {
  font-size: 13px;
  color: var(--brand,#2459df);
  text-decoration: none;
}
.latest-studio-scope .h3-produced-link:hover {
  text-decoration: underline;
}
.latest-studio-scope #studio-results {
  scroll-margin-top: 100px;
}
.latest-studio-scope .h3-stop-dialog {
  border: 0;
  margin: auto;
  color: var(--ink,#102544);
}
.latest-studio-scope .h3-stop-dialog:not([open]) {
  display: none;
}
.latest-studio-scope .h3-stop-dialog::backdrop {
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(3px);
}
.latest-studio-scope .h3-prompt-editor.is-dragging textarea {
  border-color: var(--brand,#2459df);
  background: #f5f8ff;
  box-shadow: 0 0 0 2px rgba(36, 89, 223, .1);
}
.latest-studio-scope .h3-prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.latest-studio-scope .h3-prompt-import {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-prompt-import .btn {
  min-width: 96px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.latest-studio-scope .h3-prompt-import .h3-field-hint {
  margin: 0;
}
.latest-studio-scope .h3-header .h3-creation-title {
  font-size: 24px;
}
.latest-studio-scope .h3-studio .h3-inputs > h2,
.latest-studio-scope .h3-studio .h3-results > h2 {
  font-size: 18px;
  font-weight: 700;
}
.latest-studio-scope .h3-step-heading {
  margin: 24px 0 12px;
}
.latest-studio-scope .h3-step-heading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.latest-studio-scope .h3-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf0ff;
  color: var(--brand,#2459df);
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .h3-step-heading p,
.latest-studio-scope .h3-field-hint {
  margin: 6px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs .h3-row > label {
  font-size: 14px;
  font-weight: 600;
}
.latest-studio-scope .h3-inputs select,
.latest-studio-scope .h3-inputs input {
  font-weight: 400;
}
.latest-studio-scope .h3-field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-required-label {
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff0ef;
  color: #c1372d;
  font-size: 12px;
  font-weight: 500;
}
.latest-studio-scope .h3-step-heading + .h3-images {
  margin-top: 12px;
}
.latest-studio-scope .h3-results > h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header .h3-creation-title {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-studio .h3-prompt-check {
  width: auto;
  min-width: 104px;
  padding: 0 14px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 6px;
}
.latest-studio-scope .h3-check-icon {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
}
.latest-studio-scope .h3-action-feedback {
  flex: 0 1 240px;
  min-height: 20px;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-report {
  margin: 16px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface,#fff);
}
.latest-studio-scope .h3-check-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-summary h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.latest-studio-scope .h3-check-summary p {
  margin: 0;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-details {
  max-height: 420px;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 8px;
}
.latest-studio-scope .h3-check-details[hidden] {
  display: none;
}
.latest-studio-scope .h3-check-explanation {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.latest-studio-scope .h3-check-category {
  border: 1px solid var(--line,#dce3ee);
  border-radius: 8px;
  padding: 10px;
}
.latest-studio-scope .h3-check-category > summary {
  font-weight: 600;
}
.latest-studio-scope .h3-check-occurrences {
  max-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
}
.latest-studio-scope .h3-check-occurrences:focus-visible {
  outline: 2px solid var(--brand,#2459df);
  outline-offset: 2px;
}
.latest-studio-scope .h3-check-group > summary {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-count {
  margin-left: 8px;
  color: var(--ink-2,#64748b);
  white-space: nowrap;
}
.latest-studio-scope .h3-check-group ul {
  padding-left: 22px;
}
.latest-studio-scope .h3-check-group li {
  padding: 8px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-group li p {
  margin: 6px 0;
}
.latest-studio-scope .h3-review > details {
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
}
.latest-studio-scope .h3-studio .h3-generate-button {
  width: auto;
  min-width: 120px;
  padding: 0 20px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 8px;
}
.latest-studio-scope .h3-generate-button .machine-creation-spinner {
  border-color: rgba(255, 255, 255, .4);
  border-top-color: currentColor;
}
.latest-studio-scope .h3-studio .h3-generate-button.is-generating {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  opacity: 1;
}
.latest-studio-scope .h3-generate-button.is-generating::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      rgba(255, 255, 255, .2) 50%,
      transparent 80%);
  transform: translateX(-100%);
  animation: latest-h3-generation-shimmer 2.8s ease-in-out infinite;
}
@keyframes latest-h3-generation-shimmer {
  0%, 15% {
    transform: translateX(-100%);
  }
  85%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-generate-button.is-generating::after {
    animation: none;
    display: none;
  }
}
.latest-studio-scope .h3-generation-guidance {
  min-height: 0;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.latest-studio-scope .h3-action-feedback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.latest-studio-scope .h3-analysis-hourglass {
  flex: none;
  font-size: 16px;
  line-height: 20px;
}
.latest-studio-scope .h3-task-progress {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  background: var(--surface,#f8faff);
}
@property --latest-h3-border-angle { syntax:"<angle>";inherits:false;initial-value:0deg }
.latest-studio-scope .h3-task-progress.is-generating {
  position: relative;
  isolation: isolate;
}
.latest-studio-scope .h3-task-progress.is-generating::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(
      from var(--latest-h3-border-angle),
      transparent 0deg 235deg,
      #c4b5fd 275deg,
      #7954ed 305deg,
      #22c8f3 335deg,
      transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(94, 104, 245, .3));
  animation: latest-h3-border-orbit 24s linear infinite;
}
@keyframes latest-h3-border-orbit {
  to {
    --latest-h3-border-angle:360deg;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-task-progress.is-generating::before {
    animation: none;
  }
}
.latest-studio-scope .h3-task-progress-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-task-progress-heading > span:last-child {
  margin-left: auto;
  color: var(--ink-2,#64748b);
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.latest-studio-scope .h3-task-phases li {
  padding: 6px 10px;
  background: var(--bg,#eef2f7);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-task-phases .is-current {
  color: var(--brand,#2459df);
  background: #e8efff;
  font-weight: 600;
}
.latest-studio-scope .h3-task-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.latest-studio-scope .h3-task-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.latest-studio-scope .h3-task-metrics span,
.latest-studio-scope .h3-progress-note {
  color: var(--ink-2,#64748b);
  font-size: 12px;
}
.latest-studio-scope .h3-task-metrics strong {
  font-size: 14px;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.latest-studio-scope .h3-real-progress {
  margin-top: 16px;
}
.latest-studio-scope .h3-real-progress label {
  font-size: 13px;
}
.latest-studio-scope .h3-real-progress progress {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 8px;
  accent-color: var(--brand,#2459df);
}
.latest-studio-scope .h3-progress-note {
  margin: 12px 0 0;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-followup {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-task-followup span {
  font-size: 12px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-result-media video,
.latest-studio-scope .h3-result-media img {
  border-radius: 8px;
}
.latest-studio-scope .h3-result-media p {
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-real-progress .h3-progress-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.latest-studio-scope .h3-progress-track {
  height: 14px;
  margin-top: 12px;
  padding: 2px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #dbe5fa;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      #e8eef8,
      #f3f6fc);
  box-shadow: inset 0 1px 3px rgba(35, 66, 125, .1);
}
.latest-studio-scope .h3-progress-fill {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #3258f5 0%,
      #7954ed 48%,
      #22c8f3 100%);
  box-shadow: 0 0 12px rgba(79, 104, 244, .45), inset 0 1px 1px rgba(255, 255, 255, .55);
  transition: width .55s ease;
}
.latest-studio-scope .h3-progress-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 12px,
      rgba(255, 255, 255, .17) 12px 20px);
  background-size: 44px 100%;
}
.latest-studio-scope .h3-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      transparent 25%,
      rgba(255, 255, 255, .65) 50%,
      transparent 75%);
  transform: translateX(-100%);
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before {
  animation: latest-h3-progress-flow 1.5s linear infinite;
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
  animation: latest-h3-progress-glint 2.6s ease-in-out infinite;
}
.latest-studio-scope .h3-terminal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-heading h2 {
  margin: 0 0 6px;
}
.latest-studio-scope .h3-terminal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #536681;
}
.latest-studio-scope .h3-terminal-output {
  margin-top: 16px;
  padding: 18px 20px;
  max-height: 380px;
  min-height: 160px;
  overflow: auto;
  border: 1px solid #263651;
  border-radius: 10px;
  background: #101827;
  color: #b7e5c3;
  font:
    12px/1.8 Consolas,
    "Cascadia Code",
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 4;
  scrollbar-color: #4c607e #101827;
}
.latest-studio-scope .h3-terminal-output .is-error {
  color: #ff9b9b;
}
.latest-studio-scope .h3-terminal-output .is-warning {
  color: #f2d48b;
}
.latest-studio-scope .h3-terminal-empty {
  color: #8c9bb0;
}
.latest-studio-scope .h3-terminal-section > .h3-field-hint {
  margin-top: 12px;
}
@keyframes latest-h3-progress-flow {
  to {
    background-position: 44px 0;
  }
}
@keyframes latest-h3-progress-glint {
  0%, 10% {
    transform: translateX(-100%);
  }
  90%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-progress-fill {
    transition: none;
  }
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before,
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
    animation: none;
  }
  .latest-studio-scope .h3-progress-fill::after {
    display: none;
  }
}
.latest-studio-scope .h3-final-video {
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line,#dce3ee);
  border-bottom: 1px solid var(--line,#dce3ee);
}
.latest-studio-scope .h3-final-video h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.latest-studio-scope .h3-final-video > p {
  margin: 0 0 18px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-final-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 680px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-final-video-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .h3-machine-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-provider-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.latest-studio-scope .h3-provider-id {
  user-select: text;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-provider-identity > span {
  min-width: 0;
}
.latest-studio-scope .h3-provider-identity [role=status] {
  color: var(--ink-2);
}
.latest-studio-scope .h3-machine-specs {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-advanced-info > p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-creation-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-creation-origin {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.latest-studio-scope .h3-creation-origin .h3-origin-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 1.3em;
  height: 1.3em;
  padding: 0 .12em;
  margin-left: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1em;
  font-weight: inherit;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-task-progress {
  padding: 22px 24px;
  background:
    linear-gradient(
      145deg,
      #fff 55%,
      #f6f8ff);
  box-shadow: 0 3px 16px rgba(26, 53, 110, .035);
}
.latest-studio-scope .h3-task-progress.is-complete {
  border-color: #d4e9e2;
  background:
    linear-gradient(
      125deg,
      #fff 45%,
      #f0faf6);
}
.latest-studio-scope .h3-task-progress-heading > strong {
  font-size: 16px;
  font-weight: 650;
}
.latest-studio-scope .h3-status-emblem {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eaf0ff;
  color: #3560e7;
  font-size: 18px;
}
.latest-studio-scope .h3-status-emblem.is-complete {
  background: #dcf5e9;
  color: #15835c;
}
.latest-studio-scope .h3-task-phases {
  gap: 0;
  flex-wrap: nowrap;
  margin: 24px 0;
  padding: 0 0 22px;
  border-bottom: 1px solid #e6ebf3;
}
.latest-studio-scope .h3-task-phases li {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  padding: 0;
  background: none;
  border-radius: 0;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe6f1;
  margin: 0 14px;
}
.latest-studio-scope .h3-phase-dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #edf1f7;
  color: #8290a7;
  font-size: 12px;
  font-weight: 600;
}
.latest-studio-scope .h3-task-phases li.is-current {
  color: #2459df;
  background: none;
  font-weight: 650;
}
.latest-studio-scope .h3-task-phases .is-current .h3-phase-dot {
  background: #2d5be9;
  color: white;
  box-shadow: 0 0 0 4px #eaf0ff;
}
.latest-studio-scope .h3-task-phases li.is-done {
  color: #326754;
}
.latest-studio-scope .h3-task-phases .is-done .h3-phase-dot {
  background: #e1f3ea;
  color: #16825c;
}
.latest-studio-scope .h3-task-phases .is-done::after {
  background: #bfdece;
}
.latest-studio-scope .h3-task-metrics {
  align-items: start;
  gap: 20px;
}
.latest-studio-scope .h3-task-metrics .h3-current-summary {
  padding: 2px 0;
  gap: 9px;
}
.latest-studio-scope .h3-current-summary > strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-metrics > div > span:first-child {
  font-size: 12px;
  color: #7a879c;
}
.latest-studio-scope .h3-task-metrics .h3-segment-summary {
  position: relative;
  padding: 0 160px 0 20px;
  border-left: 1px solid #e1e8ef;
  min-height: 76px;
  justify-content: center;
}
.latest-studio-scope .h3-task-metrics .h3-segment-count {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
  color: #2459df;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-segment-count small {
  font-size: 14px;
  color: #7a879c;
  font-weight: 400;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #eaf0ff;
  color: #2459df;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, box-shadow .2s;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link:hover {
  background: #dde7ff;
  text-decoration: none;
  box-shadow: 0 3px 10px #2459df15;
}
.latest-studio-scope .h3-produced-link:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
@media (max-width:850px) {
  .latest-studio-scope .h3-task-phases li {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }
  .latest-studio-scope .h3-task-phases li:not(:last-child)::after {
    position: absolute;
    top: 13px;
    left: calc(50% + 21px);
    right: calc(-50% + 21px);
    margin: 0;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding-right: 0;
  }
  .latest-studio-scope .h3-segment-summary .h3-produced-link {
    position: static;
    transform: none;
    align-self: flex-start;
    margin-top: 5px;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-task-progress {
    padding: 18px 14px;
  }
  .latest-studio-scope .h3-task-phases {
    margin: 22px 0 18px;
  }
  .latest-studio-scope .h3-task-phases li {
    font-size: 11px;
  }
  .latest-studio-scope .h3-phase-dot {
    width: 24px;
    height: 24px;
  }
  .latest-studio-scope .h3-task-metrics {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid #e1e8ef;
  }
}
.latest-studio-scope .h3-result-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}
.latest-studio-scope .h3-result-section-heading h3 {
  margin: 0;
}
.latest-studio-scope .h3-result-section-heading .btn {
  white-space: nowrap;
}
.latest-studio-scope .h3-segment-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.latest-studio-scope .h3-segment-actions .btn {
  padding: 7px 10px;
  min-height: 34px;
  font-size: 12px;
}
.latest-studio-scope .h3-segment-regenerate {
  color: #2459df;
  border-color: #cbd9ff;
  background: #f5f8ff;
}
.latest-studio-scope .h3-merge-notice {
  padding: 12px 16px;
  border: 1px solid #f0d9a8;
  border-radius: 9px;
  background: #fff9ed;
  color: #92641a;
  font-size: 13px;
}
.latest-studio-scope .h3-segment-editor {
  width: min(880px, calc(100vw - 32px));
  max-height: 85vh;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #dce3ee;
  border-radius: 16px;
  color: #142b4a;
  background: #fff;
  box-shadow: 0 24px 80px #10254430;
}
.latest-studio-scope .h3-segment-editor::backdrop {
  background: #10254470;
  backdrop-filter: blur(4px);
}
.latest-studio-scope .h3-segment-editor header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .h3-segment-editor h2 {
  font-size: 20px;
  margin: 4px 0 8px;
}
.latest-studio-scope .h3-segment-editor label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}
.latest-studio-scope .h3-segment-editor textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 320px;
  resize: vertical;
  line-height: 1.8;
  font-size: 14px;
  border: 1px solid #ccd8eb;
  border-radius: 10px;
  padding: 14px;
}
.latest-studio-scope .h3-segment-editor footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.latest-studio-scope .h3-editor-error {
  font-size: 13px;
  color: #c13737;
}
.latest-studio-scope .h3-segment-editor textarea:focus {
  outline: 2px solid #bad0ff;
  border-color: #2459df;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-segment-editor {
    padding: 18px;
  }
  .latest-studio-scope .h3-segment-editor textarea {
    min-height: 240px;
  }
  .latest-studio-scope .h3-result-section-heading > .btn {
    width: 100%;
  }
}
.latest-studio-scope .main.main-studio {
  padding-top: 20px;
}
.latest-studio-scope .main-studio .h3-studio {
  padding-top: 0;
}
.latest-studio-scope .h3-header h1 {
  margin-top: 0;
}
.latest-studio-scope .h3-input-lock-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #edf3ff;
  color: #365c9b;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs textarea[readonly] {
  background: #f7f9fc;
  color: #53627a;
  cursor: default;
}
.latest-studio-scope .h3-patient-hint {
  margin: 18px 0 0;
  padding: 11px 14px;
  border-radius: 9px;
  background: #edf3ff;
  color: #4a6393;
  font-size: 13px;
  line-height: 1.8;
}
.latest-studio-scope .h3-check-reasons {
  margin: 12px 0;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-reasons span {
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-2,#64748b);
  transition:
    color .18s,
    border-color .18s,
    background .18s;
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear:not(:disabled):hover {
  color: #c1372d;
  border-color: #f1b8b3;
  background: #fff5f4;
}
.latest-studio-scope .h3-studio .h3-repair-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: #c1372d;
}
.latest-studio-scope .h3-repair-cancel:hover {
  background: #fff2f1;
  border-color: #f1b8b3;
}
.latest-studio-scope .h3-generation-guidance:empty {
  display: none;
}
.latest-studio-scope .h3-review-result.is-success {
  border-color: #c7e6d8;
  background: #f7fcf9;
}
.latest-studio-scope .h3-review-result.is-pending {
  border-color: #cddaff;
  background: #f8faff;
}
.latest-studio-scope .h3-review-verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.latest-studio-scope .h3-review-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff2df;
  color: #a86b12;
  font-size: 16px;
  font-weight: 700;
}
.latest-studio-scope .is-success .h3-review-status-icon {
  background: #e0f3e9;
  color: #23835b;
}
.latest-studio-scope .is-pending .h3-review-status-icon {
  background: #e9efff;
  color: var(--brand,#2459df);
}
.latest-studio-scope .h3-review-result .h3-check-summary p {
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-review-result .h3-check-summary h3 {
  font-size: 15px;
  margin-bottom: 3px;
}
.latest-studio-scope .h3-repair-proposal {
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 12px;
}
.latest-studio-scope .h3-repair-proposal details {
  max-height: 320px;
  overflow: auto;
}
.latest-studio-scope .h3-repair-proposal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.latest-studio-scope .h3-review-result.is-warning {
  border-color: #f0c9c5;
  background: #fffafa;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict p,
.latest-studio-scope .h3-review-result.is-warning .h3-check-reasons,
.latest-studio-scope .h3-review-result.is-warning .h3-check-details {
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-status-icon {
  background: #fee9e7;
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict p {
  color: #1f7a4f;
}
.latest-studio-scope .h3-log-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f1f5ff;
  border: 1px solid #dce5fa;
  color: #28466e;
}
.latest-studio-scope .h3-log-summary p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-log-summary.is-success {
  background: #f3fbf7;
  border-color: #c4e9d7;
  color: #14805b;
}
.latest-studio-scope .h3-log-summary.is-error {
  background: #fff5f5;
  border-color: #f4caca;
  color: #b62b35;
}
.latest-studio-scope .h3-log-summary.is-warning {
  background: #fffbf1;
  border-color: #efdeb0;
  color: #88631b;
}
.latest-studio-scope .h3-log-view-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.latest-studio-scope .h3-log-view-controls [role=group] {
  display: flex;
  gap: 6px;
}
.latest-studio-scope .h3-log-view-controls button[aria-pressed=true] {
  background: #eef3ff;
  border-color: #b5c7fa;
  color: #2459d8;
}
.latest-studio-scope .h3-log-view-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #536681;
  font-size: 13px;
}
.latest-studio-scope .h3-log-readable {
  max-height: 300px;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  padding: 4px 16px;
}
.latest-studio-scope .h3-log-readable ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.latest-studio-scope .h3-log-readable li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f6;
  font-size: 13px;
  line-height: 1.7;
  color: #344b68;
}
.latest-studio-scope .h3-log-readable li:last-child {
  border-bottom: 0;
}
.latest-studio-scope .h3-log-readable time {
  color: #71829a;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.latest-studio-scope .h3-log-readable small {
  color: #71829a;
}
.latest-studio-scope .h3-log-readable .is-warning {
  color: #88631b;
}
.latest-studio-scope .h3-log-readable .is-error {
  color: #b62b35;
}
.latest-studio-scope .h3-log-readable .is-success {
  color: #14805b;
}
.latest-studio-scope .h3-terminal-output[hidden] {
  display: none;
}
.latest-studio-scope .h3-workspace-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-top: 24px;
  padding: 10px 18px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 14px 14px 0 0;
  background:
    linear-gradient(
      110deg,
      #f5f8ff,
      var(--surface,#fff) 75%);
  width: 100%;
  box-sizing: border-box;
}
.latest-studio-scope .h3-workspace-tabs [role=tab] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  appearance: none;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  margin-bottom: -1px;
  background: transparent;
  color: #536681;
  padding: 14px 28px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background .2s,
    color .2s,
    box-shadow .2s,
    border-color .2s;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:hover {
  color: #2459df;
  background: #eaf1ff;
  box-shadow: inset 0 3px 12px #3775f50c;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true] {
  background:
    linear-gradient(
      180deg,
      #edf4ff 0%,
      var(--surface,#fff) 85%);
  border-color: var(--line,#dce3ee);
  color: #2459df;
  box-shadow: 0 -4px 14px #497cf519, inset 0 2px 0 #578bff;
  text-shadow: 0 0 14px #3775f52b;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 25%,
      #a9ceff40 50%,
      transparent 75%);
  transform: translateX(-120%);
  animation: latest-h3-tab-shine 4s ease-in-out infinite;
  pointer-events: none;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
.latest-studio-scope .h3-workspace-panel[hidden] {
  display: none !important;
}
.latest-studio-scope .h3-sync-status {
  margin: 12px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 12px;
  line-height: 1.7;
}
@keyframes latest-h3-tab-shine {
  0%, 25% {
    transform: translateX(-120%);
  }
  65%, 100% {
    transform: translateX(120%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    transition: none;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
    animation: none;
    transform: none;
    opacity: .3;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-workspace-tabs {
    padding: 8px 8px 0;
    gap: 0;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    flex: 1;
    padding: 13px 8px;
    font-size: 13px;
  }
}
.latest-studio-scope .h3-workspace-panel > .card {
  margin-top: 0;
  padding: 24px;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}
.latest-studio-scope .h3-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-studio .h3-panel-heading h2 {
  margin: .83em 0;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  color: inherit;
}
.latest-studio-scope .h3-panel-heading h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
.latest-studio-scope .h3-panel-heading .h3-terminal-actions {
  margin-top: 10px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-workspace-panel > .card {
    padding: 16px;
  }
}
.latest-studio-scope #studio-generation {
  scroll-margin-top: 130px;
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-workbench {
    scroll-behavior: auto;
  }
}
.latest-studio-scope .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters {
  margin: 24px 0;
  padding: 20px;
  border: 1px dashed #bdcde4;
  background: #f6f9fe;
  border-radius: 12px;
}
.latest-studio-scope .latest-parameters > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-parameters p {
  font-size: 13px;
  line-height: 1.8;
  color: #64748b;
  margin: 10px 0 0;
}
.latest-studio-scope .latest-pending-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 20px;
  background: #edf2fa;
  color: #526a90;
  font-size: 12px;
}
.latest-studio-scope .latest-pending-selection {
  font-size: 13px;
  color: #64748b;
  padding: 10px 0;
}
.latest-studio-scope .latest-workbench .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.latest-studio-scope .latest-parameter-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .latest-parameter-grid input,
.latest-studio-scope .latest-parameter-grid select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  background: white;
  border: 1px solid #d5dfef;
  border-radius: 8px;
  color: #18365c;
  font: inherit;
  font-weight: 400;
}
.latest-studio-scope .latest-parameter-grid input:focus,
.latest-studio-scope .latest-parameter-grid select:focus {
  outline: 2px solid #bdd0ff;
  outline-offset: 1px;
  border-color: #5784f5;
}
@media (max-width:900px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-workbench .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .h3-header {
  gap: 16px;
}
.latest-studio-scope .h3-header > div {
  min-width: 0;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .h3-header {
    align-items: flex-start;
  }
  .latest-studio-scope .h3-header-actions {
    flex-wrap: wrap;
  }
  .latest-studio-scope .h3-studio h1 {
    font-size: 22px;
  }
}
@media (max-width:380px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .latest-connection {
  font-size: 13px;
  color: #64748b;
  padding: 9px 13px;
  border-radius: 20px;
  background: #eef2f7;
}
.latest-studio-scope .latest-connection.is-ready {
  color: #13795b;
  background: #e8f8f1;
}
.latest-studio-scope .latest-message {
  padding: 14px 18px;
  border: 1px solid #d5e3ff;
  background: #f0f6ff;
  color: #31528a;
  border-radius: 10px;
  margin: 14px 0;
  line-height: 1.7;
}
.latest-studio-scope .latest-message.is-error {
  background: #fff4f3;
  color: #b1372f;
  border-color: #f2cfca;
}
.latest-studio-scope .latest-message button {
  float: right;
  border: 0;
  background: none;
  color: inherit;
  font-size: 20px;
}
.latest-studio-scope .latest-section-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
}
.latest-studio-scope .latest-section-label span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-reference-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #fafcff;
}
.latest-studio-scope .latest-reference-section > summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
}
.latest-studio-scope .latest-reference-section > summary span {
  float: right;
  font-size: 12px;
  font-weight: 400;
  color: #6b7e96;
}
.latest-studio-scope .latest-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .latest-media-slot {
  padding: 16px;
  border: 1px solid #dce5f0;
  background: #fff;
  border-radius: 12px;
  min-width: 0;
}
.latest-studio-scope .latest-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 125px;
  gap: 10px;
  margin-top: 12px;
  background: #f5f8fd;
  border: 1px dashed #d5dfef;
  border-radius: 9px;
}
.latest-studio-scope .latest-media-placeholder > span {
  font-size: 26px;
  color: #416fea;
}
.latest-studio-scope .latest-media-placeholder p {
  margin: 0 8px;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .latest-media-placeholder small {
  font-size: 11px;
  color: #8290a5;
}
.latest-studio-scope .latest-upload-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #3561d7;
  padding: 9px 0;
}
.latest-studio-scope .latest-upload-status .machine-creation-spinner {
  width: 15px;
  height: 15px;
  display: inline-block;
}
.latest-studio-scope .latest-image-uploading .h3-image-dropzone {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #e5eeff,
      #f1f6ff);
  background-size: 200% 100%;
  animation: latest-upload-glow 2s linear infinite;
}
.latest-studio-scope .latest-settings-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.latest-studio-scope .latest-settings-main > label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.latest-studio-scope .latest-settings-main select {
  min-width: 115px;
}
.latest-studio-scope .latest-settings-main .latest-martial {
  margin-left: auto;
  padding: 14px 18px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #f8faff;
}
.latest-studio-scope .latest-martial input {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 15px;
  background: #c7d2e2;
  border: 0;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}
.latest-studio-scope .latest-martial input:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.latest-studio-scope .latest-martial input:checked {
  background: #2b5ef0;
}
.latest-studio-scope .latest-martial input:checked:after {
  transform: translateX(16px);
}
.latest-studio-scope .latest-martial strong,
.latest-studio-scope .latest-martial small {
  display: block;
}
.latest-studio-scope .latest-martial small {
  font-size: 12px;
  color: #6b7e96;
  margin-top: 5px;
}
.latest-studio-scope .latest-advanced {
  padding: 18px;
  margin-top: 20px;
  background: #f7f9fe;
  border: 1px dashed #cbd8ea;
  border-radius: 10px;
}
.latest-studio-scope .latest-advanced summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.latest-studio-scope .latest-advanced .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}
.latest-studio-scope .latest-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.latest-studio-scope .latest-range label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.latest-studio-scope .latest-range input {
  width: 78px;
}
.latest-studio-scope .latest-connected input:not([type=checkbox]):not([type=file]),
.latest-studio-scope .latest-connected select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d4deed;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
}
.latest-studio-scope .latest-connected textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #d4deed;
  border-radius: 10px;
  padding: 15px;
  line-height: 1.8;
  font: 13px/1.8 monospace;
  margin-top: 12px;
  min-height: 240px;
}
.latest-studio-scope .latest-connected input:focus-visible,
.latest-studio-scope .latest-connected select:focus-visible,
.latest-studio-scope .latest-connected textarea:focus-visible {
  outline: 2px solid #b9d0ff;
  outline-offset: 2px;
}
.latest-studio-scope .latest-connected input:disabled,
.latest-studio-scope .latest-connected select:disabled,
.latest-studio-scope .latest-connected textarea:disabled {
  background: #f2f5fa;
}
.latest-studio-scope .latest-save-settings {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-save-settings label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
  max-width: 230px;
}
.latest-studio-scope .latest-generate-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-generate-actions > .btn-primary {
  min-width: 230px;
  min-height: 44px;
}
.latest-studio-scope .latest-generate-actions > span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.latest-studio-scope .latest-result-stamp {
  padding: 6px 12px;
  color: #a66420;
  border: 2px solid currentColor;
  border-radius: 5px;
  transform: rotate(-5deg);
  font-size: 19px;
  font-weight: 750;
  white-space: nowrap;
}
.latest-studio-scope .latest-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}
.latest-studio-scope .latest-segment-list {
  border: 1px solid #dde5f0;
  border-radius: 11px;
  margin-top: 20px;
  overflow: hidden;
}
.latest-studio-scope .latest-segment-list article {
  display: grid;
  grid-template-columns: 100px 90px minmax(90px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 16px;
  box-sizing: border-box;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
}
.latest-studio-scope .latest-segment-list article:last-child {
  border-bottom: 0;
}
.latest-studio-scope .latest-segment-list article > div {
  display: flex;
  gap: 8px;
}
.latest-studio-scope .latest-segment-list .is-ready {
  color: #07845e;
}
.latest-studio-scope .latest-empty {
  padding: 60px 20px;
  text-align: center;
  color: #7d8da3;
  font-size: 14px;
}
.latest-studio-scope .latest-history {
  margin: 20px 0;
}
.latest-studio-scope .latest-history .btn {
  margin: 10px 8px 0 0;
  font-size: 12px;
}
.latest-studio-scope .latest-log-list {
  max-height: 540px;
  overflow: auto;
  margin-top: 24px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  padding: 6px 16px;
}
.latest-studio-scope .latest-log-list > div {
  display: flex;
  gap: 22px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-log-list time {
  color: #7d8da3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@keyframes latest-upload-glow {
  to {
    background-position: -200% 0;
  }
}
@media (max-width:900px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    margin-left: 0;
  }
  .latest-studio-scope .latest-segment-list article {
    grid-template-columns: 70px 60px 1fr;
  }
  .latest-studio-scope .latest-segment-list article > div {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-media-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-reference-section {
    padding: 14px;
  }
  .latest-studio-scope .latest-save-settings {
    display: block;
  }
  .latest-studio-scope .latest-save-settings label {
    margin: 12px 0;
  }
  .latest-studio-scope .latest-range {
    gap: 8px;
  }
  .latest-studio-scope .latest-range input {
    width: 62px;
  }
  .latest-studio-scope .latest-generate-actions > .btn-primary {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-results-heading {
    align-items: flex-start;
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-settings-main > label {
    flex: 1;
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
    width: 100%;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-image-uploading .h3-image-dropzone {
    animation: none;
  }
}


/* apps/web/src/pages/latest/latest-studio.css */
.latest-studio-scope .h3-studio {
  max-width: 1200px;
  margin: auto;
  padding: 28px 24px 60px;
  color: #102544;
}
.latest-studio-scope .h3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-header h1 {
  font-size: 26px;
}
.latest-studio-scope .h3-note {
  color: #64748b;
  font-size: 13px;
}
.latest-studio-scope .h3-inputs,
.latest-studio-scope .h3-results {
  padding: 24px;
  margin-top: 20px;
}
.latest-studio-scope .h3-studio h2 {
  font-size: 19px;
}
.latest-studio-scope .h3-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-studio select {
  padding: 8px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: white;
}
.latest-studio-scope .h3-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-images > div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}
.latest-studio-scope .h3-images strong {
  display: block;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-images img,
.latest-studio-scope .h3-placeholder {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}
.latest-studio-scope .h3-placeholder {
  display: grid;
  place-items: center;
  color: #94a3b8;
}
.latest-studio-scope .h3-studio textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 14px;
  line-height: 1.6;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  resize: vertical;
  font-family: inherit;
}
.latest-studio-scope .h3-review {
  padding: 16px;
  background: #f1f5ff;
  border-radius: 10px;
}
.latest-studio-scope .h3-studio pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.latest-studio-scope .h3-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-result-grid img,
.latest-studio-scope .h3-result-grid video {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-studio details {
  margin: 14px 0;
}
.latest-studio-scope .h3-studio summary {
  cursor: pointer;
}
.latest-studio-scope .h3-studio .alert {
  margin-top: 14px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, 1fr);
  }
  .latest-studio-scope .h3-studio {
    padding: 16px;
  }
  .latest-studio-scope .h3-inputs,
  .latest-studio-scope .h3-results {
    padding: 16px;
  }
  .latest-studio-scope .h3-header h1 {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-image-dropzone {
  border: 1px dashed #dce3ec;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  height: 140px;
  box-sizing: border-box;
  overflow: hidden;
}
.latest-studio-scope .h3-image-dropzone img,
.latest-studio-scope .h3-image-dropzone .h3-placeholder {
  display: grid;
  height: 100%;
  border-radius: 9px;
}
.latest-studio-scope .h3-image-dropzone .h3-image-help {
  text-align: center;
  margin: 0;
  padding: 8px;
  line-height: 1.8;
}
.latest-studio-scope .h3-image-dropzone:focus,
.latest-studio-scope .h3-image-dropzone.is-dragging {
  border-color: var(--brand,#2459df);
  background: var(--surface,#f1f5ff);
}
.latest-studio-scope .h3-image-dropzone[aria-disabled=true] {
  cursor: default;
  opacity: .7;
}
.latest-studio-scope .h3-image-dropzone[draggable=true] {
  cursor: grab;
  transition:
    border-color .18s,
    box-shadow .18s,
    opacity .18s;
}
.latest-studio-scope .h3-image-dropzone[draggable=true]:active {
  cursor: grabbing;
}
.latest-studio-scope .h3-image-dropzone.is-moving {
  opacity: .5;
}
.latest-studio-scope .h3-image-dropzone.is-dragging {
  box-shadow: 0 0 0 3px rgba(36, 89, 223, .13);
}
.latest-studio-scope .h3-image-help {
  display: block;
  color: var(--ink-3,#64748b);
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
}
.latest-studio-scope .h3-image-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-image-slot > small {
  display: block;
  line-height: 1.5;
}
.latest-studio-scope .h3-workspace {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.latest-studio-scope .h3-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}
.latest-studio-scope .h3-mode-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .h3-mode-control select {
  height: 40px;
  min-width: 128px;
  font-weight: 400;
}
.latest-studio-scope .h3-header-actions > .btn {
  min-height: 40px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .latest-studio-scope .h3-mode-control select {
    min-width: 110px;
  }
}
.latest-studio-scope .h3-task-metrics .h3-segment-remaining {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-produced-link {
  font-size: 13px;
  color: var(--brand,#2459df);
  text-decoration: none;
}
.latest-studio-scope .h3-produced-link:hover {
  text-decoration: underline;
}
.latest-studio-scope #studio-results {
  scroll-margin-top: 100px;
}
.latest-studio-scope .h3-stop-dialog {
  border: 0;
  margin: auto;
  color: var(--ink,#102544);
}
.latest-studio-scope .h3-stop-dialog:not([open]) {
  display: none;
}
.latest-studio-scope .h3-stop-dialog::backdrop {
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(3px);
}
.latest-studio-scope .h3-prompt-editor.is-dragging textarea {
  border-color: var(--brand,#2459df);
  background: #f5f8ff;
  box-shadow: 0 0 0 2px rgba(36, 89, 223, .1);
}
.latest-studio-scope .h3-prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.latest-studio-scope .h3-prompt-import {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-prompt-import .btn {
  min-width: 96px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.latest-studio-scope .h3-prompt-import .h3-field-hint {
  margin: 0;
}
.latest-studio-scope .h3-header .h3-creation-title {
  font-size: 24px;
}
.latest-studio-scope .h3-studio .h3-inputs > h2,
.latest-studio-scope .h3-studio .h3-results > h2 {
  font-size: 18px;
  font-weight: 700;
}
.latest-studio-scope .h3-step-heading {
  margin: 24px 0 12px;
}
.latest-studio-scope .h3-step-heading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.latest-studio-scope .h3-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf0ff;
  color: var(--brand,#2459df);
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .h3-step-heading p,
.latest-studio-scope .h3-field-hint {
  margin: 6px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs .h3-row > label {
  font-size: 14px;
  font-weight: 600;
}
.latest-studio-scope .h3-inputs select,
.latest-studio-scope .h3-inputs input {
  font-weight: 400;
}
.latest-studio-scope .h3-field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-required-label {
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff0ef;
  color: #c1372d;
  font-size: 12px;
  font-weight: 500;
}
.latest-studio-scope .h3-step-heading + .h3-images {
  margin-top: 12px;
}
.latest-studio-scope .h3-results > h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header .h3-creation-title {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-studio .h3-prompt-check {
  width: auto;
  min-width: 104px;
  padding: 0 14px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 6px;
}
.latest-studio-scope .h3-check-icon {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
}
.latest-studio-scope .h3-action-feedback {
  flex: 0 1 240px;
  min-height: 20px;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-report {
  margin: 16px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface,#fff);
}
.latest-studio-scope .h3-check-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-summary h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.latest-studio-scope .h3-check-summary p {
  margin: 0;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-details {
  max-height: 420px;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 8px;
}
.latest-studio-scope .h3-check-details[hidden] {
  display: none;
}
.latest-studio-scope .h3-check-explanation {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.latest-studio-scope .h3-check-category {
  border: 1px solid var(--line,#dce3ee);
  border-radius: 8px;
  padding: 10px;
}
.latest-studio-scope .h3-check-category > summary {
  font-weight: 600;
}
.latest-studio-scope .h3-check-occurrences {
  max-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
}
.latest-studio-scope .h3-check-occurrences:focus-visible {
  outline: 2px solid var(--brand,#2459df);
  outline-offset: 2px;
}
.latest-studio-scope .h3-check-group > summary {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-count {
  margin-left: 8px;
  color: var(--ink-2,#64748b);
  white-space: nowrap;
}
.latest-studio-scope .h3-check-group ul {
  padding-left: 22px;
}
.latest-studio-scope .h3-check-group li {
  padding: 8px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-group li p {
  margin: 6px 0;
}
.latest-studio-scope .h3-review > details {
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
}
.latest-studio-scope .h3-studio .h3-generate-button {
  width: auto;
  min-width: 120px;
  padding: 0 20px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 8px;
}
.latest-studio-scope .h3-generate-button .machine-creation-spinner {
  border-color: rgba(255, 255, 255, .4);
  border-top-color: currentColor;
}
.latest-studio-scope .h3-studio .h3-generate-button.is-generating {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  opacity: 1;
}
.latest-studio-scope .h3-generate-button.is-generating::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      rgba(255, 255, 255, .2) 50%,
      transparent 80%);
  transform: translateX(-100%);
  animation: latest-h3-generation-shimmer 2.8s ease-in-out infinite;
}
@keyframes latest-h3-generation-shimmer {
  0%, 15% {
    transform: translateX(-100%);
  }
  85%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-generate-button.is-generating::after {
    animation: none;
    display: none;
  }
}
.latest-studio-scope .h3-generation-guidance {
  min-height: 0;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.latest-studio-scope .h3-action-feedback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.latest-studio-scope .h3-analysis-hourglass {
  flex: none;
  font-size: 16px;
  line-height: 20px;
}
.latest-studio-scope .h3-task-progress {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  background: var(--surface,#f8faff);
}
@property --latest-h3-border-angle { syntax:"<angle>";inherits:false;initial-value:0deg }
.latest-studio-scope .h3-task-progress.is-generating {
  position: relative;
  isolation: isolate;
}
.latest-studio-scope .h3-task-progress.is-generating::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(
      from var(--latest-h3-border-angle),
      transparent 0deg 235deg,
      #c4b5fd 275deg,
      #7954ed 305deg,
      #22c8f3 335deg,
      transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(94, 104, 245, .3));
  animation: latest-h3-border-orbit 24s linear infinite;
}
@keyframes latest-h3-border-orbit {
  to {
    --latest-h3-border-angle:360deg;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-task-progress.is-generating::before {
    animation: none;
  }
}
.latest-studio-scope .h3-task-progress-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-task-progress-heading > span:last-child {
  margin-left: auto;
  color: var(--ink-2,#64748b);
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.latest-studio-scope .h3-task-phases li {
  padding: 6px 10px;
  background: var(--bg,#eef2f7);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-task-phases .is-current {
  color: var(--brand,#2459df);
  background: #e8efff;
  font-weight: 600;
}
.latest-studio-scope .h3-task-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.latest-studio-scope .h3-task-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.latest-studio-scope .h3-task-metrics span,
.latest-studio-scope .h3-progress-note {
  color: var(--ink-2,#64748b);
  font-size: 12px;
}
.latest-studio-scope .h3-task-metrics strong {
  font-size: 14px;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.latest-studio-scope .h3-real-progress {
  margin-top: 16px;
}
.latest-studio-scope .h3-real-progress label {
  font-size: 13px;
}
.latest-studio-scope .h3-real-progress progress {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 8px;
  accent-color: var(--brand,#2459df);
}
.latest-studio-scope .h3-progress-note {
  margin: 12px 0 0;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-followup {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-task-followup span {
  font-size: 12px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-result-media video,
.latest-studio-scope .h3-result-media img {
  border-radius: 8px;
}
.latest-studio-scope .h3-result-media p {
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-real-progress .h3-progress-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.latest-studio-scope .h3-progress-track {
  height: 14px;
  margin-top: 12px;
  padding: 2px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #dbe5fa;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      #e8eef8,
      #f3f6fc);
  box-shadow: inset 0 1px 3px rgba(35, 66, 125, .1);
}
.latest-studio-scope .h3-progress-fill {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #3258f5 0%,
      #7954ed 48%,
      #22c8f3 100%);
  box-shadow: 0 0 12px rgba(79, 104, 244, .45), inset 0 1px 1px rgba(255, 255, 255, .55);
  transition: width .55s ease;
}
.latest-studio-scope .h3-progress-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 12px,
      rgba(255, 255, 255, .17) 12px 20px);
  background-size: 44px 100%;
}
.latest-studio-scope .h3-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      transparent 25%,
      rgba(255, 255, 255, .65) 50%,
      transparent 75%);
  transform: translateX(-100%);
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before {
  animation: latest-h3-progress-flow 1.5s linear infinite;
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
  animation: latest-h3-progress-glint 2.6s ease-in-out infinite;
}
.latest-studio-scope .h3-terminal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-heading h2 {
  margin: 0 0 6px;
}
.latest-studio-scope .h3-terminal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #536681;
}
.latest-studio-scope .h3-terminal-output {
  margin-top: 16px;
  padding: 18px 20px;
  max-height: 380px;
  min-height: 160px;
  overflow: auto;
  border: 1px solid #263651;
  border-radius: 10px;
  background: #101827;
  color: #b7e5c3;
  font:
    12px/1.8 Consolas,
    "Cascadia Code",
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 4;
  scrollbar-color: #4c607e #101827;
}
.latest-studio-scope .h3-terminal-output .is-error {
  color: #ff9b9b;
}
.latest-studio-scope .h3-terminal-output .is-warning {
  color: #f2d48b;
}
.latest-studio-scope .h3-terminal-empty {
  color: #8c9bb0;
}
.latest-studio-scope .h3-terminal-section > .h3-field-hint {
  margin-top: 12px;
}
@keyframes latest-h3-progress-flow {
  to {
    background-position: 44px 0;
  }
}
@keyframes latest-h3-progress-glint {
  0%, 10% {
    transform: translateX(-100%);
  }
  90%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-progress-fill {
    transition: none;
  }
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before,
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
    animation: none;
  }
  .latest-studio-scope .h3-progress-fill::after {
    display: none;
  }
}
.latest-studio-scope .h3-final-video {
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line,#dce3ee);
  border-bottom: 1px solid var(--line,#dce3ee);
}
.latest-studio-scope .h3-final-video h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.latest-studio-scope .h3-final-video > p {
  margin: 0 0 18px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-final-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 680px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-final-video-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .h3-machine-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-provider-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.latest-studio-scope .h3-provider-id {
  user-select: text;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-provider-identity > span {
  min-width: 0;
}
.latest-studio-scope .h3-provider-identity [role=status] {
  color: var(--ink-2);
}
.latest-studio-scope .h3-machine-specs {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-advanced-info > p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-creation-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-creation-origin {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.latest-studio-scope .h3-creation-origin .h3-origin-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 1.3em;
  height: 1.3em;
  padding: 0 .12em;
  margin-left: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1em;
  font-weight: inherit;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-task-progress {
  padding: 22px 24px;
  background:
    linear-gradient(
      145deg,
      #fff 55%,
      #f6f8ff);
  box-shadow: 0 3px 16px rgba(26, 53, 110, .035);
}
.latest-studio-scope .h3-task-progress.is-complete {
  border-color: #d4e9e2;
  background:
    linear-gradient(
      125deg,
      #fff 45%,
      #f0faf6);
}
.latest-studio-scope .h3-task-progress-heading > strong {
  font-size: 16px;
  font-weight: 650;
}
.latest-studio-scope .h3-status-emblem {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eaf0ff;
  color: #3560e7;
  font-size: 18px;
}
.latest-studio-scope .h3-status-emblem.is-complete {
  background: #dcf5e9;
  color: #15835c;
}
.latest-studio-scope .h3-task-phases {
  gap: 0;
  flex-wrap: nowrap;
  margin: 24px 0;
  padding: 0 0 22px;
  border-bottom: 1px solid #e6ebf3;
}
.latest-studio-scope .h3-task-phases li {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  padding: 0;
  background: none;
  border-radius: 0;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe6f1;
  margin: 0 14px;
}
.latest-studio-scope .h3-phase-dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #edf1f7;
  color: #8290a7;
  font-size: 12px;
  font-weight: 600;
}
.latest-studio-scope .h3-task-phases li.is-current {
  color: #2459df;
  background: none;
  font-weight: 650;
}
.latest-studio-scope .h3-task-phases .is-current .h3-phase-dot {
  background: #2d5be9;
  color: white;
  box-shadow: 0 0 0 4px #eaf0ff;
}
.latest-studio-scope .h3-task-phases li.is-done {
  color: #326754;
}
.latest-studio-scope .h3-task-phases .is-done .h3-phase-dot {
  background: #e1f3ea;
  color: #16825c;
}
.latest-studio-scope .h3-task-phases .is-done::after {
  background: #bfdece;
}
.latest-studio-scope .h3-task-metrics {
  align-items: start;
  gap: 20px;
}
.latest-studio-scope .h3-task-metrics .h3-current-summary {
  padding: 2px 0;
  gap: 9px;
}
.latest-studio-scope .h3-current-summary > strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-metrics > div > span:first-child {
  font-size: 12px;
  color: #7a879c;
}
.latest-studio-scope .h3-task-metrics .h3-segment-summary {
  position: relative;
  padding: 0 160px 0 20px;
  border-left: 1px solid #e1e8ef;
  min-height: 76px;
  justify-content: center;
}
.latest-studio-scope .h3-task-metrics .h3-segment-count {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
  color: #2459df;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-segment-count small {
  font-size: 14px;
  color: #7a879c;
  font-weight: 400;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #eaf0ff;
  color: #2459df;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, box-shadow .2s;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link:hover {
  background: #dde7ff;
  text-decoration: none;
  box-shadow: 0 3px 10px #2459df15;
}
.latest-studio-scope .h3-produced-link:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
@media (max-width:850px) {
  .latest-studio-scope .h3-task-phases li {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }
  .latest-studio-scope .h3-task-phases li:not(:last-child)::after {
    position: absolute;
    top: 13px;
    left: calc(50% + 21px);
    right: calc(-50% + 21px);
    margin: 0;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding-right: 0;
  }
  .latest-studio-scope .h3-segment-summary .h3-produced-link {
    position: static;
    transform: none;
    align-self: flex-start;
    margin-top: 5px;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-task-progress {
    padding: 18px 14px;
  }
  .latest-studio-scope .h3-task-phases {
    margin: 22px 0 18px;
  }
  .latest-studio-scope .h3-task-phases li {
    font-size: 11px;
  }
  .latest-studio-scope .h3-phase-dot {
    width: 24px;
    height: 24px;
  }
  .latest-studio-scope .h3-task-metrics {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid #e1e8ef;
  }
}
.latest-studio-scope .h3-result-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}
.latest-studio-scope .h3-result-section-heading h3 {
  margin: 0;
}
.latest-studio-scope .h3-result-section-heading .btn {
  white-space: nowrap;
}
.latest-studio-scope .h3-segment-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.latest-studio-scope .h3-segment-actions .btn {
  padding: 7px 10px;
  min-height: 34px;
  font-size: 12px;
}
.latest-studio-scope .h3-segment-regenerate {
  color: #2459df;
  border-color: #cbd9ff;
  background: #f5f8ff;
}
.latest-studio-scope .h3-merge-notice {
  padding: 12px 16px;
  border: 1px solid #f0d9a8;
  border-radius: 9px;
  background: #fff9ed;
  color: #92641a;
  font-size: 13px;
}
.latest-studio-scope .h3-segment-editor {
  width: min(880px, calc(100vw - 32px));
  max-height: 85vh;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #dce3ee;
  border-radius: 16px;
  color: #142b4a;
  background: #fff;
  box-shadow: 0 24px 80px #10254430;
}
.latest-studio-scope .h3-segment-editor::backdrop {
  background: #10254470;
  backdrop-filter: blur(4px);
}
.latest-studio-scope .h3-segment-editor header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .h3-segment-editor h2 {
  font-size: 20px;
  margin: 4px 0 8px;
}
.latest-studio-scope .h3-segment-editor label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}
.latest-studio-scope .h3-segment-editor textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 320px;
  resize: vertical;
  line-height: 1.8;
  font-size: 14px;
  border: 1px solid #ccd8eb;
  border-radius: 10px;
  padding: 14px;
}
.latest-studio-scope .h3-segment-editor footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.latest-studio-scope .h3-editor-error {
  font-size: 13px;
  color: #c13737;
}
.latest-studio-scope .h3-segment-editor textarea:focus {
  outline: 2px solid #bad0ff;
  border-color: #2459df;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-segment-editor {
    padding: 18px;
  }
  .latest-studio-scope .h3-segment-editor textarea {
    min-height: 240px;
  }
  .latest-studio-scope .h3-result-section-heading > .btn {
    width: 100%;
  }
}
.latest-studio-scope .main.main-studio {
  padding-top: 20px;
}
.latest-studio-scope .main-studio .h3-studio {
  padding-top: 0;
}
.latest-studio-scope .h3-header h1 {
  margin-top: 0;
}
.latest-studio-scope .h3-input-lock-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #edf3ff;
  color: #365c9b;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs textarea[readonly] {
  background: #f7f9fc;
  color: #53627a;
  cursor: default;
}
.latest-studio-scope .h3-patient-hint {
  margin: 18px 0 0;
  padding: 11px 14px;
  border-radius: 9px;
  background: #edf3ff;
  color: #4a6393;
  font-size: 13px;
  line-height: 1.8;
}
.latest-studio-scope .h3-check-reasons {
  margin: 12px 0;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-reasons span {
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-2,#64748b);
  transition:
    color .18s,
    border-color .18s,
    background .18s;
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear:not(:disabled):hover {
  color: #c1372d;
  border-color: #f1b8b3;
  background: #fff5f4;
}
.latest-studio-scope .h3-studio .h3-repair-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: #c1372d;
}
.latest-studio-scope .h3-repair-cancel:hover {
  background: #fff2f1;
  border-color: #f1b8b3;
}
.latest-studio-scope .h3-generation-guidance:empty {
  display: none;
}
.latest-studio-scope .h3-review-result.is-success {
  border-color: #c7e6d8;
  background: #f7fcf9;
}
.latest-studio-scope .h3-review-result.is-pending {
  border-color: #cddaff;
  background: #f8faff;
}
.latest-studio-scope .h3-review-verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.latest-studio-scope .h3-review-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff2df;
  color: #a86b12;
  font-size: 16px;
  font-weight: 700;
}
.latest-studio-scope .is-success .h3-review-status-icon {
  background: #e0f3e9;
  color: #23835b;
}
.latest-studio-scope .is-pending .h3-review-status-icon {
  background: #e9efff;
  color: var(--brand,#2459df);
}
.latest-studio-scope .h3-review-result .h3-check-summary p {
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-review-result .h3-check-summary h3 {
  font-size: 15px;
  margin-bottom: 3px;
}
.latest-studio-scope .h3-repair-proposal {
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 12px;
}
.latest-studio-scope .h3-repair-proposal details {
  max-height: 320px;
  overflow: auto;
}
.latest-studio-scope .h3-repair-proposal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.latest-studio-scope .h3-review-result.is-warning {
  border-color: #f0c9c5;
  background: #fffafa;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict p,
.latest-studio-scope .h3-review-result.is-warning .h3-check-reasons,
.latest-studio-scope .h3-review-result.is-warning .h3-check-details {
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-status-icon {
  background: #fee9e7;
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict p {
  color: #1f7a4f;
}
.latest-studio-scope .h3-log-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f1f5ff;
  border: 1px solid #dce5fa;
  color: #28466e;
}
.latest-studio-scope .h3-log-summary p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-log-summary.is-success {
  background: #f3fbf7;
  border-color: #c4e9d7;
  color: #14805b;
}
.latest-studio-scope .h3-log-summary.is-error {
  background: #fff5f5;
  border-color: #f4caca;
  color: #b62b35;
}
.latest-studio-scope .h3-log-summary.is-warning {
  background: #fffbf1;
  border-color: #efdeb0;
  color: #88631b;
}
.latest-studio-scope .h3-log-view-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.latest-studio-scope .h3-log-view-controls [role=group] {
  display: flex;
  gap: 6px;
}
.latest-studio-scope .h3-log-view-controls button[aria-pressed=true] {
  background: #eef3ff;
  border-color: #b5c7fa;
  color: #2459d8;
}
.latest-studio-scope .h3-log-view-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #536681;
  font-size: 13px;
}
.latest-studio-scope .h3-log-readable {
  max-height: 300px;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  padding: 4px 16px;
}
.latest-studio-scope .h3-log-readable ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.latest-studio-scope .h3-log-readable li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f6;
  font-size: 13px;
  line-height: 1.7;
  color: #344b68;
}
.latest-studio-scope .h3-log-readable li:last-child {
  border-bottom: 0;
}
.latest-studio-scope .h3-log-readable time {
  color: #71829a;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.latest-studio-scope .h3-log-readable small {
  color: #71829a;
}
.latest-studio-scope .h3-log-readable .is-warning {
  color: #88631b;
}
.latest-studio-scope .h3-log-readable .is-error {
  color: #b62b35;
}
.latest-studio-scope .h3-log-readable .is-success {
  color: #14805b;
}
.latest-studio-scope .h3-terminal-output[hidden] {
  display: none;
}
.latest-studio-scope .h3-workspace-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-top: 24px;
  padding: 10px 18px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 14px 14px 0 0;
  background:
    linear-gradient(
      110deg,
      #f5f8ff,
      var(--surface,#fff) 75%);
  width: 100%;
  box-sizing: border-box;
}
.latest-studio-scope .h3-workspace-tabs [role=tab] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  appearance: none;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  margin-bottom: -1px;
  background: transparent;
  color: #536681;
  padding: 14px 28px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background .2s,
    color .2s,
    box-shadow .2s,
    border-color .2s;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:hover {
  color: #2459df;
  background: #eaf1ff;
  box-shadow: inset 0 3px 12px #3775f50c;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true] {
  background:
    linear-gradient(
      180deg,
      #edf4ff 0%,
      var(--surface,#fff) 85%);
  border-color: var(--line,#dce3ee);
  color: #2459df;
  box-shadow: 0 -4px 14px #497cf519, inset 0 2px 0 #578bff;
  text-shadow: 0 0 14px #3775f52b;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 25%,
      #a9ceff40 50%,
      transparent 75%);
  transform: translateX(-120%);
  animation: latest-h3-tab-shine 4s ease-in-out infinite;
  pointer-events: none;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
.latest-studio-scope .h3-workspace-panel[hidden] {
  display: none !important;
}
.latest-studio-scope .h3-sync-status {
  margin: 12px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 12px;
  line-height: 1.7;
}
@keyframes latest-h3-tab-shine {
  0%, 25% {
    transform: translateX(-120%);
  }
  65%, 100% {
    transform: translateX(120%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    transition: none;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
    animation: none;
    transform: none;
    opacity: .3;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-workspace-tabs {
    padding: 8px 8px 0;
    gap: 0;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    flex: 1;
    padding: 13px 8px;
    font-size: 13px;
  }
}
.latest-studio-scope .h3-workspace-panel > .card {
  margin-top: 0;
  padding: 24px;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}
.latest-studio-scope .h3-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-studio .h3-panel-heading h2 {
  margin: .83em 0;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  color: inherit;
}
.latest-studio-scope .h3-panel-heading h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
.latest-studio-scope .h3-panel-heading .h3-terminal-actions {
  margin-top: 10px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-workspace-panel > .card {
    padding: 16px;
  }
}
.latest-studio-scope #studio-generation {
  scroll-margin-top: 130px;
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-workbench {
    scroll-behavior: auto;
  }
}
.latest-studio-scope .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters {
  margin: 24px 0;
  padding: 20px;
  border: 1px dashed #bdcde4;
  background: #f6f9fe;
  border-radius: 12px;
}
.latest-studio-scope .latest-parameters > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-parameters p {
  font-size: 13px;
  line-height: 1.8;
  color: #64748b;
  margin: 10px 0 0;
}
.latest-studio-scope .latest-pending-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 20px;
  background: #edf2fa;
  color: #526a90;
  font-size: 12px;
}
.latest-studio-scope .latest-pending-selection {
  font-size: 13px;
  color: #64748b;
  padding: 10px 0;
}
.latest-studio-scope .latest-workbench .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.latest-studio-scope .latest-parameter-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .latest-parameter-grid input,
.latest-studio-scope .latest-parameter-grid select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  background: white;
  border: 1px solid #d5dfef;
  border-radius: 8px;
  color: #18365c;
  font: inherit;
  font-weight: 400;
}
.latest-studio-scope .latest-parameter-grid input:focus,
.latest-studio-scope .latest-parameter-grid select:focus {
  outline: 2px solid #bdd0ff;
  outline-offset: 1px;
  border-color: #5784f5;
}
@media (max-width:900px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-workbench .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .h3-header {
  gap: 16px;
}
.latest-studio-scope .h3-header > div {
  min-width: 0;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .h3-header {
    align-items: flex-start;
  }
  .latest-studio-scope .h3-header-actions {
    flex-wrap: wrap;
  }
  .latest-studio-scope .h3-studio h1 {
    font-size: 22px;
  }
}
@media (max-width:380px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .latest-connection {
  font-size: 13px;
  color: #64748b;
  padding: 9px 13px;
  border-radius: 20px;
  background: #eef2f7;
}
.latest-studio-scope .latest-connection.is-ready {
  color: #13795b;
  background: #e8f8f1;
}
.latest-studio-scope .latest-message {
  padding: 14px 18px;
  border: 1px solid #d5e3ff;
  background: #f0f6ff;
  color: #31528a;
  border-radius: 10px;
  margin: 14px 0;
  line-height: 1.7;
}
.latest-studio-scope .latest-message.is-error {
  background: #fff4f3;
  color: #b1372f;
  border-color: #f2cfca;
}
.latest-studio-scope .latest-message button {
  float: right;
  border: 0;
  background: none;
  color: inherit;
  font-size: 20px;
}
.latest-studio-scope .latest-section-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
}
.latest-studio-scope .latest-section-label span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-reference-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #fafcff;
}
.latest-studio-scope .latest-reference-section > summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
}
.latest-studio-scope .latest-reference-section > summary span {
  float: right;
  font-size: 12px;
  font-weight: 400;
  color: #6b7e96;
}
.latest-studio-scope .latest-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .latest-media-slot {
  padding: 16px;
  border: 1px solid #dce5f0;
  background: #fff;
  border-radius: 12px;
  min-width: 0;
}
.latest-studio-scope .latest-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 125px;
  gap: 10px;
  margin-top: 12px;
  background: #f5f8fd;
  border: 1px dashed #d5dfef;
  border-radius: 9px;
}
.latest-studio-scope .latest-media-placeholder > span {
  font-size: 26px;
  color: #416fea;
}
.latest-studio-scope .latest-media-placeholder p {
  margin: 0 8px;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .latest-media-placeholder small {
  font-size: 11px;
  color: #8290a5;
}
.latest-studio-scope .latest-upload-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #3561d7;
  padding: 9px 0;
}
.latest-studio-scope .latest-upload-status .machine-creation-spinner {
  width: 15px;
  height: 15px;
  display: inline-block;
}
.latest-studio-scope .latest-image-uploading .h3-image-dropzone {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #e5eeff,
      #f1f6ff);
  background-size: 200% 100%;
  animation: latest-upload-glow 2s linear infinite;
}
.latest-studio-scope .latest-settings-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.latest-studio-scope .latest-settings-main > label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.latest-studio-scope .latest-settings-main select {
  min-width: 115px;
}
.latest-studio-scope .latest-settings-main .latest-martial {
  margin-left: auto;
  padding: 14px 18px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #f8faff;
}
.latest-studio-scope .latest-martial input {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 15px;
  background: #c7d2e2;
  border: 0;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}
.latest-studio-scope .latest-martial input:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.latest-studio-scope .latest-martial input:checked {
  background: #2b5ef0;
}
.latest-studio-scope .latest-martial input:checked:after {
  transform: translateX(16px);
}
.latest-studio-scope .latest-martial strong,
.latest-studio-scope .latest-martial small {
  display: block;
}
.latest-studio-scope .latest-martial small {
  font-size: 12px;
  color: #6b7e96;
  margin-top: 5px;
}
.latest-studio-scope .latest-advanced {
  padding: 18px;
  margin-top: 20px;
  background: #f7f9fe;
  border: 1px dashed #cbd8ea;
  border-radius: 10px;
}
.latest-studio-scope .latest-advanced summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.latest-studio-scope .latest-advanced .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}
.latest-studio-scope .latest-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.latest-studio-scope .latest-range label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.latest-studio-scope .latest-range input {
  width: 78px;
}
.latest-studio-scope .latest-connected input:not([type=checkbox]):not([type=file]),
.latest-studio-scope .latest-connected select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d4deed;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
}
.latest-studio-scope .latest-connected textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #d4deed;
  border-radius: 10px;
  padding: 15px;
  line-height: 1.8;
  font: 13px/1.8 monospace;
  margin-top: 12px;
  min-height: 240px;
}
.latest-studio-scope .latest-connected input:focus-visible,
.latest-studio-scope .latest-connected select:focus-visible,
.latest-studio-scope .latest-connected textarea:focus-visible {
  outline: 2px solid #b9d0ff;
  outline-offset: 2px;
}
.latest-studio-scope .latest-connected input:disabled,
.latest-studio-scope .latest-connected select:disabled,
.latest-studio-scope .latest-connected textarea:disabled {
  background: #f2f5fa;
}
.latest-studio-scope .latest-save-settings {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-save-settings label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
  max-width: 230px;
}
.latest-studio-scope .latest-generate-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-generate-actions > .btn-primary {
  min-width: 230px;
  min-height: 44px;
}
.latest-studio-scope .latest-generate-actions > span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.latest-studio-scope .latest-result-stamp {
  padding: 6px 12px;
  color: #a66420;
  border: 2px solid currentColor;
  border-radius: 5px;
  transform: rotate(-5deg);
  font-size: 19px;
  font-weight: 750;
  white-space: nowrap;
}
.latest-studio-scope .latest-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}
.latest-studio-scope .latest-segment-list {
  border: 1px solid #dde5f0;
  border-radius: 11px;
  margin-top: 20px;
  overflow: hidden;
}
.latest-studio-scope .latest-segment-list article {
  display: grid;
  grid-template-columns: 100px 90px minmax(90px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 16px;
  box-sizing: border-box;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
}
.latest-studio-scope .latest-segment-list article:last-child {
  border-bottom: 0;
}
.latest-studio-scope .latest-segment-list article > div {
  display: flex;
  gap: 8px;
}
.latest-studio-scope .latest-segment-list .is-ready {
  color: #07845e;
}
.latest-studio-scope .latest-empty {
  padding: 60px 20px;
  text-align: center;
  color: #7d8da3;
  font-size: 14px;
}
.latest-studio-scope .latest-history {
  margin: 20px 0;
}
.latest-studio-scope .latest-history .btn {
  margin: 10px 8px 0 0;
  font-size: 12px;
}
.latest-studio-scope .latest-log-list {
  max-height: 540px;
  overflow: auto;
  margin-top: 24px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  padding: 6px 16px;
}
.latest-studio-scope .latest-log-list > div {
  display: flex;
  gap: 22px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-log-list time {
  color: #7d8da3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@keyframes latest-upload-glow {
  to {
    background-position: -200% 0;
  }
}
@media (max-width:900px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    margin-left: 0;
  }
  .latest-studio-scope .latest-segment-list article {
    grid-template-columns: 70px 60px 1fr;
  }
  .latest-studio-scope .latest-segment-list article > div {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-media-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-reference-section {
    padding: 14px;
  }
  .latest-studio-scope .latest-save-settings {
    display: block;
  }
  .latest-studio-scope .latest-save-settings label {
    margin: 12px 0;
  }
  .latest-studio-scope .latest-range {
    gap: 8px;
  }
  .latest-studio-scope .latest-range input {
    width: 62px;
  }
  .latest-studio-scope .latest-generate-actions > .btn-primary {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-results-heading {
    align-items: flex-start;
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-settings-main > label {
    flex: 1;
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
    width: 100%;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-image-uploading .h3-image-dropzone {
    animation: none;
  }
}
.latest-studio-scope .latest-connected .h3-task-progress {
  scroll-margin-top: 135px;
}


/* apps/web/src/pages/latest/latest-studio.css */
.latest-studio-scope .h3-studio {
  max-width: 1200px;
  margin: auto;
  padding: 28px 24px 60px;
  color: #102544;
}
.latest-studio-scope .h3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-header h1 {
  font-size: 26px;
}
.latest-studio-scope .h3-note {
  color: #64748b;
  font-size: 13px;
}
.latest-studio-scope .h3-inputs,
.latest-studio-scope .h3-results {
  padding: 24px;
  margin-top: 20px;
}
.latest-studio-scope .h3-studio h2 {
  font-size: 19px;
}
.latest-studio-scope .h3-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-studio select {
  padding: 8px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: white;
}
.latest-studio-scope .h3-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-images > div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}
.latest-studio-scope .h3-images strong {
  display: block;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-images img,
.latest-studio-scope .h3-placeholder {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}
.latest-studio-scope .h3-placeholder {
  display: grid;
  place-items: center;
  color: #94a3b8;
}
.latest-studio-scope .h3-studio textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 14px;
  line-height: 1.6;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  resize: vertical;
  font-family: inherit;
}
.latest-studio-scope .h3-review {
  padding: 16px;
  background: #f1f5ff;
  border-radius: 10px;
}
.latest-studio-scope .h3-studio pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.latest-studio-scope .h3-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-result-grid img,
.latest-studio-scope .h3-result-grid video {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-studio details {
  margin: 14px 0;
}
.latest-studio-scope .h3-studio summary {
  cursor: pointer;
}
.latest-studio-scope .h3-studio .alert {
  margin-top: 14px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, 1fr);
  }
  .latest-studio-scope .h3-studio {
    padding: 16px;
  }
  .latest-studio-scope .h3-inputs,
  .latest-studio-scope .h3-results {
    padding: 16px;
  }
  .latest-studio-scope .h3-header h1 {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-image-dropzone {
  border: 1px dashed #dce3ec;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  height: 140px;
  box-sizing: border-box;
  overflow: hidden;
}
.latest-studio-scope .h3-image-dropzone img,
.latest-studio-scope .h3-image-dropzone .h3-placeholder {
  display: grid;
  height: 100%;
  border-radius: 9px;
}
.latest-studio-scope .h3-image-dropzone .h3-image-help {
  text-align: center;
  margin: 0;
  padding: 8px;
  line-height: 1.8;
}
.latest-studio-scope .h3-image-dropzone:focus,
.latest-studio-scope .h3-image-dropzone.is-dragging {
  border-color: var(--brand,#2459df);
  background: var(--surface,#f1f5ff);
}
.latest-studio-scope .h3-image-dropzone[aria-disabled=true] {
  cursor: default;
  opacity: .7;
}
.latest-studio-scope .h3-image-dropzone[draggable=true] {
  cursor: grab;
  transition:
    border-color .18s,
    box-shadow .18s,
    opacity .18s;
}
.latest-studio-scope .h3-image-dropzone[draggable=true]:active {
  cursor: grabbing;
}
.latest-studio-scope .h3-image-dropzone.is-moving {
  opacity: .5;
}
.latest-studio-scope .h3-image-dropzone.is-dragging {
  box-shadow: 0 0 0 3px rgba(36, 89, 223, .13);
}
.latest-studio-scope .h3-image-help {
  display: block;
  color: var(--ink-3,#64748b);
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
}
.latest-studio-scope .h3-image-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-image-slot > small {
  display: block;
  line-height: 1.5;
}
.latest-studio-scope .h3-workspace {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.latest-studio-scope .h3-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}
.latest-studio-scope .h3-mode-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .h3-mode-control select {
  height: 40px;
  min-width: 128px;
  font-weight: 400;
}
.latest-studio-scope .h3-header-actions > .btn {
  min-height: 40px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .latest-studio-scope .h3-mode-control select {
    min-width: 110px;
  }
}
.latest-studio-scope .h3-task-metrics .h3-segment-remaining {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-produced-link {
  font-size: 13px;
  color: var(--brand,#2459df);
  text-decoration: none;
}
.latest-studio-scope .h3-produced-link:hover {
  text-decoration: underline;
}
.latest-studio-scope #studio-results {
  scroll-margin-top: 100px;
}
.latest-studio-scope .h3-stop-dialog {
  border: 0;
  margin: auto;
  color: var(--ink,#102544);
}
.latest-studio-scope .h3-stop-dialog:not([open]) {
  display: none;
}
.latest-studio-scope .h3-stop-dialog::backdrop {
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(3px);
}
.latest-studio-scope .h3-prompt-editor.is-dragging textarea {
  border-color: var(--brand,#2459df);
  background: #f5f8ff;
  box-shadow: 0 0 0 2px rgba(36, 89, 223, .1);
}
.latest-studio-scope .h3-prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.latest-studio-scope .h3-prompt-import {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-prompt-import .btn {
  min-width: 96px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.latest-studio-scope .h3-prompt-import .h3-field-hint {
  margin: 0;
}
.latest-studio-scope .h3-header .h3-creation-title {
  font-size: 24px;
}
.latest-studio-scope .h3-studio .h3-inputs > h2,
.latest-studio-scope .h3-studio .h3-results > h2 {
  font-size: 18px;
  font-weight: 700;
}
.latest-studio-scope .h3-step-heading {
  margin: 24px 0 12px;
}
.latest-studio-scope .h3-step-heading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.latest-studio-scope .h3-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf0ff;
  color: var(--brand,#2459df);
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .h3-step-heading p,
.latest-studio-scope .h3-field-hint {
  margin: 6px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs .h3-row > label {
  font-size: 14px;
  font-weight: 600;
}
.latest-studio-scope .h3-inputs select,
.latest-studio-scope .h3-inputs input {
  font-weight: 400;
}
.latest-studio-scope .h3-field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-required-label {
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff0ef;
  color: #c1372d;
  font-size: 12px;
  font-weight: 500;
}
.latest-studio-scope .h3-step-heading + .h3-images {
  margin-top: 12px;
}
.latest-studio-scope .h3-results > h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header .h3-creation-title {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-studio .h3-prompt-check {
  width: auto;
  min-width: 104px;
  padding: 0 14px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 6px;
}
.latest-studio-scope .h3-check-icon {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
}
.latest-studio-scope .h3-action-feedback {
  flex: 0 1 240px;
  min-height: 20px;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-report {
  margin: 16px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface,#fff);
}
.latest-studio-scope .h3-check-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-summary h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.latest-studio-scope .h3-check-summary p {
  margin: 0;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-details {
  max-height: 420px;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 8px;
}
.latest-studio-scope .h3-check-details[hidden] {
  display: none;
}
.latest-studio-scope .h3-check-explanation {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.latest-studio-scope .h3-check-category {
  border: 1px solid var(--line,#dce3ee);
  border-radius: 8px;
  padding: 10px;
}
.latest-studio-scope .h3-check-category > summary {
  font-weight: 600;
}
.latest-studio-scope .h3-check-occurrences {
  max-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
}
.latest-studio-scope .h3-check-occurrences:focus-visible {
  outline: 2px solid var(--brand,#2459df);
  outline-offset: 2px;
}
.latest-studio-scope .h3-check-group > summary {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-count {
  margin-left: 8px;
  color: var(--ink-2,#64748b);
  white-space: nowrap;
}
.latest-studio-scope .h3-check-group ul {
  padding-left: 22px;
}
.latest-studio-scope .h3-check-group li {
  padding: 8px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-group li p {
  margin: 6px 0;
}
.latest-studio-scope .h3-review > details {
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
}
.latest-studio-scope .h3-studio .h3-generate-button {
  width: auto;
  min-width: 120px;
  padding: 0 20px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 8px;
}
.latest-studio-scope .h3-generate-button .machine-creation-spinner {
  border-color: rgba(255, 255, 255, .4);
  border-top-color: currentColor;
}
.latest-studio-scope .h3-studio .h3-generate-button.is-generating {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  opacity: 1;
}
.latest-studio-scope .h3-generate-button.is-generating::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      rgba(255, 255, 255, .2) 50%,
      transparent 80%);
  transform: translateX(-100%);
  animation: latest-h3-generation-shimmer 2.8s ease-in-out infinite;
}
@keyframes latest-h3-generation-shimmer {
  0%, 15% {
    transform: translateX(-100%);
  }
  85%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-generate-button.is-generating::after {
    animation: none;
    display: none;
  }
}
.latest-studio-scope .h3-generation-guidance {
  min-height: 0;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.latest-studio-scope .h3-action-feedback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.latest-studio-scope .h3-analysis-hourglass {
  flex: none;
  font-size: 16px;
  line-height: 20px;
}
.latest-studio-scope .h3-task-progress {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  background: var(--surface,#f8faff);
}
@property --latest-h3-border-angle { syntax:"<angle>";inherits:false;initial-value:0deg }
.latest-studio-scope .h3-task-progress.is-generating {
  position: relative;
  isolation: isolate;
}
.latest-studio-scope .h3-task-progress.is-generating::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(
      from var(--latest-h3-border-angle),
      transparent 0deg 235deg,
      #c4b5fd 275deg,
      #7954ed 305deg,
      #22c8f3 335deg,
      transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(94, 104, 245, .3));
  animation: latest-h3-border-orbit 24s linear infinite;
}
@keyframes latest-h3-border-orbit {
  to {
    --latest-h3-border-angle:360deg;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-task-progress.is-generating::before {
    animation: none;
  }
}
.latest-studio-scope .h3-task-progress-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-task-progress-heading > span:last-child {
  margin-left: auto;
  color: var(--ink-2,#64748b);
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.latest-studio-scope .h3-task-phases li {
  padding: 6px 10px;
  background: var(--bg,#eef2f7);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-task-phases .is-current {
  color: var(--brand,#2459df);
  background: #e8efff;
  font-weight: 600;
}
.latest-studio-scope .h3-task-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.latest-studio-scope .h3-task-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.latest-studio-scope .h3-task-metrics span,
.latest-studio-scope .h3-progress-note {
  color: var(--ink-2,#64748b);
  font-size: 12px;
}
.latest-studio-scope .h3-task-metrics strong {
  font-size: 14px;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.latest-studio-scope .h3-real-progress {
  margin-top: 16px;
}
.latest-studio-scope .h3-real-progress label {
  font-size: 13px;
}
.latest-studio-scope .h3-real-progress progress {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 8px;
  accent-color: var(--brand,#2459df);
}
.latest-studio-scope .h3-progress-note {
  margin: 12px 0 0;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-followup {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-task-followup span {
  font-size: 12px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-result-media video,
.latest-studio-scope .h3-result-media img {
  border-radius: 8px;
}
.latest-studio-scope .h3-result-media p {
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-real-progress .h3-progress-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.latest-studio-scope .h3-progress-track {
  height: 14px;
  margin-top: 12px;
  padding: 2px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #dbe5fa;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      #e8eef8,
      #f3f6fc);
  box-shadow: inset 0 1px 3px rgba(35, 66, 125, .1);
}
.latest-studio-scope .h3-progress-fill {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #3258f5 0%,
      #7954ed 48%,
      #22c8f3 100%);
  box-shadow: 0 0 12px rgba(79, 104, 244, .45), inset 0 1px 1px rgba(255, 255, 255, .55);
  transition: width .55s ease;
}
.latest-studio-scope .h3-progress-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 12px,
      rgba(255, 255, 255, .17) 12px 20px);
  background-size: 44px 100%;
}
.latest-studio-scope .h3-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      transparent 25%,
      rgba(255, 255, 255, .65) 50%,
      transparent 75%);
  transform: translateX(-100%);
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before {
  animation: latest-h3-progress-flow 1.5s linear infinite;
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
  animation: latest-h3-progress-glint 2.6s ease-in-out infinite;
}
.latest-studio-scope .h3-terminal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-heading h2 {
  margin: 0 0 6px;
}
.latest-studio-scope .h3-terminal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #536681;
}
.latest-studio-scope .h3-terminal-output {
  margin-top: 16px;
  padding: 18px 20px;
  max-height: 380px;
  min-height: 160px;
  overflow: auto;
  border: 1px solid #263651;
  border-radius: 10px;
  background: #101827;
  color: #b7e5c3;
  font:
    12px/1.8 Consolas,
    "Cascadia Code",
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 4;
  scrollbar-color: #4c607e #101827;
}
.latest-studio-scope .h3-terminal-output .is-error {
  color: #ff9b9b;
}
.latest-studio-scope .h3-terminal-output .is-warning {
  color: #f2d48b;
}
.latest-studio-scope .h3-terminal-empty {
  color: #8c9bb0;
}
.latest-studio-scope .h3-terminal-section > .h3-field-hint {
  margin-top: 12px;
}
@keyframes latest-h3-progress-flow {
  to {
    background-position: 44px 0;
  }
}
@keyframes latest-h3-progress-glint {
  0%, 10% {
    transform: translateX(-100%);
  }
  90%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-progress-fill {
    transition: none;
  }
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before,
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
    animation: none;
  }
  .latest-studio-scope .h3-progress-fill::after {
    display: none;
  }
}
.latest-studio-scope .h3-final-video {
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line,#dce3ee);
  border-bottom: 1px solid var(--line,#dce3ee);
}
.latest-studio-scope .h3-final-video h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.latest-studio-scope .h3-final-video > p {
  margin: 0 0 18px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-final-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 680px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-final-video-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .h3-machine-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-provider-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.latest-studio-scope .h3-provider-id {
  user-select: text;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-provider-identity > span {
  min-width: 0;
}
.latest-studio-scope .h3-provider-identity [role=status] {
  color: var(--ink-2);
}
.latest-studio-scope .h3-machine-specs {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-advanced-info > p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-creation-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-creation-origin {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.latest-studio-scope .h3-creation-origin .h3-origin-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 1.3em;
  height: 1.3em;
  padding: 0 .12em;
  margin-left: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1em;
  font-weight: inherit;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-task-progress {
  padding: 22px 24px;
  background:
    linear-gradient(
      145deg,
      #fff 55%,
      #f6f8ff);
  box-shadow: 0 3px 16px rgba(26, 53, 110, .035);
}
.latest-studio-scope .h3-task-progress.is-complete {
  border-color: #d4e9e2;
  background:
    linear-gradient(
      125deg,
      #fff 45%,
      #f0faf6);
}
.latest-studio-scope .h3-task-progress-heading > strong {
  font-size: 16px;
  font-weight: 650;
}
.latest-studio-scope .h3-status-emblem {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eaf0ff;
  color: #3560e7;
  font-size: 18px;
}
.latest-studio-scope .h3-status-emblem.is-complete {
  background: #dcf5e9;
  color: #15835c;
}
.latest-studio-scope .h3-task-phases {
  gap: 0;
  flex-wrap: nowrap;
  margin: 24px 0;
  padding: 0 0 22px;
  border-bottom: 1px solid #e6ebf3;
}
.latest-studio-scope .h3-task-phases li {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  padding: 0;
  background: none;
  border-radius: 0;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe6f1;
  margin: 0 14px;
}
.latest-studio-scope .h3-phase-dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #edf1f7;
  color: #8290a7;
  font-size: 12px;
  font-weight: 600;
}
.latest-studio-scope .h3-task-phases li.is-current {
  color: #2459df;
  background: none;
  font-weight: 650;
}
.latest-studio-scope .h3-task-phases .is-current .h3-phase-dot {
  background: #2d5be9;
  color: white;
  box-shadow: 0 0 0 4px #eaf0ff;
}
.latest-studio-scope .h3-task-phases li.is-done {
  color: #326754;
}
.latest-studio-scope .h3-task-phases .is-done .h3-phase-dot {
  background: #e1f3ea;
  color: #16825c;
}
.latest-studio-scope .h3-task-phases .is-done::after {
  background: #bfdece;
}
.latest-studio-scope .h3-task-metrics {
  align-items: start;
  gap: 20px;
}
.latest-studio-scope .h3-task-metrics .h3-current-summary {
  padding: 2px 0;
  gap: 9px;
}
.latest-studio-scope .h3-current-summary > strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-metrics > div > span:first-child {
  font-size: 12px;
  color: #7a879c;
}
.latest-studio-scope .h3-task-metrics .h3-segment-summary {
  position: relative;
  padding: 0 160px 0 20px;
  border-left: 1px solid #e1e8ef;
  min-height: 76px;
  justify-content: center;
}
.latest-studio-scope .h3-task-metrics .h3-segment-count {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
  color: #2459df;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-segment-count small {
  font-size: 14px;
  color: #7a879c;
  font-weight: 400;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #eaf0ff;
  color: #2459df;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, box-shadow .2s;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link:hover {
  background: #dde7ff;
  text-decoration: none;
  box-shadow: 0 3px 10px #2459df15;
}
.latest-studio-scope .h3-produced-link:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
@media (max-width:850px) {
  .latest-studio-scope .h3-task-phases li {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }
  .latest-studio-scope .h3-task-phases li:not(:last-child)::after {
    position: absolute;
    top: 13px;
    left: calc(50% + 21px);
    right: calc(-50% + 21px);
    margin: 0;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding-right: 0;
  }
  .latest-studio-scope .h3-segment-summary .h3-produced-link {
    position: static;
    transform: none;
    align-self: flex-start;
    margin-top: 5px;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-task-progress {
    padding: 18px 14px;
  }
  .latest-studio-scope .h3-task-phases {
    margin: 22px 0 18px;
  }
  .latest-studio-scope .h3-task-phases li {
    font-size: 11px;
  }
  .latest-studio-scope .h3-phase-dot {
    width: 24px;
    height: 24px;
  }
  .latest-studio-scope .h3-task-metrics {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid #e1e8ef;
  }
}
.latest-studio-scope .h3-result-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}
.latest-studio-scope .h3-result-section-heading h3 {
  margin: 0;
}
.latest-studio-scope .h3-result-section-heading .btn {
  white-space: nowrap;
}
.latest-studio-scope .h3-segment-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.latest-studio-scope .h3-segment-actions .btn {
  padding: 7px 10px;
  min-height: 34px;
  font-size: 12px;
}
.latest-studio-scope .h3-segment-regenerate {
  color: #2459df;
  border-color: #cbd9ff;
  background: #f5f8ff;
}
.latest-studio-scope .h3-merge-notice {
  padding: 12px 16px;
  border: 1px solid #f0d9a8;
  border-radius: 9px;
  background: #fff9ed;
  color: #92641a;
  font-size: 13px;
}
.latest-studio-scope .h3-segment-editor {
  width: min(880px, calc(100vw - 32px));
  max-height: 85vh;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #dce3ee;
  border-radius: 16px;
  color: #142b4a;
  background: #fff;
  box-shadow: 0 24px 80px #10254430;
}
.latest-studio-scope .h3-segment-editor::backdrop {
  background: #10254470;
  backdrop-filter: blur(4px);
}
.latest-studio-scope .h3-segment-editor header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .h3-segment-editor h2 {
  font-size: 20px;
  margin: 4px 0 8px;
}
.latest-studio-scope .h3-segment-editor label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}
.latest-studio-scope .h3-segment-editor textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 320px;
  resize: vertical;
  line-height: 1.8;
  font-size: 14px;
  border: 1px solid #ccd8eb;
  border-radius: 10px;
  padding: 14px;
}
.latest-studio-scope .h3-segment-editor footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.latest-studio-scope .h3-editor-error {
  font-size: 13px;
  color: #c13737;
}
.latest-studio-scope .h3-segment-editor textarea:focus {
  outline: 2px solid #bad0ff;
  border-color: #2459df;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-segment-editor {
    padding: 18px;
  }
  .latest-studio-scope .h3-segment-editor textarea {
    min-height: 240px;
  }
  .latest-studio-scope .h3-result-section-heading > .btn {
    width: 100%;
  }
}
.latest-studio-scope .main.main-studio {
  padding-top: 20px;
}
.latest-studio-scope .main-studio .h3-studio {
  padding-top: 0;
}
.latest-studio-scope .h3-header h1 {
  margin-top: 0;
}
.latest-studio-scope .h3-input-lock-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #edf3ff;
  color: #365c9b;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs textarea[readonly] {
  background: #f7f9fc;
  color: #53627a;
  cursor: default;
}
.latest-studio-scope .h3-patient-hint {
  margin: 18px 0 0;
  padding: 11px 14px;
  border-radius: 9px;
  background: #edf3ff;
  color: #4a6393;
  font-size: 13px;
  line-height: 1.8;
}
.latest-studio-scope .h3-check-reasons {
  margin: 12px 0;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-reasons span {
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-2,#64748b);
  transition:
    color .18s,
    border-color .18s,
    background .18s;
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear:not(:disabled):hover {
  color: #c1372d;
  border-color: #f1b8b3;
  background: #fff5f4;
}
.latest-studio-scope .h3-studio .h3-repair-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: #c1372d;
}
.latest-studio-scope .h3-repair-cancel:hover {
  background: #fff2f1;
  border-color: #f1b8b3;
}
.latest-studio-scope .h3-generation-guidance:empty {
  display: none;
}
.latest-studio-scope .h3-review-result.is-success {
  border-color: #c7e6d8;
  background: #f7fcf9;
}
.latest-studio-scope .h3-review-result.is-pending {
  border-color: #cddaff;
  background: #f8faff;
}
.latest-studio-scope .h3-review-verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.latest-studio-scope .h3-review-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff2df;
  color: #a86b12;
  font-size: 16px;
  font-weight: 700;
}
.latest-studio-scope .is-success .h3-review-status-icon {
  background: #e0f3e9;
  color: #23835b;
}
.latest-studio-scope .is-pending .h3-review-status-icon {
  background: #e9efff;
  color: var(--brand,#2459df);
}
.latest-studio-scope .h3-review-result .h3-check-summary p {
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-review-result .h3-check-summary h3 {
  font-size: 15px;
  margin-bottom: 3px;
}
.latest-studio-scope .h3-repair-proposal {
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 12px;
}
.latest-studio-scope .h3-repair-proposal details {
  max-height: 320px;
  overflow: auto;
}
.latest-studio-scope .h3-repair-proposal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.latest-studio-scope .h3-review-result.is-warning {
  border-color: #f0c9c5;
  background: #fffafa;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict p,
.latest-studio-scope .h3-review-result.is-warning .h3-check-reasons,
.latest-studio-scope .h3-review-result.is-warning .h3-check-details {
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-status-icon {
  background: #fee9e7;
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict p {
  color: #1f7a4f;
}
.latest-studio-scope .h3-log-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f1f5ff;
  border: 1px solid #dce5fa;
  color: #28466e;
}
.latest-studio-scope .h3-log-summary p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-log-summary.is-success {
  background: #f3fbf7;
  border-color: #c4e9d7;
  color: #14805b;
}
.latest-studio-scope .h3-log-summary.is-error {
  background: #fff5f5;
  border-color: #f4caca;
  color: #b62b35;
}
.latest-studio-scope .h3-log-summary.is-warning {
  background: #fffbf1;
  border-color: #efdeb0;
  color: #88631b;
}
.latest-studio-scope .h3-log-view-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.latest-studio-scope .h3-log-view-controls [role=group] {
  display: flex;
  gap: 6px;
}
.latest-studio-scope .h3-log-view-controls button[aria-pressed=true] {
  background: #eef3ff;
  border-color: #b5c7fa;
  color: #2459d8;
}
.latest-studio-scope .h3-log-view-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #536681;
  font-size: 13px;
}
.latest-studio-scope .h3-log-readable {
  max-height: 300px;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  padding: 4px 16px;
}
.latest-studio-scope .h3-log-readable ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.latest-studio-scope .h3-log-readable li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f6;
  font-size: 13px;
  line-height: 1.7;
  color: #344b68;
}
.latest-studio-scope .h3-log-readable li:last-child {
  border-bottom: 0;
}
.latest-studio-scope .h3-log-readable time {
  color: #71829a;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.latest-studio-scope .h3-log-readable small {
  color: #71829a;
}
.latest-studio-scope .h3-log-readable .is-warning {
  color: #88631b;
}
.latest-studio-scope .h3-log-readable .is-error {
  color: #b62b35;
}
.latest-studio-scope .h3-log-readable .is-success {
  color: #14805b;
}
.latest-studio-scope .h3-terminal-output[hidden] {
  display: none;
}
.latest-studio-scope .h3-workspace-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-top: 24px;
  padding: 10px 18px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 14px 14px 0 0;
  background:
    linear-gradient(
      110deg,
      #f5f8ff,
      var(--surface,#fff) 75%);
  width: 100%;
  box-sizing: border-box;
}
.latest-studio-scope .h3-workspace-tabs [role=tab] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  appearance: none;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  margin-bottom: -1px;
  background: transparent;
  color: #536681;
  padding: 14px 28px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background .2s,
    color .2s,
    box-shadow .2s,
    border-color .2s;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:hover {
  color: #2459df;
  background: #eaf1ff;
  box-shadow: inset 0 3px 12px #3775f50c;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true] {
  background:
    linear-gradient(
      180deg,
      #edf4ff 0%,
      var(--surface,#fff) 85%);
  border-color: var(--line,#dce3ee);
  color: #2459df;
  box-shadow: 0 -4px 14px #497cf519, inset 0 2px 0 #578bff;
  text-shadow: 0 0 14px #3775f52b;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 25%,
      #a9ceff40 50%,
      transparent 75%);
  transform: translateX(-120%);
  animation: latest-h3-tab-shine 4s ease-in-out infinite;
  pointer-events: none;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
.latest-studio-scope .h3-workspace-panel[hidden] {
  display: none !important;
}
.latest-studio-scope .h3-sync-status {
  margin: 12px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 12px;
  line-height: 1.7;
}
@keyframes latest-h3-tab-shine {
  0%, 25% {
    transform: translateX(-120%);
  }
  65%, 100% {
    transform: translateX(120%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    transition: none;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
    animation: none;
    transform: none;
    opacity: .3;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-workspace-tabs {
    padding: 8px 8px 0;
    gap: 0;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    flex: 1;
    padding: 13px 8px;
    font-size: 13px;
  }
}
.latest-studio-scope .h3-workspace-panel > .card {
  margin-top: 0;
  padding: 24px;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}
.latest-studio-scope .h3-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-studio .h3-panel-heading h2 {
  margin: .83em 0;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  color: inherit;
}
.latest-studio-scope .h3-panel-heading h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
.latest-studio-scope .h3-panel-heading .h3-terminal-actions {
  margin-top: 10px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-workspace-panel > .card {
    padding: 16px;
  }
}
.latest-studio-scope #studio-generation {
  scroll-margin-top: 130px;
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-workbench {
    scroll-behavior: auto;
  }
}
.latest-studio-scope .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters {
  margin: 24px 0;
  padding: 20px;
  border: 1px dashed #bdcde4;
  background: #f6f9fe;
  border-radius: 12px;
}
.latest-studio-scope .latest-parameters > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-parameters p {
  font-size: 13px;
  line-height: 1.8;
  color: #64748b;
  margin: 10px 0 0;
}
.latest-studio-scope .latest-pending-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 20px;
  background: #edf2fa;
  color: #526a90;
  font-size: 12px;
}
.latest-studio-scope .latest-pending-selection {
  font-size: 13px;
  color: #64748b;
  padding: 10px 0;
}
.latest-studio-scope .latest-workbench .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.latest-studio-scope .latest-parameter-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .latest-parameter-grid input,
.latest-studio-scope .latest-parameter-grid select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  background: white;
  border: 1px solid #d5dfef;
  border-radius: 8px;
  color: #18365c;
  font: inherit;
  font-weight: 400;
}
.latest-studio-scope .latest-parameter-grid input:focus,
.latest-studio-scope .latest-parameter-grid select:focus {
  outline: 2px solid #bdd0ff;
  outline-offset: 1px;
  border-color: #5784f5;
}
@media (max-width:900px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-workbench .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .h3-header {
  gap: 16px;
}
.latest-studio-scope .h3-header > div {
  min-width: 0;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .h3-header {
    align-items: flex-start;
  }
  .latest-studio-scope .h3-header-actions {
    flex-wrap: wrap;
  }
  .latest-studio-scope .h3-studio h1 {
    font-size: 22px;
  }
}
@media (max-width:380px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .latest-connection {
  font-size: 13px;
  color: #64748b;
  padding: 9px 13px;
  border-radius: 20px;
  background: #eef2f7;
}
.latest-studio-scope .latest-connection.is-ready {
  color: #13795b;
  background: #e8f8f1;
}
.latest-studio-scope .latest-message {
  padding: 14px 18px;
  border: 1px solid #d5e3ff;
  background: #f0f6ff;
  color: #31528a;
  border-radius: 10px;
  margin: 14px 0;
  line-height: 1.7;
}
.latest-studio-scope .latest-message.is-error {
  background: #fff4f3;
  color: #b1372f;
  border-color: #f2cfca;
}
.latest-studio-scope .latest-message button {
  float: right;
  border: 0;
  background: none;
  color: inherit;
  font-size: 20px;
}
.latest-studio-scope .latest-section-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
}
.latest-studio-scope .latest-section-label span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-reference-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #fafcff;
}
.latest-studio-scope .latest-reference-section > summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
}
.latest-studio-scope .latest-reference-section > summary span {
  float: right;
  font-size: 12px;
  font-weight: 400;
  color: #6b7e96;
}
.latest-studio-scope .latest-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .latest-media-slot {
  padding: 16px;
  border: 1px solid #dce5f0;
  background: #fff;
  border-radius: 12px;
  min-width: 0;
}
.latest-studio-scope .latest-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 125px;
  gap: 10px;
  margin-top: 12px;
  background: #f5f8fd;
  border: 1px dashed #d5dfef;
  border-radius: 9px;
}
.latest-studio-scope .latest-media-placeholder > span {
  font-size: 26px;
  color: #416fea;
}
.latest-studio-scope .latest-media-placeholder p {
  margin: 0 8px;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .latest-media-placeholder small {
  font-size: 11px;
  color: #8290a5;
}
.latest-studio-scope .latest-upload-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #3561d7;
  padding: 9px 0;
}
.latest-studio-scope .latest-upload-status .machine-creation-spinner {
  width: 15px;
  height: 15px;
  display: inline-block;
}
.latest-studio-scope .latest-image-uploading .h3-image-dropzone {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #e5eeff,
      #f1f6ff);
  background-size: 200% 100%;
  animation: latest-upload-glow 2s linear infinite;
}
.latest-studio-scope .latest-settings-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.latest-studio-scope .latest-settings-main > label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.latest-studio-scope .latest-settings-main select {
  min-width: 115px;
}
.latest-studio-scope .latest-settings-main .latest-martial {
  margin-left: auto;
  padding: 14px 18px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #f8faff;
}
.latest-studio-scope .latest-martial input {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 15px;
  background: #c7d2e2;
  border: 0;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}
.latest-studio-scope .latest-martial input:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.latest-studio-scope .latest-martial input:checked {
  background: #2b5ef0;
}
.latest-studio-scope .latest-martial input:checked:after {
  transform: translateX(16px);
}
.latest-studio-scope .latest-martial strong,
.latest-studio-scope .latest-martial small {
  display: block;
}
.latest-studio-scope .latest-martial small {
  font-size: 12px;
  color: #6b7e96;
  margin-top: 5px;
}
.latest-studio-scope .latest-advanced {
  padding: 18px;
  margin-top: 20px;
  background: #f7f9fe;
  border: 1px dashed #cbd8ea;
  border-radius: 10px;
}
.latest-studio-scope .latest-advanced summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.latest-studio-scope .latest-advanced .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}
.latest-studio-scope .latest-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.latest-studio-scope .latest-range label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.latest-studio-scope .latest-range input {
  width: 78px;
}
.latest-studio-scope .latest-connected input:not([type=checkbox]):not([type=file]),
.latest-studio-scope .latest-connected select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d4deed;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
}
.latest-studio-scope .latest-connected textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #d4deed;
  border-radius: 10px;
  padding: 15px;
  line-height: 1.8;
  font: 13px/1.8 monospace;
  margin-top: 12px;
  min-height: 240px;
}
.latest-studio-scope .latest-connected input:focus-visible,
.latest-studio-scope .latest-connected select:focus-visible,
.latest-studio-scope .latest-connected textarea:focus-visible {
  outline: 2px solid #b9d0ff;
  outline-offset: 2px;
}
.latest-studio-scope .latest-connected input:disabled,
.latest-studio-scope .latest-connected select:disabled,
.latest-studio-scope .latest-connected textarea:disabled {
  background: #f2f5fa;
}
.latest-studio-scope .latest-save-settings {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-save-settings label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
  max-width: 230px;
}
.latest-studio-scope .latest-generate-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-generate-actions > .btn-primary {
  min-width: 230px;
  min-height: 44px;
}
.latest-studio-scope .latest-generate-actions > span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.latest-studio-scope .latest-result-stamp {
  padding: 6px 12px;
  color: #a66420;
  border: 2px solid currentColor;
  border-radius: 5px;
  transform: rotate(-5deg);
  font-size: 19px;
  font-weight: 750;
  white-space: nowrap;
}
.latest-studio-scope .latest-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}
.latest-studio-scope .latest-segment-list {
  border: 1px solid #dde5f0;
  border-radius: 11px;
  margin-top: 20px;
  overflow: hidden;
}
.latest-studio-scope .latest-segment-list article {
  display: grid;
  grid-template-columns: 100px 90px minmax(90px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 16px;
  box-sizing: border-box;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
}
.latest-studio-scope .latest-segment-list article:last-child {
  border-bottom: 0;
}
.latest-studio-scope .latest-segment-list article > div {
  display: flex;
  gap: 8px;
}
.latest-studio-scope .latest-segment-list .is-ready {
  color: #07845e;
}
.latest-studio-scope .latest-empty {
  padding: 60px 20px;
  text-align: center;
  color: #7d8da3;
  font-size: 14px;
}
.latest-studio-scope .latest-history {
  margin: 20px 0;
}
.latest-studio-scope .latest-history .btn {
  margin: 10px 8px 0 0;
  font-size: 12px;
}
.latest-studio-scope .latest-log-list {
  max-height: 540px;
  overflow: auto;
  margin-top: 24px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  padding: 6px 16px;
}
.latest-studio-scope .latest-log-list > div {
  display: flex;
  gap: 22px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-log-list time {
  color: #7d8da3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@keyframes latest-upload-glow {
  to {
    background-position: -200% 0;
  }
}
@media (max-width:900px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    margin-left: 0;
  }
  .latest-studio-scope .latest-segment-list article {
    grid-template-columns: 70px 60px 1fr;
  }
  .latest-studio-scope .latest-segment-list article > div {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-media-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-reference-section {
    padding: 14px;
  }
  .latest-studio-scope .latest-save-settings {
    display: block;
  }
  .latest-studio-scope .latest-save-settings label {
    margin: 12px 0;
  }
  .latest-studio-scope .latest-range {
    gap: 8px;
  }
  .latest-studio-scope .latest-range input {
    width: 62px;
  }
  .latest-studio-scope .latest-generate-actions > .btn-primary {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-results-heading {
    align-items: flex-start;
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-settings-main > label {
    flex: 1;
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
    width: 100%;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-image-uploading .h3-image-dropzone {
    animation: none;
  }
}
.latest-studio-scope .latest-connected .h3-task-progress {
  scroll-margin-top: 135px;
}
.latest-studio-scope .latest-workbench .h3-upload-card {
  min-height: 294px;
  height: 100%;
  box-sizing: border-box;
}
.latest-studio-scope .latest-workbench .h3-upload-heading {
  min-height: 22px;
}
.latest-studio-scope .latest-workbench .h3-upload-status {
  margin-top: 10px;
}
.latest-studio-scope .latest-media-saved {
  display: block;
  color: #07876a;
  font-size: 12px;
  margin-top: 10px;
}
.latest-studio-scope .latest-upload-retry {
  margin-top: 8px;
}
.latest-studio-scope .latest-media-slot .h3-upload-track {
  display: inline-block;
  width: 100px;
}
.latest-studio-scope .latest-media-slot .latest-media-placeholder {
  min-height: 140px;
}


/* apps/web/src/pages/latest/latest-results.css */
.latest-studio-scope .latest-results-table {
  background: #fff;
  border-color: #e1e8f2;
  border-radius: 12px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  display: grid;
  grid-template-columns: 90px 100px minmax(130px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
}
.latest-studio-scope .latest-results-table .latest-segment-head {
  background: #f6f8fc;
  color: #72819a;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #e8edf5;
}
.latest-studio-scope .latest-results-table .latest-segment-head > span:last-child {
  text-align: right;
}
.latest-studio-scope .latest-results-table article {
  min-height: 80px;
  font-size: 14px;
}
.latest-studio-scope .latest-segment-name {
  white-space: nowrap;
  color: #182d4c;
}
.latest-studio-scope .latest-segment-duration {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #687994;
}
.latest-studio-scope .latest-segment-state {
  justify-self: start;
  line-height: 1.5;
  color: #526886;
  padding: 5px 10px;
  background: #f2f5fa;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .latest-segment-state.is-ready {
  color: #07845e;
  background: #edf9f3;
}
.latest-studio-scope .latest-results-table article > .latest-segment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: auto;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-segment-actions .btn {
  font-size: 13px;
  min-height: 38px;
  white-space: nowrap;
  padding: 8px 12px;
}
.latest-studio-scope .latest-segment-editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 51, .38);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.latest-studio-scope .latest-segment-editor {
  box-sizing: border-box;
  width: min(900px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 26px;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  box-shadow: 0 22px 70px #14284433;
}
.latest-studio-scope .latest-segment-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .latest-segment-editor-heading h2 {
  margin: 0;
  font-size: 20px;
}
.latest-studio-scope .latest-segment-editor p {
  font-size: 13px;
  line-height: 1.8;
  color: #6b7d96;
  margin: 14px 0 20px;
}
.latest-studio-scope .latest-segment-editor textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 280px;
  max-height: 48dvh;
  resize: vertical;
  padding: 16px;
  margin-top: 10px;
  border: 1px solid #cedbf0;
  border-radius: 10px;
  font:
    14px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #19314f;
  background: #fbfcff;
}
.latest-studio-scope .latest-segment-editor textarea:focus {
  outline: 2px solid #d9e4ff;
  border-color: #799bff;
}
.latest-studio-scope .latest-segment-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width:1050px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(100px, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }
  .latest-studio-scope .latest-segment-actions {
    max-width: 245px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table .latest-segment-head {
    display: none;
  }
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(0, 1fr);
    gap: 12px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
    max-width: none;
  }
  .latest-studio-scope .latest-segment-editor-backdrop {
    padding: 12px;
  }
  .latest-studio-scope .latest-segment-editor {
    padding: 18px;
    max-height: calc(100dvh - 24px);
  }
  .latest-studio-scope .latest-segment-editor textarea {
    min-height: 220px;
  }
}
.latest-studio-scope .latest-segment-editor p.latest-segment-editor-error {
  color: #c33131;
}


/* apps/web/src/pages/latest/latest-results.css */
.latest-studio-scope .latest-results-table {
  background: #fff;
  border-color: #e1e8f2;
  border-radius: 12px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  display: grid;
  grid-template-columns: 90px 100px minmax(130px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
}
.latest-studio-scope .latest-results-table .latest-segment-head {
  background: #f6f8fc;
  color: #72819a;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #e8edf5;
}
.latest-studio-scope .latest-results-table .latest-segment-head > span:last-child {
  text-align: right;
}
.latest-studio-scope .latest-results-table article {
  min-height: 80px;
  font-size: 14px;
}
.latest-studio-scope .latest-segment-name {
  white-space: nowrap;
  color: #182d4c;
}
.latest-studio-scope .latest-segment-duration {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #687994;
}
.latest-studio-scope .latest-segment-state {
  justify-self: start;
  line-height: 1.5;
  color: #526886;
  padding: 5px 10px;
  background: #f2f5fa;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .latest-segment-state.is-ready {
  color: #07845e;
  background: #edf9f3;
}
.latest-studio-scope .latest-results-table article > .latest-segment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: auto;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-segment-actions .btn {
  font-size: 13px;
  min-height: 38px;
  white-space: nowrap;
  padding: 8px 12px;
}
.latest-studio-scope .latest-segment-editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 51, .38);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.latest-studio-scope .latest-segment-editor {
  box-sizing: border-box;
  width: min(900px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 26px;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  box-shadow: 0 22px 70px #14284433;
}
.latest-studio-scope .latest-segment-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .latest-segment-editor-heading h2 {
  margin: 0;
  font-size: 20px;
}
.latest-studio-scope .latest-segment-editor p {
  font-size: 13px;
  line-height: 1.8;
  color: #6b7d96;
  margin: 14px 0 20px;
}
.latest-studio-scope .latest-segment-editor textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 280px;
  max-height: 48dvh;
  resize: vertical;
  padding: 16px;
  margin-top: 10px;
  border: 1px solid #cedbf0;
  border-radius: 10px;
  font:
    14px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #19314f;
  background: #fbfcff;
}
.latest-studio-scope .latest-segment-editor textarea:focus {
  outline: 2px solid #d9e4ff;
  border-color: #799bff;
}
.latest-studio-scope .latest-segment-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width:1050px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(100px, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }
  .latest-studio-scope .latest-segment-actions {
    max-width: 245px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table .latest-segment-head {
    display: none;
  }
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(0, 1fr);
    gap: 12px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
    max-width: none;
  }
  .latest-studio-scope .latest-segment-editor-backdrop {
    padding: 12px;
  }
  .latest-studio-scope .latest-segment-editor {
    padding: 18px;
    max-height: calc(100dvh - 24px);
  }
  .latest-studio-scope .latest-segment-editor textarea {
    min-height: 220px;
  }
}
.latest-studio-scope .latest-segment-editor p.latest-segment-editor-error {
  color: #c33131;
}
.latest-studio-scope .latest-live-summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 22px 0 18px;
  padding: 22px 24px;
  border: 1px solid #dbe5f8;
  border-radius: 14px;
  background:
    linear-gradient(
      115deg,
      #f3f7ff,
      #fcfdff);
  box-shadow: 0 4px 18px #2c5ac907;
}
.latest-studio-scope .latest-live-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.latest-studio-scope .latest-live-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  color: #315df4;
  background: #e4edff;
  font-size: 24px;
}
.latest-studio-scope .latest-live-heading strong {
  font-size: 18px;
  color: #193962;
  line-height: 1.5;
}
.latest-studio-scope .latest-live-heading p {
  margin: 5px 0 0;
  color: #73849d;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-elapsed {
  margin-left: auto;
  white-space: nowrap;
  color: #4c668c;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding: 8px 12px;
  border: 1px solid #dfe7f5;
  border-radius: 8px;
  background: #ffffffa8;
}
.latest-studio-scope .latest-live-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e0e8f7;
  color: #7184a1;
  font-size: 13px;
}
.latest-studio-scope .latest-live-footer strong {
  color: #315df4;
  font-size: 16px;
}
.latest-studio-scope .latest-live-sampling {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: #5477b2;
}
.latest-studio-scope .latest-live-sampling progress {
  height: 6px;
  flex: 1;
  min-width: 80px;
  accent-color: #4778ff;
  border-radius: 10px;
  overflow: hidden;
}
.latest-studio-scope .latest-live-flow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #91bdff,
      #3e70fa,
      transparent);
  background-size: 200% 100%;
  animation: latest-execution-flow 2.6s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-results-table article.latest-segment-row {
  position: relative;
  isolation: isolate;
  transition: background-color .3s, box-shadow .3s;
}
.latest-studio-scope .latest-results-table article.latest-segment-row.is-working {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #fbfdff);
  box-shadow: inset 3px 0 #4275ff;
}
.latest-studio-scope .latest-segment-row.is-working::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      #b9d2ff 38%,
      #4d7bff 50%,
      #afceff 62%,
      transparent 80%);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 3s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-segment-row.is-working .latest-segment-name {
  color: #2855c5;
}
.latest-studio-scope .latest-segment-state.is-working {
  color: #2e5bcf;
  background: #e7efff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .latest-segment-state.is-waiting {
  color: #8391a6;
  background: #f4f6f9;
}
.latest-studio-scope .latest-segment-state small {
  font-size: 12px;
  font-weight: 400;
}
.latest-studio-scope .latest-segment-running-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid #b8ceff;
  border-top-color: #3c6ef0;
  border-radius: 50%;
  animation: latest-execution-spin 1s linear infinite;
}
@keyframes latest-execution-flow {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -50% 0;
  }
}
@keyframes latest-execution-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-live-summary {
    padding: 18px 16px;
  }
  .latest-studio-scope .latest-live-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .latest-studio-scope .latest-live-heading > div {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-live-heading strong {
    font-size: 16px;
  }
  .latest-studio-scope .latest-live-elapsed {
    margin-left: 52px;
  }
  .latest-studio-scope .latest-live-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-live-sampling {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state.is-working {
    white-space: normal;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-live-flow,
  .latest-studio-scope .latest-segment-row.is-working::after,
  .latest-studio-scope .latest-segment-running-dot {
    animation: none;
  }
  .latest-studio-scope .latest-results-table article.latest-segment-row {
    transition: none;
  }
}
.latest-studio-scope .latest-live-sampling progress {
  appearance: none;
  -webkit-appearance: none;
  background: #e5edfc;
  border: 0;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-bar {
  background: #e5edfc;
  border-radius: 10px;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-value {
  background:
    linear-gradient(
      90deg,
      #729bff,
      #3c69f4);
  border-radius: 10px;
  transition: width .4s;
}
.latest-studio-scope .latest-live-sampling progress::-moz-progress-bar {
  background: #4d7bf5;
  border-radius: 10px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state {
    padding: 5px 8px;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs > button {
    flex: 1 1 auto;
    font-size: 12px;
    padding: 12px 8px;
    min-width: 0;
    white-space: normal;
    line-height: 1.5;
  }
}


/* apps/web/src/pages/latest/latest-results.css */
.latest-studio-scope .latest-results-table {
  background: #fff;
  border-color: #e1e8f2;
  border-radius: 12px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  display: grid;
  grid-template-columns: 90px 100px minmax(130px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
}
.latest-studio-scope .latest-results-table .latest-segment-head {
  background: #f6f8fc;
  color: #72819a;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #e8edf5;
}
.latest-studio-scope .latest-results-table .latest-segment-head > span:last-child {
  text-align: right;
}
.latest-studio-scope .latest-results-table article {
  min-height: 80px;
  font-size: 14px;
}
.latest-studio-scope .latest-segment-name {
  white-space: nowrap;
  color: #182d4c;
}
.latest-studio-scope .latest-segment-duration {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #687994;
}
.latest-studio-scope .latest-segment-state {
  justify-self: start;
  line-height: 1.5;
  color: #526886;
  padding: 5px 10px;
  background: #f2f5fa;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .latest-segment-state.is-ready {
  color: #07845e;
  background: #edf9f3;
}
.latest-studio-scope .latest-results-table article > .latest-segment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: auto;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-segment-actions .btn {
  font-size: 13px;
  min-height: 38px;
  white-space: nowrap;
  padding: 8px 12px;
}
.latest-studio-scope .latest-segment-editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 51, .38);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.latest-studio-scope .latest-segment-editor {
  box-sizing: border-box;
  width: min(900px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 26px;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  box-shadow: 0 22px 70px #14284433;
}
.latest-studio-scope .latest-segment-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .latest-segment-editor-heading h2 {
  margin: 0;
  font-size: 20px;
}
.latest-studio-scope .latest-segment-editor p {
  font-size: 13px;
  line-height: 1.8;
  color: #6b7d96;
  margin: 14px 0 20px;
}
.latest-studio-scope .latest-segment-editor textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 280px;
  max-height: 48dvh;
  resize: vertical;
  padding: 16px;
  margin-top: 10px;
  border: 1px solid #cedbf0;
  border-radius: 10px;
  font:
    14px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #19314f;
  background: #fbfcff;
}
.latest-studio-scope .latest-segment-editor textarea:focus {
  outline: 2px solid #d9e4ff;
  border-color: #799bff;
}
.latest-studio-scope .latest-segment-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width:1050px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(100px, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }
  .latest-studio-scope .latest-segment-actions {
    max-width: 245px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table .latest-segment-head {
    display: none;
  }
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(0, 1fr);
    gap: 12px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
    max-width: none;
  }
  .latest-studio-scope .latest-segment-editor-backdrop {
    padding: 12px;
  }
  .latest-studio-scope .latest-segment-editor {
    padding: 18px;
    max-height: calc(100dvh - 24px);
  }
  .latest-studio-scope .latest-segment-editor textarea {
    min-height: 220px;
  }
}
.latest-studio-scope .latest-segment-editor p.latest-segment-editor-error {
  color: #c33131;
}
.latest-studio-scope .latest-live-summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 22px 0 18px;
  padding: 22px 24px;
  border: 1px solid #dbe5f8;
  border-radius: 14px;
  background:
    linear-gradient(
      115deg,
      #f3f7ff,
      #fcfdff);
  box-shadow: 0 4px 18px #2c5ac907;
}
.latest-studio-scope .latest-live-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.latest-studio-scope .latest-live-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  color: #315df4;
  background: #e4edff;
  font-size: 24px;
}
.latest-studio-scope .latest-live-heading strong {
  font-size: 18px;
  color: #193962;
  line-height: 1.5;
}
.latest-studio-scope .latest-live-heading p {
  margin: 5px 0 0;
  color: #73849d;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-elapsed {
  margin-left: auto;
  white-space: nowrap;
  color: #4c668c;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding: 8px 12px;
  border: 1px solid #dfe7f5;
  border-radius: 8px;
  background: #ffffffa8;
}
.latest-studio-scope .latest-live-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e0e8f7;
  color: #7184a1;
  font-size: 13px;
}
.latest-studio-scope .latest-live-footer strong {
  color: #315df4;
  font-size: 16px;
}
.latest-studio-scope .latest-live-sampling {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: #5477b2;
}
.latest-studio-scope .latest-live-sampling progress {
  height: 6px;
  flex: 1;
  min-width: 80px;
  accent-color: #4778ff;
  border-radius: 10px;
  overflow: hidden;
}
.latest-studio-scope .latest-live-flow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #91bdff,
      #3e70fa,
      transparent);
  background-size: 200% 100%;
  animation: latest-execution-flow 2.6s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-results-table article.latest-segment-row {
  position: relative;
  isolation: isolate;
  transition: background-color .3s, box-shadow .3s;
}
.latest-studio-scope .latest-results-table article.latest-segment-row.is-working {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #fbfdff);
  box-shadow: inset 3px 0 #4275ff;
}
.latest-studio-scope .latest-segment-row.is-working::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      #b9d2ff 38%,
      #4d7bff 50%,
      #afceff 62%,
      transparent 80%);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 3s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-segment-row.is-working .latest-segment-name {
  color: #2855c5;
}
.latest-studio-scope .latest-segment-state.is-working {
  color: #2e5bcf;
  background: #e7efff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .latest-segment-state.is-waiting {
  color: #8391a6;
  background: #f4f6f9;
}
.latest-studio-scope .latest-segment-state small {
  font-size: 12px;
  font-weight: 400;
}
.latest-studio-scope .latest-segment-running-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid #b8ceff;
  border-top-color: #3c6ef0;
  border-radius: 50%;
  animation: latest-execution-spin 1s linear infinite;
}
@keyframes latest-execution-flow {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -50% 0;
  }
}
@keyframes latest-execution-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-live-summary {
    padding: 18px 16px;
  }
  .latest-studio-scope .latest-live-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .latest-studio-scope .latest-live-heading > div {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-live-heading strong {
    font-size: 16px;
  }
  .latest-studio-scope .latest-live-elapsed {
    margin-left: 52px;
  }
  .latest-studio-scope .latest-live-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-live-sampling {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state.is-working {
    white-space: normal;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-live-flow,
  .latest-studio-scope .latest-segment-row.is-working::after,
  .latest-studio-scope .latest-segment-running-dot {
    animation: none;
  }
  .latest-studio-scope .latest-results-table article.latest-segment-row {
    transition: none;
  }
}
.latest-studio-scope .latest-live-sampling progress {
  appearance: none;
  -webkit-appearance: none;
  background: #e5edfc;
  border: 0;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-bar {
  background: #e5edfc;
  border-radius: 10px;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-value {
  background:
    linear-gradient(
      90deg,
      #729bff,
      #3c69f4);
  border-radius: 10px;
  transition: width .4s;
}
.latest-studio-scope .latest-live-sampling progress::-moz-progress-bar {
  background: #4d7bf5;
  border-radius: 10px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state {
    padding: 5px 8px;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs > button {
    flex: 1 1 auto;
    font-size: 12px;
    padding: 12px 8px;
    min-width: 0;
    white-space: normal;
    line-height: 1.5;
  }
}
.latest-studio-scope .latest-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}
.latest-studio-scope .latest-results-toolbar > .h3-field-hint {
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.latest-studio-scope .latest-results-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-results-page-count {
  font-size: 12px;
  color: #72839c;
  margin-right: 5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.latest-studio-scope .latest-results-pagination .btn {
  font-size: 13px;
  min-height: 36px;
  padding: 8px 12px;
}
.latest-studio-scope .latest-results-toolbar + .latest-results-table {
  margin-top: 0;
}
.latest-studio-scope .latest-result-stamp.latest-status-stamp {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1.4;
  border-radius: 8px;
  border: 2px solid currentColor;
  box-shadow: 0 3px 10px #24478009;
  color: #7d8ba0;
  background: #fafbfd;
  transform: rotate(-4deg);
  white-space: nowrap;
  flex-shrink: 0;
}
.latest-studio-scope .latest-status-stamp .latest-stamp-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 15px;
  line-height: 1;
}
.latest-studio-scope .latest-status-stamp.is-running {
  color: #3167e3;
  background: #f0f5ff;
  box-shadow: 0 3px 14px #3976f51a;
}
.latest-studio-scope .latest-status-stamp.is-running::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      110deg,
      transparent 15%,
      #aecbff 35%,
      #2459e5 50%,
      #a8caff 65%,
      transparent 85%);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 2.4s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
  animation: latest-execution-spin 2s linear infinite;
}
.latest-studio-scope .latest-status-stamp.is-complete {
  color: #078657;
  background: #eefbf5;
  border-color: #34ab7d;
  box-shadow: 0 3px 12px #149e6910;
}
.latest-studio-scope .latest-status-stamp.is-failed {
  color: #c8353e;
  background: #fff2f3;
  border-color: #de5c63;
  box-shadow: 0 3px 12px #d3434b10;
}
.latest-studio-scope .latest-status-stamp.is-stopped {
  color: #7a879a;
  background: #f4f6f9;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-pagination {
    justify-content: flex-start;
    width: 100%;
  }
  .latest-studio-scope .latest-results-page-count {
    flex: 1;
  }
  .latest-studio-scope .latest-result-stamp.latest-status-stamp {
    font-size: 15px;
    padding: 8px 10px;
    gap: 6px;
  }
  .latest-studio-scope .latest-results-heading {
    gap: 12px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-status-stamp.is-running::after,
  .latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
    animation: none;
  }
}


/* apps/web/src/pages/latest/latest-results.css */
.latest-studio-scope .latest-results-table {
  background: #fff;
  border-color: #e1e8f2;
  border-radius: 12px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  display: grid;
  grid-template-columns: 90px 100px minmax(130px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
}
.latest-studio-scope .latest-results-table .latest-segment-head {
  background: #f6f8fc;
  color: #72819a;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #e8edf5;
}
.latest-studio-scope .latest-results-table .latest-segment-head > span:last-child {
  text-align: right;
}
.latest-studio-scope .latest-results-table article {
  min-height: 80px;
  font-size: 14px;
}
.latest-studio-scope .latest-segment-name {
  white-space: nowrap;
  color: #182d4c;
}
.latest-studio-scope .latest-segment-duration {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #687994;
}
.latest-studio-scope .latest-segment-state {
  justify-self: start;
  line-height: 1.5;
  color: #526886;
  padding: 5px 10px;
  background: #f2f5fa;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .latest-segment-state.is-ready {
  color: #07845e;
  background: #edf9f3;
}
.latest-studio-scope .latest-results-table article > .latest-segment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: auto;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-segment-actions .btn {
  font-size: 13px;
  min-height: 38px;
  white-space: nowrap;
  padding: 8px 12px;
}
.latest-studio-scope .latest-segment-editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 51, .38);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.latest-studio-scope .latest-segment-editor {
  box-sizing: border-box;
  width: min(900px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 26px;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  box-shadow: 0 22px 70px #14284433;
}
.latest-studio-scope .latest-segment-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .latest-segment-editor-heading h2 {
  margin: 0;
  font-size: 20px;
}
.latest-studio-scope .latest-segment-editor p {
  font-size: 13px;
  line-height: 1.8;
  color: #6b7d96;
  margin: 14px 0 20px;
}
.latest-studio-scope .latest-segment-editor textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 280px;
  max-height: 48dvh;
  resize: vertical;
  padding: 16px;
  margin-top: 10px;
  border: 1px solid #cedbf0;
  border-radius: 10px;
  font:
    14px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #19314f;
  background: #fbfcff;
}
.latest-studio-scope .latest-segment-editor textarea:focus {
  outline: 2px solid #d9e4ff;
  border-color: #799bff;
}
.latest-studio-scope .latest-segment-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width:1050px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(100px, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }
  .latest-studio-scope .latest-segment-actions {
    max-width: 245px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table .latest-segment-head {
    display: none;
  }
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(0, 1fr);
    gap: 12px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
    max-width: none;
  }
  .latest-studio-scope .latest-segment-editor-backdrop {
    padding: 12px;
  }
  .latest-studio-scope .latest-segment-editor {
    padding: 18px;
    max-height: calc(100dvh - 24px);
  }
  .latest-studio-scope .latest-segment-editor textarea {
    min-height: 220px;
  }
}
.latest-studio-scope .latest-segment-editor p.latest-segment-editor-error {
  color: #c33131;
}
.latest-studio-scope .latest-live-summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 22px 0 18px;
  padding: 22px 24px;
  border: 1px solid #dbe5f8;
  border-radius: 14px;
  background:
    linear-gradient(
      115deg,
      #f3f7ff,
      #fcfdff);
  box-shadow: 0 4px 18px #2c5ac907;
}
.latest-studio-scope .latest-live-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.latest-studio-scope .latest-live-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  color: #315df4;
  background: #e4edff;
  font-size: 24px;
}
.latest-studio-scope .latest-live-heading strong {
  font-size: 18px;
  color: #193962;
  line-height: 1.5;
}
.latest-studio-scope .latest-live-heading p {
  margin: 5px 0 0;
  color: #73849d;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-elapsed {
  margin-left: auto;
  white-space: nowrap;
  color: #4c668c;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding: 8px 12px;
  border: 1px solid #dfe7f5;
  border-radius: 8px;
  background: #ffffffa8;
}
.latest-studio-scope .latest-live-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e0e8f7;
  color: #7184a1;
  font-size: 13px;
}
.latest-studio-scope .latest-live-footer strong {
  color: #315df4;
  font-size: 16px;
}
.latest-studio-scope .latest-live-sampling {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: #5477b2;
}
.latest-studio-scope .latest-live-sampling progress {
  height: 6px;
  flex: 1;
  min-width: 80px;
  accent-color: #4778ff;
  border-radius: 10px;
  overflow: hidden;
}
.latest-studio-scope .latest-live-flow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #91bdff,
      #3e70fa,
      transparent);
  background-size: 200% 100%;
  animation: latest-execution-flow 2.6s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-results-table article.latest-segment-row {
  position: relative;
  isolation: isolate;
  transition: background-color .3s, box-shadow .3s;
}
.latest-studio-scope .latest-results-table article.latest-segment-row.is-working {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #fbfdff);
  box-shadow: inset 3px 0 #4275ff;
}
.latest-studio-scope .latest-segment-row.is-working::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      #b9d2ff 38%,
      #4d7bff 50%,
      #afceff 62%,
      transparent 80%);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 3s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-segment-row.is-working .latest-segment-name {
  color: #2855c5;
}
.latest-studio-scope .latest-segment-state.is-working {
  color: #2e5bcf;
  background: #e7efff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .latest-segment-state.is-waiting {
  color: #8391a6;
  background: #f4f6f9;
}
.latest-studio-scope .latest-segment-state small {
  font-size: 12px;
  font-weight: 400;
}
.latest-studio-scope .latest-segment-running-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid #b8ceff;
  border-top-color: #3c6ef0;
  border-radius: 50%;
  animation: latest-execution-spin 1s linear infinite;
}
@keyframes latest-execution-flow {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -50% 0;
  }
}
@keyframes latest-execution-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-live-summary {
    padding: 18px 16px;
  }
  .latest-studio-scope .latest-live-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .latest-studio-scope .latest-live-heading > div {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-live-heading strong {
    font-size: 16px;
  }
  .latest-studio-scope .latest-live-elapsed {
    margin-left: 52px;
  }
  .latest-studio-scope .latest-live-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-live-sampling {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state.is-working {
    white-space: normal;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-live-flow,
  .latest-studio-scope .latest-segment-row.is-working::after,
  .latest-studio-scope .latest-segment-running-dot {
    animation: none;
  }
  .latest-studio-scope .latest-results-table article.latest-segment-row {
    transition: none;
  }
}
.latest-studio-scope .latest-live-sampling progress {
  appearance: none;
  -webkit-appearance: none;
  background: #e5edfc;
  border: 0;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-bar {
  background: #e5edfc;
  border-radius: 10px;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-value {
  background:
    linear-gradient(
      90deg,
      #729bff,
      #3c69f4);
  border-radius: 10px;
  transition: width .4s;
}
.latest-studio-scope .latest-live-sampling progress::-moz-progress-bar {
  background: #4d7bf5;
  border-radius: 10px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state {
    padding: 5px 8px;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs > button {
    flex: 1 1 auto;
    font-size: 12px;
    padding: 12px 8px;
    min-width: 0;
    white-space: normal;
    line-height: 1.5;
  }
}
.latest-studio-scope .latest-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}
.latest-studio-scope .latest-results-toolbar > .h3-field-hint {
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.latest-studio-scope .latest-results-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-results-page-count {
  font-size: 12px;
  color: #72839c;
  margin-right: 5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.latest-studio-scope .latest-results-pagination .btn {
  font-size: 13px;
  min-height: 36px;
  padding: 8px 12px;
}
.latest-studio-scope .latest-results-toolbar + .latest-results-table {
  margin-top: 0;
}
.latest-studio-scope .latest-result-stamp.latest-status-stamp {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1.4;
  border-radius: 8px;
  border: 2px solid currentColor;
  box-shadow: 0 3px 10px #24478009;
  color: #7d8ba0;
  background: #fafbfd;
  transform: rotate(-4deg);
  white-space: nowrap;
  flex-shrink: 0;
}
.latest-studio-scope .latest-status-stamp .latest-stamp-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 15px;
  line-height: 1;
}
.latest-studio-scope .latest-status-stamp.is-running {
  color: #3167e3;
  background: #f0f5ff;
  box-shadow: 0 3px 14px #3976f51a;
}
.latest-studio-scope .latest-status-stamp.is-running::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      110deg,
      transparent 15%,
      #aecbff 35%,
      #2459e5 50%,
      #a8caff 65%,
      transparent 85%);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 2.4s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
  animation: latest-execution-spin 2s linear infinite;
}
.latest-studio-scope .latest-status-stamp.is-complete {
  color: #078657;
  background: #eefbf5;
  border-color: #34ab7d;
  box-shadow: 0 3px 12px #149e6910;
}
.latest-studio-scope .latest-status-stamp.is-failed {
  color: #c8353e;
  background: #fff2f3;
  border-color: #de5c63;
  box-shadow: 0 3px 12px #d3434b10;
}
.latest-studio-scope .latest-status-stamp.is-stopped {
  color: #7a879a;
  background: #f4f6f9;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-pagination {
    justify-content: flex-start;
    width: 100%;
  }
  .latest-studio-scope .latest-results-page-count {
    flex: 1;
  }
  .latest-studio-scope .latest-result-stamp.latest-status-stamp {
    font-size: 15px;
    padding: 8px 10px;
    gap: 6px;
  }
  .latest-studio-scope .latest-results-heading {
    gap: 12px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-status-stamp.is-running::after,
  .latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
    animation: none;
  }
}
.latest-studio-scope .latest-live-summary .latest-live-meter {
  margin-top: 18px;
  display: block;
}
.latest-studio-scope .latest-live-summary .latest-live-meter > label {
  display: block;
  color: #315076;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-summary .latest-live-meter .h3-progress-track {
  width: 100%;
  margin-top: 10px;
}


/* apps/web/src/pages/latest/latest-results.css */
.latest-studio-scope .latest-results-table {
  background: #fff;
  border-color: #e1e8f2;
  border-radius: 12px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  display: grid;
  grid-template-columns: 90px 100px minmax(130px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
}
.latest-studio-scope .latest-results-table .latest-segment-head {
  background: #f6f8fc;
  color: #72819a;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #e8edf5;
}
.latest-studio-scope .latest-results-table .latest-segment-head > span:last-child {
  text-align: right;
}
.latest-studio-scope .latest-results-table article {
  min-height: 80px;
  font-size: 14px;
}
.latest-studio-scope .latest-segment-name {
  white-space: nowrap;
  color: #182d4c;
}
.latest-studio-scope .latest-segment-duration {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #687994;
}
.latest-studio-scope .latest-segment-state {
  justify-self: start;
  line-height: 1.5;
  color: #526886;
  padding: 5px 10px;
  background: #f2f5fa;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .latest-segment-state.is-ready {
  color: #07845e;
  background: #edf9f3;
}
.latest-studio-scope .latest-results-table article > .latest-segment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: auto;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-segment-actions .btn {
  font-size: 13px;
  min-height: 38px;
  white-space: nowrap;
  padding: 8px 12px;
}
.latest-studio-scope .latest-segment-editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 51, .38);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.latest-studio-scope .latest-segment-editor {
  box-sizing: border-box;
  width: min(900px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 26px;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  box-shadow: 0 22px 70px #14284433;
}
.latest-studio-scope .latest-segment-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .latest-segment-editor-heading h2 {
  margin: 0;
  font-size: 20px;
}
.latest-studio-scope .latest-segment-editor p {
  font-size: 13px;
  line-height: 1.8;
  color: #6b7d96;
  margin: 14px 0 20px;
}
.latest-studio-scope .latest-segment-editor textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 280px;
  max-height: 48dvh;
  resize: vertical;
  padding: 16px;
  margin-top: 10px;
  border: 1px solid #cedbf0;
  border-radius: 10px;
  font:
    14px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #19314f;
  background: #fbfcff;
}
.latest-studio-scope .latest-segment-editor textarea:focus {
  outline: 2px solid #d9e4ff;
  border-color: #799bff;
}
.latest-studio-scope .latest-segment-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width:1050px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(100px, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }
  .latest-studio-scope .latest-segment-actions {
    max-width: 245px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table .latest-segment-head {
    display: none;
  }
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(0, 1fr);
    gap: 12px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
    max-width: none;
  }
  .latest-studio-scope .latest-segment-editor-backdrop {
    padding: 12px;
  }
  .latest-studio-scope .latest-segment-editor {
    padding: 18px;
    max-height: calc(100dvh - 24px);
  }
  .latest-studio-scope .latest-segment-editor textarea {
    min-height: 220px;
  }
}
.latest-studio-scope .latest-segment-editor p.latest-segment-editor-error {
  color: #c33131;
}
.latest-studio-scope .latest-live-summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 22px 0 18px;
  padding: 22px 24px;
  border: 1px solid #dbe5f8;
  border-radius: 14px;
  background:
    linear-gradient(
      115deg,
      #f3f7ff,
      #fcfdff);
  box-shadow: 0 4px 18px #2c5ac907;
}
.latest-studio-scope .latest-live-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.latest-studio-scope .latest-live-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  color: #315df4;
  background: #e4edff;
  font-size: 24px;
}
.latest-studio-scope .latest-live-heading strong {
  font-size: 18px;
  color: #193962;
  line-height: 1.5;
}
.latest-studio-scope .latest-live-heading p {
  margin: 5px 0 0;
  color: #73849d;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-elapsed {
  margin-left: auto;
  white-space: nowrap;
  color: #4c668c;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding: 8px 12px;
  border: 1px solid #dfe7f5;
  border-radius: 8px;
  background: #ffffffa8;
}
.latest-studio-scope .latest-live-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e0e8f7;
  color: #7184a1;
  font-size: 13px;
}
.latest-studio-scope .latest-live-footer strong {
  color: #315df4;
  font-size: 16px;
}
.latest-studio-scope .latest-live-sampling {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: #5477b2;
}
.latest-studio-scope .latest-live-sampling progress {
  height: 6px;
  flex: 1;
  min-width: 80px;
  accent-color: #4778ff;
  border-radius: 10px;
  overflow: hidden;
}
.latest-studio-scope .latest-live-flow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #91bdff,
      #3e70fa,
      transparent);
  background-size: 200% 100%;
  animation: latest-execution-flow 2.6s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-results-table article.latest-segment-row {
  position: relative;
  isolation: isolate;
  transition: background-color .3s, box-shadow .3s;
}
.latest-studio-scope .latest-results-table article.latest-segment-row.is-working {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #fbfdff);
  box-shadow: inset 3px 0 #4275ff;
}
.latest-studio-scope .latest-segment-row.is-working::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      #b9d2ff 38%,
      #4d7bff 50%,
      #afceff 62%,
      transparent 80%);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 3s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-segment-row.is-working .latest-segment-name {
  color: #2855c5;
}
.latest-studio-scope .latest-segment-state.is-working {
  color: #2e5bcf;
  background: #e7efff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .latest-segment-state.is-waiting {
  color: #8391a6;
  background: #f4f6f9;
}
.latest-studio-scope .latest-segment-state small {
  font-size: 12px;
  font-weight: 400;
}
.latest-studio-scope .latest-segment-running-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid #b8ceff;
  border-top-color: #3c6ef0;
  border-radius: 50%;
  animation: latest-execution-spin 1s linear infinite;
}
@keyframes latest-execution-flow {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -50% 0;
  }
}
@keyframes latest-execution-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-live-summary {
    padding: 18px 16px;
  }
  .latest-studio-scope .latest-live-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .latest-studio-scope .latest-live-heading > div {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-live-heading strong {
    font-size: 16px;
  }
  .latest-studio-scope .latest-live-elapsed {
    margin-left: 52px;
  }
  .latest-studio-scope .latest-live-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-live-sampling {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state.is-working {
    white-space: normal;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-live-flow,
  .latest-studio-scope .latest-segment-row.is-working::after,
  .latest-studio-scope .latest-segment-running-dot {
    animation: none;
  }
  .latest-studio-scope .latest-results-table article.latest-segment-row {
    transition: none;
  }
}
.latest-studio-scope .latest-live-sampling progress {
  appearance: none;
  -webkit-appearance: none;
  background: #e5edfc;
  border: 0;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-bar {
  background: #e5edfc;
  border-radius: 10px;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-value {
  background:
    linear-gradient(
      90deg,
      #729bff,
      #3c69f4);
  border-radius: 10px;
  transition: width .4s;
}
.latest-studio-scope .latest-live-sampling progress::-moz-progress-bar {
  background: #4d7bf5;
  border-radius: 10px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state {
    padding: 5px 8px;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs > button {
    flex: 1 1 auto;
    font-size: 12px;
    padding: 12px 8px;
    min-width: 0;
    white-space: normal;
    line-height: 1.5;
  }
}
.latest-studio-scope .latest-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}
.latest-studio-scope .latest-results-toolbar > .h3-field-hint {
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.latest-studio-scope .latest-results-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-results-page-count {
  font-size: 12px;
  color: #72839c;
  margin-right: 5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.latest-studio-scope .latest-results-pagination .btn {
  font-size: 13px;
  min-height: 36px;
  padding: 8px 12px;
}
.latest-studio-scope .latest-results-toolbar + .latest-results-table {
  margin-top: 0;
}
.latest-studio-scope .latest-result-stamp.latest-status-stamp {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1.4;
  border-radius: 8px;
  border: 2px solid currentColor;
  box-shadow: 0 3px 10px #24478009;
  color: #7d8ba0;
  background: #fafbfd;
  transform: rotate(-4deg);
  white-space: nowrap;
  flex-shrink: 0;
}
.latest-studio-scope .latest-status-stamp .latest-stamp-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 15px;
  line-height: 1;
}
.latest-studio-scope .latest-status-stamp.is-running {
  color: #3167e3;
  background: #f0f5ff;
  box-shadow: 0 3px 14px #3976f51a;
}
.latest-studio-scope .latest-status-stamp.is-running::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      110deg,
      transparent 15%,
      #aecbff 35%,
      #2459e5 50%,
      #a8caff 65%,
      transparent 85%);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 2.4s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
  animation: latest-execution-spin 2s linear infinite;
}
.latest-studio-scope .latest-status-stamp.is-complete {
  color: #078657;
  background: #eefbf5;
  border-color: #34ab7d;
  box-shadow: 0 3px 12px #149e6910;
}
.latest-studio-scope .latest-status-stamp.is-failed {
  color: #c8353e;
  background: #fff2f3;
  border-color: #de5c63;
  box-shadow: 0 3px 12px #d3434b10;
}
.latest-studio-scope .latest-status-stamp.is-stopped {
  color: #7a879a;
  background: #f4f6f9;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-pagination {
    justify-content: flex-start;
    width: 100%;
  }
  .latest-studio-scope .latest-results-page-count {
    flex: 1;
  }
  .latest-studio-scope .latest-result-stamp.latest-status-stamp {
    font-size: 15px;
    padding: 8px 10px;
    gap: 6px;
  }
  .latest-studio-scope .latest-results-heading {
    gap: 12px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-status-stamp.is-running::after,
  .latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
    animation: none;
  }
}
.latest-studio-scope .latest-live-summary .latest-live-meter {
  margin-top: 18px;
  display: block;
}
.latest-studio-scope .latest-live-summary .latest-live-meter > label {
  display: block;
  color: #315076;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-summary .latest-live-meter .h3-progress-track {
  width: 100%;
  margin-top: 10px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  grid-template-columns: 75px 85px minmax(105px, 1fr) 120px auto;
  gap: 14px;
}
.latest-studio-scope .latest-segment-thumbnail {
  min-width: 0;
}
.latest-studio-scope .latest-thumbnail-button {
  position: relative;
  display: block;
  width: 120px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #f2f5fa;
  cursor: zoom-in;
}
.latest-studio-scope .latest-thumbnail-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.latest-studio-scope .latest-thumbnail-button > small {
  position: absolute;
  left: 3px;
  bottom: 3px;
  padding: 1px 5px;
  color: #fff;
  background: #173253bb;
  border-radius: 3px;
  font-size: 10px;
}
.latest-studio-scope .latest-thumbnail-zoom {
  position: absolute;
  right: 4px;
  bottom: 3px;
  padding: 0 4px;
  border-radius: 3px;
  color: white;
  background: #17325399;
  opacity: 0;
  transition: opacity .2s;
}
.latest-studio-scope .latest-thumbnail-button:hover {
  border-color: #739aff;
  box-shadow: 0 2px 8px #3267e91a;
}
.latest-studio-scope .latest-thumbnail-button:hover .latest-thumbnail-zoom,
.latest-studio-scope .latest-thumbnail-button:focus-visible .latest-thumbnail-zoom {
  opacity: 1;
}
.latest-studio-scope .latest-thumbnail-placeholder {
  box-sizing: border-box;
  width: 120px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  background: #f6f8fb;
  border: 1px dashed #dce4f1;
  border-radius: 8px;
  color: #a0aec1;
}
.latest-studio-scope .latest-thumbnail-placeholder small {
  font-size: 11px;
}
.latest-studio-scope .latest-thumbnail-placeholder > span {
  font-size: 20px;
  line-height: 1;
}
.latest-studio-scope .latest-thumbnail-placeholder button {
  padding: 0 5px;
  background: none;
  border: 0;
  color: #416bcb;
  font-size: 11px;
  cursor: pointer;
}
.latest-studio-scope .latest-thumbnail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10213b66;
  padding: 20px;
}
.latest-studio-scope .latest-thumbnail-backdrop > section {
  background: white;
  padding: 20px;
  border-radius: 14px;
  width: min(560px, 100%);
  box-sizing: border-box;
  box-shadow: 0 18px 60px #10213b33;
}
.latest-studio-scope .latest-thumbnail-backdrop section > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.latest-studio-scope .latest-thumbnail-backdrop img {
  display: block;
  width: 100%;
  height: auto;
  background: #111c2d;
  border-radius: 8px;
}
.latest-studio-scope .latest-thumbnail-backdrop p {
  font-size: 12px;
  color: #8292aa;
  margin-bottom: 0;
}
@media (max-width:1100px) and (min-width:721px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 65px 70px minmax(90px, 1fr) 105px auto;
    gap: 10px;
  }
  .latest-studio-scope .latest-thumbnail-button,
  .latest-studio-scope .latest-thumbnail-placeholder {
    width: 105px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    max-width: 220px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 10px;
  }
  .latest-studio-scope .latest-segment-thumbnail {
    grid-column: 1/-1;
  }
  .latest-studio-scope .latest-thumbnail-button,
  .latest-studio-scope .latest-thumbnail-placeholder {
    width: 120px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
  }
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  grid-template-columns: 75px 85px minmax(105px, 1fr) 120px 290px;
}
.latest-studio-scope .latest-results-table article > .latest-segment-thumbnail {
  display: block;
  grid-column: auto;
}
@media (max-width:1100px) and (min-width:721px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 65px 70px minmax(90px, 1fr) 105px 220px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-thumbnail {
    grid-column: 1/-1;
  }
}


/* apps/web/src/pages/latest/latest-results.css */
.latest-studio-scope .latest-results-table {
  background: #fff;
  border-color: #e1e8f2;
  border-radius: 12px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  display: grid;
  grid-template-columns: 90px 100px minmax(130px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
}
.latest-studio-scope .latest-results-table .latest-segment-head {
  background: #f6f8fc;
  color: #72819a;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #e8edf5;
}
.latest-studio-scope .latest-results-table .latest-segment-head > span:last-child {
  text-align: right;
}
.latest-studio-scope .latest-results-table article {
  min-height: 80px;
  font-size: 14px;
}
.latest-studio-scope .latest-segment-name {
  white-space: nowrap;
  color: #182d4c;
}
.latest-studio-scope .latest-segment-duration {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #687994;
}
.latest-studio-scope .latest-segment-state {
  justify-self: start;
  line-height: 1.5;
  color: #526886;
  padding: 5px 10px;
  background: #f2f5fa;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .latest-segment-state.is-ready {
  color: #07845e;
  background: #edf9f3;
}
.latest-studio-scope .latest-results-table article > .latest-segment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: auto;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-segment-actions .btn {
  font-size: 13px;
  min-height: 38px;
  white-space: nowrap;
  padding: 8px 12px;
}
.latest-studio-scope .latest-segment-editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 51, .38);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.latest-studio-scope .latest-segment-editor {
  box-sizing: border-box;
  width: min(900px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 26px;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  box-shadow: 0 22px 70px #14284433;
}
.latest-studio-scope .latest-segment-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .latest-segment-editor-heading h2 {
  margin: 0;
  font-size: 20px;
}
.latest-studio-scope .latest-segment-editor p {
  font-size: 13px;
  line-height: 1.8;
  color: #6b7d96;
  margin: 14px 0 20px;
}
.latest-studio-scope .latest-segment-editor textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 280px;
  max-height: 48dvh;
  resize: vertical;
  padding: 16px;
  margin-top: 10px;
  border: 1px solid #cedbf0;
  border-radius: 10px;
  font:
    14px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #19314f;
  background: #fbfcff;
}
.latest-studio-scope .latest-segment-editor textarea:focus {
  outline: 2px solid #d9e4ff;
  border-color: #799bff;
}
.latest-studio-scope .latest-segment-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width:1050px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(100px, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }
  .latest-studio-scope .latest-segment-actions {
    max-width: 245px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table .latest-segment-head {
    display: none;
  }
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(0, 1fr);
    gap: 12px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
    max-width: none;
  }
  .latest-studio-scope .latest-segment-editor-backdrop {
    padding: 12px;
  }
  .latest-studio-scope .latest-segment-editor {
    padding: 18px;
    max-height: calc(100dvh - 24px);
  }
  .latest-studio-scope .latest-segment-editor textarea {
    min-height: 220px;
  }
}
.latest-studio-scope .latest-segment-editor p.latest-segment-editor-error {
  color: #c33131;
}
.latest-studio-scope .latest-live-summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 22px 0 18px;
  padding: 22px 24px;
  border: 1px solid #dbe5f8;
  border-radius: 14px;
  background:
    linear-gradient(
      115deg,
      #f3f7ff,
      #fcfdff);
  box-shadow: 0 4px 18px #2c5ac907;
}
.latest-studio-scope .latest-live-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.latest-studio-scope .latest-live-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  color: #315df4;
  background: #e4edff;
  font-size: 24px;
}
.latest-studio-scope .latest-live-heading strong {
  font-size: 18px;
  color: #193962;
  line-height: 1.5;
}
.latest-studio-scope .latest-live-heading p {
  margin: 5px 0 0;
  color: #73849d;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-elapsed {
  margin-left: auto;
  white-space: nowrap;
  color: #4c668c;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding: 8px 12px;
  border: 1px solid #dfe7f5;
  border-radius: 8px;
  background: #ffffffa8;
}
.latest-studio-scope .latest-live-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e0e8f7;
  color: #7184a1;
  font-size: 13px;
}
.latest-studio-scope .latest-live-footer strong {
  color: #315df4;
  font-size: 16px;
}
.latest-studio-scope .latest-live-sampling {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: #5477b2;
}
.latest-studio-scope .latest-live-sampling progress {
  height: 6px;
  flex: 1;
  min-width: 80px;
  accent-color: #4778ff;
  border-radius: 10px;
  overflow: hidden;
}
.latest-studio-scope .latest-live-flow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #91bdff,
      #3e70fa,
      transparent);
  background-size: 200% 100%;
  animation: latest-execution-flow 2.6s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-results-table article.latest-segment-row {
  position: relative;
  isolation: isolate;
  transition: background-color .3s, box-shadow .3s;
}
.latest-studio-scope .latest-results-table article.latest-segment-row.is-working {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #fbfdff);
  box-shadow: inset 3px 0 #4275ff;
}
.latest-studio-scope .latest-segment-row.is-working::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      #b9d2ff 38%,
      #4d7bff 50%,
      #afceff 62%,
      transparent 80%);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 3s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-segment-row.is-working .latest-segment-name {
  color: #2855c5;
}
.latest-studio-scope .latest-segment-state.is-working {
  color: #2e5bcf;
  background: #e7efff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .latest-segment-state.is-waiting {
  color: #8391a6;
  background: #f4f6f9;
}
.latest-studio-scope .latest-segment-state small {
  font-size: 12px;
  font-weight: 400;
}
.latest-studio-scope .latest-segment-running-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid #b8ceff;
  border-top-color: #3c6ef0;
  border-radius: 50%;
  animation: latest-execution-spin 1s linear infinite;
}
@keyframes latest-execution-flow {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -50% 0;
  }
}
@keyframes latest-execution-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-live-summary {
    padding: 18px 16px;
  }
  .latest-studio-scope .latest-live-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .latest-studio-scope .latest-live-heading > div {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-live-heading strong {
    font-size: 16px;
  }
  .latest-studio-scope .latest-live-elapsed {
    margin-left: 52px;
  }
  .latest-studio-scope .latest-live-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-live-sampling {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state.is-working {
    white-space: normal;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-live-flow,
  .latest-studio-scope .latest-segment-row.is-working::after,
  .latest-studio-scope .latest-segment-running-dot {
    animation: none;
  }
  .latest-studio-scope .latest-results-table article.latest-segment-row {
    transition: none;
  }
}
.latest-studio-scope .latest-live-sampling progress {
  appearance: none;
  -webkit-appearance: none;
  background: #e5edfc;
  border: 0;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-bar {
  background: #e5edfc;
  border-radius: 10px;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-value {
  background:
    linear-gradient(
      90deg,
      #729bff,
      #3c69f4);
  border-radius: 10px;
  transition: width .4s;
}
.latest-studio-scope .latest-live-sampling progress::-moz-progress-bar {
  background: #4d7bf5;
  border-radius: 10px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state {
    padding: 5px 8px;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs > button {
    flex: 1 1 auto;
    font-size: 12px;
    padding: 12px 8px;
    min-width: 0;
    white-space: normal;
    line-height: 1.5;
  }
}
.latest-studio-scope .latest-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}
.latest-studio-scope .latest-results-toolbar > .h3-field-hint {
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.latest-studio-scope .latest-results-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-results-page-count {
  font-size: 12px;
  color: #72839c;
  margin-right: 5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.latest-studio-scope .latest-results-pagination .btn {
  font-size: 13px;
  min-height: 36px;
  padding: 8px 12px;
}
.latest-studio-scope .latest-results-toolbar + .latest-results-table {
  margin-top: 0;
}
.latest-studio-scope .latest-result-stamp.latest-status-stamp {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1.4;
  border-radius: 8px;
  border: 2px solid currentColor;
  box-shadow: 0 3px 10px #24478009;
  color: #7d8ba0;
  background: #fafbfd;
  transform: rotate(-4deg);
  white-space: nowrap;
  flex-shrink: 0;
}
.latest-studio-scope .latest-status-stamp .latest-stamp-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 15px;
  line-height: 1;
}
.latest-studio-scope .latest-status-stamp.is-running {
  color: #3167e3;
  background: #f0f5ff;
  box-shadow: 0 3px 14px #3976f51a;
}
.latest-studio-scope .latest-status-stamp.is-running::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      110deg,
      transparent 15%,
      #aecbff 35%,
      #2459e5 50%,
      #a8caff 65%,
      transparent 85%);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 2.4s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
  animation: latest-execution-spin 2s linear infinite;
}
.latest-studio-scope .latest-status-stamp.is-complete {
  color: #078657;
  background: #eefbf5;
  border-color: #34ab7d;
  box-shadow: 0 3px 12px #149e6910;
}
.latest-studio-scope .latest-status-stamp.is-failed {
  color: #c8353e;
  background: #fff2f3;
  border-color: #de5c63;
  box-shadow: 0 3px 12px #d3434b10;
}
.latest-studio-scope .latest-status-stamp.is-stopped {
  color: #7a879a;
  background: #f4f6f9;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-pagination {
    justify-content: flex-start;
    width: 100%;
  }
  .latest-studio-scope .latest-results-page-count {
    flex: 1;
  }
  .latest-studio-scope .latest-result-stamp.latest-status-stamp {
    font-size: 15px;
    padding: 8px 10px;
    gap: 6px;
  }
  .latest-studio-scope .latest-results-heading {
    gap: 12px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-status-stamp.is-running::after,
  .latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
    animation: none;
  }
}
.latest-studio-scope .latest-live-summary .latest-live-meter {
  margin-top: 18px;
  display: block;
}
.latest-studio-scope .latest-live-summary .latest-live-meter > label {
  display: block;
  color: #315076;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-summary .latest-live-meter .h3-progress-track {
  width: 100%;
  margin-top: 10px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  grid-template-columns: 75px 85px minmax(105px, 1fr) 120px auto;
  gap: 14px;
}
.latest-studio-scope .latest-segment-thumbnail {
  min-width: 0;
}
.latest-studio-scope .latest-thumbnail-button {
  position: relative;
  display: block;
  width: 120px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #f2f5fa;
  cursor: zoom-in;
}
.latest-studio-scope .latest-thumbnail-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.latest-studio-scope .latest-thumbnail-button > small {
  position: absolute;
  left: 3px;
  bottom: 3px;
  padding: 1px 5px;
  color: #fff;
  background: #173253bb;
  border-radius: 3px;
  font-size: 10px;
}
.latest-studio-scope .latest-thumbnail-zoom {
  position: absolute;
  right: 4px;
  bottom: 3px;
  padding: 0 4px;
  border-radius: 3px;
  color: white;
  background: #17325399;
  opacity: 0;
  transition: opacity .2s;
}
.latest-studio-scope .latest-thumbnail-button:hover {
  border-color: #739aff;
  box-shadow: 0 2px 8px #3267e91a;
}
.latest-studio-scope .latest-thumbnail-button:hover .latest-thumbnail-zoom,
.latest-studio-scope .latest-thumbnail-button:focus-visible .latest-thumbnail-zoom {
  opacity: 1;
}
.latest-studio-scope .latest-thumbnail-placeholder {
  box-sizing: border-box;
  width: 120px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  background: #f6f8fb;
  border: 1px dashed #dce4f1;
  border-radius: 8px;
  color: #a0aec1;
}
.latest-studio-scope .latest-thumbnail-placeholder small {
  font-size: 11px;
}
.latest-studio-scope .latest-thumbnail-placeholder > span {
  font-size: 20px;
  line-height: 1;
}
.latest-studio-scope .latest-thumbnail-placeholder button {
  padding: 0 5px;
  background: none;
  border: 0;
  color: #416bcb;
  font-size: 11px;
  cursor: pointer;
}
.latest-studio-scope .latest-thumbnail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10213b66;
  padding: 20px;
}
.latest-studio-scope .latest-thumbnail-backdrop > section {
  background: white;
  padding: 20px;
  border-radius: 14px;
  width: min(560px, 100%);
  box-sizing: border-box;
  box-shadow: 0 18px 60px #10213b33;
}
.latest-studio-scope .latest-thumbnail-backdrop section > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.latest-studio-scope .latest-thumbnail-backdrop img {
  display: block;
  width: 100%;
  height: auto;
  background: #111c2d;
  border-radius: 8px;
}
.latest-studio-scope .latest-thumbnail-backdrop p {
  font-size: 12px;
  color: #8292aa;
  margin-bottom: 0;
}
@media (max-width:1100px) and (min-width:721px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 65px 70px minmax(90px, 1fr) 105px auto;
    gap: 10px;
  }
  .latest-studio-scope .latest-thumbnail-button,
  .latest-studio-scope .latest-thumbnail-placeholder {
    width: 105px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    max-width: 220px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 10px;
  }
  .latest-studio-scope .latest-segment-thumbnail {
    grid-column: 1/-1;
  }
  .latest-studio-scope .latest-thumbnail-button,
  .latest-studio-scope .latest-thumbnail-placeholder {
    width: 120px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
  }
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  grid-template-columns: 75px 85px minmax(105px, 1fr) 120px 290px;
}
.latest-studio-scope .latest-results-table article > .latest-segment-thumbnail {
  display: block;
  grid-column: auto;
}
@media (max-width:1100px) and (min-width:721px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 65px 70px minmax(90px, 1fr) 105px 220px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-thumbnail {
    grid-column: 1/-1;
  }
}
.latest-studio-scope .latest-logs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-logs-toolbar h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.latest-studio-scope .latest-logs-toolbar .h3-field-hint {
  margin: 0;
}
.latest-studio-scope .latest-logs-pagination {
  padding-top: 2px;
  margin-left: auto;
}
.latest-studio-scope .latest-logs-pagination .has-updates {
  color: #285fe2;
  background: #edf3ff;
  border-color: #cbdcff;
}
.latest-studio-scope .latest-log-page-hint {
  margin: 20px 0 12px;
  color: #8a9ab0;
  font-size: 12px;
  line-height: 1.6;
}
.latest-studio-scope .latest-log-list.latest-log-paged {
  max-height: none;
  overflow: visible;
  margin-top: 0;
  padding: 2px 16px;
  background: #fff;
}
.latest-studio-scope .latest-log-paged > div {
  min-height: 44px;
  box-sizing: border-box;
  align-items: flex-start;
  gap: 18px;
  padding: 12px 0;
}
.latest-studio-scope .latest-log-paged > div:last-child {
  border-bottom: 0;
}
.latest-studio-scope .latest-log-paged > div > span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.latest-studio-scope .latest-logs-empty {
  padding: 35px 10px;
  text-align: center;
  color: #8b9bb1;
  font-size: 13px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-logs-toolbar {
    gap: 16px;
  }
  .latest-studio-scope .latest-logs-pagination {
    margin-left: 0;
    justify-content: flex-start;
  }
  .latest-studio-scope .latest-logs-pagination .latest-results-page-count {
    width: 100%;
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-log-paged > div {
    gap: 10px;
  }
  .latest-studio-scope .latest-log-list.latest-log-paged {
    padding: 2px 12px;
  }
}


/* apps/web/src/pages/latest/latest-results.css */
.latest-studio-scope .latest-results-table {
  background: #fff;
  border-color: #e1e8f2;
  border-radius: 12px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  display: grid;
  grid-template-columns: 90px 100px minmax(130px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
}
.latest-studio-scope .latest-results-table .latest-segment-head {
  background: #f6f8fc;
  color: #72819a;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #e8edf5;
}
.latest-studio-scope .latest-results-table .latest-segment-head > span:last-child {
  text-align: right;
}
.latest-studio-scope .latest-results-table article {
  min-height: 80px;
  font-size: 14px;
}
.latest-studio-scope .latest-segment-name {
  white-space: nowrap;
  color: #182d4c;
}
.latest-studio-scope .latest-segment-duration {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #687994;
}
.latest-studio-scope .latest-segment-state {
  justify-self: start;
  line-height: 1.5;
  color: #526886;
  padding: 5px 10px;
  background: #f2f5fa;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .latest-segment-state.is-ready {
  color: #07845e;
  background: #edf9f3;
}
.latest-studio-scope .latest-results-table article > .latest-segment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: auto;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-segment-actions .btn {
  font-size: 13px;
  min-height: 38px;
  white-space: nowrap;
  padding: 8px 12px;
}
.latest-studio-scope .latest-segment-editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 51, .38);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.latest-studio-scope .latest-segment-editor {
  box-sizing: border-box;
  width: min(900px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 26px;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  box-shadow: 0 22px 70px #14284433;
}
.latest-studio-scope .latest-segment-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .latest-segment-editor-heading h2 {
  margin: 0;
  font-size: 20px;
}
.latest-studio-scope .latest-segment-editor p {
  font-size: 13px;
  line-height: 1.8;
  color: #6b7d96;
  margin: 14px 0 20px;
}
.latest-studio-scope .latest-segment-editor textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 280px;
  max-height: 48dvh;
  resize: vertical;
  padding: 16px;
  margin-top: 10px;
  border: 1px solid #cedbf0;
  border-radius: 10px;
  font:
    14px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #19314f;
  background: #fbfcff;
}
.latest-studio-scope .latest-segment-editor textarea:focus {
  outline: 2px solid #d9e4ff;
  border-color: #799bff;
}
.latest-studio-scope .latest-segment-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width:1050px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(100px, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }
  .latest-studio-scope .latest-segment-actions {
    max-width: 245px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table .latest-segment-head {
    display: none;
  }
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(0, 1fr);
    gap: 12px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
    max-width: none;
  }
  .latest-studio-scope .latest-segment-editor-backdrop {
    padding: 12px;
  }
  .latest-studio-scope .latest-segment-editor {
    padding: 18px;
    max-height: calc(100dvh - 24px);
  }
  .latest-studio-scope .latest-segment-editor textarea {
    min-height: 220px;
  }
}
.latest-studio-scope .latest-segment-editor p.latest-segment-editor-error {
  color: #c33131;
}
.latest-studio-scope .latest-live-summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 22px 0 18px;
  padding: 22px 24px;
  border: 1px solid #dbe5f8;
  border-radius: 14px;
  background:
    linear-gradient(
      115deg,
      #f3f7ff,
      #fcfdff);
  box-shadow: 0 4px 18px #2c5ac907;
}
.latest-studio-scope .latest-live-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.latest-studio-scope .latest-live-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  color: #315df4;
  background: #e4edff;
  font-size: 24px;
}
.latest-studio-scope .latest-live-heading strong {
  font-size: 18px;
  color: #193962;
  line-height: 1.5;
}
.latest-studio-scope .latest-live-heading p {
  margin: 5px 0 0;
  color: #73849d;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-elapsed {
  margin-left: auto;
  white-space: nowrap;
  color: #4c668c;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding: 8px 12px;
  border: 1px solid #dfe7f5;
  border-radius: 8px;
  background: #ffffffa8;
}
.latest-studio-scope .latest-live-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e0e8f7;
  color: #7184a1;
  font-size: 13px;
}
.latest-studio-scope .latest-live-footer strong {
  color: #315df4;
  font-size: 16px;
}
.latest-studio-scope .latest-live-sampling {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: #5477b2;
}
.latest-studio-scope .latest-live-sampling progress {
  height: 6px;
  flex: 1;
  min-width: 80px;
  accent-color: #4778ff;
  border-radius: 10px;
  overflow: hidden;
}
.latest-studio-scope .latest-live-flow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #91bdff,
      #3e70fa,
      transparent);
  background-size: 200% 100%;
  animation: latest-execution-flow 2.6s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-results-table article.latest-segment-row {
  position: relative;
  isolation: isolate;
  transition: background-color .3s, box-shadow .3s;
}
.latest-studio-scope .latest-results-table article.latest-segment-row.is-working {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #fbfdff);
  box-shadow: inset 3px 0 #4275ff;
}
.latest-studio-scope .latest-segment-row.is-working::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      #b9d2ff 38%,
      #4d7bff 50%,
      #afceff 62%,
      transparent 80%);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 3s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-segment-row.is-working .latest-segment-name {
  color: #2855c5;
}
.latest-studio-scope .latest-segment-state.is-working {
  color: #2e5bcf;
  background: #e7efff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .latest-segment-state.is-waiting {
  color: #8391a6;
  background: #f4f6f9;
}
.latest-studio-scope .latest-segment-state small {
  font-size: 12px;
  font-weight: 400;
}
.latest-studio-scope .latest-segment-running-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid #b8ceff;
  border-top-color: #3c6ef0;
  border-radius: 50%;
  animation: latest-execution-spin 1s linear infinite;
}
@keyframes latest-execution-flow {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -50% 0;
  }
}
@keyframes latest-execution-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-live-summary {
    padding: 18px 16px;
  }
  .latest-studio-scope .latest-live-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .latest-studio-scope .latest-live-heading > div {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-live-heading strong {
    font-size: 16px;
  }
  .latest-studio-scope .latest-live-elapsed {
    margin-left: 52px;
  }
  .latest-studio-scope .latest-live-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-live-sampling {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state.is-working {
    white-space: normal;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-live-flow,
  .latest-studio-scope .latest-segment-row.is-working::after,
  .latest-studio-scope .latest-segment-running-dot {
    animation: none;
  }
  .latest-studio-scope .latest-results-table article.latest-segment-row {
    transition: none;
  }
}
.latest-studio-scope .latest-live-sampling progress {
  appearance: none;
  -webkit-appearance: none;
  background: #e5edfc;
  border: 0;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-bar {
  background: #e5edfc;
  border-radius: 10px;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-value {
  background:
    linear-gradient(
      90deg,
      #729bff,
      #3c69f4);
  border-radius: 10px;
  transition: width .4s;
}
.latest-studio-scope .latest-live-sampling progress::-moz-progress-bar {
  background: #4d7bf5;
  border-radius: 10px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state {
    padding: 5px 8px;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs > button {
    flex: 1 1 auto;
    font-size: 12px;
    padding: 12px 8px;
    min-width: 0;
    white-space: normal;
    line-height: 1.5;
  }
}
.latest-studio-scope .latest-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}
.latest-studio-scope .latest-results-toolbar > .h3-field-hint {
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.latest-studio-scope .latest-results-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-results-page-count {
  font-size: 12px;
  color: #72839c;
  margin-right: 5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.latest-studio-scope .latest-results-pagination .btn {
  font-size: 13px;
  min-height: 36px;
  padding: 8px 12px;
}
.latest-studio-scope .latest-results-toolbar + .latest-results-table {
  margin-top: 0;
}
.latest-studio-scope .latest-result-stamp.latest-status-stamp {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1.4;
  border-radius: 8px;
  border: 2px solid currentColor;
  box-shadow: 0 3px 10px #24478009;
  color: #7d8ba0;
  background: #fafbfd;
  transform: rotate(-4deg);
  white-space: nowrap;
  flex-shrink: 0;
}
.latest-studio-scope .latest-status-stamp .latest-stamp-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 15px;
  line-height: 1;
}
.latest-studio-scope .latest-status-stamp.is-running {
  color: #3167e3;
  background: #f0f5ff;
  box-shadow: 0 3px 14px #3976f51a;
}
.latest-studio-scope .latest-status-stamp.is-running::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      110deg,
      transparent 15%,
      #aecbff 35%,
      #2459e5 50%,
      #a8caff 65%,
      transparent 85%);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 2.4s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
  animation: latest-execution-spin 2s linear infinite;
}
.latest-studio-scope .latest-status-stamp.is-complete {
  color: #078657;
  background: #eefbf5;
  border-color: #34ab7d;
  box-shadow: 0 3px 12px #149e6910;
}
.latest-studio-scope .latest-status-stamp.is-failed {
  color: #c8353e;
  background: #fff2f3;
  border-color: #de5c63;
  box-shadow: 0 3px 12px #d3434b10;
}
.latest-studio-scope .latest-status-stamp.is-stopped {
  color: #7a879a;
  background: #f4f6f9;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-pagination {
    justify-content: flex-start;
    width: 100%;
  }
  .latest-studio-scope .latest-results-page-count {
    flex: 1;
  }
  .latest-studio-scope .latest-result-stamp.latest-status-stamp {
    font-size: 15px;
    padding: 8px 10px;
    gap: 6px;
  }
  .latest-studio-scope .latest-results-heading {
    gap: 12px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-status-stamp.is-running::after,
  .latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
    animation: none;
  }
}
.latest-studio-scope .latest-live-summary .latest-live-meter {
  margin-top: 18px;
  display: block;
}
.latest-studio-scope .latest-live-summary .latest-live-meter > label {
  display: block;
  color: #315076;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-summary .latest-live-meter .h3-progress-track {
  width: 100%;
  margin-top: 10px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  grid-template-columns: 75px 85px minmax(105px, 1fr) 120px auto;
  gap: 14px;
}
.latest-studio-scope .latest-segment-thumbnail {
  min-width: 0;
}
.latest-studio-scope .latest-thumbnail-button {
  position: relative;
  display: block;
  width: 120px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #f2f5fa;
  cursor: zoom-in;
}
.latest-studio-scope .latest-thumbnail-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.latest-studio-scope .latest-thumbnail-button > small {
  position: absolute;
  left: 3px;
  bottom: 3px;
  padding: 1px 5px;
  color: #fff;
  background: #173253bb;
  border-radius: 3px;
  font-size: 10px;
}
.latest-studio-scope .latest-thumbnail-zoom {
  position: absolute;
  right: 4px;
  bottom: 3px;
  padding: 0 4px;
  border-radius: 3px;
  color: white;
  background: #17325399;
  opacity: 0;
  transition: opacity .2s;
}
.latest-studio-scope .latest-thumbnail-button:hover {
  border-color: #739aff;
  box-shadow: 0 2px 8px #3267e91a;
}
.latest-studio-scope .latest-thumbnail-button:hover .latest-thumbnail-zoom,
.latest-studio-scope .latest-thumbnail-button:focus-visible .latest-thumbnail-zoom {
  opacity: 1;
}
.latest-studio-scope .latest-thumbnail-placeholder {
  box-sizing: border-box;
  width: 120px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  background: #f6f8fb;
  border: 1px dashed #dce4f1;
  border-radius: 8px;
  color: #a0aec1;
}
.latest-studio-scope .latest-thumbnail-placeholder small {
  font-size: 11px;
}
.latest-studio-scope .latest-thumbnail-placeholder > span {
  font-size: 20px;
  line-height: 1;
}
.latest-studio-scope .latest-thumbnail-placeholder button {
  padding: 0 5px;
  background: none;
  border: 0;
  color: #416bcb;
  font-size: 11px;
  cursor: pointer;
}
.latest-studio-scope .latest-thumbnail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10213b66;
  padding: 20px;
}
.latest-studio-scope .latest-thumbnail-backdrop > section {
  background: white;
  padding: 20px;
  border-radius: 14px;
  width: min(560px, 100%);
  box-sizing: border-box;
  box-shadow: 0 18px 60px #10213b33;
}
.latest-studio-scope .latest-thumbnail-backdrop section > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.latest-studio-scope .latest-thumbnail-backdrop img {
  display: block;
  width: 100%;
  height: auto;
  background: #111c2d;
  border-radius: 8px;
}
.latest-studio-scope .latest-thumbnail-backdrop p {
  font-size: 12px;
  color: #8292aa;
  margin-bottom: 0;
}
@media (max-width:1100px) and (min-width:721px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 65px 70px minmax(90px, 1fr) 105px auto;
    gap: 10px;
  }
  .latest-studio-scope .latest-thumbnail-button,
  .latest-studio-scope .latest-thumbnail-placeholder {
    width: 105px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    max-width: 220px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 10px;
  }
  .latest-studio-scope .latest-segment-thumbnail {
    grid-column: 1/-1;
  }
  .latest-studio-scope .latest-thumbnail-button,
  .latest-studio-scope .latest-thumbnail-placeholder {
    width: 120px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
  }
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  grid-template-columns: 75px 85px minmax(105px, 1fr) 120px 290px;
}
.latest-studio-scope .latest-results-table article > .latest-segment-thumbnail {
  display: block;
  grid-column: auto;
}
@media (max-width:1100px) and (min-width:721px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 65px 70px minmax(90px, 1fr) 105px 220px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-thumbnail {
    grid-column: 1/-1;
  }
}
.latest-studio-scope .latest-logs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-logs-toolbar h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.latest-studio-scope .latest-logs-toolbar .h3-field-hint {
  margin: 0;
}
.latest-studio-scope .latest-logs-pagination {
  padding-top: 2px;
  margin-left: auto;
}
.latest-studio-scope .latest-logs-pagination .has-updates {
  color: #285fe2;
  background: #edf3ff;
  border-color: #cbdcff;
}
.latest-studio-scope .latest-log-page-hint {
  margin: 20px 0 12px;
  color: #8a9ab0;
  font-size: 12px;
  line-height: 1.6;
}
.latest-studio-scope .latest-log-list.latest-log-paged {
  max-height: none;
  overflow: visible;
  margin-top: 0;
  padding: 2px 16px;
  background: #fff;
}
.latest-studio-scope .latest-log-paged > div {
  min-height: 44px;
  box-sizing: border-box;
  align-items: flex-start;
  gap: 18px;
  padding: 12px 0;
}
.latest-studio-scope .latest-log-paged > div:last-child {
  border-bottom: 0;
}
.latest-studio-scope .latest-log-paged > div > span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.latest-studio-scope .latest-logs-empty {
  padding: 35px 10px;
  text-align: center;
  color: #8b9bb1;
  font-size: 13px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-logs-toolbar {
    gap: 16px;
  }
  .latest-studio-scope .latest-logs-pagination {
    margin-left: 0;
    justify-content: flex-start;
  }
  .latest-studio-scope .latest-logs-pagination .latest-results-page-count {
    width: 100%;
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-log-paged > div {
    gap: 10px;
  }
  .latest-studio-scope .latest-log-list.latest-log-paged {
    padding: 2px 12px;
  }
}
.latest-studio-scope dialog.latest-thumbnail-backdrop {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(600px, 100vw);
  height: fit-content;
  max-height: calc(100dvh - 32px);
  max-width: 100vw;
  overflow: auto;
  padding: 20px;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}
.latest-studio-scope dialog.latest-thumbnail-backdrop:not([open]) {
  display: none;
}
.latest-studio-scope dialog.latest-thumbnail-backdrop::backdrop {
  background: rgba(16, 33, 59, .55);
}
.latest-studio-scope dialog.latest-thumbnail-backdrop > section {
  width: 100%;
}


/* apps/web/src/pages/latest/latest-results.css */
.latest-studio-scope .latest-results-table {
  background: #fff;
  border-color: #e1e8f2;
  border-radius: 12px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  display: grid;
  grid-template-columns: 90px 100px minmax(130px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
}
.latest-studio-scope .latest-results-table .latest-segment-head {
  background: #f6f8fc;
  color: #72819a;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #e8edf5;
}
.latest-studio-scope .latest-results-table .latest-segment-head > span:last-child {
  text-align: right;
}
.latest-studio-scope .latest-results-table article {
  min-height: 80px;
  font-size: 14px;
}
.latest-studio-scope .latest-segment-name {
  white-space: nowrap;
  color: #182d4c;
}
.latest-studio-scope .latest-segment-duration {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #687994;
}
.latest-studio-scope .latest-segment-state {
  justify-self: start;
  line-height: 1.5;
  color: #526886;
  padding: 5px 10px;
  background: #f2f5fa;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .latest-segment-state.is-ready {
  color: #07845e;
  background: #edf9f3;
}
.latest-studio-scope .latest-results-table article > .latest-segment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: auto;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-segment-actions .btn {
  font-size: 13px;
  min-height: 38px;
  white-space: nowrap;
  padding: 8px 12px;
}
.latest-studio-scope .latest-segment-editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 51, .38);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.latest-studio-scope .latest-segment-editor {
  box-sizing: border-box;
  width: min(900px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 26px;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  box-shadow: 0 22px 70px #14284433;
}
.latest-studio-scope .latest-segment-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .latest-segment-editor-heading h2 {
  margin: 0;
  font-size: 20px;
}
.latest-studio-scope .latest-segment-editor p {
  font-size: 13px;
  line-height: 1.8;
  color: #6b7d96;
  margin: 14px 0 20px;
}
.latest-studio-scope .latest-segment-editor textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 280px;
  max-height: 48dvh;
  resize: vertical;
  padding: 16px;
  margin-top: 10px;
  border: 1px solid #cedbf0;
  border-radius: 10px;
  font:
    14px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #19314f;
  background: #fbfcff;
}
.latest-studio-scope .latest-segment-editor textarea:focus {
  outline: 2px solid #d9e4ff;
  border-color: #799bff;
}
.latest-studio-scope .latest-segment-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width:1050px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(100px, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }
  .latest-studio-scope .latest-segment-actions {
    max-width: 245px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table .latest-segment-head {
    display: none;
  }
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(0, 1fr);
    gap: 12px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
    max-width: none;
  }
  .latest-studio-scope .latest-segment-editor-backdrop {
    padding: 12px;
  }
  .latest-studio-scope .latest-segment-editor {
    padding: 18px;
    max-height: calc(100dvh - 24px);
  }
  .latest-studio-scope .latest-segment-editor textarea {
    min-height: 220px;
  }
}
.latest-studio-scope .latest-segment-editor p.latest-segment-editor-error {
  color: #c33131;
}
.latest-studio-scope .latest-live-summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 22px 0 18px;
  padding: 22px 24px;
  border: 1px solid #dbe5f8;
  border-radius: 14px;
  background:
    linear-gradient(
      115deg,
      #f3f7ff,
      #fcfdff);
  box-shadow: 0 4px 18px #2c5ac907;
}
.latest-studio-scope .latest-live-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.latest-studio-scope .latest-live-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  color: #315df4;
  background: #e4edff;
  font-size: 24px;
}
.latest-studio-scope .latest-live-heading strong {
  font-size: 18px;
  color: #193962;
  line-height: 1.5;
}
.latest-studio-scope .latest-live-heading p {
  margin: 5px 0 0;
  color: #73849d;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-elapsed {
  margin-left: auto;
  white-space: nowrap;
  color: #4c668c;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding: 8px 12px;
  border: 1px solid #dfe7f5;
  border-radius: 8px;
  background: #ffffffa8;
}
.latest-studio-scope .latest-live-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e0e8f7;
  color: #7184a1;
  font-size: 13px;
}
.latest-studio-scope .latest-live-footer strong {
  color: #315df4;
  font-size: 16px;
}
.latest-studio-scope .latest-live-sampling {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: #5477b2;
}
.latest-studio-scope .latest-live-sampling progress {
  height: 6px;
  flex: 1;
  min-width: 80px;
  accent-color: #4778ff;
  border-radius: 10px;
  overflow: hidden;
}
.latest-studio-scope .latest-live-flow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #91bdff,
      #3e70fa,
      transparent);
  background-size: 200% 100%;
  animation: latest-execution-flow 2.6s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-results-table article.latest-segment-row {
  position: relative;
  isolation: isolate;
  transition: background-color .3s, box-shadow .3s;
}
.latest-studio-scope .latest-results-table article.latest-segment-row.is-working {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #fbfdff);
  box-shadow: inset 3px 0 #4275ff;
}
.latest-studio-scope .latest-segment-row.is-working::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      #b9d2ff 38%,
      #4d7bff 50%,
      #afceff 62%,
      transparent 80%);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 3s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-segment-row.is-working .latest-segment-name {
  color: #2855c5;
}
.latest-studio-scope .latest-segment-state.is-working {
  color: #2e5bcf;
  background: #e7efff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .latest-segment-state.is-waiting {
  color: #8391a6;
  background: #f4f6f9;
}
.latest-studio-scope .latest-segment-state small {
  font-size: 12px;
  font-weight: 400;
}
.latest-studio-scope .latest-segment-running-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid #b8ceff;
  border-top-color: #3c6ef0;
  border-radius: 50%;
  animation: latest-execution-spin 1s linear infinite;
}
@keyframes latest-execution-flow {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -50% 0;
  }
}
@keyframes latest-execution-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-live-summary {
    padding: 18px 16px;
  }
  .latest-studio-scope .latest-live-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .latest-studio-scope .latest-live-heading > div {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-live-heading strong {
    font-size: 16px;
  }
  .latest-studio-scope .latest-live-elapsed {
    margin-left: 52px;
  }
  .latest-studio-scope .latest-live-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-live-sampling {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state.is-working {
    white-space: normal;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-live-flow,
  .latest-studio-scope .latest-segment-row.is-working::after,
  .latest-studio-scope .latest-segment-running-dot {
    animation: none;
  }
  .latest-studio-scope .latest-results-table article.latest-segment-row {
    transition: none;
  }
}
.latest-studio-scope .latest-live-sampling progress {
  appearance: none;
  -webkit-appearance: none;
  background: #e5edfc;
  border: 0;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-bar {
  background: #e5edfc;
  border-radius: 10px;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-value {
  background:
    linear-gradient(
      90deg,
      #729bff,
      #3c69f4);
  border-radius: 10px;
  transition: width .4s;
}
.latest-studio-scope .latest-live-sampling progress::-moz-progress-bar {
  background: #4d7bf5;
  border-radius: 10px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state {
    padding: 5px 8px;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs > button {
    flex: 1 1 auto;
    font-size: 12px;
    padding: 12px 8px;
    min-width: 0;
    white-space: normal;
    line-height: 1.5;
  }
}
.latest-studio-scope .latest-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}
.latest-studio-scope .latest-results-toolbar > .h3-field-hint {
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.latest-studio-scope .latest-results-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-results-page-count {
  font-size: 12px;
  color: #72839c;
  margin-right: 5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.latest-studio-scope .latest-results-pagination .btn {
  font-size: 13px;
  min-height: 36px;
  padding: 8px 12px;
}
.latest-studio-scope .latest-results-toolbar + .latest-results-table {
  margin-top: 0;
}
.latest-studio-scope .latest-result-stamp.latest-status-stamp {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1.4;
  border-radius: 8px;
  border: 2px solid currentColor;
  box-shadow: 0 3px 10px #24478009;
  color: #7d8ba0;
  background: #fafbfd;
  transform: rotate(-4deg);
  white-space: nowrap;
  flex-shrink: 0;
}
.latest-studio-scope .latest-status-stamp .latest-stamp-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 15px;
  line-height: 1;
}
.latest-studio-scope .latest-status-stamp.is-running {
  color: #3167e3;
  background: #f0f5ff;
  box-shadow: 0 3px 14px #3976f51a;
}
.latest-studio-scope .latest-status-stamp.is-running::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      110deg,
      transparent 15%,
      #aecbff 35%,
      #2459e5 50%,
      #a8caff 65%,
      transparent 85%);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 2.4s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
  animation: latest-execution-spin 2s linear infinite;
}
.latest-studio-scope .latest-status-stamp.is-complete {
  color: #078657;
  background: #eefbf5;
  border-color: #34ab7d;
  box-shadow: 0 3px 12px #149e6910;
}
.latest-studio-scope .latest-status-stamp.is-failed {
  color: #c8353e;
  background: #fff2f3;
  border-color: #de5c63;
  box-shadow: 0 3px 12px #d3434b10;
}
.latest-studio-scope .latest-status-stamp.is-stopped {
  color: #7a879a;
  background: #f4f6f9;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-pagination {
    justify-content: flex-start;
    width: 100%;
  }
  .latest-studio-scope .latest-results-page-count {
    flex: 1;
  }
  .latest-studio-scope .latest-result-stamp.latest-status-stamp {
    font-size: 15px;
    padding: 8px 10px;
    gap: 6px;
  }
  .latest-studio-scope .latest-results-heading {
    gap: 12px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-status-stamp.is-running::after,
  .latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
    animation: none;
  }
}
.latest-studio-scope .latest-live-summary .latest-live-meter {
  margin-top: 18px;
  display: block;
}
.latest-studio-scope .latest-live-summary .latest-live-meter > label {
  display: block;
  color: #315076;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-summary .latest-live-meter .h3-progress-track {
  width: 100%;
  margin-top: 10px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  grid-template-columns: 75px 85px minmax(105px, 1fr) 120px auto;
  gap: 14px;
}
.latest-studio-scope .latest-segment-thumbnail {
  min-width: 0;
}
.latest-studio-scope .latest-thumbnail-button {
  position: relative;
  display: block;
  width: 120px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #f2f5fa;
  cursor: zoom-in;
}
.latest-studio-scope .latest-thumbnail-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.latest-studio-scope .latest-thumbnail-button > small {
  position: absolute;
  left: 3px;
  bottom: 3px;
  padding: 1px 5px;
  color: #fff;
  background: #173253bb;
  border-radius: 3px;
  font-size: 10px;
}
.latest-studio-scope .latest-thumbnail-zoom {
  position: absolute;
  right: 4px;
  bottom: 3px;
  padding: 0 4px;
  border-radius: 3px;
  color: white;
  background: #17325399;
  opacity: 0;
  transition: opacity .2s;
}
.latest-studio-scope .latest-thumbnail-button:hover {
  border-color: #739aff;
  box-shadow: 0 2px 8px #3267e91a;
}
.latest-studio-scope .latest-thumbnail-button:hover .latest-thumbnail-zoom,
.latest-studio-scope .latest-thumbnail-button:focus-visible .latest-thumbnail-zoom {
  opacity: 1;
}
.latest-studio-scope .latest-thumbnail-placeholder {
  box-sizing: border-box;
  width: 120px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  background: #f6f8fb;
  border: 1px dashed #dce4f1;
  border-radius: 8px;
  color: #a0aec1;
}
.latest-studio-scope .latest-thumbnail-placeholder small {
  font-size: 11px;
}
.latest-studio-scope .latest-thumbnail-placeholder > span {
  font-size: 20px;
  line-height: 1;
}
.latest-studio-scope .latest-thumbnail-placeholder button {
  padding: 0 5px;
  background: none;
  border: 0;
  color: #416bcb;
  font-size: 11px;
  cursor: pointer;
}
.latest-studio-scope .latest-thumbnail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10213b66;
  padding: 20px;
}
.latest-studio-scope .latest-thumbnail-backdrop > section {
  background: white;
  padding: 20px;
  border-radius: 14px;
  width: min(560px, 100%);
  box-sizing: border-box;
  box-shadow: 0 18px 60px #10213b33;
}
.latest-studio-scope .latest-thumbnail-backdrop section > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.latest-studio-scope .latest-thumbnail-backdrop img {
  display: block;
  width: 100%;
  height: auto;
  background: #111c2d;
  border-radius: 8px;
}
.latest-studio-scope .latest-thumbnail-backdrop p {
  font-size: 12px;
  color: #8292aa;
  margin-bottom: 0;
}
@media (max-width:1100px) and (min-width:721px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 65px 70px minmax(90px, 1fr) 105px auto;
    gap: 10px;
  }
  .latest-studio-scope .latest-thumbnail-button,
  .latest-studio-scope .latest-thumbnail-placeholder {
    width: 105px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    max-width: 220px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 10px;
  }
  .latest-studio-scope .latest-segment-thumbnail {
    grid-column: 1/-1;
  }
  .latest-studio-scope .latest-thumbnail-button,
  .latest-studio-scope .latest-thumbnail-placeholder {
    width: 120px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
  }
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  grid-template-columns: 75px 85px minmax(105px, 1fr) 120px 290px;
}
.latest-studio-scope .latest-results-table article > .latest-segment-thumbnail {
  display: block;
  grid-column: auto;
}
@media (max-width:1100px) and (min-width:721px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 65px 70px minmax(90px, 1fr) 105px 220px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-thumbnail {
    grid-column: 1/-1;
  }
}
.latest-studio-scope .latest-logs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-logs-toolbar h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.latest-studio-scope .latest-logs-toolbar .h3-field-hint {
  margin: 0;
}
.latest-studio-scope .latest-logs-pagination {
  padding-top: 2px;
  margin-left: auto;
}
.latest-studio-scope .latest-logs-pagination .has-updates {
  color: #285fe2;
  background: #edf3ff;
  border-color: #cbdcff;
}
.latest-studio-scope .latest-log-page-hint {
  margin: 20px 0 12px;
  color: #8a9ab0;
  font-size: 12px;
  line-height: 1.6;
}
.latest-studio-scope .latest-log-list.latest-log-paged {
  max-height: none;
  overflow: visible;
  margin-top: 0;
  padding: 2px 16px;
  background: #fff;
}
.latest-studio-scope .latest-log-paged > div {
  min-height: 44px;
  box-sizing: border-box;
  align-items: flex-start;
  gap: 18px;
  padding: 12px 0;
}
.latest-studio-scope .latest-log-paged > div:last-child {
  border-bottom: 0;
}
.latest-studio-scope .latest-log-paged > div > span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.latest-studio-scope .latest-logs-empty {
  padding: 35px 10px;
  text-align: center;
  color: #8b9bb1;
  font-size: 13px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-logs-toolbar {
    gap: 16px;
  }
  .latest-studio-scope .latest-logs-pagination {
    margin-left: 0;
    justify-content: flex-start;
  }
  .latest-studio-scope .latest-logs-pagination .latest-results-page-count {
    width: 100%;
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-log-paged > div {
    gap: 10px;
  }
  .latest-studio-scope .latest-log-list.latest-log-paged {
    padding: 2px 12px;
  }
}
.latest-studio-scope dialog.latest-thumbnail-backdrop {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(600px, 100vw);
  height: fit-content;
  max-height: calc(100dvh - 32px);
  max-width: 100vw;
  overflow: auto;
  padding: 20px;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}
.latest-studio-scope dialog.latest-thumbnail-backdrop:not([open]) {
  display: none;
}
.latest-studio-scope dialog.latest-thumbnail-backdrop::backdrop {
  background: rgba(16, 33, 59, .55);
}
.latest-studio-scope dialog.latest-thumbnail-backdrop > section {
  width: 100%;
}
.latest-studio-scope .latest-logs-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.latest-studio-scope .latest-logs-jump label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  color: #6f829f;
}
.latest-studio-scope .latest-logs-jump input {
  box-sizing: border-box;
  width: 62px;
  min-width: 0;
  height: 38px;
  padding: 6px 8px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  text-align: center;
  background: #fff;
  color: #183555;
}


/* apps/web/src/pages/latest/latest-studio.css */
.latest-studio-scope .h3-studio {
  max-width: 1200px;
  margin: auto;
  padding: 28px 24px 60px;
  color: #102544;
}
.latest-studio-scope .h3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-header h1 {
  font-size: 26px;
}
.latest-studio-scope .h3-note {
  color: #64748b;
  font-size: 13px;
}
.latest-studio-scope .h3-inputs,
.latest-studio-scope .h3-results {
  padding: 24px;
  margin-top: 20px;
}
.latest-studio-scope .h3-studio h2 {
  font-size: 19px;
}
.latest-studio-scope .h3-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-studio select {
  padding: 8px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: white;
}
.latest-studio-scope .h3-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-images > div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}
.latest-studio-scope .h3-images strong {
  display: block;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-images img,
.latest-studio-scope .h3-placeholder {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}
.latest-studio-scope .h3-placeholder {
  display: grid;
  place-items: center;
  color: #94a3b8;
}
.latest-studio-scope .h3-studio textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 14px;
  line-height: 1.6;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  resize: vertical;
  font-family: inherit;
}
.latest-studio-scope .h3-review {
  padding: 16px;
  background: #f1f5ff;
  border-radius: 10px;
}
.latest-studio-scope .h3-studio pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.latest-studio-scope .h3-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-result-grid img,
.latest-studio-scope .h3-result-grid video {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-studio details {
  margin: 14px 0;
}
.latest-studio-scope .h3-studio summary {
  cursor: pointer;
}
.latest-studio-scope .h3-studio .alert {
  margin-top: 14px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, 1fr);
  }
  .latest-studio-scope .h3-studio {
    padding: 16px;
  }
  .latest-studio-scope .h3-inputs,
  .latest-studio-scope .h3-results {
    padding: 16px;
  }
  .latest-studio-scope .h3-header h1 {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-image-dropzone {
  border: 1px dashed #dce3ec;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  height: 140px;
  box-sizing: border-box;
  overflow: hidden;
}
.latest-studio-scope .h3-image-dropzone img,
.latest-studio-scope .h3-image-dropzone .h3-placeholder {
  display: grid;
  height: 100%;
  border-radius: 9px;
}
.latest-studio-scope .h3-image-dropzone .h3-image-help {
  text-align: center;
  margin: 0;
  padding: 8px;
  line-height: 1.8;
}
.latest-studio-scope .h3-image-dropzone:focus,
.latest-studio-scope .h3-image-dropzone.is-dragging {
  border-color: var(--brand,#2459df);
  background: var(--surface,#f1f5ff);
}
.latest-studio-scope .h3-image-dropzone[aria-disabled=true] {
  cursor: default;
  opacity: .7;
}
.latest-studio-scope .h3-image-dropzone[draggable=true] {
  cursor: grab;
  transition:
    border-color .18s,
    box-shadow .18s,
    opacity .18s;
}
.latest-studio-scope .h3-image-dropzone[draggable=true]:active {
  cursor: grabbing;
}
.latest-studio-scope .h3-image-dropzone.is-moving {
  opacity: .5;
}
.latest-studio-scope .h3-image-dropzone.is-dragging {
  box-shadow: 0 0 0 3px rgba(36, 89, 223, .13);
}
.latest-studio-scope .h3-image-help {
  display: block;
  color: var(--ink-3,#64748b);
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
}
.latest-studio-scope .h3-image-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-image-slot > small {
  display: block;
  line-height: 1.5;
}
.latest-studio-scope .h3-workspace {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.latest-studio-scope .h3-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}
.latest-studio-scope .h3-mode-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .h3-mode-control select {
  height: 40px;
  min-width: 128px;
  font-weight: 400;
}
.latest-studio-scope .h3-header-actions > .btn {
  min-height: 40px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .latest-studio-scope .h3-mode-control select {
    min-width: 110px;
  }
}
.latest-studio-scope .h3-task-metrics .h3-segment-remaining {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-produced-link {
  font-size: 13px;
  color: var(--brand,#2459df);
  text-decoration: none;
}
.latest-studio-scope .h3-produced-link:hover {
  text-decoration: underline;
}
.latest-studio-scope #studio-results {
  scroll-margin-top: 100px;
}
.latest-studio-scope .h3-stop-dialog {
  border: 0;
  margin: auto;
  color: var(--ink,#102544);
}
.latest-studio-scope .h3-stop-dialog:not([open]) {
  display: none;
}
.latest-studio-scope .h3-stop-dialog::backdrop {
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(3px);
}
.latest-studio-scope .h3-prompt-editor.is-dragging textarea {
  border-color: var(--brand,#2459df);
  background: #f5f8ff;
  box-shadow: 0 0 0 2px rgba(36, 89, 223, .1);
}
.latest-studio-scope .h3-prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.latest-studio-scope .h3-prompt-import {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-prompt-import .btn {
  min-width: 96px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.latest-studio-scope .h3-prompt-import .h3-field-hint {
  margin: 0;
}
.latest-studio-scope .h3-header .h3-creation-title {
  font-size: 24px;
}
.latest-studio-scope .h3-studio .h3-inputs > h2,
.latest-studio-scope .h3-studio .h3-results > h2 {
  font-size: 18px;
  font-weight: 700;
}
.latest-studio-scope .h3-step-heading {
  margin: 24px 0 12px;
}
.latest-studio-scope .h3-step-heading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.latest-studio-scope .h3-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf0ff;
  color: var(--brand,#2459df);
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .h3-step-heading p,
.latest-studio-scope .h3-field-hint {
  margin: 6px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs .h3-row > label {
  font-size: 14px;
  font-weight: 600;
}
.latest-studio-scope .h3-inputs select,
.latest-studio-scope .h3-inputs input {
  font-weight: 400;
}
.latest-studio-scope .h3-field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-required-label {
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff0ef;
  color: #c1372d;
  font-size: 12px;
  font-weight: 500;
}
.latest-studio-scope .h3-step-heading + .h3-images {
  margin-top: 12px;
}
.latest-studio-scope .h3-results > h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header .h3-creation-title {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-studio .h3-prompt-check {
  width: auto;
  min-width: 104px;
  padding: 0 14px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 6px;
}
.latest-studio-scope .h3-check-icon {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
}
.latest-studio-scope .h3-action-feedback {
  flex: 0 1 240px;
  min-height: 20px;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-report {
  margin: 16px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface,#fff);
}
.latest-studio-scope .h3-check-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-summary h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.latest-studio-scope .h3-check-summary p {
  margin: 0;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-details {
  max-height: 420px;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 8px;
}
.latest-studio-scope .h3-check-details[hidden] {
  display: none;
}
.latest-studio-scope .h3-check-explanation {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.latest-studio-scope .h3-check-category {
  border: 1px solid var(--line,#dce3ee);
  border-radius: 8px;
  padding: 10px;
}
.latest-studio-scope .h3-check-category > summary {
  font-weight: 600;
}
.latest-studio-scope .h3-check-occurrences {
  max-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
}
.latest-studio-scope .h3-check-occurrences:focus-visible {
  outline: 2px solid var(--brand,#2459df);
  outline-offset: 2px;
}
.latest-studio-scope .h3-check-group > summary {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-count {
  margin-left: 8px;
  color: var(--ink-2,#64748b);
  white-space: nowrap;
}
.latest-studio-scope .h3-check-group ul {
  padding-left: 22px;
}
.latest-studio-scope .h3-check-group li {
  padding: 8px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-group li p {
  margin: 6px 0;
}
.latest-studio-scope .h3-review > details {
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
}
.latest-studio-scope .h3-studio .h3-generate-button {
  width: auto;
  min-width: 120px;
  padding: 0 20px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 8px;
}
.latest-studio-scope .h3-generate-button .machine-creation-spinner {
  border-color: rgba(255, 255, 255, .4);
  border-top-color: currentColor;
}
.latest-studio-scope .h3-studio .h3-generate-button.is-generating {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  opacity: 1;
}
.latest-studio-scope .h3-generate-button.is-generating::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      rgba(255, 255, 255, .2) 50%,
      transparent 80%);
  transform: translateX(-100%);
  animation: latest-h3-generation-shimmer 2.8s ease-in-out infinite;
}
@keyframes latest-h3-generation-shimmer {
  0%, 15% {
    transform: translateX(-100%);
  }
  85%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-generate-button.is-generating::after {
    animation: none;
    display: none;
  }
}
.latest-studio-scope .h3-generation-guidance {
  min-height: 0;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.latest-studio-scope .h3-action-feedback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.latest-studio-scope .h3-analysis-hourglass {
  flex: none;
  font-size: 16px;
  line-height: 20px;
}
.latest-studio-scope .h3-task-progress {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  background: var(--surface,#f8faff);
}
@property --latest-h3-border-angle { syntax:"<angle>";inherits:false;initial-value:0deg }
.latest-studio-scope .h3-task-progress.is-generating {
  position: relative;
  isolation: isolate;
}
.latest-studio-scope .h3-task-progress.is-generating::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(
      from var(--latest-h3-border-angle),
      transparent 0deg 235deg,
      #c4b5fd 275deg,
      #7954ed 305deg,
      #22c8f3 335deg,
      transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(94, 104, 245, .3));
  animation: latest-h3-border-orbit 24s linear infinite;
}
@keyframes latest-h3-border-orbit {
  to {
    --latest-h3-border-angle:360deg;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-task-progress.is-generating::before {
    animation: none;
  }
}
.latest-studio-scope .h3-task-progress-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-task-progress-heading > span:last-child {
  margin-left: auto;
  color: var(--ink-2,#64748b);
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.latest-studio-scope .h3-task-phases li {
  padding: 6px 10px;
  background: var(--bg,#eef2f7);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-task-phases .is-current {
  color: var(--brand,#2459df);
  background: #e8efff;
  font-weight: 600;
}
.latest-studio-scope .h3-task-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.latest-studio-scope .h3-task-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.latest-studio-scope .h3-task-metrics span,
.latest-studio-scope .h3-progress-note {
  color: var(--ink-2,#64748b);
  font-size: 12px;
}
.latest-studio-scope .h3-task-metrics strong {
  font-size: 14px;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.latest-studio-scope .h3-real-progress {
  margin-top: 16px;
}
.latest-studio-scope .h3-real-progress label {
  font-size: 13px;
}
.latest-studio-scope .h3-real-progress progress {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 8px;
  accent-color: var(--brand,#2459df);
}
.latest-studio-scope .h3-progress-note {
  margin: 12px 0 0;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-followup {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-task-followup span {
  font-size: 12px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-result-media video,
.latest-studio-scope .h3-result-media img {
  border-radius: 8px;
}
.latest-studio-scope .h3-result-media p {
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-real-progress .h3-progress-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.latest-studio-scope .h3-progress-track {
  height: 14px;
  margin-top: 12px;
  padding: 2px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #dbe5fa;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      #e8eef8,
      #f3f6fc);
  box-shadow: inset 0 1px 3px rgba(35, 66, 125, .1);
}
.latest-studio-scope .h3-progress-fill {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #3258f5 0%,
      #7954ed 48%,
      #22c8f3 100%);
  box-shadow: 0 0 12px rgba(79, 104, 244, .45), inset 0 1px 1px rgba(255, 255, 255, .55);
  transition: width .55s ease;
}
.latest-studio-scope .h3-progress-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 12px,
      rgba(255, 255, 255, .17) 12px 20px);
  background-size: 44px 100%;
}
.latest-studio-scope .h3-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      transparent 25%,
      rgba(255, 255, 255, .65) 50%,
      transparent 75%);
  transform: translateX(-100%);
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before {
  animation: latest-h3-progress-flow 1.5s linear infinite;
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
  animation: latest-h3-progress-glint 2.6s ease-in-out infinite;
}
.latest-studio-scope .h3-terminal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-heading h2 {
  margin: 0 0 6px;
}
.latest-studio-scope .h3-terminal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #536681;
}
.latest-studio-scope .h3-terminal-output {
  margin-top: 16px;
  padding: 18px 20px;
  max-height: 380px;
  min-height: 160px;
  overflow: auto;
  border: 1px solid #263651;
  border-radius: 10px;
  background: #101827;
  color: #b7e5c3;
  font:
    12px/1.8 Consolas,
    "Cascadia Code",
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 4;
  scrollbar-color: #4c607e #101827;
}
.latest-studio-scope .h3-terminal-output .is-error {
  color: #ff9b9b;
}
.latest-studio-scope .h3-terminal-output .is-warning {
  color: #f2d48b;
}
.latest-studio-scope .h3-terminal-empty {
  color: #8c9bb0;
}
.latest-studio-scope .h3-terminal-section > .h3-field-hint {
  margin-top: 12px;
}
@keyframes latest-h3-progress-flow {
  to {
    background-position: 44px 0;
  }
}
@keyframes latest-h3-progress-glint {
  0%, 10% {
    transform: translateX(-100%);
  }
  90%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-progress-fill {
    transition: none;
  }
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before,
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
    animation: none;
  }
  .latest-studio-scope .h3-progress-fill::after {
    display: none;
  }
}
.latest-studio-scope .h3-final-video {
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line,#dce3ee);
  border-bottom: 1px solid var(--line,#dce3ee);
}
.latest-studio-scope .h3-final-video h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.latest-studio-scope .h3-final-video > p {
  margin: 0 0 18px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-final-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 680px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-final-video-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .h3-machine-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-provider-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.latest-studio-scope .h3-provider-id {
  user-select: text;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-provider-identity > span {
  min-width: 0;
}
.latest-studio-scope .h3-provider-identity [role=status] {
  color: var(--ink-2);
}
.latest-studio-scope .h3-machine-specs {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-advanced-info > p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-creation-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-creation-origin {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.latest-studio-scope .h3-creation-origin .h3-origin-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 1.3em;
  height: 1.3em;
  padding: 0 .12em;
  margin-left: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1em;
  font-weight: inherit;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-task-progress {
  padding: 22px 24px;
  background:
    linear-gradient(
      145deg,
      #fff 55%,
      #f6f8ff);
  box-shadow: 0 3px 16px rgba(26, 53, 110, .035);
}
.latest-studio-scope .h3-task-progress.is-complete {
  border-color: #d4e9e2;
  background:
    linear-gradient(
      125deg,
      #fff 45%,
      #f0faf6);
}
.latest-studio-scope .h3-task-progress-heading > strong {
  font-size: 16px;
  font-weight: 650;
}
.latest-studio-scope .h3-status-emblem {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eaf0ff;
  color: #3560e7;
  font-size: 18px;
}
.latest-studio-scope .h3-status-emblem.is-complete {
  background: #dcf5e9;
  color: #15835c;
}
.latest-studio-scope .h3-task-phases {
  gap: 0;
  flex-wrap: nowrap;
  margin: 24px 0;
  padding: 0 0 22px;
  border-bottom: 1px solid #e6ebf3;
}
.latest-studio-scope .h3-task-phases li {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  padding: 0;
  background: none;
  border-radius: 0;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe6f1;
  margin: 0 14px;
}
.latest-studio-scope .h3-phase-dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #edf1f7;
  color: #8290a7;
  font-size: 12px;
  font-weight: 600;
}
.latest-studio-scope .h3-task-phases li.is-current {
  color: #2459df;
  background: none;
  font-weight: 650;
}
.latest-studio-scope .h3-task-phases .is-current .h3-phase-dot {
  background: #2d5be9;
  color: white;
  box-shadow: 0 0 0 4px #eaf0ff;
}
.latest-studio-scope .h3-task-phases li.is-done {
  color: #326754;
}
.latest-studio-scope .h3-task-phases .is-done .h3-phase-dot {
  background: #e1f3ea;
  color: #16825c;
}
.latest-studio-scope .h3-task-phases .is-done::after {
  background: #bfdece;
}
.latest-studio-scope .h3-task-metrics {
  align-items: start;
  gap: 20px;
}
.latest-studio-scope .h3-task-metrics .h3-current-summary {
  padding: 2px 0;
  gap: 9px;
}
.latest-studio-scope .h3-current-summary > strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-metrics > div > span:first-child {
  font-size: 12px;
  color: #7a879c;
}
.latest-studio-scope .h3-task-metrics .h3-segment-summary {
  position: relative;
  padding: 0 160px 0 20px;
  border-left: 1px solid #e1e8ef;
  min-height: 76px;
  justify-content: center;
}
.latest-studio-scope .h3-task-metrics .h3-segment-count {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
  color: #2459df;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-segment-count small {
  font-size: 14px;
  color: #7a879c;
  font-weight: 400;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #eaf0ff;
  color: #2459df;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, box-shadow .2s;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link:hover {
  background: #dde7ff;
  text-decoration: none;
  box-shadow: 0 3px 10px #2459df15;
}
.latest-studio-scope .h3-produced-link:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
@media (max-width:850px) {
  .latest-studio-scope .h3-task-phases li {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }
  .latest-studio-scope .h3-task-phases li:not(:last-child)::after {
    position: absolute;
    top: 13px;
    left: calc(50% + 21px);
    right: calc(-50% + 21px);
    margin: 0;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding-right: 0;
  }
  .latest-studio-scope .h3-segment-summary .h3-produced-link {
    position: static;
    transform: none;
    align-self: flex-start;
    margin-top: 5px;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-task-progress {
    padding: 18px 14px;
  }
  .latest-studio-scope .h3-task-phases {
    margin: 22px 0 18px;
  }
  .latest-studio-scope .h3-task-phases li {
    font-size: 11px;
  }
  .latest-studio-scope .h3-phase-dot {
    width: 24px;
    height: 24px;
  }
  .latest-studio-scope .h3-task-metrics {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid #e1e8ef;
  }
}
.latest-studio-scope .h3-result-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}
.latest-studio-scope .h3-result-section-heading h3 {
  margin: 0;
}
.latest-studio-scope .h3-result-section-heading .btn {
  white-space: nowrap;
}
.latest-studio-scope .h3-segment-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.latest-studio-scope .h3-segment-actions .btn {
  padding: 7px 10px;
  min-height: 34px;
  font-size: 12px;
}
.latest-studio-scope .h3-segment-regenerate {
  color: #2459df;
  border-color: #cbd9ff;
  background: #f5f8ff;
}
.latest-studio-scope .h3-merge-notice {
  padding: 12px 16px;
  border: 1px solid #f0d9a8;
  border-radius: 9px;
  background: #fff9ed;
  color: #92641a;
  font-size: 13px;
}
.latest-studio-scope .h3-segment-editor {
  width: min(880px, calc(100vw - 32px));
  max-height: 85vh;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #dce3ee;
  border-radius: 16px;
  color: #142b4a;
  background: #fff;
  box-shadow: 0 24px 80px #10254430;
}
.latest-studio-scope .h3-segment-editor::backdrop {
  background: #10254470;
  backdrop-filter: blur(4px);
}
.latest-studio-scope .h3-segment-editor header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .h3-segment-editor h2 {
  font-size: 20px;
  margin: 4px 0 8px;
}
.latest-studio-scope .h3-segment-editor label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}
.latest-studio-scope .h3-segment-editor textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 320px;
  resize: vertical;
  line-height: 1.8;
  font-size: 14px;
  border: 1px solid #ccd8eb;
  border-radius: 10px;
  padding: 14px;
}
.latest-studio-scope .h3-segment-editor footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.latest-studio-scope .h3-editor-error {
  font-size: 13px;
  color: #c13737;
}
.latest-studio-scope .h3-segment-editor textarea:focus {
  outline: 2px solid #bad0ff;
  border-color: #2459df;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-segment-editor {
    padding: 18px;
  }
  .latest-studio-scope .h3-segment-editor textarea {
    min-height: 240px;
  }
  .latest-studio-scope .h3-result-section-heading > .btn {
    width: 100%;
  }
}
.latest-studio-scope .main.main-studio {
  padding-top: 20px;
}
.latest-studio-scope .main-studio .h3-studio {
  padding-top: 0;
}
.latest-studio-scope .h3-header h1 {
  margin-top: 0;
}
.latest-studio-scope .h3-input-lock-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #edf3ff;
  color: #365c9b;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs textarea[readonly] {
  background: #f7f9fc;
  color: #53627a;
  cursor: default;
}
.latest-studio-scope .h3-patient-hint {
  margin: 18px 0 0;
  padding: 11px 14px;
  border-radius: 9px;
  background: #edf3ff;
  color: #4a6393;
  font-size: 13px;
  line-height: 1.8;
}
.latest-studio-scope .h3-check-reasons {
  margin: 12px 0;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-reasons span {
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-2,#64748b);
  transition:
    color .18s,
    border-color .18s,
    background .18s;
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear:not(:disabled):hover {
  color: #c1372d;
  border-color: #f1b8b3;
  background: #fff5f4;
}
.latest-studio-scope .h3-studio .h3-repair-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: #c1372d;
}
.latest-studio-scope .h3-repair-cancel:hover {
  background: #fff2f1;
  border-color: #f1b8b3;
}
.latest-studio-scope .h3-generation-guidance:empty {
  display: none;
}
.latest-studio-scope .h3-review-result.is-success {
  border-color: #c7e6d8;
  background: #f7fcf9;
}
.latest-studio-scope .h3-review-result.is-pending {
  border-color: #cddaff;
  background: #f8faff;
}
.latest-studio-scope .h3-review-verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.latest-studio-scope .h3-review-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff2df;
  color: #a86b12;
  font-size: 16px;
  font-weight: 700;
}
.latest-studio-scope .is-success .h3-review-status-icon {
  background: #e0f3e9;
  color: #23835b;
}
.latest-studio-scope .is-pending .h3-review-status-icon {
  background: #e9efff;
  color: var(--brand,#2459df);
}
.latest-studio-scope .h3-review-result .h3-check-summary p {
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-review-result .h3-check-summary h3 {
  font-size: 15px;
  margin-bottom: 3px;
}
.latest-studio-scope .h3-repair-proposal {
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 12px;
}
.latest-studio-scope .h3-repair-proposal details {
  max-height: 320px;
  overflow: auto;
}
.latest-studio-scope .h3-repair-proposal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.latest-studio-scope .h3-review-result.is-warning {
  border-color: #f0c9c5;
  background: #fffafa;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict p,
.latest-studio-scope .h3-review-result.is-warning .h3-check-reasons,
.latest-studio-scope .h3-review-result.is-warning .h3-check-details {
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-status-icon {
  background: #fee9e7;
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict p {
  color: #1f7a4f;
}
.latest-studio-scope .h3-log-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f1f5ff;
  border: 1px solid #dce5fa;
  color: #28466e;
}
.latest-studio-scope .h3-log-summary p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-log-summary.is-success {
  background: #f3fbf7;
  border-color: #c4e9d7;
  color: #14805b;
}
.latest-studio-scope .h3-log-summary.is-error {
  background: #fff5f5;
  border-color: #f4caca;
  color: #b62b35;
}
.latest-studio-scope .h3-log-summary.is-warning {
  background: #fffbf1;
  border-color: #efdeb0;
  color: #88631b;
}
.latest-studio-scope .h3-log-view-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.latest-studio-scope .h3-log-view-controls [role=group] {
  display: flex;
  gap: 6px;
}
.latest-studio-scope .h3-log-view-controls button[aria-pressed=true] {
  background: #eef3ff;
  border-color: #b5c7fa;
  color: #2459d8;
}
.latest-studio-scope .h3-log-view-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #536681;
  font-size: 13px;
}
.latest-studio-scope .h3-log-readable {
  max-height: 300px;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  padding: 4px 16px;
}
.latest-studio-scope .h3-log-readable ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.latest-studio-scope .h3-log-readable li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f6;
  font-size: 13px;
  line-height: 1.7;
  color: #344b68;
}
.latest-studio-scope .h3-log-readable li:last-child {
  border-bottom: 0;
}
.latest-studio-scope .h3-log-readable time {
  color: #71829a;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.latest-studio-scope .h3-log-readable small {
  color: #71829a;
}
.latest-studio-scope .h3-log-readable .is-warning {
  color: #88631b;
}
.latest-studio-scope .h3-log-readable .is-error {
  color: #b62b35;
}
.latest-studio-scope .h3-log-readable .is-success {
  color: #14805b;
}
.latest-studio-scope .h3-terminal-output[hidden] {
  display: none;
}
.latest-studio-scope .h3-workspace-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-top: 24px;
  padding: 10px 18px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 14px 14px 0 0;
  background:
    linear-gradient(
      110deg,
      #f5f8ff,
      var(--surface,#fff) 75%);
  width: 100%;
  box-sizing: border-box;
}
.latest-studio-scope .h3-workspace-tabs [role=tab] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  appearance: none;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  margin-bottom: -1px;
  background: transparent;
  color: #536681;
  padding: 14px 28px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background .2s,
    color .2s,
    box-shadow .2s,
    border-color .2s;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:hover {
  color: #2459df;
  background: #eaf1ff;
  box-shadow: inset 0 3px 12px #3775f50c;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true] {
  background:
    linear-gradient(
      180deg,
      #edf4ff 0%,
      var(--surface,#fff) 85%);
  border-color: var(--line,#dce3ee);
  color: #2459df;
  box-shadow: 0 -4px 14px #497cf519, inset 0 2px 0 #578bff;
  text-shadow: 0 0 14px #3775f52b;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 25%,
      #a9ceff40 50%,
      transparent 75%);
  transform: translateX(-120%);
  animation: latest-h3-tab-shine 4s ease-in-out infinite;
  pointer-events: none;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
.latest-studio-scope .h3-workspace-panel[hidden] {
  display: none !important;
}
.latest-studio-scope .h3-sync-status {
  margin: 12px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 12px;
  line-height: 1.7;
}
@keyframes latest-h3-tab-shine {
  0%, 25% {
    transform: translateX(-120%);
  }
  65%, 100% {
    transform: translateX(120%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    transition: none;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
    animation: none;
    transform: none;
    opacity: .3;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-workspace-tabs {
    padding: 8px 8px 0;
    gap: 0;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    flex: 1;
    padding: 13px 8px;
    font-size: 13px;
  }
}
.latest-studio-scope .h3-workspace-panel > .card {
  margin-top: 0;
  padding: 24px;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}
.latest-studio-scope .h3-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-studio .h3-panel-heading h2 {
  margin: .83em 0;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  color: inherit;
}
.latest-studio-scope .h3-panel-heading h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
.latest-studio-scope .h3-panel-heading .h3-terminal-actions {
  margin-top: 10px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-workspace-panel > .card {
    padding: 16px;
  }
}
.latest-studio-scope #studio-generation {
  scroll-margin-top: 130px;
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-workbench {
    scroll-behavior: auto;
  }
}
.latest-studio-scope .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters {
  margin: 24px 0;
  padding: 20px;
  border: 1px dashed #bdcde4;
  background: #f6f9fe;
  border-radius: 12px;
}
.latest-studio-scope .latest-parameters > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-parameters p {
  font-size: 13px;
  line-height: 1.8;
  color: #64748b;
  margin: 10px 0 0;
}
.latest-studio-scope .latest-pending-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 20px;
  background: #edf2fa;
  color: #526a90;
  font-size: 12px;
}
.latest-studio-scope .latest-pending-selection {
  font-size: 13px;
  color: #64748b;
  padding: 10px 0;
}
.latest-studio-scope .latest-workbench .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.latest-studio-scope .latest-parameter-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .latest-parameter-grid input,
.latest-studio-scope .latest-parameter-grid select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  background: white;
  border: 1px solid #d5dfef;
  border-radius: 8px;
  color: #18365c;
  font: inherit;
  font-weight: 400;
}
.latest-studio-scope .latest-parameter-grid input:focus,
.latest-studio-scope .latest-parameter-grid select:focus {
  outline: 2px solid #bdd0ff;
  outline-offset: 1px;
  border-color: #5784f5;
}
@media (max-width:900px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-workbench .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .h3-header {
  gap: 16px;
}
.latest-studio-scope .h3-header > div {
  min-width: 0;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .h3-header {
    align-items: flex-start;
  }
  .latest-studio-scope .h3-header-actions {
    flex-wrap: wrap;
  }
  .latest-studio-scope .h3-studio h1 {
    font-size: 22px;
  }
}
@media (max-width:380px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .latest-connection {
  font-size: 13px;
  color: #64748b;
  padding: 9px 13px;
  border-radius: 20px;
  background: #eef2f7;
}
.latest-studio-scope .latest-connection.is-ready {
  color: #13795b;
  background: #e8f8f1;
}
.latest-studio-scope .latest-message {
  padding: 14px 18px;
  border: 1px solid #d5e3ff;
  background: #f0f6ff;
  color: #31528a;
  border-radius: 10px;
  margin: 14px 0;
  line-height: 1.7;
}
.latest-studio-scope .latest-message.is-error {
  background: #fff4f3;
  color: #b1372f;
  border-color: #f2cfca;
}
.latest-studio-scope .latest-message button {
  float: right;
  border: 0;
  background: none;
  color: inherit;
  font-size: 20px;
}
.latest-studio-scope .latest-section-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
}
.latest-studio-scope .latest-section-label span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-reference-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #fafcff;
}
.latest-studio-scope .latest-reference-section > summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
}
.latest-studio-scope .latest-reference-section > summary span {
  float: right;
  font-size: 12px;
  font-weight: 400;
  color: #6b7e96;
}
.latest-studio-scope .latest-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .latest-media-slot {
  padding: 16px;
  border: 1px solid #dce5f0;
  background: #fff;
  border-radius: 12px;
  min-width: 0;
}
.latest-studio-scope .latest-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 125px;
  gap: 10px;
  margin-top: 12px;
  background: #f5f8fd;
  border: 1px dashed #d5dfef;
  border-radius: 9px;
}
.latest-studio-scope .latest-media-placeholder > span {
  font-size: 26px;
  color: #416fea;
}
.latest-studio-scope .latest-media-placeholder p {
  margin: 0 8px;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .latest-media-placeholder small {
  font-size: 11px;
  color: #8290a5;
}
.latest-studio-scope .latest-upload-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #3561d7;
  padding: 9px 0;
}
.latest-studio-scope .latest-upload-status .machine-creation-spinner {
  width: 15px;
  height: 15px;
  display: inline-block;
}
.latest-studio-scope .latest-image-uploading .h3-image-dropzone {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #e5eeff,
      #f1f6ff);
  background-size: 200% 100%;
  animation: latest-upload-glow 2s linear infinite;
}
.latest-studio-scope .latest-settings-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.latest-studio-scope .latest-settings-main > label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.latest-studio-scope .latest-settings-main select {
  min-width: 115px;
}
.latest-studio-scope .latest-settings-main .latest-martial {
  margin-left: auto;
  padding: 14px 18px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #f8faff;
}
.latest-studio-scope .latest-martial input {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 15px;
  background: #c7d2e2;
  border: 0;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}
.latest-studio-scope .latest-martial input:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.latest-studio-scope .latest-martial input:checked {
  background: #2b5ef0;
}
.latest-studio-scope .latest-martial input:checked:after {
  transform: translateX(16px);
}
.latest-studio-scope .latest-martial strong,
.latest-studio-scope .latest-martial small {
  display: block;
}
.latest-studio-scope .latest-martial small {
  font-size: 12px;
  color: #6b7e96;
  margin-top: 5px;
}
.latest-studio-scope .latest-advanced {
  padding: 18px;
  margin-top: 20px;
  background: #f7f9fe;
  border: 1px dashed #cbd8ea;
  border-radius: 10px;
}
.latest-studio-scope .latest-advanced summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.latest-studio-scope .latest-advanced .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}
.latest-studio-scope .latest-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.latest-studio-scope .latest-range label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.latest-studio-scope .latest-range input {
  width: 78px;
}
.latest-studio-scope .latest-connected input:not([type=checkbox]):not([type=file]),
.latest-studio-scope .latest-connected select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d4deed;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
}
.latest-studio-scope .latest-connected textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #d4deed;
  border-radius: 10px;
  padding: 15px;
  line-height: 1.8;
  font: 13px/1.8 monospace;
  margin-top: 12px;
  min-height: 240px;
}
.latest-studio-scope .latest-connected input:focus-visible,
.latest-studio-scope .latest-connected select:focus-visible,
.latest-studio-scope .latest-connected textarea:focus-visible {
  outline: 2px solid #b9d0ff;
  outline-offset: 2px;
}
.latest-studio-scope .latest-connected input:disabled,
.latest-studio-scope .latest-connected select:disabled,
.latest-studio-scope .latest-connected textarea:disabled {
  background: #f2f5fa;
}
.latest-studio-scope .latest-save-settings {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-save-settings label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
  max-width: 230px;
}
.latest-studio-scope .latest-generate-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-generate-actions > .btn-primary {
  min-width: 230px;
  min-height: 44px;
}
.latest-studio-scope .latest-generate-actions > span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.latest-studio-scope .latest-result-stamp {
  padding: 6px 12px;
  color: #a66420;
  border: 2px solid currentColor;
  border-radius: 5px;
  transform: rotate(-5deg);
  font-size: 19px;
  font-weight: 750;
  white-space: nowrap;
}
.latest-studio-scope .latest-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}
.latest-studio-scope .latest-segment-list {
  border: 1px solid #dde5f0;
  border-radius: 11px;
  margin-top: 20px;
  overflow: hidden;
}
.latest-studio-scope .latest-segment-list article {
  display: grid;
  grid-template-columns: 100px 90px minmax(90px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 16px;
  box-sizing: border-box;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
}
.latest-studio-scope .latest-segment-list article:last-child {
  border-bottom: 0;
}
.latest-studio-scope .latest-segment-list article > div {
  display: flex;
  gap: 8px;
}
.latest-studio-scope .latest-segment-list .is-ready {
  color: #07845e;
}
.latest-studio-scope .latest-empty {
  padding: 60px 20px;
  text-align: center;
  color: #7d8da3;
  font-size: 14px;
}
.latest-studio-scope .latest-history {
  margin: 20px 0;
}
.latest-studio-scope .latest-history .btn {
  margin: 10px 8px 0 0;
  font-size: 12px;
}
.latest-studio-scope .latest-log-list {
  max-height: 540px;
  overflow: auto;
  margin-top: 24px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  padding: 6px 16px;
}
.latest-studio-scope .latest-log-list > div {
  display: flex;
  gap: 22px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-log-list time {
  color: #7d8da3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@keyframes latest-upload-glow {
  to {
    background-position: -200% 0;
  }
}
@media (max-width:900px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    margin-left: 0;
  }
  .latest-studio-scope .latest-segment-list article {
    grid-template-columns: 70px 60px 1fr;
  }
  .latest-studio-scope .latest-segment-list article > div {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-media-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-reference-section {
    padding: 14px;
  }
  .latest-studio-scope .latest-save-settings {
    display: block;
  }
  .latest-studio-scope .latest-save-settings label {
    margin: 12px 0;
  }
  .latest-studio-scope .latest-range {
    gap: 8px;
  }
  .latest-studio-scope .latest-range input {
    width: 62px;
  }
  .latest-studio-scope .latest-generate-actions > .btn-primary {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-results-heading {
    align-items: flex-start;
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-settings-main > label {
    flex: 1;
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
    width: 100%;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-image-uploading .h3-image-dropzone {
    animation: none;
  }
}
.latest-studio-scope .latest-connected .h3-task-progress {
  scroll-margin-top: 135px;
}
.latest-studio-scope .latest-workbench .h3-upload-card {
  min-height: 294px;
  height: 100%;
  box-sizing: border-box;
}
.latest-studio-scope .latest-workbench .h3-upload-heading {
  min-height: 22px;
}
.latest-studio-scope .latest-workbench .h3-upload-status {
  margin-top: 10px;
}
.latest-studio-scope .latest-media-saved {
  display: block;
  color: #07876a;
  font-size: 12px;
  margin-top: 10px;
}
.latest-studio-scope .latest-upload-retry {
  margin-top: 8px;
}
.latest-studio-scope .latest-media-slot .h3-upload-track {
  display: inline-block;
  width: 100px;
}
.latest-studio-scope .latest-media-slot .latest-media-placeholder {
  min-height: 140px;
}

/* apps/web/src/pages/latest/latest-results.css */
.latest-studio-scope .latest-results-table {
  background: #fff;
  border-color: #e1e8f2;
  border-radius: 12px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  display: grid;
  grid-template-columns: 90px 100px minmax(130px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
}
.latest-studio-scope .latest-results-table .latest-segment-head {
  background: #f6f8fc;
  color: #72819a;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #e8edf5;
}
.latest-studio-scope .latest-results-table .latest-segment-head > span:last-child {
  text-align: right;
}
.latest-studio-scope .latest-results-table article {
  min-height: 80px;
  font-size: 14px;
}
.latest-studio-scope .latest-segment-name {
  white-space: nowrap;
  color: #182d4c;
}
.latest-studio-scope .latest-segment-duration {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #687994;
}
.latest-studio-scope .latest-segment-state {
  justify-self: start;
  line-height: 1.5;
  color: #526886;
  padding: 5px 10px;
  background: #f2f5fa;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .latest-segment-state.is-ready {
  color: #07845e;
  background: #edf9f3;
}
.latest-studio-scope .latest-results-table article > .latest-segment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: auto;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-segment-actions .btn {
  font-size: 13px;
  min-height: 38px;
  white-space: nowrap;
  padding: 8px 12px;
}
.latest-studio-scope .latest-segment-editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 51, .38);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.latest-studio-scope .latest-segment-editor {
  box-sizing: border-box;
  width: min(900px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 26px;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  box-shadow: 0 22px 70px #14284433;
}
.latest-studio-scope .latest-segment-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .latest-segment-editor-heading h2 {
  margin: 0;
  font-size: 20px;
}
.latest-studio-scope .latest-segment-editor p {
  font-size: 13px;
  line-height: 1.8;
  color: #6b7d96;
  margin: 14px 0 20px;
}
.latest-studio-scope .latest-segment-editor textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 280px;
  max-height: 48dvh;
  resize: vertical;
  padding: 16px;
  margin-top: 10px;
  border: 1px solid #cedbf0;
  border-radius: 10px;
  font:
    14px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #19314f;
  background: #fbfcff;
}
.latest-studio-scope .latest-segment-editor textarea:focus {
  outline: 2px solid #d9e4ff;
  border-color: #799bff;
}
.latest-studio-scope .latest-segment-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width:1050px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(100px, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }
  .latest-studio-scope .latest-segment-actions {
    max-width: 245px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table .latest-segment-head {
    display: none;
  }
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(0, 1fr);
    gap: 12px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
    max-width: none;
  }
  .latest-studio-scope .latest-segment-editor-backdrop {
    padding: 12px;
  }
  .latest-studio-scope .latest-segment-editor {
    padding: 18px;
    max-height: calc(100dvh - 24px);
  }
  .latest-studio-scope .latest-segment-editor textarea {
    min-height: 220px;
  }
}
.latest-studio-scope .latest-segment-editor p.latest-segment-editor-error {
  color: #c33131;
}
.latest-studio-scope .latest-live-summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 22px 0 18px;
  padding: 22px 24px;
  border: 1px solid #dbe5f8;
  border-radius: 14px;
  background:
    linear-gradient(
      115deg,
      #f3f7ff,
      #fcfdff);
  box-shadow: 0 4px 18px #2c5ac907;
}
.latest-studio-scope .latest-live-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.latest-studio-scope .latest-live-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  color: #315df4;
  background: #e4edff;
  font-size: 24px;
}
.latest-studio-scope .latest-live-heading strong {
  font-size: 18px;
  color: #193962;
  line-height: 1.5;
}
.latest-studio-scope .latest-live-heading p {
  margin: 5px 0 0;
  color: #73849d;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-elapsed {
  margin-left: auto;
  white-space: nowrap;
  color: #4c668c;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding: 8px 12px;
  border: 1px solid #dfe7f5;
  border-radius: 8px;
  background: #ffffffa8;
}
.latest-studio-scope .latest-live-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e0e8f7;
  color: #7184a1;
  font-size: 13px;
}
.latest-studio-scope .latest-live-footer strong {
  color: #315df4;
  font-size: 16px;
}
.latest-studio-scope .latest-live-sampling {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: #5477b2;
}
.latest-studio-scope .latest-live-sampling progress {
  height: 6px;
  flex: 1;
  min-width: 80px;
  accent-color: #4778ff;
  border-radius: 10px;
  overflow: hidden;
}
.latest-studio-scope .latest-live-flow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #91bdff,
      #3e70fa,
      transparent);
  background-size: 200% 100%;
  animation: latest-execution-flow 2.6s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-results-table article.latest-segment-row {
  position: relative;
  isolation: isolate;
  transition: background-color .3s, box-shadow .3s;
}
.latest-studio-scope .latest-results-table article.latest-segment-row.is-working {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #fbfdff);
  box-shadow: inset 3px 0 #4275ff;
}
.latest-studio-scope .latest-segment-row.is-working::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      #b9d2ff 38%,
      #4d7bff 50%,
      #afceff 62%,
      transparent 80%);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 3s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-segment-row.is-working .latest-segment-name {
  color: #2855c5;
}
.latest-studio-scope .latest-segment-state.is-working {
  color: #2e5bcf;
  background: #e7efff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .latest-segment-state.is-waiting {
  color: #8391a6;
  background: #f4f6f9;
}
.latest-studio-scope .latest-segment-state small {
  font-size: 12px;
  font-weight: 400;
}
.latest-studio-scope .latest-segment-running-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid #b8ceff;
  border-top-color: #3c6ef0;
  border-radius: 50%;
  animation: latest-execution-spin 1s linear infinite;
}
@keyframes latest-execution-flow {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -50% 0;
  }
}
@keyframes latest-execution-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-live-summary {
    padding: 18px 16px;
  }
  .latest-studio-scope .latest-live-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .latest-studio-scope .latest-live-heading > div {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-live-heading strong {
    font-size: 16px;
  }
  .latest-studio-scope .latest-live-elapsed {
    margin-left: 52px;
  }
  .latest-studio-scope .latest-live-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-live-sampling {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state.is-working {
    white-space: normal;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-live-flow,
  .latest-studio-scope .latest-segment-row.is-working::after,
  .latest-studio-scope .latest-segment-running-dot {
    animation: none;
  }
  .latest-studio-scope .latest-results-table article.latest-segment-row {
    transition: none;
  }
}
.latest-studio-scope .latest-live-sampling progress {
  appearance: none;
  -webkit-appearance: none;
  background: #e5edfc;
  border: 0;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-bar {
  background: #e5edfc;
  border-radius: 10px;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-value {
  background:
    linear-gradient(
      90deg,
      #729bff,
      #3c69f4);
  border-radius: 10px;
  transition: width .4s;
}
.latest-studio-scope .latest-live-sampling progress::-moz-progress-bar {
  background: #4d7bf5;
  border-radius: 10px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state {
    padding: 5px 8px;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs > button {
    flex: 1 1 auto;
    font-size: 12px;
    padding: 12px 8px;
    min-width: 0;
    white-space: normal;
    line-height: 1.5;
  }
}
.latest-studio-scope .latest-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}
.latest-studio-scope .latest-results-toolbar > .h3-field-hint {
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.latest-studio-scope .latest-results-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-results-page-count {
  font-size: 12px;
  color: #72839c;
  margin-right: 5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.latest-studio-scope .latest-results-pagination .btn {
  font-size: 13px;
  min-height: 36px;
  padding: 8px 12px;
}
.latest-studio-scope .latest-results-toolbar + .latest-results-table {
  margin-top: 0;
}
.latest-studio-scope .latest-result-stamp.latest-status-stamp {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1.4;
  border-radius: 8px;
  border: 2px solid currentColor;
  box-shadow: 0 3px 10px #24478009;
  color: #7d8ba0;
  background: #fafbfd;
  transform: rotate(-4deg);
  white-space: nowrap;
  flex-shrink: 0;
}
.latest-studio-scope .latest-status-stamp .latest-stamp-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 15px;
  line-height: 1;
}
.latest-studio-scope .latest-status-stamp.is-running {
  color: #3167e3;
  background: #f0f5ff;
  box-shadow: 0 3px 14px #3976f51a;
}
.latest-studio-scope .latest-status-stamp.is-running::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      110deg,
      transparent 15%,
      #aecbff 35%,
      #2459e5 50%,
      #a8caff 65%,
      transparent 85%);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 2.4s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
  animation: latest-execution-spin 2s linear infinite;
}
.latest-studio-scope .latest-status-stamp.is-complete {
  color: #078657;
  background: #eefbf5;
  border-color: #34ab7d;
  box-shadow: 0 3px 12px #149e6910;
}
.latest-studio-scope .latest-status-stamp.is-failed {
  color: #c8353e;
  background: #fff2f3;
  border-color: #de5c63;
  box-shadow: 0 3px 12px #d3434b10;
}
.latest-studio-scope .latest-status-stamp.is-stopped {
  color: #7a879a;
  background: #f4f6f9;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-pagination {
    justify-content: flex-start;
    width: 100%;
  }
  .latest-studio-scope .latest-results-page-count {
    flex: 1;
  }
  .latest-studio-scope .latest-result-stamp.latest-status-stamp {
    font-size: 15px;
    padding: 8px 10px;
    gap: 6px;
  }
  .latest-studio-scope .latest-results-heading {
    gap: 12px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-status-stamp.is-running::after,
  .latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
    animation: none;
  }
}
.latest-studio-scope .latest-live-summary .latest-live-meter {
  margin-top: 18px;
  display: block;
}
.latest-studio-scope .latest-live-summary .latest-live-meter > label {
  display: block;
  color: #315076;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-summary .latest-live-meter .h3-progress-track {
  width: 100%;
  margin-top: 10px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  grid-template-columns: 75px 85px minmax(105px, 1fr) 120px auto;
  gap: 14px;
}
.latest-studio-scope .latest-segment-thumbnail {
  min-width: 0;
}
.latest-studio-scope .latest-thumbnail-button {
  position: relative;
  display: block;
  width: 120px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #f2f5fa;
  cursor: zoom-in;
}
.latest-studio-scope .latest-thumbnail-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.latest-studio-scope .latest-thumbnail-button > small {
  position: absolute;
  left: 3px;
  bottom: 3px;
  padding: 1px 5px;
  color: #fff;
  background: #173253bb;
  border-radius: 3px;
  font-size: 10px;
}
.latest-studio-scope .latest-thumbnail-zoom {
  position: absolute;
  right: 4px;
  bottom: 3px;
  padding: 0 4px;
  border-radius: 3px;
  color: white;
  background: #17325399;
  opacity: 0;
  transition: opacity .2s;
}
.latest-studio-scope .latest-thumbnail-button:hover {
  border-color: #739aff;
  box-shadow: 0 2px 8px #3267e91a;
}
.latest-studio-scope .latest-thumbnail-button:hover .latest-thumbnail-zoom,
.latest-studio-scope .latest-thumbnail-button:focus-visible .latest-thumbnail-zoom {
  opacity: 1;
}
.latest-studio-scope .latest-thumbnail-placeholder {
  box-sizing: border-box;
  width: 120px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  background: #f6f8fb;
  border: 1px dashed #dce4f1;
  border-radius: 8px;
  color: #a0aec1;
}
.latest-studio-scope .latest-thumbnail-placeholder small {
  font-size: 11px;
}
.latest-studio-scope .latest-thumbnail-placeholder > span {
  font-size: 20px;
  line-height: 1;
}
.latest-studio-scope .latest-thumbnail-placeholder button {
  padding: 0 5px;
  background: none;
  border: 0;
  color: #416bcb;
  font-size: 11px;
  cursor: pointer;
}
.latest-studio-scope .latest-thumbnail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10213b66;
  padding: 20px;
}
.latest-studio-scope .latest-thumbnail-backdrop > section {
  background: white;
  padding: 20px;
  border-radius: 14px;
  width: min(560px, 100%);
  box-sizing: border-box;
  box-shadow: 0 18px 60px #10213b33;
}
.latest-studio-scope .latest-thumbnail-backdrop section > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.latest-studio-scope .latest-thumbnail-backdrop img {
  display: block;
  width: 100%;
  height: auto;
  background: #111c2d;
  border-radius: 8px;
}
.latest-studio-scope .latest-thumbnail-backdrop p {
  font-size: 12px;
  color: #8292aa;
  margin-bottom: 0;
}
@media (max-width:1100px) and (min-width:721px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 65px 70px minmax(90px, 1fr) 105px auto;
    gap: 10px;
  }
  .latest-studio-scope .latest-thumbnail-button,
  .latest-studio-scope .latest-thumbnail-placeholder {
    width: 105px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    max-width: 220px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 10px;
  }
  .latest-studio-scope .latest-segment-thumbnail {
    grid-column: 1/-1;
  }
  .latest-studio-scope .latest-thumbnail-button,
  .latest-studio-scope .latest-thumbnail-placeholder {
    width: 120px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
  }
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  grid-template-columns: 75px 85px minmax(105px, 1fr) 120px 290px;
}
.latest-studio-scope .latest-results-table article > .latest-segment-thumbnail {
  display: block;
  grid-column: auto;
}
@media (max-width:1100px) and (min-width:721px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 65px 70px minmax(90px, 1fr) 105px 220px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-thumbnail {
    grid-column: 1/-1;
  }
}
.latest-studio-scope .latest-logs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-logs-toolbar h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.latest-studio-scope .latest-logs-toolbar .h3-field-hint {
  margin: 0;
}
.latest-studio-scope .latest-logs-pagination {
  padding-top: 2px;
  margin-left: auto;
}
.latest-studio-scope .latest-logs-pagination .has-updates {
  color: #285fe2;
  background: #edf3ff;
  border-color: #cbdcff;
}
.latest-studio-scope .latest-log-page-hint {
  margin: 20px 0 12px;
  color: #8a9ab0;
  font-size: 12px;
  line-height: 1.6;
}
.latest-studio-scope .latest-log-list.latest-log-paged {
  max-height: none;
  overflow: visible;
  margin-top: 0;
  padding: 2px 16px;
  background: #fff;
}
.latest-studio-scope .latest-log-paged > div {
  min-height: 44px;
  box-sizing: border-box;
  align-items: flex-start;
  gap: 18px;
  padding: 12px 0;
}
.latest-studio-scope .latest-log-paged > div:last-child {
  border-bottom: 0;
}
.latest-studio-scope .latest-log-paged > div > span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.latest-studio-scope .latest-logs-empty {
  padding: 35px 10px;
  text-align: center;
  color: #8b9bb1;
  font-size: 13px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-logs-toolbar {
    gap: 16px;
  }
  .latest-studio-scope .latest-logs-pagination {
    margin-left: 0;
    justify-content: flex-start;
  }
  .latest-studio-scope .latest-logs-pagination .latest-results-page-count {
    width: 100%;
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-log-paged > div {
    gap: 10px;
  }
  .latest-studio-scope .latest-log-list.latest-log-paged {
    padding: 2px 12px;
  }
}
.latest-studio-scope dialog.latest-thumbnail-backdrop {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(600px, 100vw);
  height: fit-content;
  max-height: calc(100dvh - 32px);
  max-width: 100vw;
  overflow: auto;
  padding: 20px;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}
.latest-studio-scope dialog.latest-thumbnail-backdrop:not([open]) {
  display: none;
}
.latest-studio-scope dialog.latest-thumbnail-backdrop::backdrop {
  background: rgba(16, 33, 59, .55);
}
.latest-studio-scope dialog.latest-thumbnail-backdrop > section {
  width: 100%;
}
.latest-studio-scope .latest-logs-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.latest-studio-scope .latest-logs-jump label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  color: #6f829f;
}
.latest-studio-scope .latest-logs-jump input {
  box-sizing: border-box;
  width: 62px;
  min-width: 0;
  height: 38px;
  padding: 6px 8px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  text-align: center;
  background: #fff;
  color: #183555;
}
.latest-studio-scope .latest-completion-sound {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}


/* apps/web/src/pages/latest/latest-studio.css */
.latest-studio-scope .h3-studio {
  max-width: 1200px;
  margin: auto;
  padding: 28px 24px 60px;
  color: #102544;
}
.latest-studio-scope .h3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-header h1 {
  font-size: 26px;
}
.latest-studio-scope .h3-note {
  color: #64748b;
  font-size: 13px;
}
.latest-studio-scope .h3-inputs,
.latest-studio-scope .h3-results {
  padding: 24px;
  margin-top: 20px;
}
.latest-studio-scope .h3-studio h2 {
  font-size: 19px;
}
.latest-studio-scope .h3-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-studio select {
  padding: 8px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: white;
}
.latest-studio-scope .h3-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-images > div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}
.latest-studio-scope .h3-images strong {
  display: block;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-images img,
.latest-studio-scope .h3-placeholder {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}
.latest-studio-scope .h3-placeholder {
  display: grid;
  place-items: center;
  color: #94a3b8;
}
.latest-studio-scope .h3-studio textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 14px;
  line-height: 1.6;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  resize: vertical;
  font-family: inherit;
}
.latest-studio-scope .h3-review {
  padding: 16px;
  background: #f1f5ff;
  border-radius: 10px;
}
.latest-studio-scope .h3-studio pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.latest-studio-scope .h3-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-result-grid img,
.latest-studio-scope .h3-result-grid video {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-studio details {
  margin: 14px 0;
}
.latest-studio-scope .h3-studio summary {
  cursor: pointer;
}
.latest-studio-scope .h3-studio .alert {
  margin-top: 14px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, 1fr);
  }
  .latest-studio-scope .h3-studio {
    padding: 16px;
  }
  .latest-studio-scope .h3-inputs,
  .latest-studio-scope .h3-results {
    padding: 16px;
  }
  .latest-studio-scope .h3-header h1 {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-image-dropzone {
  border: 1px dashed #dce3ec;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  height: 140px;
  box-sizing: border-box;
  overflow: hidden;
}
.latest-studio-scope .h3-image-dropzone img,
.latest-studio-scope .h3-image-dropzone .h3-placeholder {
  display: grid;
  height: 100%;
  border-radius: 9px;
}
.latest-studio-scope .h3-image-dropzone .h3-image-help {
  text-align: center;
  margin: 0;
  padding: 8px;
  line-height: 1.8;
}
.latest-studio-scope .h3-image-dropzone:focus,
.latest-studio-scope .h3-image-dropzone.is-dragging {
  border-color: var(--brand,#2459df);
  background: var(--surface,#f1f5ff);
}
.latest-studio-scope .h3-image-dropzone[aria-disabled=true] {
  cursor: default;
  opacity: .7;
}
.latest-studio-scope .h3-image-dropzone[draggable=true] {
  cursor: grab;
  transition:
    border-color .18s,
    box-shadow .18s,
    opacity .18s;
}
.latest-studio-scope .h3-image-dropzone[draggable=true]:active {
  cursor: grabbing;
}
.latest-studio-scope .h3-image-dropzone.is-moving {
  opacity: .5;
}
.latest-studio-scope .h3-image-dropzone.is-dragging {
  box-shadow: 0 0 0 3px rgba(36, 89, 223, .13);
}
.latest-studio-scope .h3-image-help {
  display: block;
  color: var(--ink-3,#64748b);
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
}
.latest-studio-scope .h3-image-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-image-slot > small {
  display: block;
  line-height: 1.5;
}
.latest-studio-scope .h3-workspace {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.latest-studio-scope .h3-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}
.latest-studio-scope .h3-mode-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .h3-mode-control select {
  height: 40px;
  min-width: 128px;
  font-weight: 400;
}
.latest-studio-scope .h3-header-actions > .btn {
  min-height: 40px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .latest-studio-scope .h3-mode-control select {
    min-width: 110px;
  }
}
.latest-studio-scope .h3-task-metrics .h3-segment-remaining {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-produced-link {
  font-size: 13px;
  color: var(--brand,#2459df);
  text-decoration: none;
}
.latest-studio-scope .h3-produced-link:hover {
  text-decoration: underline;
}
.latest-studio-scope #studio-results {
  scroll-margin-top: 100px;
}
.latest-studio-scope .h3-stop-dialog {
  border: 0;
  margin: auto;
  color: var(--ink,#102544);
}
.latest-studio-scope .h3-stop-dialog:not([open]) {
  display: none;
}
.latest-studio-scope .h3-stop-dialog::backdrop {
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(3px);
}
.latest-studio-scope .h3-prompt-editor.is-dragging textarea {
  border-color: var(--brand,#2459df);
  background: #f5f8ff;
  box-shadow: 0 0 0 2px rgba(36, 89, 223, .1);
}
.latest-studio-scope .h3-prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.latest-studio-scope .h3-prompt-import {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-prompt-import .btn {
  min-width: 96px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.latest-studio-scope .h3-prompt-import .h3-field-hint {
  margin: 0;
}
.latest-studio-scope .h3-header .h3-creation-title {
  font-size: 24px;
}
.latest-studio-scope .h3-studio .h3-inputs > h2,
.latest-studio-scope .h3-studio .h3-results > h2 {
  font-size: 18px;
  font-weight: 700;
}
.latest-studio-scope .h3-step-heading {
  margin: 24px 0 12px;
}
.latest-studio-scope .h3-step-heading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.latest-studio-scope .h3-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf0ff;
  color: var(--brand,#2459df);
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .h3-step-heading p,
.latest-studio-scope .h3-field-hint {
  margin: 6px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs .h3-row > label {
  font-size: 14px;
  font-weight: 600;
}
.latest-studio-scope .h3-inputs select,
.latest-studio-scope .h3-inputs input {
  font-weight: 400;
}
.latest-studio-scope .h3-field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-required-label {
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff0ef;
  color: #c1372d;
  font-size: 12px;
  font-weight: 500;
}
.latest-studio-scope .h3-step-heading + .h3-images {
  margin-top: 12px;
}
.latest-studio-scope .h3-results > h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header .h3-creation-title {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-studio .h3-prompt-check {
  width: auto;
  min-width: 104px;
  padding: 0 14px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 6px;
}
.latest-studio-scope .h3-check-icon {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
}
.latest-studio-scope .h3-action-feedback {
  flex: 0 1 240px;
  min-height: 20px;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-report {
  margin: 16px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface,#fff);
}
.latest-studio-scope .h3-check-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-summary h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.latest-studio-scope .h3-check-summary p {
  margin: 0;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-details {
  max-height: 420px;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 8px;
}
.latest-studio-scope .h3-check-details[hidden] {
  display: none;
}
.latest-studio-scope .h3-check-explanation {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.latest-studio-scope .h3-check-category {
  border: 1px solid var(--line,#dce3ee);
  border-radius: 8px;
  padding: 10px;
}
.latest-studio-scope .h3-check-category > summary {
  font-weight: 600;
}
.latest-studio-scope .h3-check-occurrences {
  max-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
}
.latest-studio-scope .h3-check-occurrences:focus-visible {
  outline: 2px solid var(--brand,#2459df);
  outline-offset: 2px;
}
.latest-studio-scope .h3-check-group > summary {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-count {
  margin-left: 8px;
  color: var(--ink-2,#64748b);
  white-space: nowrap;
}
.latest-studio-scope .h3-check-group ul {
  padding-left: 22px;
}
.latest-studio-scope .h3-check-group li {
  padding: 8px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-group li p {
  margin: 6px 0;
}
.latest-studio-scope .h3-review > details {
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
}
.latest-studio-scope .h3-studio .h3-generate-button {
  width: auto;
  min-width: 120px;
  padding: 0 20px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 8px;
}
.latest-studio-scope .h3-generate-button .machine-creation-spinner {
  border-color: rgba(255, 255, 255, .4);
  border-top-color: currentColor;
}
.latest-studio-scope .h3-studio .h3-generate-button.is-generating {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  opacity: 1;
}
.latest-studio-scope .h3-generate-button.is-generating::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      rgba(255, 255, 255, .2) 50%,
      transparent 80%);
  transform: translateX(-100%);
  animation: latest-h3-generation-shimmer 2.8s ease-in-out infinite;
}
@keyframes latest-h3-generation-shimmer {
  0%, 15% {
    transform: translateX(-100%);
  }
  85%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-generate-button.is-generating::after {
    animation: none;
    display: none;
  }
}
.latest-studio-scope .h3-generation-guidance {
  min-height: 0;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.latest-studio-scope .h3-action-feedback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.latest-studio-scope .h3-analysis-hourglass {
  flex: none;
  font-size: 16px;
  line-height: 20px;
}
.latest-studio-scope .h3-task-progress {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  background: var(--surface,#f8faff);
}
@property --latest-h3-border-angle { syntax:"<angle>";inherits:false;initial-value:0deg }
.latest-studio-scope .h3-task-progress.is-generating {
  position: relative;
  isolation: isolate;
}
.latest-studio-scope .h3-task-progress.is-generating::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(
      from var(--latest-h3-border-angle),
      transparent 0deg 235deg,
      #c4b5fd 275deg,
      #7954ed 305deg,
      #22c8f3 335deg,
      transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(94, 104, 245, .3));
  animation: latest-h3-border-orbit 24s linear infinite;
}
@keyframes latest-h3-border-orbit {
  to {
    --latest-h3-border-angle:360deg;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-task-progress.is-generating::before {
    animation: none;
  }
}
.latest-studio-scope .h3-task-progress-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-task-progress-heading > span:last-child {
  margin-left: auto;
  color: var(--ink-2,#64748b);
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.latest-studio-scope .h3-task-phases li {
  padding: 6px 10px;
  background: var(--bg,#eef2f7);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-task-phases .is-current {
  color: var(--brand,#2459df);
  background: #e8efff;
  font-weight: 600;
}
.latest-studio-scope .h3-task-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.latest-studio-scope .h3-task-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.latest-studio-scope .h3-task-metrics span,
.latest-studio-scope .h3-progress-note {
  color: var(--ink-2,#64748b);
  font-size: 12px;
}
.latest-studio-scope .h3-task-metrics strong {
  font-size: 14px;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.latest-studio-scope .h3-real-progress {
  margin-top: 16px;
}
.latest-studio-scope .h3-real-progress label {
  font-size: 13px;
}
.latest-studio-scope .h3-real-progress progress {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 8px;
  accent-color: var(--brand,#2459df);
}
.latest-studio-scope .h3-progress-note {
  margin: 12px 0 0;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-followup {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-task-followup span {
  font-size: 12px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-result-media video,
.latest-studio-scope .h3-result-media img {
  border-radius: 8px;
}
.latest-studio-scope .h3-result-media p {
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-real-progress .h3-progress-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.latest-studio-scope .h3-progress-track {
  height: 14px;
  margin-top: 12px;
  padding: 2px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #dbe5fa;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      #e8eef8,
      #f3f6fc);
  box-shadow: inset 0 1px 3px rgba(35, 66, 125, .1);
}
.latest-studio-scope .h3-progress-fill {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #3258f5 0%,
      #7954ed 48%,
      #22c8f3 100%);
  box-shadow: 0 0 12px rgba(79, 104, 244, .45), inset 0 1px 1px rgba(255, 255, 255, .55);
  transition: width .55s ease;
}
.latest-studio-scope .h3-progress-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 12px,
      rgba(255, 255, 255, .17) 12px 20px);
  background-size: 44px 100%;
}
.latest-studio-scope .h3-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      transparent 25%,
      rgba(255, 255, 255, .65) 50%,
      transparent 75%);
  transform: translateX(-100%);
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before {
  animation: latest-h3-progress-flow 1.5s linear infinite;
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
  animation: latest-h3-progress-glint 2.6s ease-in-out infinite;
}
.latest-studio-scope .h3-terminal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-heading h2 {
  margin: 0 0 6px;
}
.latest-studio-scope .h3-terminal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #536681;
}
.latest-studio-scope .h3-terminal-output {
  margin-top: 16px;
  padding: 18px 20px;
  max-height: 380px;
  min-height: 160px;
  overflow: auto;
  border: 1px solid #263651;
  border-radius: 10px;
  background: #101827;
  color: #b7e5c3;
  font:
    12px/1.8 Consolas,
    "Cascadia Code",
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 4;
  scrollbar-color: #4c607e #101827;
}
.latest-studio-scope .h3-terminal-output .is-error {
  color: #ff9b9b;
}
.latest-studio-scope .h3-terminal-output .is-warning {
  color: #f2d48b;
}
.latest-studio-scope .h3-terminal-empty {
  color: #8c9bb0;
}
.latest-studio-scope .h3-terminal-section > .h3-field-hint {
  margin-top: 12px;
}
@keyframes latest-h3-progress-flow {
  to {
    background-position: 44px 0;
  }
}
@keyframes latest-h3-progress-glint {
  0%, 10% {
    transform: translateX(-100%);
  }
  90%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-progress-fill {
    transition: none;
  }
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before,
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
    animation: none;
  }
  .latest-studio-scope .h3-progress-fill::after {
    display: none;
  }
}
.latest-studio-scope .h3-final-video {
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line,#dce3ee);
  border-bottom: 1px solid var(--line,#dce3ee);
}
.latest-studio-scope .h3-final-video h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.latest-studio-scope .h3-final-video > p {
  margin: 0 0 18px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-final-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 680px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-final-video-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .h3-machine-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-provider-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.latest-studio-scope .h3-provider-id {
  user-select: text;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-provider-identity > span {
  min-width: 0;
}
.latest-studio-scope .h3-provider-identity [role=status] {
  color: var(--ink-2);
}
.latest-studio-scope .h3-machine-specs {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-advanced-info > p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-creation-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-creation-origin {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.latest-studio-scope .h3-creation-origin .h3-origin-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 1.3em;
  height: 1.3em;
  padding: 0 .12em;
  margin-left: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1em;
  font-weight: inherit;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-task-progress {
  padding: 22px 24px;
  background:
    linear-gradient(
      145deg,
      #fff 55%,
      #f6f8ff);
  box-shadow: 0 3px 16px rgba(26, 53, 110, .035);
}
.latest-studio-scope .h3-task-progress.is-complete {
  border-color: #d4e9e2;
  background:
    linear-gradient(
      125deg,
      #fff 45%,
      #f0faf6);
}
.latest-studio-scope .h3-task-progress-heading > strong {
  font-size: 16px;
  font-weight: 650;
}
.latest-studio-scope .h3-status-emblem {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eaf0ff;
  color: #3560e7;
  font-size: 18px;
}
.latest-studio-scope .h3-status-emblem.is-complete {
  background: #dcf5e9;
  color: #15835c;
}
.latest-studio-scope .h3-task-phases {
  gap: 0;
  flex-wrap: nowrap;
  margin: 24px 0;
  padding: 0 0 22px;
  border-bottom: 1px solid #e6ebf3;
}
.latest-studio-scope .h3-task-phases li {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  padding: 0;
  background: none;
  border-radius: 0;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe6f1;
  margin: 0 14px;
}
.latest-studio-scope .h3-phase-dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #edf1f7;
  color: #8290a7;
  font-size: 12px;
  font-weight: 600;
}
.latest-studio-scope .h3-task-phases li.is-current {
  color: #2459df;
  background: none;
  font-weight: 650;
}
.latest-studio-scope .h3-task-phases .is-current .h3-phase-dot {
  background: #2d5be9;
  color: white;
  box-shadow: 0 0 0 4px #eaf0ff;
}
.latest-studio-scope .h3-task-phases li.is-done {
  color: #326754;
}
.latest-studio-scope .h3-task-phases .is-done .h3-phase-dot {
  background: #e1f3ea;
  color: #16825c;
}
.latest-studio-scope .h3-task-phases .is-done::after {
  background: #bfdece;
}
.latest-studio-scope .h3-task-metrics {
  align-items: start;
  gap: 20px;
}
.latest-studio-scope .h3-task-metrics .h3-current-summary {
  padding: 2px 0;
  gap: 9px;
}
.latest-studio-scope .h3-current-summary > strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-metrics > div > span:first-child {
  font-size: 12px;
  color: #7a879c;
}
.latest-studio-scope .h3-task-metrics .h3-segment-summary {
  position: relative;
  padding: 0 160px 0 20px;
  border-left: 1px solid #e1e8ef;
  min-height: 76px;
  justify-content: center;
}
.latest-studio-scope .h3-task-metrics .h3-segment-count {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
  color: #2459df;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-segment-count small {
  font-size: 14px;
  color: #7a879c;
  font-weight: 400;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #eaf0ff;
  color: #2459df;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, box-shadow .2s;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link:hover {
  background: #dde7ff;
  text-decoration: none;
  box-shadow: 0 3px 10px #2459df15;
}
.latest-studio-scope .h3-produced-link:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
@media (max-width:850px) {
  .latest-studio-scope .h3-task-phases li {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }
  .latest-studio-scope .h3-task-phases li:not(:last-child)::after {
    position: absolute;
    top: 13px;
    left: calc(50% + 21px);
    right: calc(-50% + 21px);
    margin: 0;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding-right: 0;
  }
  .latest-studio-scope .h3-segment-summary .h3-produced-link {
    position: static;
    transform: none;
    align-self: flex-start;
    margin-top: 5px;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-task-progress {
    padding: 18px 14px;
  }
  .latest-studio-scope .h3-task-phases {
    margin: 22px 0 18px;
  }
  .latest-studio-scope .h3-task-phases li {
    font-size: 11px;
  }
  .latest-studio-scope .h3-phase-dot {
    width: 24px;
    height: 24px;
  }
  .latest-studio-scope .h3-task-metrics {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid #e1e8ef;
  }
}
.latest-studio-scope .h3-result-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}
.latest-studio-scope .h3-result-section-heading h3 {
  margin: 0;
}
.latest-studio-scope .h3-result-section-heading .btn {
  white-space: nowrap;
}
.latest-studio-scope .h3-segment-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.latest-studio-scope .h3-segment-actions .btn {
  padding: 7px 10px;
  min-height: 34px;
  font-size: 12px;
}
.latest-studio-scope .h3-segment-regenerate {
  color: #2459df;
  border-color: #cbd9ff;
  background: #f5f8ff;
}
.latest-studio-scope .h3-merge-notice {
  padding: 12px 16px;
  border: 1px solid #f0d9a8;
  border-radius: 9px;
  background: #fff9ed;
  color: #92641a;
  font-size: 13px;
}
.latest-studio-scope .h3-segment-editor {
  width: min(880px, calc(100vw - 32px));
  max-height: 85vh;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #dce3ee;
  border-radius: 16px;
  color: #142b4a;
  background: #fff;
  box-shadow: 0 24px 80px #10254430;
}
.latest-studio-scope .h3-segment-editor::backdrop {
  background: #10254470;
  backdrop-filter: blur(4px);
}
.latest-studio-scope .h3-segment-editor header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .h3-segment-editor h2 {
  font-size: 20px;
  margin: 4px 0 8px;
}
.latest-studio-scope .h3-segment-editor label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}
.latest-studio-scope .h3-segment-editor textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 320px;
  resize: vertical;
  line-height: 1.8;
  font-size: 14px;
  border: 1px solid #ccd8eb;
  border-radius: 10px;
  padding: 14px;
}
.latest-studio-scope .h3-segment-editor footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.latest-studio-scope .h3-editor-error {
  font-size: 13px;
  color: #c13737;
}
.latest-studio-scope .h3-segment-editor textarea:focus {
  outline: 2px solid #bad0ff;
  border-color: #2459df;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-segment-editor {
    padding: 18px;
  }
  .latest-studio-scope .h3-segment-editor textarea {
    min-height: 240px;
  }
  .latest-studio-scope .h3-result-section-heading > .btn {
    width: 100%;
  }
}
.latest-studio-scope .main.main-studio {
  padding-top: 20px;
}
.latest-studio-scope .main-studio .h3-studio {
  padding-top: 0;
}
.latest-studio-scope .h3-header h1 {
  margin-top: 0;
}
.latest-studio-scope .h3-input-lock-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #edf3ff;
  color: #365c9b;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs textarea[readonly] {
  background: #f7f9fc;
  color: #53627a;
  cursor: default;
}
.latest-studio-scope .h3-patient-hint {
  margin: 18px 0 0;
  padding: 11px 14px;
  border-radius: 9px;
  background: #edf3ff;
  color: #4a6393;
  font-size: 13px;
  line-height: 1.8;
}
.latest-studio-scope .h3-check-reasons {
  margin: 12px 0;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-reasons span {
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-2,#64748b);
  transition:
    color .18s,
    border-color .18s,
    background .18s;
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear:not(:disabled):hover {
  color: #c1372d;
  border-color: #f1b8b3;
  background: #fff5f4;
}
.latest-studio-scope .h3-studio .h3-repair-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: #c1372d;
}
.latest-studio-scope .h3-repair-cancel:hover {
  background: #fff2f1;
  border-color: #f1b8b3;
}
.latest-studio-scope .h3-generation-guidance:empty {
  display: none;
}
.latest-studio-scope .h3-review-result.is-success {
  border-color: #c7e6d8;
  background: #f7fcf9;
}
.latest-studio-scope .h3-review-result.is-pending {
  border-color: #cddaff;
  background: #f8faff;
}
.latest-studio-scope .h3-review-verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.latest-studio-scope .h3-review-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff2df;
  color: #a86b12;
  font-size: 16px;
  font-weight: 700;
}
.latest-studio-scope .is-success .h3-review-status-icon {
  background: #e0f3e9;
  color: #23835b;
}
.latest-studio-scope .is-pending .h3-review-status-icon {
  background: #e9efff;
  color: var(--brand,#2459df);
}
.latest-studio-scope .h3-review-result .h3-check-summary p {
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-review-result .h3-check-summary h3 {
  font-size: 15px;
  margin-bottom: 3px;
}
.latest-studio-scope .h3-repair-proposal {
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 12px;
}
.latest-studio-scope .h3-repair-proposal details {
  max-height: 320px;
  overflow: auto;
}
.latest-studio-scope .h3-repair-proposal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.latest-studio-scope .h3-review-result.is-warning {
  border-color: #f0c9c5;
  background: #fffafa;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict p,
.latest-studio-scope .h3-review-result.is-warning .h3-check-reasons,
.latest-studio-scope .h3-review-result.is-warning .h3-check-details {
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-status-icon {
  background: #fee9e7;
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict p {
  color: #1f7a4f;
}
.latest-studio-scope .h3-log-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f1f5ff;
  border: 1px solid #dce5fa;
  color: #28466e;
}
.latest-studio-scope .h3-log-summary p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-log-summary.is-success {
  background: #f3fbf7;
  border-color: #c4e9d7;
  color: #14805b;
}
.latest-studio-scope .h3-log-summary.is-error {
  background: #fff5f5;
  border-color: #f4caca;
  color: #b62b35;
}
.latest-studio-scope .h3-log-summary.is-warning {
  background: #fffbf1;
  border-color: #efdeb0;
  color: #88631b;
}
.latest-studio-scope .h3-log-view-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.latest-studio-scope .h3-log-view-controls [role=group] {
  display: flex;
  gap: 6px;
}
.latest-studio-scope .h3-log-view-controls button[aria-pressed=true] {
  background: #eef3ff;
  border-color: #b5c7fa;
  color: #2459d8;
}
.latest-studio-scope .h3-log-view-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #536681;
  font-size: 13px;
}
.latest-studio-scope .h3-log-readable {
  max-height: 300px;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  padding: 4px 16px;
}
.latest-studio-scope .h3-log-readable ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.latest-studio-scope .h3-log-readable li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f6;
  font-size: 13px;
  line-height: 1.7;
  color: #344b68;
}
.latest-studio-scope .h3-log-readable li:last-child {
  border-bottom: 0;
}
.latest-studio-scope .h3-log-readable time {
  color: #71829a;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.latest-studio-scope .h3-log-readable small {
  color: #71829a;
}
.latest-studio-scope .h3-log-readable .is-warning {
  color: #88631b;
}
.latest-studio-scope .h3-log-readable .is-error {
  color: #b62b35;
}
.latest-studio-scope .h3-log-readable .is-success {
  color: #14805b;
}
.latest-studio-scope .h3-terminal-output[hidden] {
  display: none;
}
.latest-studio-scope .h3-workspace-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-top: 24px;
  padding: 10px 18px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 14px 14px 0 0;
  background:
    linear-gradient(
      110deg,
      #f5f8ff,
      var(--surface,#fff) 75%);
  width: 100%;
  box-sizing: border-box;
}
.latest-studio-scope .h3-workspace-tabs [role=tab] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  appearance: none;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  margin-bottom: -1px;
  background: transparent;
  color: #536681;
  padding: 14px 28px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background .2s,
    color .2s,
    box-shadow .2s,
    border-color .2s;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:hover {
  color: #2459df;
  background: #eaf1ff;
  box-shadow: inset 0 3px 12px #3775f50c;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true] {
  background:
    linear-gradient(
      180deg,
      #edf4ff 0%,
      var(--surface,#fff) 85%);
  border-color: var(--line,#dce3ee);
  color: #2459df;
  box-shadow: 0 -4px 14px #497cf519, inset 0 2px 0 #578bff;
  text-shadow: 0 0 14px #3775f52b;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 25%,
      #a9ceff40 50%,
      transparent 75%);
  transform: translateX(-120%);
  animation: latest-h3-tab-shine 4s ease-in-out infinite;
  pointer-events: none;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
.latest-studio-scope .h3-workspace-panel[hidden] {
  display: none !important;
}
.latest-studio-scope .h3-sync-status {
  margin: 12px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 12px;
  line-height: 1.7;
}
@keyframes latest-h3-tab-shine {
  0%, 25% {
    transform: translateX(-120%);
  }
  65%, 100% {
    transform: translateX(120%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    transition: none;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
    animation: none;
    transform: none;
    opacity: .3;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-workspace-tabs {
    padding: 8px 8px 0;
    gap: 0;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    flex: 1;
    padding: 13px 8px;
    font-size: 13px;
  }
}
.latest-studio-scope .h3-workspace-panel > .card {
  margin-top: 0;
  padding: 24px;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}
.latest-studio-scope .h3-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-studio .h3-panel-heading h2 {
  margin: .83em 0;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  color: inherit;
}
.latest-studio-scope .h3-panel-heading h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
.latest-studio-scope .h3-panel-heading .h3-terminal-actions {
  margin-top: 10px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-workspace-panel > .card {
    padding: 16px;
  }
}
.latest-studio-scope #studio-generation {
  scroll-margin-top: 130px;
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-workbench {
    scroll-behavior: auto;
  }
}
.latest-studio-scope .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters {
  margin: 24px 0;
  padding: 20px;
  border: 1px dashed #bdcde4;
  background: #f6f9fe;
  border-radius: 12px;
}
.latest-studio-scope .latest-parameters > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-parameters p {
  font-size: 13px;
  line-height: 1.8;
  color: #64748b;
  margin: 10px 0 0;
}
.latest-studio-scope .latest-pending-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 20px;
  background: #edf2fa;
  color: #526a90;
  font-size: 12px;
}
.latest-studio-scope .latest-pending-selection {
  font-size: 13px;
  color: #64748b;
  padding: 10px 0;
}
.latest-studio-scope .latest-workbench .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.latest-studio-scope .latest-parameter-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .latest-parameter-grid input,
.latest-studio-scope .latest-parameter-grid select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  background: white;
  border: 1px solid #d5dfef;
  border-radius: 8px;
  color: #18365c;
  font: inherit;
  font-weight: 400;
}
.latest-studio-scope .latest-parameter-grid input:focus,
.latest-studio-scope .latest-parameter-grid select:focus {
  outline: 2px solid #bdd0ff;
  outline-offset: 1px;
  border-color: #5784f5;
}
@media (max-width:900px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-workbench .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .h3-header {
  gap: 16px;
}
.latest-studio-scope .h3-header > div {
  min-width: 0;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .h3-header {
    align-items: flex-start;
  }
  .latest-studio-scope .h3-header-actions {
    flex-wrap: wrap;
  }
  .latest-studio-scope .h3-studio h1 {
    font-size: 22px;
  }
}
@media (max-width:380px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .latest-connection {
  font-size: 13px;
  color: #64748b;
  padding: 9px 13px;
  border-radius: 20px;
  background: #eef2f7;
}
.latest-studio-scope .latest-connection.is-ready {
  color: #13795b;
  background: #e8f8f1;
}
.latest-studio-scope .latest-message {
  padding: 14px 18px;
  border: 1px solid #d5e3ff;
  background: #f0f6ff;
  color: #31528a;
  border-radius: 10px;
  margin: 14px 0;
  line-height: 1.7;
}
.latest-studio-scope .latest-message.is-error {
  background: #fff4f3;
  color: #b1372f;
  border-color: #f2cfca;
}
.latest-studio-scope .latest-message button {
  float: right;
  border: 0;
  background: none;
  color: inherit;
  font-size: 20px;
}
.latest-studio-scope .latest-section-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
}
.latest-studio-scope .latest-section-label span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-reference-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #fafcff;
}
.latest-studio-scope .latest-reference-section > summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
}
.latest-studio-scope .latest-reference-section > summary span {
  float: right;
  font-size: 12px;
  font-weight: 400;
  color: #6b7e96;
}
.latest-studio-scope .latest-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .latest-media-slot {
  padding: 16px;
  border: 1px solid #dce5f0;
  background: #fff;
  border-radius: 12px;
  min-width: 0;
}
.latest-studio-scope .latest-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 125px;
  gap: 10px;
  margin-top: 12px;
  background: #f5f8fd;
  border: 1px dashed #d5dfef;
  border-radius: 9px;
}
.latest-studio-scope .latest-media-placeholder > span {
  font-size: 26px;
  color: #416fea;
}
.latest-studio-scope .latest-media-placeholder p {
  margin: 0 8px;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .latest-media-placeholder small {
  font-size: 11px;
  color: #8290a5;
}
.latest-studio-scope .latest-upload-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #3561d7;
  padding: 9px 0;
}
.latest-studio-scope .latest-upload-status .machine-creation-spinner {
  width: 15px;
  height: 15px;
  display: inline-block;
}
.latest-studio-scope .latest-image-uploading .h3-image-dropzone {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #e5eeff,
      #f1f6ff);
  background-size: 200% 100%;
  animation: latest-upload-glow 2s linear infinite;
}
.latest-studio-scope .latest-settings-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.latest-studio-scope .latest-settings-main > label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.latest-studio-scope .latest-settings-main select {
  min-width: 115px;
}
.latest-studio-scope .latest-settings-main .latest-martial {
  margin-left: auto;
  padding: 14px 18px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #f8faff;
}
.latest-studio-scope .latest-martial input {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 15px;
  background: #c7d2e2;
  border: 0;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}
.latest-studio-scope .latest-martial input:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.latest-studio-scope .latest-martial input:checked {
  background: #2b5ef0;
}
.latest-studio-scope .latest-martial input:checked:after {
  transform: translateX(16px);
}
.latest-studio-scope .latest-martial strong,
.latest-studio-scope .latest-martial small {
  display: block;
}
.latest-studio-scope .latest-martial small {
  font-size: 12px;
  color: #6b7e96;
  margin-top: 5px;
}
.latest-studio-scope .latest-advanced {
  padding: 18px;
  margin-top: 20px;
  background: #f7f9fe;
  border: 1px dashed #cbd8ea;
  border-radius: 10px;
}
.latest-studio-scope .latest-advanced summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.latest-studio-scope .latest-advanced .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}
.latest-studio-scope .latest-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.latest-studio-scope .latest-range label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.latest-studio-scope .latest-range input {
  width: 78px;
}
.latest-studio-scope .latest-connected input:not([type=checkbox]):not([type=file]),
.latest-studio-scope .latest-connected select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d4deed;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
}
.latest-studio-scope .latest-connected textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #d4deed;
  border-radius: 10px;
  padding: 15px;
  line-height: 1.8;
  font: 13px/1.8 monospace;
  margin-top: 12px;
  min-height: 240px;
}
.latest-studio-scope .latest-connected input:focus-visible,
.latest-studio-scope .latest-connected select:focus-visible,
.latest-studio-scope .latest-connected textarea:focus-visible {
  outline: 2px solid #b9d0ff;
  outline-offset: 2px;
}
.latest-studio-scope .latest-connected input:disabled,
.latest-studio-scope .latest-connected select:disabled,
.latest-studio-scope .latest-connected textarea:disabled {
  background: #f2f5fa;
}
.latest-studio-scope .latest-save-settings {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-save-settings label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
  max-width: 230px;
}
.latest-studio-scope .latest-generate-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-generate-actions > .btn-primary {
  min-width: 230px;
  min-height: 44px;
}
.latest-studio-scope .latest-generate-actions > span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.latest-studio-scope .latest-result-stamp {
  padding: 6px 12px;
  color: #a66420;
  border: 2px solid currentColor;
  border-radius: 5px;
  transform: rotate(-5deg);
  font-size: 19px;
  font-weight: 750;
  white-space: nowrap;
}
.latest-studio-scope .latest-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}
.latest-studio-scope .latest-segment-list {
  border: 1px solid #dde5f0;
  border-radius: 11px;
  margin-top: 20px;
  overflow: hidden;
}
.latest-studio-scope .latest-segment-list article {
  display: grid;
  grid-template-columns: 100px 90px minmax(90px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 16px;
  box-sizing: border-box;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
}
.latest-studio-scope .latest-segment-list article:last-child {
  border-bottom: 0;
}
.latest-studio-scope .latest-segment-list article > div {
  display: flex;
  gap: 8px;
}
.latest-studio-scope .latest-segment-list .is-ready {
  color: #07845e;
}
.latest-studio-scope .latest-empty {
  padding: 60px 20px;
  text-align: center;
  color: #7d8da3;
  font-size: 14px;
}
.latest-studio-scope .latest-history {
  margin: 20px 0;
}
.latest-studio-scope .latest-history .btn {
  margin: 10px 8px 0 0;
  font-size: 12px;
}
.latest-studio-scope .latest-log-list {
  max-height: 540px;
  overflow: auto;
  margin-top: 24px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  padding: 6px 16px;
}
.latest-studio-scope .latest-log-list > div {
  display: flex;
  gap: 22px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-log-list time {
  color: #7d8da3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@keyframes latest-upload-glow {
  to {
    background-position: -200% 0;
  }
}
@media (max-width:900px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    margin-left: 0;
  }
  .latest-studio-scope .latest-segment-list article {
    grid-template-columns: 70px 60px 1fr;
  }
  .latest-studio-scope .latest-segment-list article > div {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-media-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-reference-section {
    padding: 14px;
  }
  .latest-studio-scope .latest-save-settings {
    display: block;
  }
  .latest-studio-scope .latest-save-settings label {
    margin: 12px 0;
  }
  .latest-studio-scope .latest-range {
    gap: 8px;
  }
  .latest-studio-scope .latest-range input {
    width: 62px;
  }
  .latest-studio-scope .latest-generate-actions > .btn-primary {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-results-heading {
    align-items: flex-start;
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-settings-main > label {
    flex: 1;
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
    width: 100%;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-image-uploading .h3-image-dropzone {
    animation: none;
  }
}
.latest-studio-scope .latest-connected .h3-task-progress {
  scroll-margin-top: 135px;
}
.latest-studio-scope .latest-workbench .h3-upload-card {
  min-height: 294px;
  height: 100%;
  box-sizing: border-box;
}
.latest-studio-scope .latest-workbench .h3-upload-heading {
  min-height: 22px;
}
.latest-studio-scope .latest-workbench .h3-upload-status {
  margin-top: 10px;
}
.latest-studio-scope .latest-media-saved {
  display: block;
  color: #07876a;
  font-size: 12px;
  margin-top: 10px;
}
.latest-studio-scope .latest-upload-retry {
  margin-top: 8px;
}
.latest-studio-scope .latest-media-slot .h3-upload-track {
  display: inline-block;
  width: 100px;
}
.latest-studio-scope .latest-media-slot .latest-media-placeholder {
  min-height: 140px;
}
.latest-studio-scope .latest-settings-main .latest-martial-card {
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  background:
    linear-gradient(
      135deg,
      #fafcff,
      #f3f7ff);
  border-color: #dce6f6;
  border-radius: 14px;
  box-shadow: 0 2px 7px #203d6910;
  transition:
    border-color .2s,
    box-shadow .2s,
    background .2s;
}
.latest-studio-scope .latest-martial-card:hover:not(.is-locked) {
  border-color: #9db9ff;
  box-shadow: 0 4px 14px #285be91c;
}
.latest-studio-scope .latest-martial-card:focus-within {
  outline: 2px solid #779cff;
  outline-offset: 3px;
}
.latest-studio-scope .latest-settings-main .latest-martial-card.is-enabled {
  background:
    linear-gradient(
      135deg,
      #edf4ff,
      #f5f1ff);
  border-color: #9ab8ff;
  box-shadow: 0 3px 12px #406bf21a;
}
.latest-studio-scope .latest-martial-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eaf0fb;
  color: #7c90b1;
  transition: color .2s, background .2s;
}
.latest-studio-scope .is-enabled .latest-martial-emblem {
  color: #3664eb;
  background: #dfe9ff;
}
.latest-studio-scope .latest-martial-copy {
  min-width: 0;
}
.latest-studio-scope .latest-martial-copy strong {
  font-size: 14px;
  line-height: 1.5;
  color: #203552;
}
.latest-studio-scope .latest-martial-copy small {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 3px;
}
.latest-studio-scope .latest-martial-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  flex-shrink: 0;
}
.latest-studio-scope .latest-martial-status {
  font-size: 11px;
  white-space: nowrap;
  color: #8190a6;
}
.latest-studio-scope .is-enabled .latest-martial-status {
  color: #3966dc;
}
.latest-studio-scope .latest-martial-card input {
  flex-shrink: 0;
  margin: 0;
  width: 42px;
  height: 24px;
  box-shadow: inset 0 1px 3px #122e4620;
}
.latest-studio-scope .latest-martial-card input:after {
  width: 18px;
  height: 18px;
  box-shadow: 0 1px 3px #142c4b33;
}
.latest-studio-scope .latest-martial-card input:checked:after {
  transform: translateX(18px);
}
.latest-studio-scope .latest-martial-card.is-locked {
  cursor: not-allowed;
  opacity: .65;
}
.latest-studio-scope .latest-martial-card input:disabled {
  cursor: not-allowed;
}
@media (max-width:480px) {
  .latest-studio-scope .latest-settings-main .latest-martial-card {
    padding: 14px 12px;
    gap: 9px;
  }
  .latest-studio-scope .latest-martial-emblem {
    width: 30px;
    height: 34px;
  }
  .latest-studio-scope .latest-martial-control {
    margin-left: auto;
    gap: 4px;
  }
  .latest-studio-scope .latest-martial-status {
    display: none;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-martial-card,
  .latest-studio-scope .latest-martial-card input,
  .latest-studio-scope .latest-martial-card input:after,
  .latest-studio-scope .latest-martial-emblem {
    transition: none;
  }
}

/* apps/web/src/pages/latest/latest-studio.css */
.latest-studio-scope .h3-studio {
  max-width: 1200px;
  margin: auto;
  padding: 28px 24px 60px;
  color: #102544;
}
.latest-studio-scope .h3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-header h1 {
  font-size: 26px;
}
.latest-studio-scope .h3-note {
  color: #64748b;
  font-size: 13px;
}
.latest-studio-scope .h3-inputs,
.latest-studio-scope .h3-results {
  padding: 24px;
  margin-top: 20px;
}
.latest-studio-scope .h3-studio h2 {
  font-size: 19px;
}
.latest-studio-scope .h3-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-studio select {
  padding: 8px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: white;
}
.latest-studio-scope .h3-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-images > div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}
.latest-studio-scope .h3-images strong {
  display: block;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-images img,
.latest-studio-scope .h3-placeholder {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}
.latest-studio-scope .h3-placeholder {
  display: grid;
  place-items: center;
  color: #94a3b8;
}
.latest-studio-scope .h3-studio textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 14px;
  line-height: 1.6;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  resize: vertical;
  font-family: inherit;
}
.latest-studio-scope .h3-review {
  padding: 16px;
  background: #f1f5ff;
  border-radius: 10px;
}
.latest-studio-scope .h3-studio pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.latest-studio-scope .h3-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-result-grid img,
.latest-studio-scope .h3-result-grid video {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-studio details {
  margin: 14px 0;
}
.latest-studio-scope .h3-studio summary {
  cursor: pointer;
}
.latest-studio-scope .h3-studio .alert {
  margin-top: 14px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, 1fr);
  }
  .latest-studio-scope .h3-studio {
    padding: 16px;
  }
  .latest-studio-scope .h3-inputs,
  .latest-studio-scope .h3-results {
    padding: 16px;
  }
  .latest-studio-scope .h3-header h1 {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-image-dropzone {
  border: 1px dashed #dce3ec;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  height: 140px;
  box-sizing: border-box;
  overflow: hidden;
}
.latest-studio-scope .h3-image-dropzone img,
.latest-studio-scope .h3-image-dropzone .h3-placeholder {
  display: grid;
  height: 100%;
  border-radius: 9px;
}
.latest-studio-scope .h3-image-dropzone .h3-image-help {
  text-align: center;
  margin: 0;
  padding: 8px;
  line-height: 1.8;
}
.latest-studio-scope .h3-image-dropzone:focus,
.latest-studio-scope .h3-image-dropzone.is-dragging {
  border-color: var(--brand,#2459df);
  background: var(--surface,#f1f5ff);
}
.latest-studio-scope .h3-image-dropzone[aria-disabled=true] {
  cursor: default;
  opacity: .7;
}
.latest-studio-scope .h3-image-dropzone[draggable=true] {
  cursor: grab;
  transition:
    border-color .18s,
    box-shadow .18s,
    opacity .18s;
}
.latest-studio-scope .h3-image-dropzone[draggable=true]:active {
  cursor: grabbing;
}
.latest-studio-scope .h3-image-dropzone.is-moving {
  opacity: .5;
}
.latest-studio-scope .h3-image-dropzone.is-dragging {
  box-shadow: 0 0 0 3px rgba(36, 89, 223, .13);
}
.latest-studio-scope .h3-image-help {
  display: block;
  color: var(--ink-3,#64748b);
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
}
.latest-studio-scope .h3-image-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-image-slot > small {
  display: block;
  line-height: 1.5;
}
.latest-studio-scope .h3-workspace {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.latest-studio-scope .h3-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}
.latest-studio-scope .h3-mode-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .h3-mode-control select {
  height: 40px;
  min-width: 128px;
  font-weight: 400;
}
.latest-studio-scope .h3-header-actions > .btn {
  min-height: 40px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .latest-studio-scope .h3-mode-control select {
    min-width: 110px;
  }
}
.latest-studio-scope .h3-task-metrics .h3-segment-remaining {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-produced-link {
  font-size: 13px;
  color: var(--brand,#2459df);
  text-decoration: none;
}
.latest-studio-scope .h3-produced-link:hover {
  text-decoration: underline;
}
.latest-studio-scope #studio-results {
  scroll-margin-top: 100px;
}
.latest-studio-scope .h3-stop-dialog {
  border: 0;
  margin: auto;
  color: var(--ink,#102544);
}
.latest-studio-scope .h3-stop-dialog:not([open]) {
  display: none;
}
.latest-studio-scope .h3-stop-dialog::backdrop {
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(3px);
}
.latest-studio-scope .h3-prompt-editor.is-dragging textarea {
  border-color: var(--brand,#2459df);
  background: #f5f8ff;
  box-shadow: 0 0 0 2px rgba(36, 89, 223, .1);
}
.latest-studio-scope .h3-prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.latest-studio-scope .h3-prompt-import {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-prompt-import .btn {
  min-width: 96px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.latest-studio-scope .h3-prompt-import .h3-field-hint {
  margin: 0;
}
.latest-studio-scope .h3-header .h3-creation-title {
  font-size: 24px;
}
.latest-studio-scope .h3-studio .h3-inputs > h2,
.latest-studio-scope .h3-studio .h3-results > h2 {
  font-size: 18px;
  font-weight: 700;
}
.latest-studio-scope .h3-step-heading {
  margin: 24px 0 12px;
}
.latest-studio-scope .h3-step-heading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.latest-studio-scope .h3-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf0ff;
  color: var(--brand,#2459df);
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .h3-step-heading p,
.latest-studio-scope .h3-field-hint {
  margin: 6px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs .h3-row > label {
  font-size: 14px;
  font-weight: 600;
}
.latest-studio-scope .h3-inputs select,
.latest-studio-scope .h3-inputs input {
  font-weight: 400;
}
.latest-studio-scope .h3-field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-required-label {
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff0ef;
  color: #c1372d;
  font-size: 12px;
  font-weight: 500;
}
.latest-studio-scope .h3-step-heading + .h3-images {
  margin-top: 12px;
}
.latest-studio-scope .h3-results > h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header .h3-creation-title {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-studio .h3-prompt-check {
  width: auto;
  min-width: 104px;
  padding: 0 14px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 6px;
}
.latest-studio-scope .h3-check-icon {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
}
.latest-studio-scope .h3-action-feedback {
  flex: 0 1 240px;
  min-height: 20px;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-report {
  margin: 16px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface,#fff);
}
.latest-studio-scope .h3-check-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-summary h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.latest-studio-scope .h3-check-summary p {
  margin: 0;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-details {
  max-height: 420px;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 8px;
}
.latest-studio-scope .h3-check-details[hidden] {
  display: none;
}
.latest-studio-scope .h3-check-explanation {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.latest-studio-scope .h3-check-category {
  border: 1px solid var(--line,#dce3ee);
  border-radius: 8px;
  padding: 10px;
}
.latest-studio-scope .h3-check-category > summary {
  font-weight: 600;
}
.latest-studio-scope .h3-check-occurrences {
  max-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
}
.latest-studio-scope .h3-check-occurrences:focus-visible {
  outline: 2px solid var(--brand,#2459df);
  outline-offset: 2px;
}
.latest-studio-scope .h3-check-group > summary {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-count {
  margin-left: 8px;
  color: var(--ink-2,#64748b);
  white-space: nowrap;
}
.latest-studio-scope .h3-check-group ul {
  padding-left: 22px;
}
.latest-studio-scope .h3-check-group li {
  padding: 8px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-group li p {
  margin: 6px 0;
}
.latest-studio-scope .h3-review > details {
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
}
.latest-studio-scope .h3-studio .h3-generate-button {
  width: auto;
  min-width: 120px;
  padding: 0 20px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 8px;
}
.latest-studio-scope .h3-generate-button .machine-creation-spinner {
  border-color: rgba(255, 255, 255, .4);
  border-top-color: currentColor;
}
.latest-studio-scope .h3-studio .h3-generate-button.is-generating {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  opacity: 1;
}
.latest-studio-scope .h3-generate-button.is-generating::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      rgba(255, 255, 255, .2) 50%,
      transparent 80%);
  transform: translateX(-100%);
  animation: latest-h3-generation-shimmer 2.8s ease-in-out infinite;
}
@keyframes latest-h3-generation-shimmer {
  0%, 15% {
    transform: translateX(-100%);
  }
  85%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-generate-button.is-generating::after {
    animation: none;
    display: none;
  }
}
.latest-studio-scope .h3-generation-guidance {
  min-height: 0;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.latest-studio-scope .h3-action-feedback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.latest-studio-scope .h3-analysis-hourglass {
  flex: none;
  font-size: 16px;
  line-height: 20px;
}
.latest-studio-scope .h3-task-progress {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  background: var(--surface,#f8faff);
}
@property --latest-h3-border-angle { syntax:"<angle>";inherits:false;initial-value:0deg }
.latest-studio-scope .h3-task-progress.is-generating {
  position: relative;
  isolation: isolate;
}
.latest-studio-scope .h3-task-progress.is-generating::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(
      from var(--latest-h3-border-angle),
      transparent 0deg 235deg,
      #c4b5fd 275deg,
      #7954ed 305deg,
      #22c8f3 335deg,
      transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(94, 104, 245, .3));
  animation: latest-h3-border-orbit 24s linear infinite;
}
@keyframes latest-h3-border-orbit {
  to {
    --latest-h3-border-angle:360deg;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-task-progress.is-generating::before {
    animation: none;
  }
}
.latest-studio-scope .h3-task-progress-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-task-progress-heading > span:last-child {
  margin-left: auto;
  color: var(--ink-2,#64748b);
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.latest-studio-scope .h3-task-phases li {
  padding: 6px 10px;
  background: var(--bg,#eef2f7);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-task-phases .is-current {
  color: var(--brand,#2459df);
  background: #e8efff;
  font-weight: 600;
}
.latest-studio-scope .h3-task-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.latest-studio-scope .h3-task-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.latest-studio-scope .h3-task-metrics span,
.latest-studio-scope .h3-progress-note {
  color: var(--ink-2,#64748b);
  font-size: 12px;
}
.latest-studio-scope .h3-task-metrics strong {
  font-size: 14px;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.latest-studio-scope .h3-real-progress {
  margin-top: 16px;
}
.latest-studio-scope .h3-real-progress label {
  font-size: 13px;
}
.latest-studio-scope .h3-real-progress progress {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 8px;
  accent-color: var(--brand,#2459df);
}
.latest-studio-scope .h3-progress-note {
  margin: 12px 0 0;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-followup {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-task-followup span {
  font-size: 12px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-result-media video,
.latest-studio-scope .h3-result-media img {
  border-radius: 8px;
}
.latest-studio-scope .h3-result-media p {
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-real-progress .h3-progress-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.latest-studio-scope .h3-progress-track {
  height: 14px;
  margin-top: 12px;
  padding: 2px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #dbe5fa;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      #e8eef8,
      #f3f6fc);
  box-shadow: inset 0 1px 3px rgba(35, 66, 125, .1);
}
.latest-studio-scope .h3-progress-fill {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #3258f5 0%,
      #7954ed 48%,
      #22c8f3 100%);
  box-shadow: 0 0 12px rgba(79, 104, 244, .45), inset 0 1px 1px rgba(255, 255, 255, .55);
  transition: width .55s ease;
}
.latest-studio-scope .h3-progress-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 12px,
      rgba(255, 255, 255, .17) 12px 20px);
  background-size: 44px 100%;
}
.latest-studio-scope .h3-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      transparent 25%,
      rgba(255, 255, 255, .65) 50%,
      transparent 75%);
  transform: translateX(-100%);
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before {
  animation: latest-h3-progress-flow 1.5s linear infinite;
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
  animation: latest-h3-progress-glint 2.6s ease-in-out infinite;
}
.latest-studio-scope .h3-terminal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-heading h2 {
  margin: 0 0 6px;
}
.latest-studio-scope .h3-terminal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #536681;
}
.latest-studio-scope .h3-terminal-output {
  margin-top: 16px;
  padding: 18px 20px;
  max-height: 380px;
  min-height: 160px;
  overflow: auto;
  border: 1px solid #263651;
  border-radius: 10px;
  background: #101827;
  color: #b7e5c3;
  font:
    12px/1.8 Consolas,
    "Cascadia Code",
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 4;
  scrollbar-color: #4c607e #101827;
}
.latest-studio-scope .h3-terminal-output .is-error {
  color: #ff9b9b;
}
.latest-studio-scope .h3-terminal-output .is-warning {
  color: #f2d48b;
}
.latest-studio-scope .h3-terminal-empty {
  color: #8c9bb0;
}
.latest-studio-scope .h3-terminal-section > .h3-field-hint {
  margin-top: 12px;
}
@keyframes latest-h3-progress-flow {
  to {
    background-position: 44px 0;
  }
}
@keyframes latest-h3-progress-glint {
  0%, 10% {
    transform: translateX(-100%);
  }
  90%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-progress-fill {
    transition: none;
  }
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before,
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
    animation: none;
  }
  .latest-studio-scope .h3-progress-fill::after {
    display: none;
  }
}
.latest-studio-scope .h3-final-video {
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line,#dce3ee);
  border-bottom: 1px solid var(--line,#dce3ee);
}
.latest-studio-scope .h3-final-video h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.latest-studio-scope .h3-final-video > p {
  margin: 0 0 18px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-final-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 680px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-final-video-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .h3-machine-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-provider-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.latest-studio-scope .h3-provider-id {
  user-select: text;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-provider-identity > span {
  min-width: 0;
}
.latest-studio-scope .h3-provider-identity [role=status] {
  color: var(--ink-2);
}
.latest-studio-scope .h3-machine-specs {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-advanced-info > p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-creation-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-creation-origin {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.latest-studio-scope .h3-creation-origin .h3-origin-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 1.3em;
  height: 1.3em;
  padding: 0 .12em;
  margin-left: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1em;
  font-weight: inherit;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-task-progress {
  padding: 22px 24px;
  background:
    linear-gradient(
      145deg,
      #fff 55%,
      #f6f8ff);
  box-shadow: 0 3px 16px rgba(26, 53, 110, .035);
}
.latest-studio-scope .h3-task-progress.is-complete {
  border-color: #d4e9e2;
  background:
    linear-gradient(
      125deg,
      #fff 45%,
      #f0faf6);
}
.latest-studio-scope .h3-task-progress-heading > strong {
  font-size: 16px;
  font-weight: 650;
}
.latest-studio-scope .h3-status-emblem {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eaf0ff;
  color: #3560e7;
  font-size: 18px;
}
.latest-studio-scope .h3-status-emblem.is-complete {
  background: #dcf5e9;
  color: #15835c;
}
.latest-studio-scope .h3-task-phases {
  gap: 0;
  flex-wrap: nowrap;
  margin: 24px 0;
  padding: 0 0 22px;
  border-bottom: 1px solid #e6ebf3;
}
.latest-studio-scope .h3-task-phases li {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  padding: 0;
  background: none;
  border-radius: 0;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe6f1;
  margin: 0 14px;
}
.latest-studio-scope .h3-phase-dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #edf1f7;
  color: #8290a7;
  font-size: 12px;
  font-weight: 600;
}
.latest-studio-scope .h3-task-phases li.is-current {
  color: #2459df;
  background: none;
  font-weight: 650;
}
.latest-studio-scope .h3-task-phases .is-current .h3-phase-dot {
  background: #2d5be9;
  color: white;
  box-shadow: 0 0 0 4px #eaf0ff;
}
.latest-studio-scope .h3-task-phases li.is-done {
  color: #326754;
}
.latest-studio-scope .h3-task-phases .is-done .h3-phase-dot {
  background: #e1f3ea;
  color: #16825c;
}
.latest-studio-scope .h3-task-phases .is-done::after {
  background: #bfdece;
}
.latest-studio-scope .h3-task-metrics {
  align-items: start;
  gap: 20px;
}
.latest-studio-scope .h3-task-metrics .h3-current-summary {
  padding: 2px 0;
  gap: 9px;
}
.latest-studio-scope .h3-current-summary > strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-metrics > div > span:first-child {
  font-size: 12px;
  color: #7a879c;
}
.latest-studio-scope .h3-task-metrics .h3-segment-summary {
  position: relative;
  padding: 0 160px 0 20px;
  border-left: 1px solid #e1e8ef;
  min-height: 76px;
  justify-content: center;
}
.latest-studio-scope .h3-task-metrics .h3-segment-count {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
  color: #2459df;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-segment-count small {
  font-size: 14px;
  color: #7a879c;
  font-weight: 400;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #eaf0ff;
  color: #2459df;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, box-shadow .2s;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link:hover {
  background: #dde7ff;
  text-decoration: none;
  box-shadow: 0 3px 10px #2459df15;
}
.latest-studio-scope .h3-produced-link:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
@media (max-width:850px) {
  .latest-studio-scope .h3-task-phases li {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }
  .latest-studio-scope .h3-task-phases li:not(:last-child)::after {
    position: absolute;
    top: 13px;
    left: calc(50% + 21px);
    right: calc(-50% + 21px);
    margin: 0;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding-right: 0;
  }
  .latest-studio-scope .h3-segment-summary .h3-produced-link {
    position: static;
    transform: none;
    align-self: flex-start;
    margin-top: 5px;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-task-progress {
    padding: 18px 14px;
  }
  .latest-studio-scope .h3-task-phases {
    margin: 22px 0 18px;
  }
  .latest-studio-scope .h3-task-phases li {
    font-size: 11px;
  }
  .latest-studio-scope .h3-phase-dot {
    width: 24px;
    height: 24px;
  }
  .latest-studio-scope .h3-task-metrics {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid #e1e8ef;
  }
}
.latest-studio-scope .h3-result-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}
.latest-studio-scope .h3-result-section-heading h3 {
  margin: 0;
}
.latest-studio-scope .h3-result-section-heading .btn {
  white-space: nowrap;
}
.latest-studio-scope .h3-segment-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.latest-studio-scope .h3-segment-actions .btn {
  padding: 7px 10px;
  min-height: 34px;
  font-size: 12px;
}
.latest-studio-scope .h3-segment-regenerate {
  color: #2459df;
  border-color: #cbd9ff;
  background: #f5f8ff;
}
.latest-studio-scope .h3-merge-notice {
  padding: 12px 16px;
  border: 1px solid #f0d9a8;
  border-radius: 9px;
  background: #fff9ed;
  color: #92641a;
  font-size: 13px;
}
.latest-studio-scope .h3-segment-editor {
  width: min(880px, calc(100vw - 32px));
  max-height: 85vh;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #dce3ee;
  border-radius: 16px;
  color: #142b4a;
  background: #fff;
  box-shadow: 0 24px 80px #10254430;
}
.latest-studio-scope .h3-segment-editor::backdrop {
  background: #10254470;
  backdrop-filter: blur(4px);
}
.latest-studio-scope .h3-segment-editor header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .h3-segment-editor h2 {
  font-size: 20px;
  margin: 4px 0 8px;
}
.latest-studio-scope .h3-segment-editor label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}
.latest-studio-scope .h3-segment-editor textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 320px;
  resize: vertical;
  line-height: 1.8;
  font-size: 14px;
  border: 1px solid #ccd8eb;
  border-radius: 10px;
  padding: 14px;
}
.latest-studio-scope .h3-segment-editor footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.latest-studio-scope .h3-editor-error {
  font-size: 13px;
  color: #c13737;
}
.latest-studio-scope .h3-segment-editor textarea:focus {
  outline: 2px solid #bad0ff;
  border-color: #2459df;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-segment-editor {
    padding: 18px;
  }
  .latest-studio-scope .h3-segment-editor textarea {
    min-height: 240px;
  }
  .latest-studio-scope .h3-result-section-heading > .btn {
    width: 100%;
  }
}
.latest-studio-scope .main.main-studio {
  padding-top: 20px;
}
.latest-studio-scope .main-studio .h3-studio {
  padding-top: 0;
}
.latest-studio-scope .h3-header h1 {
  margin-top: 0;
}
.latest-studio-scope .h3-input-lock-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #edf3ff;
  color: #365c9b;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs textarea[readonly] {
  background: #f7f9fc;
  color: #53627a;
  cursor: default;
}
.latest-studio-scope .h3-patient-hint {
  margin: 18px 0 0;
  padding: 11px 14px;
  border-radius: 9px;
  background: #edf3ff;
  color: #4a6393;
  font-size: 13px;
  line-height: 1.8;
}
.latest-studio-scope .h3-check-reasons {
  margin: 12px 0;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-reasons span {
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-2,#64748b);
  transition:
    color .18s,
    border-color .18s,
    background .18s;
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear:not(:disabled):hover {
  color: #c1372d;
  border-color: #f1b8b3;
  background: #fff5f4;
}
.latest-studio-scope .h3-studio .h3-repair-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: #c1372d;
}
.latest-studio-scope .h3-repair-cancel:hover {
  background: #fff2f1;
  border-color: #f1b8b3;
}
.latest-studio-scope .h3-generation-guidance:empty {
  display: none;
}
.latest-studio-scope .h3-review-result.is-success {
  border-color: #c7e6d8;
  background: #f7fcf9;
}
.latest-studio-scope .h3-review-result.is-pending {
  border-color: #cddaff;
  background: #f8faff;
}
.latest-studio-scope .h3-review-verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.latest-studio-scope .h3-review-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff2df;
  color: #a86b12;
  font-size: 16px;
  font-weight: 700;
}
.latest-studio-scope .is-success .h3-review-status-icon {
  background: #e0f3e9;
  color: #23835b;
}
.latest-studio-scope .is-pending .h3-review-status-icon {
  background: #e9efff;
  color: var(--brand,#2459df);
}
.latest-studio-scope .h3-review-result .h3-check-summary p {
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-review-result .h3-check-summary h3 {
  font-size: 15px;
  margin-bottom: 3px;
}
.latest-studio-scope .h3-repair-proposal {
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 12px;
}
.latest-studio-scope .h3-repair-proposal details {
  max-height: 320px;
  overflow: auto;
}
.latest-studio-scope .h3-repair-proposal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.latest-studio-scope .h3-review-result.is-warning {
  border-color: #f0c9c5;
  background: #fffafa;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict p,
.latest-studio-scope .h3-review-result.is-warning .h3-check-reasons,
.latest-studio-scope .h3-review-result.is-warning .h3-check-details {
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-status-icon {
  background: #fee9e7;
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict p {
  color: #1f7a4f;
}
.latest-studio-scope .h3-log-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f1f5ff;
  border: 1px solid #dce5fa;
  color: #28466e;
}
.latest-studio-scope .h3-log-summary p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-log-summary.is-success {
  background: #f3fbf7;
  border-color: #c4e9d7;
  color: #14805b;
}
.latest-studio-scope .h3-log-summary.is-error {
  background: #fff5f5;
  border-color: #f4caca;
  color: #b62b35;
}
.latest-studio-scope .h3-log-summary.is-warning {
  background: #fffbf1;
  border-color: #efdeb0;
  color: #88631b;
}
.latest-studio-scope .h3-log-view-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.latest-studio-scope .h3-log-view-controls [role=group] {
  display: flex;
  gap: 6px;
}
.latest-studio-scope .h3-log-view-controls button[aria-pressed=true] {
  background: #eef3ff;
  border-color: #b5c7fa;
  color: #2459d8;
}
.latest-studio-scope .h3-log-view-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #536681;
  font-size: 13px;
}
.latest-studio-scope .h3-log-readable {
  max-height: 300px;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  padding: 4px 16px;
}
.latest-studio-scope .h3-log-readable ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.latest-studio-scope .h3-log-readable li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f6;
  font-size: 13px;
  line-height: 1.7;
  color: #344b68;
}
.latest-studio-scope .h3-log-readable li:last-child {
  border-bottom: 0;
}
.latest-studio-scope .h3-log-readable time {
  color: #71829a;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.latest-studio-scope .h3-log-readable small {
  color: #71829a;
}
.latest-studio-scope .h3-log-readable .is-warning {
  color: #88631b;
}
.latest-studio-scope .h3-log-readable .is-error {
  color: #b62b35;
}
.latest-studio-scope .h3-log-readable .is-success {
  color: #14805b;
}
.latest-studio-scope .h3-terminal-output[hidden] {
  display: none;
}
.latest-studio-scope .h3-workspace-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-top: 24px;
  padding: 10px 18px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 14px 14px 0 0;
  background:
    linear-gradient(
      110deg,
      #f5f8ff,
      var(--surface,#fff) 75%);
  width: 100%;
  box-sizing: border-box;
}
.latest-studio-scope .h3-workspace-tabs [role=tab] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  appearance: none;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  margin-bottom: -1px;
  background: transparent;
  color: #536681;
  padding: 14px 28px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background .2s,
    color .2s,
    box-shadow .2s,
    border-color .2s;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:hover {
  color: #2459df;
  background: #eaf1ff;
  box-shadow: inset 0 3px 12px #3775f50c;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true] {
  background:
    linear-gradient(
      180deg,
      #edf4ff 0%,
      var(--surface,#fff) 85%);
  border-color: var(--line,#dce3ee);
  color: #2459df;
  box-shadow: 0 -4px 14px #497cf519, inset 0 2px 0 #578bff;
  text-shadow: 0 0 14px #3775f52b;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 25%,
      #a9ceff40 50%,
      transparent 75%);
  transform: translateX(-120%);
  animation: latest-h3-tab-shine 4s ease-in-out infinite;
  pointer-events: none;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
.latest-studio-scope .h3-workspace-panel[hidden] {
  display: none !important;
}
.latest-studio-scope .h3-sync-status {
  margin: 12px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 12px;
  line-height: 1.7;
}
@keyframes latest-h3-tab-shine {
  0%, 25% {
    transform: translateX(-120%);
  }
  65%, 100% {
    transform: translateX(120%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    transition: none;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
    animation: none;
    transform: none;
    opacity: .3;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-workspace-tabs {
    padding: 8px 8px 0;
    gap: 0;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    flex: 1;
    padding: 13px 8px;
    font-size: 13px;
  }
}
.latest-studio-scope .h3-workspace-panel > .card {
  margin-top: 0;
  padding: 24px;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}
.latest-studio-scope .h3-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-studio .h3-panel-heading h2 {
  margin: .83em 0;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  color: inherit;
}
.latest-studio-scope .h3-panel-heading h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
.latest-studio-scope .h3-panel-heading .h3-terminal-actions {
  margin-top: 10px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-workspace-panel > .card {
    padding: 16px;
  }
}
.latest-studio-scope #studio-generation {
  scroll-margin-top: 130px;
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-workbench {
    scroll-behavior: auto;
  }
}
.latest-studio-scope .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters {
  margin: 24px 0;
  padding: 20px;
  border: 1px dashed #bdcde4;
  background: #f6f9fe;
  border-radius: 12px;
}
.latest-studio-scope .latest-parameters > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-parameters p {
  font-size: 13px;
  line-height: 1.8;
  color: #64748b;
  margin: 10px 0 0;
}
.latest-studio-scope .latest-pending-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 20px;
  background: #edf2fa;
  color: #526a90;
  font-size: 12px;
}
.latest-studio-scope .latest-pending-selection {
  font-size: 13px;
  color: #64748b;
  padding: 10px 0;
}
.latest-studio-scope .latest-workbench .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.latest-studio-scope .latest-parameter-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .latest-parameter-grid input,
.latest-studio-scope .latest-parameter-grid select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  background: white;
  border: 1px solid #d5dfef;
  border-radius: 8px;
  color: #18365c;
  font: inherit;
  font-weight: 400;
}
.latest-studio-scope .latest-parameter-grid input:focus,
.latest-studio-scope .latest-parameter-grid select:focus {
  outline: 2px solid #bdd0ff;
  outline-offset: 1px;
  border-color: #5784f5;
}
@media (max-width:900px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-workbench .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .h3-header {
  gap: 16px;
}
.latest-studio-scope .h3-header > div {
  min-width: 0;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .h3-header {
    align-items: flex-start;
  }
  .latest-studio-scope .h3-header-actions {
    flex-wrap: wrap;
  }
  .latest-studio-scope .h3-studio h1 {
    font-size: 22px;
  }
}
@media (max-width:380px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .latest-connection {
  font-size: 13px;
  color: #64748b;
  padding: 9px 13px;
  border-radius: 20px;
  background: #eef2f7;
}
.latest-studio-scope .latest-connection.is-ready {
  color: #13795b;
  background: #e8f8f1;
}
.latest-studio-scope .latest-message {
  padding: 14px 18px;
  border: 1px solid #d5e3ff;
  background: #f0f6ff;
  color: #31528a;
  border-radius: 10px;
  margin: 14px 0;
  line-height: 1.7;
}
.latest-studio-scope .latest-message.is-error {
  background: #fff4f3;
  color: #b1372f;
  border-color: #f2cfca;
}
.latest-studio-scope .latest-message button {
  float: right;
  border: 0;
  background: none;
  color: inherit;
  font-size: 20px;
}
.latest-studio-scope .latest-section-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
}
.latest-studio-scope .latest-section-label span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-reference-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #fafcff;
}
.latest-studio-scope .latest-reference-section > summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
}
.latest-studio-scope .latest-reference-section > summary span {
  float: right;
  font-size: 12px;
  font-weight: 400;
  color: #6b7e96;
}
.latest-studio-scope .latest-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .latest-media-slot {
  padding: 16px;
  border: 1px solid #dce5f0;
  background: #fff;
  border-radius: 12px;
  min-width: 0;
}
.latest-studio-scope .latest-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 125px;
  gap: 10px;
  margin-top: 12px;
  background: #f5f8fd;
  border: 1px dashed #d5dfef;
  border-radius: 9px;
}
.latest-studio-scope .latest-media-placeholder > span {
  font-size: 26px;
  color: #416fea;
}
.latest-studio-scope .latest-media-placeholder p {
  margin: 0 8px;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .latest-media-placeholder small {
  font-size: 11px;
  color: #8290a5;
}
.latest-studio-scope .latest-upload-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #3561d7;
  padding: 9px 0;
}
.latest-studio-scope .latest-upload-status .machine-creation-spinner {
  width: 15px;
  height: 15px;
  display: inline-block;
}
.latest-studio-scope .latest-image-uploading .h3-image-dropzone {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #e5eeff,
      #f1f6ff);
  background-size: 200% 100%;
  animation: latest-upload-glow 2s linear infinite;
}
.latest-studio-scope .latest-settings-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.latest-studio-scope .latest-settings-main > label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.latest-studio-scope .latest-settings-main select {
  min-width: 115px;
}
.latest-studio-scope .latest-settings-main .latest-martial {
  margin-left: auto;
  padding: 14px 18px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #f8faff;
}
.latest-studio-scope .latest-martial input {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 15px;
  background: #c7d2e2;
  border: 0;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}
.latest-studio-scope .latest-martial input:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.latest-studio-scope .latest-martial input:checked {
  background: #2b5ef0;
}
.latest-studio-scope .latest-martial input:checked:after {
  transform: translateX(16px);
}
.latest-studio-scope .latest-martial strong,
.latest-studio-scope .latest-martial small {
  display: block;
}
.latest-studio-scope .latest-martial small {
  font-size: 12px;
  color: #6b7e96;
  margin-top: 5px;
}
.latest-studio-scope .latest-advanced {
  padding: 18px;
  margin-top: 20px;
  background: #f7f9fe;
  border: 1px dashed #cbd8ea;
  border-radius: 10px;
}
.latest-studio-scope .latest-advanced summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.latest-studio-scope .latest-advanced .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}
.latest-studio-scope .latest-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.latest-studio-scope .latest-range label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.latest-studio-scope .latest-range input {
  width: 78px;
}
.latest-studio-scope .latest-connected input:not([type=checkbox]):not([type=file]),
.latest-studio-scope .latest-connected select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d4deed;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
}
.latest-studio-scope .latest-connected textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #d4deed;
  border-radius: 10px;
  padding: 15px;
  line-height: 1.8;
  font: 13px/1.8 monospace;
  margin-top: 12px;
  min-height: 240px;
}
.latest-studio-scope .latest-connected input:focus-visible,
.latest-studio-scope .latest-connected select:focus-visible,
.latest-studio-scope .latest-connected textarea:focus-visible {
  outline: 2px solid #b9d0ff;
  outline-offset: 2px;
}
.latest-studio-scope .latest-connected input:disabled,
.latest-studio-scope .latest-connected select:disabled,
.latest-studio-scope .latest-connected textarea:disabled {
  background: #f2f5fa;
}
.latest-studio-scope .latest-save-settings {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-save-settings label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
  max-width: 230px;
}
.latest-studio-scope .latest-generate-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-generate-actions > .btn-primary {
  min-width: 230px;
  min-height: 44px;
}
.latest-studio-scope .latest-generate-actions > span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.latest-studio-scope .latest-result-stamp {
  padding: 6px 12px;
  color: #a66420;
  border: 2px solid currentColor;
  border-radius: 5px;
  transform: rotate(-5deg);
  font-size: 19px;
  font-weight: 750;
  white-space: nowrap;
}
.latest-studio-scope .latest-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}
.latest-studio-scope .latest-segment-list {
  border: 1px solid #dde5f0;
  border-radius: 11px;
  margin-top: 20px;
  overflow: hidden;
}
.latest-studio-scope .latest-segment-list article {
  display: grid;
  grid-template-columns: 100px 90px minmax(90px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 16px;
  box-sizing: border-box;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
}
.latest-studio-scope .latest-segment-list article:last-child {
  border-bottom: 0;
}
.latest-studio-scope .latest-segment-list article > div {
  display: flex;
  gap: 8px;
}
.latest-studio-scope .latest-segment-list .is-ready {
  color: #07845e;
}
.latest-studio-scope .latest-empty {
  padding: 60px 20px;
  text-align: center;
  color: #7d8da3;
  font-size: 14px;
}
.latest-studio-scope .latest-history {
  margin: 20px 0;
}
.latest-studio-scope .latest-history .btn {
  margin: 10px 8px 0 0;
  font-size: 12px;
}
.latest-studio-scope .latest-log-list {
  max-height: 540px;
  overflow: auto;
  margin-top: 24px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  padding: 6px 16px;
}
.latest-studio-scope .latest-log-list > div {
  display: flex;
  gap: 22px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-log-list time {
  color: #7d8da3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@keyframes latest-upload-glow {
  to {
    background-position: -200% 0;
  }
}
@media (max-width:900px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    margin-left: 0;
  }
  .latest-studio-scope .latest-segment-list article {
    grid-template-columns: 70px 60px 1fr;
  }
  .latest-studio-scope .latest-segment-list article > div {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-media-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-reference-section {
    padding: 14px;
  }
  .latest-studio-scope .latest-save-settings {
    display: block;
  }
  .latest-studio-scope .latest-save-settings label {
    margin: 12px 0;
  }
  .latest-studio-scope .latest-range {
    gap: 8px;
  }
  .latest-studio-scope .latest-range input {
    width: 62px;
  }
  .latest-studio-scope .latest-generate-actions > .btn-primary {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-results-heading {
    align-items: flex-start;
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-settings-main > label {
    flex: 1;
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
    width: 100%;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-image-uploading .h3-image-dropzone {
    animation: none;
  }
}
.latest-studio-scope .latest-connected .h3-task-progress {
  scroll-margin-top: 135px;
}
.latest-studio-scope .latest-workbench .h3-upload-card {
  min-height: 294px;
  height: 100%;
  box-sizing: border-box;
}
.latest-studio-scope .latest-workbench .h3-upload-heading {
  min-height: 22px;
}
.latest-studio-scope .latest-workbench .h3-upload-status {
  margin-top: 10px;
}
.latest-studio-scope .latest-media-saved {
  display: block;
  color: #07876a;
  font-size: 12px;
  margin-top: 10px;
}
.latest-studio-scope .latest-upload-retry {
  margin-top: 8px;
}
.latest-studio-scope .latest-media-slot .h3-upload-track {
  display: inline-block;
  width: 100px;
}
.latest-studio-scope .latest-media-slot .latest-media-placeholder {
  min-height: 140px;
}
.latest-studio-scope .latest-settings-main .latest-martial-card {
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  background:
    linear-gradient(
      135deg,
      #fafcff,
      #f3f7ff);
  border-color: #dce6f6;
  border-radius: 14px;
  box-shadow: 0 2px 7px #203d6910;
  transition:
    border-color .2s,
    box-shadow .2s,
    background .2s;
}
.latest-studio-scope .latest-martial-card:hover:not(.is-locked) {
  border-color: #9db9ff;
  box-shadow: 0 4px 14px #285be91c;
}
.latest-studio-scope .latest-martial-card:focus-within {
  outline: 2px solid #779cff;
  outline-offset: 3px;
}
.latest-studio-scope .latest-settings-main .latest-martial-card.is-enabled {
  background:
    linear-gradient(
      135deg,
      #edf4ff,
      #f5f1ff);
  border-color: #9ab8ff;
  box-shadow: 0 3px 12px #406bf21a;
}
.latest-studio-scope .latest-martial-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eaf0fb;
  color: #7c90b1;
  transition: color .2s, background .2s;
}
.latest-studio-scope .is-enabled .latest-martial-emblem {
  color: #3664eb;
  background: #dfe9ff;
}
.latest-studio-scope .latest-martial-copy {
  min-width: 0;
}
.latest-studio-scope .latest-martial-copy strong {
  font-size: 14px;
  line-height: 1.5;
  color: #203552;
}
.latest-studio-scope .latest-martial-copy small {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 3px;
}
.latest-studio-scope .latest-martial-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  flex-shrink: 0;
}
.latest-studio-scope .latest-martial-status {
  font-size: 11px;
  white-space: nowrap;
  color: #8190a6;
}
.latest-studio-scope .is-enabled .latest-martial-status {
  color: #3966dc;
}
.latest-studio-scope .latest-martial-card input {
  flex-shrink: 0;
  margin: 0;
  width: 42px;
  height: 24px;
  box-shadow: inset 0 1px 3px #122e4620;
}
.latest-studio-scope .latest-martial-card input:after {
  width: 18px;
  height: 18px;
  box-shadow: 0 1px 3px #142c4b33;
}
.latest-studio-scope .latest-martial-card input:checked:after {
  transform: translateX(18px);
}
.latest-studio-scope .latest-martial-card.is-locked {
  cursor: not-allowed;
  opacity: .65;
}
.latest-studio-scope .latest-martial-card input:disabled {
  cursor: not-allowed;
}
@media (max-width:480px) {
  .latest-studio-scope .latest-settings-main .latest-martial-card {
    padding: 14px 12px;
    gap: 9px;
  }
  .latest-studio-scope .latest-martial-emblem {
    width: 30px;
    height: 34px;
  }
  .latest-studio-scope .latest-martial-control {
    margin-left: auto;
    gap: 4px;
  }
  .latest-studio-scope .latest-martial-status {
    display: none;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-martial-card,
  .latest-studio-scope .latest-martial-card input,
  .latest-studio-scope .latest-martial-card input:after,
  .latest-studio-scope .latest-martial-emblem {
    transition: none;
  }
}
.latest-studio-scope .latest-prompt-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.latest-studio-scope .latest-prompt-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
}
.latest-studio-scope .latest-prompt-actions .latest-prompt-clear {
  min-width: 38px;
  width: 38px;
  padding: 0;
  color: #7d8ba1;
}
.latest-studio-scope .latest-prompt-clear:not(:disabled):hover {
  color: #d04443;
  background: #fff2f1;
  border-color: #f2b9b5;
}
.latest-studio-scope .latest-prompt-copy:not(:disabled):hover {
  color: #2b5fe7;
  background: #f0f5ff;
  border-color: #b9ceff;
}

/* apps/web/src/pages/latest/latest-studio.css */
.latest-studio-scope .h3-studio {
  max-width: 1200px;
  margin: auto;
  padding: 28px 24px 60px;
  color: #102544;
}
.latest-studio-scope .h3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-header h1 {
  font-size: 26px;
}
.latest-studio-scope .h3-note {
  color: #64748b;
  font-size: 13px;
}
.latest-studio-scope .h3-inputs,
.latest-studio-scope .h3-results {
  padding: 24px;
  margin-top: 20px;
}
.latest-studio-scope .h3-studio h2 {
  font-size: 19px;
}
.latest-studio-scope .h3-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-studio select {
  padding: 8px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: white;
}
.latest-studio-scope .h3-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-images > div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}
.latest-studio-scope .h3-images strong {
  display: block;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-images img,
.latest-studio-scope .h3-placeholder {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}
.latest-studio-scope .h3-placeholder {
  display: grid;
  place-items: center;
  color: #94a3b8;
}
.latest-studio-scope .h3-studio textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 14px;
  line-height: 1.6;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  resize: vertical;
  font-family: inherit;
}
.latest-studio-scope .h3-review {
  padding: 16px;
  background: #f1f5ff;
  border-radius: 10px;
}
.latest-studio-scope .h3-studio pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.latest-studio-scope .h3-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-result-grid img,
.latest-studio-scope .h3-result-grid video {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-studio details {
  margin: 14px 0;
}
.latest-studio-scope .h3-studio summary {
  cursor: pointer;
}
.latest-studio-scope .h3-studio .alert {
  margin-top: 14px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, 1fr);
  }
  .latest-studio-scope .h3-studio {
    padding: 16px;
  }
  .latest-studio-scope .h3-inputs,
  .latest-studio-scope .h3-results {
    padding: 16px;
  }
  .latest-studio-scope .h3-header h1 {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-image-dropzone {
  border: 1px dashed #dce3ec;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  height: 140px;
  box-sizing: border-box;
  overflow: hidden;
}
.latest-studio-scope .h3-image-dropzone img,
.latest-studio-scope .h3-image-dropzone .h3-placeholder {
  display: grid;
  height: 100%;
  border-radius: 9px;
}
.latest-studio-scope .h3-image-dropzone .h3-image-help {
  text-align: center;
  margin: 0;
  padding: 8px;
  line-height: 1.8;
}
.latest-studio-scope .h3-image-dropzone:focus,
.latest-studio-scope .h3-image-dropzone.is-dragging {
  border-color: var(--brand,#2459df);
  background: var(--surface,#f1f5ff);
}
.latest-studio-scope .h3-image-dropzone[aria-disabled=true] {
  cursor: default;
  opacity: .7;
}
.latest-studio-scope .h3-image-dropzone[draggable=true] {
  cursor: grab;
  transition:
    border-color .18s,
    box-shadow .18s,
    opacity .18s;
}
.latest-studio-scope .h3-image-dropzone[draggable=true]:active {
  cursor: grabbing;
}
.latest-studio-scope .h3-image-dropzone.is-moving {
  opacity: .5;
}
.latest-studio-scope .h3-image-dropzone.is-dragging {
  box-shadow: 0 0 0 3px rgba(36, 89, 223, .13);
}
.latest-studio-scope .h3-image-help {
  display: block;
  color: var(--ink-3,#64748b);
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
}
.latest-studio-scope .h3-image-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-image-slot > small {
  display: block;
  line-height: 1.5;
}
.latest-studio-scope .h3-workspace {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.latest-studio-scope .h3-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}
.latest-studio-scope .h3-mode-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .h3-mode-control select {
  height: 40px;
  min-width: 128px;
  font-weight: 400;
}
.latest-studio-scope .h3-header-actions > .btn {
  min-height: 40px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .latest-studio-scope .h3-mode-control select {
    min-width: 110px;
  }
}
.latest-studio-scope .h3-task-metrics .h3-segment-remaining {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-produced-link {
  font-size: 13px;
  color: var(--brand,#2459df);
  text-decoration: none;
}
.latest-studio-scope .h3-produced-link:hover {
  text-decoration: underline;
}
.latest-studio-scope #studio-results {
  scroll-margin-top: 100px;
}
.latest-studio-scope .h3-stop-dialog {
  border: 0;
  margin: auto;
  color: var(--ink,#102544);
}
.latest-studio-scope .h3-stop-dialog:not([open]) {
  display: none;
}
.latest-studio-scope .h3-stop-dialog::backdrop {
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(3px);
}
.latest-studio-scope .h3-prompt-editor.is-dragging textarea {
  border-color: var(--brand,#2459df);
  background: #f5f8ff;
  box-shadow: 0 0 0 2px rgba(36, 89, 223, .1);
}
.latest-studio-scope .h3-prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.latest-studio-scope .h3-prompt-import {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-prompt-import .btn {
  min-width: 96px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.latest-studio-scope .h3-prompt-import .h3-field-hint {
  margin: 0;
}
.latest-studio-scope .h3-header .h3-creation-title {
  font-size: 24px;
}
.latest-studio-scope .h3-studio .h3-inputs > h2,
.latest-studio-scope .h3-studio .h3-results > h2 {
  font-size: 18px;
  font-weight: 700;
}
.latest-studio-scope .h3-step-heading {
  margin: 24px 0 12px;
}
.latest-studio-scope .h3-step-heading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.latest-studio-scope .h3-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf0ff;
  color: var(--brand,#2459df);
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .h3-step-heading p,
.latest-studio-scope .h3-field-hint {
  margin: 6px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs .h3-row > label {
  font-size: 14px;
  font-weight: 600;
}
.latest-studio-scope .h3-inputs select,
.latest-studio-scope .h3-inputs input {
  font-weight: 400;
}
.latest-studio-scope .h3-field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-required-label {
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff0ef;
  color: #c1372d;
  font-size: 12px;
  font-weight: 500;
}
.latest-studio-scope .h3-step-heading + .h3-images {
  margin-top: 12px;
}
.latest-studio-scope .h3-results > h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header .h3-creation-title {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-studio .h3-prompt-check {
  width: auto;
  min-width: 104px;
  padding: 0 14px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 6px;
}
.latest-studio-scope .h3-check-icon {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
}
.latest-studio-scope .h3-action-feedback {
  flex: 0 1 240px;
  min-height: 20px;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-report {
  margin: 16px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface,#fff);
}
.latest-studio-scope .h3-check-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-summary h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.latest-studio-scope .h3-check-summary p {
  margin: 0;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-details {
  max-height: 420px;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 8px;
}
.latest-studio-scope .h3-check-details[hidden] {
  display: none;
}
.latest-studio-scope .h3-check-explanation {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.latest-studio-scope .h3-check-category {
  border: 1px solid var(--line,#dce3ee);
  border-radius: 8px;
  padding: 10px;
}
.latest-studio-scope .h3-check-category > summary {
  font-weight: 600;
}
.latest-studio-scope .h3-check-occurrences {
  max-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
}
.latest-studio-scope .h3-check-occurrences:focus-visible {
  outline: 2px solid var(--brand,#2459df);
  outline-offset: 2px;
}
.latest-studio-scope .h3-check-group > summary {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-count {
  margin-left: 8px;
  color: var(--ink-2,#64748b);
  white-space: nowrap;
}
.latest-studio-scope .h3-check-group ul {
  padding-left: 22px;
}
.latest-studio-scope .h3-check-group li {
  padding: 8px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-group li p {
  margin: 6px 0;
}
.latest-studio-scope .h3-review > details {
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
}
.latest-studio-scope .h3-studio .h3-generate-button {
  width: auto;
  min-width: 120px;
  padding: 0 20px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 8px;
}
.latest-studio-scope .h3-generate-button .machine-creation-spinner {
  border-color: rgba(255, 255, 255, .4);
  border-top-color: currentColor;
}
.latest-studio-scope .h3-studio .h3-generate-button.is-generating {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  opacity: 1;
}
.latest-studio-scope .h3-generate-button.is-generating::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      rgba(255, 255, 255, .2) 50%,
      transparent 80%);
  transform: translateX(-100%);
  animation: latest-h3-generation-shimmer 2.8s ease-in-out infinite;
}
@keyframes latest-h3-generation-shimmer {
  0%, 15% {
    transform: translateX(-100%);
  }
  85%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-generate-button.is-generating::after {
    animation: none;
    display: none;
  }
}
.latest-studio-scope .h3-generation-guidance {
  min-height: 0;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.latest-studio-scope .h3-action-feedback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.latest-studio-scope .h3-analysis-hourglass {
  flex: none;
  font-size: 16px;
  line-height: 20px;
}
.latest-studio-scope .h3-task-progress {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  background: var(--surface,#f8faff);
}
@property --latest-h3-border-angle { syntax:"<angle>";inherits:false;initial-value:0deg }
.latest-studio-scope .h3-task-progress.is-generating {
  position: relative;
  isolation: isolate;
}
.latest-studio-scope .h3-task-progress.is-generating::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(
      from var(--latest-h3-border-angle),
      transparent 0deg 235deg,
      #c4b5fd 275deg,
      #7954ed 305deg,
      #22c8f3 335deg,
      transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(94, 104, 245, .3));
  animation: latest-h3-border-orbit 24s linear infinite;
}
@keyframes latest-h3-border-orbit {
  to {
    --latest-h3-border-angle:360deg;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-task-progress.is-generating::before {
    animation: none;
  }
}
.latest-studio-scope .h3-task-progress-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-task-progress-heading > span:last-child {
  margin-left: auto;
  color: var(--ink-2,#64748b);
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.latest-studio-scope .h3-task-phases li {
  padding: 6px 10px;
  background: var(--bg,#eef2f7);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-task-phases .is-current {
  color: var(--brand,#2459df);
  background: #e8efff;
  font-weight: 600;
}
.latest-studio-scope .h3-task-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.latest-studio-scope .h3-task-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.latest-studio-scope .h3-task-metrics span,
.latest-studio-scope .h3-progress-note {
  color: var(--ink-2,#64748b);
  font-size: 12px;
}
.latest-studio-scope .h3-task-metrics strong {
  font-size: 14px;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.latest-studio-scope .h3-real-progress {
  margin-top: 16px;
}
.latest-studio-scope .h3-real-progress label {
  font-size: 13px;
}
.latest-studio-scope .h3-real-progress progress {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 8px;
  accent-color: var(--brand,#2459df);
}
.latest-studio-scope .h3-progress-note {
  margin: 12px 0 0;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-followup {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-task-followup span {
  font-size: 12px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-result-media video,
.latest-studio-scope .h3-result-media img {
  border-radius: 8px;
}
.latest-studio-scope .h3-result-media p {
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-real-progress .h3-progress-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.latest-studio-scope .h3-progress-track {
  height: 14px;
  margin-top: 12px;
  padding: 2px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #dbe5fa;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      #e8eef8,
      #f3f6fc);
  box-shadow: inset 0 1px 3px rgba(35, 66, 125, .1);
}
.latest-studio-scope .h3-progress-fill {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #3258f5 0%,
      #7954ed 48%,
      #22c8f3 100%);
  box-shadow: 0 0 12px rgba(79, 104, 244, .45), inset 0 1px 1px rgba(255, 255, 255, .55);
  transition: width .55s ease;
}
.latest-studio-scope .h3-progress-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 12px,
      rgba(255, 255, 255, .17) 12px 20px);
  background-size: 44px 100%;
}
.latest-studio-scope .h3-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      transparent 25%,
      rgba(255, 255, 255, .65) 50%,
      transparent 75%);
  transform: translateX(-100%);
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before {
  animation: latest-h3-progress-flow 1.5s linear infinite;
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
  animation: latest-h3-progress-glint 2.6s ease-in-out infinite;
}
.latest-studio-scope .h3-terminal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-heading h2 {
  margin: 0 0 6px;
}
.latest-studio-scope .h3-terminal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #536681;
}
.latest-studio-scope .h3-terminal-output {
  margin-top: 16px;
  padding: 18px 20px;
  max-height: 380px;
  min-height: 160px;
  overflow: auto;
  border: 1px solid #263651;
  border-radius: 10px;
  background: #101827;
  color: #b7e5c3;
  font:
    12px/1.8 Consolas,
    "Cascadia Code",
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 4;
  scrollbar-color: #4c607e #101827;
}
.latest-studio-scope .h3-terminal-output .is-error {
  color: #ff9b9b;
}
.latest-studio-scope .h3-terminal-output .is-warning {
  color: #f2d48b;
}
.latest-studio-scope .h3-terminal-empty {
  color: #8c9bb0;
}
.latest-studio-scope .h3-terminal-section > .h3-field-hint {
  margin-top: 12px;
}
@keyframes latest-h3-progress-flow {
  to {
    background-position: 44px 0;
  }
}
@keyframes latest-h3-progress-glint {
  0%, 10% {
    transform: translateX(-100%);
  }
  90%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-progress-fill {
    transition: none;
  }
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before,
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
    animation: none;
  }
  .latest-studio-scope .h3-progress-fill::after {
    display: none;
  }
}
.latest-studio-scope .h3-final-video {
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line,#dce3ee);
  border-bottom: 1px solid var(--line,#dce3ee);
}
.latest-studio-scope .h3-final-video h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.latest-studio-scope .h3-final-video > p {
  margin: 0 0 18px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-final-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 680px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-final-video-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .h3-machine-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-provider-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.latest-studio-scope .h3-provider-id {
  user-select: text;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-provider-identity > span {
  min-width: 0;
}
.latest-studio-scope .h3-provider-identity [role=status] {
  color: var(--ink-2);
}
.latest-studio-scope .h3-machine-specs {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-advanced-info > p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-creation-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-creation-origin {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.latest-studio-scope .h3-creation-origin .h3-origin-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 1.3em;
  height: 1.3em;
  padding: 0 .12em;
  margin-left: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1em;
  font-weight: inherit;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-task-progress {
  padding: 22px 24px;
  background:
    linear-gradient(
      145deg,
      #fff 55%,
      #f6f8ff);
  box-shadow: 0 3px 16px rgba(26, 53, 110, .035);
}
.latest-studio-scope .h3-task-progress.is-complete {
  border-color: #d4e9e2;
  background:
    linear-gradient(
      125deg,
      #fff 45%,
      #f0faf6);
}
.latest-studio-scope .h3-task-progress-heading > strong {
  font-size: 16px;
  font-weight: 650;
}
.latest-studio-scope .h3-status-emblem {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eaf0ff;
  color: #3560e7;
  font-size: 18px;
}
.latest-studio-scope .h3-status-emblem.is-complete {
  background: #dcf5e9;
  color: #15835c;
}
.latest-studio-scope .h3-task-phases {
  gap: 0;
  flex-wrap: nowrap;
  margin: 24px 0;
  padding: 0 0 22px;
  border-bottom: 1px solid #e6ebf3;
}
.latest-studio-scope .h3-task-phases li {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  padding: 0;
  background: none;
  border-radius: 0;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe6f1;
  margin: 0 14px;
}
.latest-studio-scope .h3-phase-dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #edf1f7;
  color: #8290a7;
  font-size: 12px;
  font-weight: 600;
}
.latest-studio-scope .h3-task-phases li.is-current {
  color: #2459df;
  background: none;
  font-weight: 650;
}
.latest-studio-scope .h3-task-phases .is-current .h3-phase-dot {
  background: #2d5be9;
  color: white;
  box-shadow: 0 0 0 4px #eaf0ff;
}
.latest-studio-scope .h3-task-phases li.is-done {
  color: #326754;
}
.latest-studio-scope .h3-task-phases .is-done .h3-phase-dot {
  background: #e1f3ea;
  color: #16825c;
}
.latest-studio-scope .h3-task-phases .is-done::after {
  background: #bfdece;
}
.latest-studio-scope .h3-task-metrics {
  align-items: start;
  gap: 20px;
}
.latest-studio-scope .h3-task-metrics .h3-current-summary {
  padding: 2px 0;
  gap: 9px;
}
.latest-studio-scope .h3-current-summary > strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-metrics > div > span:first-child {
  font-size: 12px;
  color: #7a879c;
}
.latest-studio-scope .h3-task-metrics .h3-segment-summary {
  position: relative;
  padding: 0 160px 0 20px;
  border-left: 1px solid #e1e8ef;
  min-height: 76px;
  justify-content: center;
}
.latest-studio-scope .h3-task-metrics .h3-segment-count {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
  color: #2459df;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-segment-count small {
  font-size: 14px;
  color: #7a879c;
  font-weight: 400;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #eaf0ff;
  color: #2459df;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, box-shadow .2s;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link:hover {
  background: #dde7ff;
  text-decoration: none;
  box-shadow: 0 3px 10px #2459df15;
}
.latest-studio-scope .h3-produced-link:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
@media (max-width:850px) {
  .latest-studio-scope .h3-task-phases li {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }
  .latest-studio-scope .h3-task-phases li:not(:last-child)::after {
    position: absolute;
    top: 13px;
    left: calc(50% + 21px);
    right: calc(-50% + 21px);
    margin: 0;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding-right: 0;
  }
  .latest-studio-scope .h3-segment-summary .h3-produced-link {
    position: static;
    transform: none;
    align-self: flex-start;
    margin-top: 5px;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-task-progress {
    padding: 18px 14px;
  }
  .latest-studio-scope .h3-task-phases {
    margin: 22px 0 18px;
  }
  .latest-studio-scope .h3-task-phases li {
    font-size: 11px;
  }
  .latest-studio-scope .h3-phase-dot {
    width: 24px;
    height: 24px;
  }
  .latest-studio-scope .h3-task-metrics {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid #e1e8ef;
  }
}
.latest-studio-scope .h3-result-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}
.latest-studio-scope .h3-result-section-heading h3 {
  margin: 0;
}
.latest-studio-scope .h3-result-section-heading .btn {
  white-space: nowrap;
}
.latest-studio-scope .h3-segment-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.latest-studio-scope .h3-segment-actions .btn {
  padding: 7px 10px;
  min-height: 34px;
  font-size: 12px;
}
.latest-studio-scope .h3-segment-regenerate {
  color: #2459df;
  border-color: #cbd9ff;
  background: #f5f8ff;
}
.latest-studio-scope .h3-merge-notice {
  padding: 12px 16px;
  border: 1px solid #f0d9a8;
  border-radius: 9px;
  background: #fff9ed;
  color: #92641a;
  font-size: 13px;
}
.latest-studio-scope .h3-segment-editor {
  width: min(880px, calc(100vw - 32px));
  max-height: 85vh;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #dce3ee;
  border-radius: 16px;
  color: #142b4a;
  background: #fff;
  box-shadow: 0 24px 80px #10254430;
}
.latest-studio-scope .h3-segment-editor::backdrop {
  background: #10254470;
  backdrop-filter: blur(4px);
}
.latest-studio-scope .h3-segment-editor header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .h3-segment-editor h2 {
  font-size: 20px;
  margin: 4px 0 8px;
}
.latest-studio-scope .h3-segment-editor label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}
.latest-studio-scope .h3-segment-editor textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 320px;
  resize: vertical;
  line-height: 1.8;
  font-size: 14px;
  border: 1px solid #ccd8eb;
  border-radius: 10px;
  padding: 14px;
}
.latest-studio-scope .h3-segment-editor footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.latest-studio-scope .h3-editor-error {
  font-size: 13px;
  color: #c13737;
}
.latest-studio-scope .h3-segment-editor textarea:focus {
  outline: 2px solid #bad0ff;
  border-color: #2459df;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-segment-editor {
    padding: 18px;
  }
  .latest-studio-scope .h3-segment-editor textarea {
    min-height: 240px;
  }
  .latest-studio-scope .h3-result-section-heading > .btn {
    width: 100%;
  }
}
.latest-studio-scope .main.main-studio {
  padding-top: 20px;
}
.latest-studio-scope .main-studio .h3-studio {
  padding-top: 0;
}
.latest-studio-scope .h3-header h1 {
  margin-top: 0;
}
.latest-studio-scope .h3-input-lock-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #edf3ff;
  color: #365c9b;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs textarea[readonly] {
  background: #f7f9fc;
  color: #53627a;
  cursor: default;
}
.latest-studio-scope .h3-patient-hint {
  margin: 18px 0 0;
  padding: 11px 14px;
  border-radius: 9px;
  background: #edf3ff;
  color: #4a6393;
  font-size: 13px;
  line-height: 1.8;
}
.latest-studio-scope .h3-check-reasons {
  margin: 12px 0;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-reasons span {
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-2,#64748b);
  transition:
    color .18s,
    border-color .18s,
    background .18s;
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear:not(:disabled):hover {
  color: #c1372d;
  border-color: #f1b8b3;
  background: #fff5f4;
}
.latest-studio-scope .h3-studio .h3-repair-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: #c1372d;
}
.latest-studio-scope .h3-repair-cancel:hover {
  background: #fff2f1;
  border-color: #f1b8b3;
}
.latest-studio-scope .h3-generation-guidance:empty {
  display: none;
}
.latest-studio-scope .h3-review-result.is-success {
  border-color: #c7e6d8;
  background: #f7fcf9;
}
.latest-studio-scope .h3-review-result.is-pending {
  border-color: #cddaff;
  background: #f8faff;
}
.latest-studio-scope .h3-review-verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.latest-studio-scope .h3-review-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff2df;
  color: #a86b12;
  font-size: 16px;
  font-weight: 700;
}
.latest-studio-scope .is-success .h3-review-status-icon {
  background: #e0f3e9;
  color: #23835b;
}
.latest-studio-scope .is-pending .h3-review-status-icon {
  background: #e9efff;
  color: var(--brand,#2459df);
}
.latest-studio-scope .h3-review-result .h3-check-summary p {
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-review-result .h3-check-summary h3 {
  font-size: 15px;
  margin-bottom: 3px;
}
.latest-studio-scope .h3-repair-proposal {
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 12px;
}
.latest-studio-scope .h3-repair-proposal details {
  max-height: 320px;
  overflow: auto;
}
.latest-studio-scope .h3-repair-proposal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.latest-studio-scope .h3-review-result.is-warning {
  border-color: #f0c9c5;
  background: #fffafa;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict p,
.latest-studio-scope .h3-review-result.is-warning .h3-check-reasons,
.latest-studio-scope .h3-review-result.is-warning .h3-check-details {
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-status-icon {
  background: #fee9e7;
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict p {
  color: #1f7a4f;
}
.latest-studio-scope .h3-log-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f1f5ff;
  border: 1px solid #dce5fa;
  color: #28466e;
}
.latest-studio-scope .h3-log-summary p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-log-summary.is-success {
  background: #f3fbf7;
  border-color: #c4e9d7;
  color: #14805b;
}
.latest-studio-scope .h3-log-summary.is-error {
  background: #fff5f5;
  border-color: #f4caca;
  color: #b62b35;
}
.latest-studio-scope .h3-log-summary.is-warning {
  background: #fffbf1;
  border-color: #efdeb0;
  color: #88631b;
}
.latest-studio-scope .h3-log-view-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.latest-studio-scope .h3-log-view-controls [role=group] {
  display: flex;
  gap: 6px;
}
.latest-studio-scope .h3-log-view-controls button[aria-pressed=true] {
  background: #eef3ff;
  border-color: #b5c7fa;
  color: #2459d8;
}
.latest-studio-scope .h3-log-view-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #536681;
  font-size: 13px;
}
.latest-studio-scope .h3-log-readable {
  max-height: 300px;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  padding: 4px 16px;
}
.latest-studio-scope .h3-log-readable ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.latest-studio-scope .h3-log-readable li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f6;
  font-size: 13px;
  line-height: 1.7;
  color: #344b68;
}
.latest-studio-scope .h3-log-readable li:last-child {
  border-bottom: 0;
}
.latest-studio-scope .h3-log-readable time {
  color: #71829a;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.latest-studio-scope .h3-log-readable small {
  color: #71829a;
}
.latest-studio-scope .h3-log-readable .is-warning {
  color: #88631b;
}
.latest-studio-scope .h3-log-readable .is-error {
  color: #b62b35;
}
.latest-studio-scope .h3-log-readable .is-success {
  color: #14805b;
}
.latest-studio-scope .h3-terminal-output[hidden] {
  display: none;
}
.latest-studio-scope .h3-workspace-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-top: 24px;
  padding: 10px 18px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 14px 14px 0 0;
  background:
    linear-gradient(
      110deg,
      #f5f8ff,
      var(--surface,#fff) 75%);
  width: 100%;
  box-sizing: border-box;
}
.latest-studio-scope .h3-workspace-tabs [role=tab] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  appearance: none;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  margin-bottom: -1px;
  background: transparent;
  color: #536681;
  padding: 14px 28px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background .2s,
    color .2s,
    box-shadow .2s,
    border-color .2s;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:hover {
  color: #2459df;
  background: #eaf1ff;
  box-shadow: inset 0 3px 12px #3775f50c;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true] {
  background:
    linear-gradient(
      180deg,
      #edf4ff 0%,
      var(--surface,#fff) 85%);
  border-color: var(--line,#dce3ee);
  color: #2459df;
  box-shadow: 0 -4px 14px #497cf519, inset 0 2px 0 #578bff;
  text-shadow: 0 0 14px #3775f52b;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 25%,
      #a9ceff40 50%,
      transparent 75%);
  transform: translateX(-120%);
  animation: latest-h3-tab-shine 4s ease-in-out infinite;
  pointer-events: none;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
.latest-studio-scope .h3-workspace-panel[hidden] {
  display: none !important;
}
.latest-studio-scope .h3-sync-status {
  margin: 12px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 12px;
  line-height: 1.7;
}
@keyframes latest-h3-tab-shine {
  0%, 25% {
    transform: translateX(-120%);
  }
  65%, 100% {
    transform: translateX(120%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    transition: none;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
    animation: none;
    transform: none;
    opacity: .3;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-workspace-tabs {
    padding: 8px 8px 0;
    gap: 0;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    flex: 1;
    padding: 13px 8px;
    font-size: 13px;
  }
}
.latest-studio-scope .h3-workspace-panel > .card {
  margin-top: 0;
  padding: 24px;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}
.latest-studio-scope .h3-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-studio .h3-panel-heading h2 {
  margin: .83em 0;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  color: inherit;
}
.latest-studio-scope .h3-panel-heading h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
.latest-studio-scope .h3-panel-heading .h3-terminal-actions {
  margin-top: 10px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-workspace-panel > .card {
    padding: 16px;
  }
}
.latest-studio-scope #studio-generation {
  scroll-margin-top: 130px;
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-workbench {
    scroll-behavior: auto;
  }
}
.latest-studio-scope .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters {
  margin: 24px 0;
  padding: 20px;
  border: 1px dashed #bdcde4;
  background: #f6f9fe;
  border-radius: 12px;
}
.latest-studio-scope .latest-parameters > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-parameters p {
  font-size: 13px;
  line-height: 1.8;
  color: #64748b;
  margin: 10px 0 0;
}
.latest-studio-scope .latest-pending-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 20px;
  background: #edf2fa;
  color: #526a90;
  font-size: 12px;
}
.latest-studio-scope .latest-pending-selection {
  font-size: 13px;
  color: #64748b;
  padding: 10px 0;
}
.latest-studio-scope .latest-workbench .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.latest-studio-scope .latest-parameter-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .latest-parameter-grid input,
.latest-studio-scope .latest-parameter-grid select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  background: white;
  border: 1px solid #d5dfef;
  border-radius: 8px;
  color: #18365c;
  font: inherit;
  font-weight: 400;
}
.latest-studio-scope .latest-parameter-grid input:focus,
.latest-studio-scope .latest-parameter-grid select:focus {
  outline: 2px solid #bdd0ff;
  outline-offset: 1px;
  border-color: #5784f5;
}
@media (max-width:900px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-workbench .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .h3-header {
  gap: 16px;
}
.latest-studio-scope .h3-header > div {
  min-width: 0;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .h3-header {
    align-items: flex-start;
  }
  .latest-studio-scope .h3-header-actions {
    flex-wrap: wrap;
  }
  .latest-studio-scope .h3-studio h1 {
    font-size: 22px;
  }
}
@media (max-width:380px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .latest-connection {
  font-size: 13px;
  color: #64748b;
  padding: 9px 13px;
  border-radius: 20px;
  background: #eef2f7;
}
.latest-studio-scope .latest-connection.is-ready {
  color: #13795b;
  background: #e8f8f1;
}
.latest-studio-scope .latest-message {
  padding: 14px 18px;
  border: 1px solid #d5e3ff;
  background: #f0f6ff;
  color: #31528a;
  border-radius: 10px;
  margin: 14px 0;
  line-height: 1.7;
}
.latest-studio-scope .latest-message.is-error {
  background: #fff4f3;
  color: #b1372f;
  border-color: #f2cfca;
}
.latest-studio-scope .latest-message button {
  float: right;
  border: 0;
  background: none;
  color: inherit;
  font-size: 20px;
}
.latest-studio-scope .latest-section-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
}
.latest-studio-scope .latest-section-label span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-reference-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #fafcff;
}
.latest-studio-scope .latest-reference-section > summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
}
.latest-studio-scope .latest-reference-section > summary span {
  float: right;
  font-size: 12px;
  font-weight: 400;
  color: #6b7e96;
}
.latest-studio-scope .latest-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .latest-media-slot {
  padding: 16px;
  border: 1px solid #dce5f0;
  background: #fff;
  border-radius: 12px;
  min-width: 0;
}
.latest-studio-scope .latest-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 125px;
  gap: 10px;
  margin-top: 12px;
  background: #f5f8fd;
  border: 1px dashed #d5dfef;
  border-radius: 9px;
}
.latest-studio-scope .latest-media-placeholder > span {
  font-size: 26px;
  color: #416fea;
}
.latest-studio-scope .latest-media-placeholder p {
  margin: 0 8px;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .latest-media-placeholder small {
  font-size: 11px;
  color: #8290a5;
}
.latest-studio-scope .latest-upload-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #3561d7;
  padding: 9px 0;
}
.latest-studio-scope .latest-upload-status .machine-creation-spinner {
  width: 15px;
  height: 15px;
  display: inline-block;
}
.latest-studio-scope .latest-image-uploading .h3-image-dropzone {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #e5eeff,
      #f1f6ff);
  background-size: 200% 100%;
  animation: latest-upload-glow 2s linear infinite;
}
.latest-studio-scope .latest-settings-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.latest-studio-scope .latest-settings-main > label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.latest-studio-scope .latest-settings-main select {
  min-width: 115px;
}
.latest-studio-scope .latest-settings-main .latest-martial {
  margin-left: auto;
  padding: 14px 18px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #f8faff;
}
.latest-studio-scope .latest-martial input {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 15px;
  background: #c7d2e2;
  border: 0;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}
.latest-studio-scope .latest-martial input:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.latest-studio-scope .latest-martial input:checked {
  background: #2b5ef0;
}
.latest-studio-scope .latest-martial input:checked:after {
  transform: translateX(16px);
}
.latest-studio-scope .latest-martial strong,
.latest-studio-scope .latest-martial small {
  display: block;
}
.latest-studio-scope .latest-martial small {
  font-size: 12px;
  color: #6b7e96;
  margin-top: 5px;
}
.latest-studio-scope .latest-advanced {
  padding: 18px;
  margin-top: 20px;
  background: #f7f9fe;
  border: 1px dashed #cbd8ea;
  border-radius: 10px;
}
.latest-studio-scope .latest-advanced summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.latest-studio-scope .latest-advanced .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}
.latest-studio-scope .latest-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.latest-studio-scope .latest-range label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.latest-studio-scope .latest-range input {
  width: 78px;
}
.latest-studio-scope .latest-connected input:not([type=checkbox]):not([type=file]),
.latest-studio-scope .latest-connected select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d4deed;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
}
.latest-studio-scope .latest-connected textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #d4deed;
  border-radius: 10px;
  padding: 15px;
  line-height: 1.8;
  font: 13px/1.8 monospace;
  margin-top: 12px;
  min-height: 240px;
}
.latest-studio-scope .latest-connected input:focus-visible,
.latest-studio-scope .latest-connected select:focus-visible,
.latest-studio-scope .latest-connected textarea:focus-visible {
  outline: 2px solid #b9d0ff;
  outline-offset: 2px;
}
.latest-studio-scope .latest-connected input:disabled,
.latest-studio-scope .latest-connected select:disabled,
.latest-studio-scope .latest-connected textarea:disabled {
  background: #f2f5fa;
}
.latest-studio-scope .latest-save-settings {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-save-settings label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
  max-width: 230px;
}
.latest-studio-scope .latest-generate-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-generate-actions > .btn-primary {
  min-width: 230px;
  min-height: 44px;
}
.latest-studio-scope .latest-generate-actions > span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.latest-studio-scope .latest-result-stamp {
  padding: 6px 12px;
  color: #a66420;
  border: 2px solid currentColor;
  border-radius: 5px;
  transform: rotate(-5deg);
  font-size: 19px;
  font-weight: 750;
  white-space: nowrap;
}
.latest-studio-scope .latest-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}
.latest-studio-scope .latest-segment-list {
  border: 1px solid #dde5f0;
  border-radius: 11px;
  margin-top: 20px;
  overflow: hidden;
}
.latest-studio-scope .latest-segment-list article {
  display: grid;
  grid-template-columns: 100px 90px minmax(90px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 16px;
  box-sizing: border-box;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
}
.latest-studio-scope .latest-segment-list article:last-child {
  border-bottom: 0;
}
.latest-studio-scope .latest-segment-list article > div {
  display: flex;
  gap: 8px;
}
.latest-studio-scope .latest-segment-list .is-ready {
  color: #07845e;
}
.latest-studio-scope .latest-empty {
  padding: 60px 20px;
  text-align: center;
  color: #7d8da3;
  font-size: 14px;
}
.latest-studio-scope .latest-history {
  margin: 20px 0;
}
.latest-studio-scope .latest-history .btn {
  margin: 10px 8px 0 0;
  font-size: 12px;
}
.latest-studio-scope .latest-log-list {
  max-height: 540px;
  overflow: auto;
  margin-top: 24px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  padding: 6px 16px;
}
.latest-studio-scope .latest-log-list > div {
  display: flex;
  gap: 22px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-log-list time {
  color: #7d8da3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@keyframes latest-upload-glow {
  to {
    background-position: -200% 0;
  }
}
@media (max-width:900px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    margin-left: 0;
  }
  .latest-studio-scope .latest-segment-list article {
    grid-template-columns: 70px 60px 1fr;
  }
  .latest-studio-scope .latest-segment-list article > div {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-media-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-reference-section {
    padding: 14px;
  }
  .latest-studio-scope .latest-save-settings {
    display: block;
  }
  .latest-studio-scope .latest-save-settings label {
    margin: 12px 0;
  }
  .latest-studio-scope .latest-range {
    gap: 8px;
  }
  .latest-studio-scope .latest-range input {
    width: 62px;
  }
  .latest-studio-scope .latest-generate-actions > .btn-primary {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-results-heading {
    align-items: flex-start;
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-settings-main > label {
    flex: 1;
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
    width: 100%;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-image-uploading .h3-image-dropzone {
    animation: none;
  }
}
.latest-studio-scope .latest-connected .h3-task-progress {
  scroll-margin-top: 135px;
}
.latest-studio-scope .latest-workbench .h3-upload-card {
  min-height: 294px;
  height: 100%;
  box-sizing: border-box;
}
.latest-studio-scope .latest-workbench .h3-upload-heading {
  min-height: 22px;
}
.latest-studio-scope .latest-workbench .h3-upload-status {
  margin-top: 10px;
}
.latest-studio-scope .latest-media-saved {
  display: block;
  color: #07876a;
  font-size: 12px;
  margin-top: 10px;
}
.latest-studio-scope .latest-upload-retry {
  margin-top: 8px;
}
.latest-studio-scope .latest-media-slot .h3-upload-track {
  display: inline-block;
  width: 100px;
}
.latest-studio-scope .latest-media-slot .latest-media-placeholder {
  min-height: 140px;
}
.latest-studio-scope .latest-settings-main .latest-martial-card {
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  background:
    linear-gradient(
      135deg,
      #fafcff,
      #f3f7ff);
  border-color: #dce6f6;
  border-radius: 14px;
  box-shadow: 0 2px 7px #203d6910;
  transition:
    border-color .2s,
    box-shadow .2s,
    background .2s;
}
.latest-studio-scope .latest-martial-card:hover:not(.is-locked) {
  border-color: #9db9ff;
  box-shadow: 0 4px 14px #285be91c;
}
.latest-studio-scope .latest-martial-card:focus-within {
  outline: 2px solid #779cff;
  outline-offset: 3px;
}
.latest-studio-scope .latest-settings-main .latest-martial-card.is-enabled {
  background:
    linear-gradient(
      135deg,
      #edf4ff,
      #f5f1ff);
  border-color: #9ab8ff;
  box-shadow: 0 3px 12px #406bf21a;
}
.latest-studio-scope .latest-martial-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eaf0fb;
  color: #7c90b1;
  transition: color .2s, background .2s;
}
.latest-studio-scope .is-enabled .latest-martial-emblem {
  color: #3664eb;
  background: #dfe9ff;
}
.latest-studio-scope .latest-martial-copy {
  min-width: 0;
}
.latest-studio-scope .latest-martial-copy strong {
  font-size: 14px;
  line-height: 1.5;
  color: #203552;
}
.latest-studio-scope .latest-martial-copy small {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 3px;
}
.latest-studio-scope .latest-martial-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  flex-shrink: 0;
}
.latest-studio-scope .latest-martial-status {
  font-size: 11px;
  white-space: nowrap;
  color: #8190a6;
}
.latest-studio-scope .is-enabled .latest-martial-status {
  color: #3966dc;
}
.latest-studio-scope .latest-martial-card input {
  flex-shrink: 0;
  margin: 0;
  width: 42px;
  height: 24px;
  box-shadow: inset 0 1px 3px #122e4620;
}
.latest-studio-scope .latest-martial-card input:after {
  width: 18px;
  height: 18px;
  box-shadow: 0 1px 3px #142c4b33;
}
.latest-studio-scope .latest-martial-card input:checked:after {
  transform: translateX(18px);
}
.latest-studio-scope .latest-martial-card.is-locked {
  cursor: not-allowed;
  opacity: .65;
}
.latest-studio-scope .latest-martial-card input:disabled {
  cursor: not-allowed;
}
@media (max-width:480px) {
  .latest-studio-scope .latest-settings-main .latest-martial-card {
    padding: 14px 12px;
    gap: 9px;
  }
  .latest-studio-scope .latest-martial-emblem {
    width: 30px;
    height: 34px;
  }
  .latest-studio-scope .latest-martial-control {
    margin-left: auto;
    gap: 4px;
  }
  .latest-studio-scope .latest-martial-status {
    display: none;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-martial-card,
  .latest-studio-scope .latest-martial-card input,
  .latest-studio-scope .latest-martial-card input:after,
  .latest-studio-scope .latest-martial-emblem {
    transition: none;
  }
}
.latest-studio-scope .latest-prompt-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.latest-studio-scope .latest-prompt-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
}
.latest-studio-scope .latest-prompt-actions .latest-prompt-clear {
  min-width: 38px;
  width: 38px;
  padding: 0;
  color: #7d8ba1;
}
.latest-studio-scope .latest-prompt-clear:not(:disabled):hover {
  color: #d04443;
  background: #fff2f1;
  border-color: #f2b9b5;
}
.latest-studio-scope .latest-prompt-copy:not(:disabled):hover {
  color: #2b5fe7;
  background: #f0f5ff;
  border-color: #b9ceff;
}
.latest-studio-scope .latest-resolution-hint {
  font-size: 12px;
  color: #8292aa;
  line-height: 1.6;
}

/* apps/web/src/pages/latest/latest-results.css */
.latest-studio-scope .latest-results-table {
  background: #fff;
  border-color: #e1e8f2;
  border-radius: 12px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  display: grid;
  grid-template-columns: 90px 100px minmax(130px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
}
.latest-studio-scope .latest-results-table .latest-segment-head {
  background: #f6f8fc;
  color: #72819a;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #e8edf5;
}
.latest-studio-scope .latest-results-table .latest-segment-head > span:last-child {
  text-align: right;
}
.latest-studio-scope .latest-results-table article {
  min-height: 80px;
  font-size: 14px;
}
.latest-studio-scope .latest-segment-name {
  white-space: nowrap;
  color: #182d4c;
}
.latest-studio-scope .latest-segment-duration {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #687994;
}
.latest-studio-scope .latest-segment-state {
  justify-self: start;
  line-height: 1.5;
  color: #526886;
  padding: 5px 10px;
  background: #f2f5fa;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .latest-segment-state.is-ready {
  color: #07845e;
  background: #edf9f3;
}
.latest-studio-scope .latest-results-table article > .latest-segment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: auto;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-segment-actions .btn {
  font-size: 13px;
  min-height: 38px;
  white-space: nowrap;
  padding: 8px 12px;
}
.latest-studio-scope .latest-segment-editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 51, .38);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.latest-studio-scope .latest-segment-editor {
  box-sizing: border-box;
  width: min(900px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 26px;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  box-shadow: 0 22px 70px #14284433;
}
.latest-studio-scope .latest-segment-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .latest-segment-editor-heading h2 {
  margin: 0;
  font-size: 20px;
}
.latest-studio-scope .latest-segment-editor p {
  font-size: 13px;
  line-height: 1.8;
  color: #6b7d96;
  margin: 14px 0 20px;
}
.latest-studio-scope .latest-segment-editor textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 280px;
  max-height: 48dvh;
  resize: vertical;
  padding: 16px;
  margin-top: 10px;
  border: 1px solid #cedbf0;
  border-radius: 10px;
  font:
    14px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #19314f;
  background: #fbfcff;
}
.latest-studio-scope .latest-segment-editor textarea:focus {
  outline: 2px solid #d9e4ff;
  border-color: #799bff;
}
.latest-studio-scope .latest-segment-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width:1050px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(100px, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }
  .latest-studio-scope .latest-segment-actions {
    max-width: 245px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table .latest-segment-head {
    display: none;
  }
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(0, 1fr);
    gap: 12px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
    max-width: none;
  }
  .latest-studio-scope .latest-segment-editor-backdrop {
    padding: 12px;
  }
  .latest-studio-scope .latest-segment-editor {
    padding: 18px;
    max-height: calc(100dvh - 24px);
  }
  .latest-studio-scope .latest-segment-editor textarea {
    min-height: 220px;
  }
}
.latest-studio-scope .latest-segment-editor p.latest-segment-editor-error {
  color: #c33131;
}
.latest-studio-scope .latest-live-summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 22px 0 18px;
  padding: 22px 24px;
  border: 1px solid #dbe5f8;
  border-radius: 14px;
  background:
    linear-gradient(
      115deg,
      #f3f7ff,
      #fcfdff);
  box-shadow: 0 4px 18px #2c5ac907;
}
.latest-studio-scope .latest-live-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.latest-studio-scope .latest-live-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  color: #315df4;
  background: #e4edff;
  font-size: 24px;
}
.latest-studio-scope .latest-live-heading strong {
  font-size: 18px;
  color: #193962;
  line-height: 1.5;
}
.latest-studio-scope .latest-live-heading p {
  margin: 5px 0 0;
  color: #73849d;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-elapsed {
  margin-left: auto;
  white-space: nowrap;
  color: #4c668c;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding: 8px 12px;
  border: 1px solid #dfe7f5;
  border-radius: 8px;
  background: #ffffffa8;
}
.latest-studio-scope .latest-live-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e0e8f7;
  color: #7184a1;
  font-size: 13px;
}
.latest-studio-scope .latest-live-footer strong {
  color: #315df4;
  font-size: 16px;
}
.latest-studio-scope .latest-live-sampling {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: #5477b2;
}
.latest-studio-scope .latest-live-sampling progress {
  height: 6px;
  flex: 1;
  min-width: 80px;
  accent-color: #4778ff;
  border-radius: 10px;
  overflow: hidden;
}
.latest-studio-scope .latest-live-flow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #91bdff,
      #3e70fa,
      transparent);
  background-size: 200% 100%;
  animation: latest-execution-flow 2.6s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-results-table article.latest-segment-row {
  position: relative;
  isolation: isolate;
  transition: background-color .3s, box-shadow .3s;
}
.latest-studio-scope .latest-results-table article.latest-segment-row.is-working {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #fbfdff);
  box-shadow: inset 3px 0 #4275ff;
}
.latest-studio-scope .latest-segment-row.is-working::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      #b9d2ff 38%,
      #4d7bff 50%,
      #afceff 62%,
      transparent 80%);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 3s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-segment-row.is-working .latest-segment-name {
  color: #2855c5;
}
.latest-studio-scope .latest-segment-state.is-working {
  color: #2e5bcf;
  background: #e7efff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .latest-segment-state.is-waiting {
  color: #8391a6;
  background: #f4f6f9;
}
.latest-studio-scope .latest-segment-state small {
  font-size: 12px;
  font-weight: 400;
}
.latest-studio-scope .latest-segment-running-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid #b8ceff;
  border-top-color: #3c6ef0;
  border-radius: 50%;
  animation: latest-execution-spin 1s linear infinite;
}
@keyframes latest-execution-flow {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -50% 0;
  }
}
@keyframes latest-execution-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-live-summary {
    padding: 18px 16px;
  }
  .latest-studio-scope .latest-live-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .latest-studio-scope .latest-live-heading > div {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-live-heading strong {
    font-size: 16px;
  }
  .latest-studio-scope .latest-live-elapsed {
    margin-left: 52px;
  }
  .latest-studio-scope .latest-live-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-live-sampling {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state.is-working {
    white-space: normal;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-live-flow,
  .latest-studio-scope .latest-segment-row.is-working::after,
  .latest-studio-scope .latest-segment-running-dot {
    animation: none;
  }
  .latest-studio-scope .latest-results-table article.latest-segment-row {
    transition: none;
  }
}
.latest-studio-scope .latest-live-sampling progress {
  appearance: none;
  -webkit-appearance: none;
  background: #e5edfc;
  border: 0;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-bar {
  background: #e5edfc;
  border-radius: 10px;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-value {
  background:
    linear-gradient(
      90deg,
      #729bff,
      #3c69f4);
  border-radius: 10px;
  transition: width .4s;
}
.latest-studio-scope .latest-live-sampling progress::-moz-progress-bar {
  background: #4d7bf5;
  border-radius: 10px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state {
    padding: 5px 8px;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs > button {
    flex: 1 1 auto;
    font-size: 12px;
    padding: 12px 8px;
    min-width: 0;
    white-space: normal;
    line-height: 1.5;
  }
}
.latest-studio-scope .latest-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}
.latest-studio-scope .latest-results-toolbar > .h3-field-hint {
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.latest-studio-scope .latest-results-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-results-page-count {
  font-size: 12px;
  color: #72839c;
  margin-right: 5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.latest-studio-scope .latest-results-pagination .btn {
  font-size: 13px;
  min-height: 36px;
  padding: 8px 12px;
}
.latest-studio-scope .latest-results-toolbar + .latest-results-table {
  margin-top: 0;
}
.latest-studio-scope .latest-result-stamp.latest-status-stamp {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1.4;
  border-radius: 8px;
  border: 2px solid currentColor;
  box-shadow: 0 3px 10px #24478009;
  color: #7d8ba0;
  background: #fafbfd;
  transform: rotate(-4deg);
  white-space: nowrap;
  flex-shrink: 0;
}
.latest-studio-scope .latest-status-stamp .latest-stamp-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 15px;
  line-height: 1;
}
.latest-studio-scope .latest-status-stamp.is-running {
  color: #3167e3;
  background: #f0f5ff;
  box-shadow: 0 3px 14px #3976f51a;
}
.latest-studio-scope .latest-status-stamp.is-running::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      110deg,
      transparent 15%,
      #aecbff 35%,
      #2459e5 50%,
      #a8caff 65%,
      transparent 85%);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 2.4s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
  animation: latest-execution-spin 2s linear infinite;
}
.latest-studio-scope .latest-status-stamp.is-complete {
  color: #078657;
  background: #eefbf5;
  border-color: #34ab7d;
  box-shadow: 0 3px 12px #149e6910;
}
.latest-studio-scope .latest-status-stamp.is-failed {
  color: #c8353e;
  background: #fff2f3;
  border-color: #de5c63;
  box-shadow: 0 3px 12px #d3434b10;
}
.latest-studio-scope .latest-status-stamp.is-stopped {
  color: #7a879a;
  background: #f4f6f9;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-pagination {
    justify-content: flex-start;
    width: 100%;
  }
  .latest-studio-scope .latest-results-page-count {
    flex: 1;
  }
  .latest-studio-scope .latest-result-stamp.latest-status-stamp {
    font-size: 15px;
    padding: 8px 10px;
    gap: 6px;
  }
  .latest-studio-scope .latest-results-heading {
    gap: 12px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-status-stamp.is-running::after,
  .latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
    animation: none;
  }
}
.latest-studio-scope .latest-live-summary .latest-live-meter {
  margin-top: 18px;
  display: block;
}
.latest-studio-scope .latest-live-summary .latest-live-meter > label {
  display: block;
  color: #315076;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-summary .latest-live-meter .h3-progress-track {
  width: 100%;
  margin-top: 10px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  grid-template-columns: 75px 85px minmax(105px, 1fr) 120px auto;
  gap: 14px;
}
.latest-studio-scope .latest-segment-thumbnail {
  min-width: 0;
}
.latest-studio-scope .latest-thumbnail-button {
  position: relative;
  display: block;
  width: 120px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #f2f5fa;
  cursor: zoom-in;
}
.latest-studio-scope .latest-thumbnail-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.latest-studio-scope .latest-thumbnail-button > small {
  position: absolute;
  left: 3px;
  bottom: 3px;
  padding: 1px 5px;
  color: #fff;
  background: #173253bb;
  border-radius: 3px;
  font-size: 10px;
}
.latest-studio-scope .latest-thumbnail-zoom {
  position: absolute;
  right: 4px;
  bottom: 3px;
  padding: 0 4px;
  border-radius: 3px;
  color: white;
  background: #17325399;
  opacity: 0;
  transition: opacity .2s;
}
.latest-studio-scope .latest-thumbnail-button:hover {
  border-color: #739aff;
  box-shadow: 0 2px 8px #3267e91a;
}
.latest-studio-scope .latest-thumbnail-button:hover .latest-thumbnail-zoom,
.latest-studio-scope .latest-thumbnail-button:focus-visible .latest-thumbnail-zoom {
  opacity: 1;
}
.latest-studio-scope .latest-thumbnail-placeholder {
  box-sizing: border-box;
  width: 120px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  background: #f6f8fb;
  border: 1px dashed #dce4f1;
  border-radius: 8px;
  color: #a0aec1;
}
.latest-studio-scope .latest-thumbnail-placeholder small {
  font-size: 11px;
}
.latest-studio-scope .latest-thumbnail-placeholder > span {
  font-size: 20px;
  line-height: 1;
}
.latest-studio-scope .latest-thumbnail-placeholder button {
  padding: 0 5px;
  background: none;
  border: 0;
  color: #416bcb;
  font-size: 11px;
  cursor: pointer;
}
.latest-studio-scope .latest-thumbnail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10213b66;
  padding: 20px;
}
.latest-studio-scope .latest-thumbnail-backdrop > section {
  background: white;
  padding: 20px;
  border-radius: 14px;
  width: min(560px, 100%);
  box-sizing: border-box;
  box-shadow: 0 18px 60px #10213b33;
}
.latest-studio-scope .latest-thumbnail-backdrop section > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.latest-studio-scope .latest-thumbnail-backdrop img {
  display: block;
  width: 100%;
  height: auto;
  background: #111c2d;
  border-radius: 8px;
}
.latest-studio-scope .latest-thumbnail-backdrop p {
  font-size: 12px;
  color: #8292aa;
  margin-bottom: 0;
}
@media (max-width:1100px) and (min-width:721px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 65px 70px minmax(90px, 1fr) 105px auto;
    gap: 10px;
  }
  .latest-studio-scope .latest-thumbnail-button,
  .latest-studio-scope .latest-thumbnail-placeholder {
    width: 105px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    max-width: 220px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 10px;
  }
  .latest-studio-scope .latest-segment-thumbnail {
    grid-column: 1/-1;
  }
  .latest-studio-scope .latest-thumbnail-button,
  .latest-studio-scope .latest-thumbnail-placeholder {
    width: 120px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
  }
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  grid-template-columns: 75px 85px minmax(105px, 1fr) 120px 290px;
}
.latest-studio-scope .latest-results-table article > .latest-segment-thumbnail {
  display: block;
  grid-column: auto;
}
@media (max-width:1100px) and (min-width:721px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 65px 70px minmax(90px, 1fr) 105px 220px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-thumbnail {
    grid-column: 1/-1;
  }
}
.latest-studio-scope .latest-logs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-logs-toolbar h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.latest-studio-scope .latest-logs-toolbar .h3-field-hint {
  margin: 0;
}
.latest-studio-scope .latest-logs-pagination {
  padding-top: 2px;
  margin-left: auto;
}
.latest-studio-scope .latest-logs-pagination .has-updates {
  color: #285fe2;
  background: #edf3ff;
  border-color: #cbdcff;
}
.latest-studio-scope .latest-log-page-hint {
  margin: 20px 0 12px;
  color: #8a9ab0;
  font-size: 12px;
  line-height: 1.6;
}
.latest-studio-scope .latest-log-list.latest-log-paged {
  max-height: none;
  overflow: visible;
  margin-top: 0;
  padding: 2px 16px;
  background: #fff;
}
.latest-studio-scope .latest-log-paged > div {
  min-height: 44px;
  box-sizing: border-box;
  align-items: flex-start;
  gap: 18px;
  padding: 12px 0;
}
.latest-studio-scope .latest-log-paged > div:last-child {
  border-bottom: 0;
}
.latest-studio-scope .latest-log-paged > div > span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.latest-studio-scope .latest-logs-empty {
  padding: 35px 10px;
  text-align: center;
  color: #8b9bb1;
  font-size: 13px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-logs-toolbar {
    gap: 16px;
  }
  .latest-studio-scope .latest-logs-pagination {
    margin-left: 0;
    justify-content: flex-start;
  }
  .latest-studio-scope .latest-logs-pagination .latest-results-page-count {
    width: 100%;
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-log-paged > div {
    gap: 10px;
  }
  .latest-studio-scope .latest-log-list.latest-log-paged {
    padding: 2px 12px;
  }
}
.latest-studio-scope dialog.latest-thumbnail-backdrop {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(600px, 100vw);
  height: fit-content;
  max-height: calc(100dvh - 32px);
  max-width: 100vw;
  overflow: auto;
  padding: 20px;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}
.latest-studio-scope dialog.latest-thumbnail-backdrop:not([open]) {
  display: none;
}
.latest-studio-scope dialog.latest-thumbnail-backdrop::backdrop {
  background: rgba(16, 33, 59, .55);
}
.latest-studio-scope dialog.latest-thumbnail-backdrop > section {
  width: 100%;
}
.latest-studio-scope .latest-logs-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.latest-studio-scope .latest-logs-jump label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  color: #6f829f;
}
.latest-studio-scope .latest-logs-jump input {
  box-sizing: border-box;
  width: 62px;
  min-width: 0;
  height: 38px;
  padding: 6px 8px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  text-align: center;
  background: #fff;
  color: #183555;
}
.latest-studio-scope .latest-completion-sound {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-completion-sound .latest-sound-choice {
  width: auto;
  min-width: 112px;
  min-height: 38px;
  padding: 8px 28px 8px 10px;
  border: 1px solid #dce5f2;
  border-radius: 9px;
  background-color: #fff;
  color: #294260;
  font-size: 13px;
  cursor: pointer;
}
.latest-studio-scope .latest-sound-choice:focus-visible {
  outline: 2px solid #779cff;
  outline-offset: 2px;
}


/* apps/web/src/components/creation-versions.css */
.creation-version-entry {
  max-width: 1200px;
  margin: 24px auto 32px;
  padding: 0 24px;
  color: var(--ink,#102544);
}
.creation-version-entry header {
  margin-bottom: 24px;
}
.creation-version-eyebrow {
  font-size: 11px;
  letter-spacing: .16em;
  color: #526e9a;
  font-weight: 700;
}
.creation-version-entry h1 {
  margin: 12px 0;
  font-size: 30px;
  letter-spacing: -.04em;
}
.creation-version-entry header p {
  color: #65748b;
}
.creation-version-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.creation-version-card {
  padding: 28px;
  border: 1px solid #dbe5f2;
  border-radius: 18px;
  background:
    linear-gradient(
      140deg,
      #fff,
      #f1f5fb);
  box-shadow: 0 8px 28px #193b7010;
  overflow: hidden;
}
.creation-version-card.is-latest {
  background:
    linear-gradient(
      140deg,
      #f0f5ff,
      #fff 70%);
  border-color: #b9cff8;
}
.creation-version-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .1em;
  color: #5b7193;
}
.creation-version-tag {
  letter-spacing: 0;
  border: 1px solid #d7e5f8;
  background: #fff9;
  border-radius: 30px;
  padding: 5px 10px;
  color: #345e9a;
}
.creation-version-card h2 {
  font-size: 23px;
  margin: 24px 0 12px;
}
.creation-version-card p {
  font-size: 14px;
  color: #637591;
  line-height: 1.8;
}
.creation-version-spec {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 25px 0;
  color: #254e8d;
}
.creation-version-spec strong {
  font-size: 62px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.07em;
}
.creation-version-spec span {
  font-size: 13px;
  line-height: 1.9;
}
.creation-version-card > .btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  min-height: 44px;
}
.creation-version-nav {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}
.creation-version-nav > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.creation-version-nav a {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  color: #476080;
  text-decoration: none;
}
.creation-version-nav a[aria-current=page] {
  background: #e5eeff;
  color: #2459df;
  font-weight: 700;
}
.creation-version-nav a:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 2px;
}
.creation-version-nav .creation-version-current {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  background: #e5eeff;
  color: #2459df;
  font-weight: 700;
}
@media (max-width:650px) {
  .creation-version-entry {
    padding: 0 16px;
  }
  .creation-version-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .creation-version-card {
    padding: 22px;
  }
  .creation-version-entry h1 {
    font-size: 25px;
  }
  .creation-version-nav {
    padding: 0 16px;
  }
  .creation-version-nav > div {
    gap: 2px;
  }
  .creation-version-nav a {
    padding: 8px;
    font-size: 12px;
  }
}

/* apps/web/src/pages/latest/latest-form-layout.css */
.latest-studio-scope .latest-connected .latest-form-layout {
  padding: 24px 26px;
}
.latest-form-layout .latest-form-section {
  min-width: 0;
}
.latest-form-layout .latest-form-section + .latest-form-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e9eef6;
}
.latest-form-layout .h3-step-heading {
  margin: 0 0 16px;
}
.latest-form-layout .h3-step-heading h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 17px;
  line-height: 26px;
  font-weight: 650;
}
.latest-form-layout .h3-step-heading p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: #72839c;
}
.latest-form-layout .h3-step-number {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #edf2ff;
  color: #3260e8;
  font-size: 12px;
}
.latest-form-layout .latest-section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 13px;
}
.latest-form-layout .latest-section-label span {
  color: #71839e;
  font-size: 12px;
  white-space: nowrap;
}
.latest-studio-scope .latest-form-layout .h3-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
  align-items: stretch;
}
.latest-studio-scope .latest-form-layout .h3-images > div {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  position: relative;
}
.latest-studio-scope .latest-form-layout .h3-upload-card {
  height: 272px;
  min-height: 272px;
  padding: 13px 14px;
  box-sizing: border-box;
  border: 1px solid #e0e7f1;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.latest-form-layout .h3-upload-heading {
  min-height: 24px;
  margin: 0 0 9px;
}
.latest-studio-scope .latest-form-layout .h3-upload-heading strong {
  margin: 0;
  font-size: 13px;
  line-height: 24px;
}
.latest-form-layout .h3-upload-badge {
  font-size: 10px;
  padding: 2px 7px;
  line-height: 18px;
}
.latest-studio-scope .latest-form-layout .h3-image-dropzone {
  height: 136px;
  min-height: 136px;
}
.latest-studio-scope .latest-form-layout .h3-image-dropzone img,
.latest-studio-scope .latest-form-layout .h3-image-dropzone .h3-placeholder {
  height: 100%;
  min-height: 0;
  width: 100%;
  object-fit: contain;
}
.latest-studio-scope .latest-form-layout .h3-image-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
  min-height: 34px;
  flex-wrap: nowrap;
}
.latest-form-layout .h3-image-actions .btn {
  height: 34px;
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.latest-form-layout .h3-upload-feedback {
  min-height: 20px;
  margin-top: 7px;
  font-size: 11px;
  line-height: 17px;
  gap: 5px;
  flex-wrap: nowrap;
}
.latest-form-layout .h3-upload-feedback > span:not(.h3-upload-indicator) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.latest-form-layout .h3-upload-feedback .h3-upload-filename {
  display: none;
}
.latest-form-layout .latest-upload-retry {
  position: absolute;
  right: 14px;
  bottom: 33px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  font-size: 12px;
}
.latest-studio-scope .latest-form-layout .latest-reference-section {
  padding: 14px 16px;
  margin: 10px 0 0;
  border: 1px solid #e1e8f3;
  border-radius: 12px;
  background: #f9fbfe;
}
.latest-form-layout .latest-reference-section summary {
  display: list-item;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  color: #263f61;
}
.latest-form-layout .latest-reference-section summary::marker {
  color: #8598b5;
  font-size: 11px;
}
.latest-form-layout .latest-reference-section summary > span {
  float: right;
  margin-left: 12px;
  font-size: 12px;
  font-weight: 400;
  color: #7386a0;
}
.latest-form-layout .latest-reference-help {
  margin: 9px 0 12px;
  line-height: 1.7;
  font-size: 12px;
  color: #7b8da5;
}
.latest-studio-scope .latest-form-layout .latest-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  align-items: stretch;
}
.latest-studio-scope .latest-form-layout .latest-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 136px;
  min-height: 136px;
  margin: 0;
  background: #f6f8fc;
  border: 1px dashed #dce3ec;
  border-radius: 9px;
  box-sizing: border-box;
}
.latest-form-layout .latest-media-placeholder p {
  font-size: 12px;
  line-height: 1.6;
  max-width: 90%;
  margin: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.latest-form-layout .latest-media-placeholder small {
  font-size: 11px;
}
.latest-form-layout .latest-media-placeholder > span {
  font-size: 25px;
  color: #8ba4cd;
  line-height: 1;
}
.latest-form-layout .latest-media-saved,
.latest-form-layout .latest-upload-status {
  margin: 7px 0 0;
  padding: 0;
  font-size: 11px;
  line-height: 18px;
  min-height: 20px;
}
.latest-form-layout .latest-upload-status {
  flex-wrap: wrap;
  gap: 5px;
}
.latest-form-layout .latest-upload-status .h3-upload-track {
  width: 52px;
  margin-top: 0;
}
.latest-form-layout .h3-prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}
.latest-form-layout .h3-prompt-heading .h3-field-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #415676;
}
.latest-form-layout .latest-prompt-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.latest-form-layout .latest-prompt-actions .btn {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 8px;
}
.latest-form-layout .latest-prompt-actions .latest-prompt-clear,
.latest-form-layout .latest-prompt-actions .latest-prompt-undo {
  width: 36px;
  min-width: 36px;
  padding: 0;
}
.latest-studio-scope .latest-form-layout #latest-prompt {
  display: block;
  min-height: 260px;
  height: 300px;
  max-height: 650px;
  margin: 12px 0 0;
  padding: 14px 16px;
  background: #fcfdff;
  font:
    13px/1.85 Consolas,
    "SFMono-Regular",
    monospace;
  resize: vertical;
}
.latest-studio-scope .latest-form-layout .latest-settings-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}
.latest-form-layout .latest-resolution-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  min-width: 0;
  flex: 1;
}
.latest-form-layout .latest-resolution-label {
  font-size: 13px;
  font-weight: 600;
  color: #304665;
  white-space: nowrap;
}
.latest-form-layout .latest-resolution-settings label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  white-space: nowrap;
}
.latest-studio-scope .latest-form-layout .latest-resolution-settings select {
  width: 102px;
  min-width: 102px;
  height: 38px;
  min-height: 38px;
  padding: 7px 10px;
  font-size: 13px;
}
.latest-form-layout .latest-resolution-hint {
  flex-basis: 100%;
  font-size: 12px;
  line-height: 1.7;
  color: #7b8da6;
}
.latest-studio-scope .latest-form-layout .latest-settings-main .latest-martial-card {
  margin: 0;
  padding: 12px 14px;
  min-height: 76px;
  gap: 10px;
  border-radius: 12px;
  box-shadow: none;
  flex-shrink: 0;
}
.latest-form-layout .latest-martial-copy strong {
  font-size: 13px;
}
.latest-form-layout .latest-martial-copy small {
  font-size: 11px;
}
.latest-form-layout .latest-martial-emblem {
  width: 32px;
  height: 34px;
}
.latest-form-layout .latest-generation-range .h3-step-heading {
  margin-bottom: 14px;
}
.latest-studio-scope .latest-form-layout .latest-range {
  gap: 10px;
  font-size: 13px;
}
.latest-form-layout .latest-range > label {
  display: flex;
  gap: 9px;
  align-items: center;
}
.latest-studio-scope .latest-form-layout .latest-range input {
  width: 82px;
  min-height: 38px;
  height: 38px;
  font-size: 13px;
}
.latest-form-layout .latest-generation-range > .h3-field-hint {
  margin: 10px 0 14px;
  font-size: 12px;
  color: #7385a0;
  line-height: 1.7;
}
.latest-studio-scope .latest-form-layout .latest-save-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0;
}
.latest-form-layout .latest-save-settings > label {
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
}
.latest-studio-scope .latest-form-layout .latest-save-settings input:not([type=checkbox]) {
  width: 230px;
  max-width: 100%;
  height: 38px;
  min-height: 38px;
  font-size: 13px;
}
.latest-form-layout input[type=checkbox] {
  accent-color: #2f61ed;
}
.latest-form-layout .latest-save-settings input[type=checkbox] {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
}
.latest-form-layout .latest-generate-actions {
  margin: 24px 0 12px;
  gap: 10px;
}
.latest-form-layout > .h3-field-hint {
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 0;
}
@media (max-width:960px) {
  .latest-form-layout .latest-resolution-settings {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-form-layout .latest-settings-main .latest-martial-card {
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
  }
  .latest-form-layout .latest-martial-control {
    margin-left: auto;
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-connected .latest-form-layout {
    padding: 16px;
  }
  .latest-form-layout .latest-form-section + .latest-form-section {
    margin-top: 20px;
    padding-top: 20px;
  }
  .latest-studio-scope .latest-form-layout .h3-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .latest-studio-scope .latest-form-layout .h3-upload-card {
    padding: 10px 8px;
    height: 252px;
    min-height: 252px;
  }
  .latest-form-layout .h3-upload-heading {
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0;
    min-height: 42px;
    margin-bottom: 6px;
  }
  .latest-form-layout .h3-upload-badge {
    font-size: 9px;
    padding: 1px 5px;
    line-height: 16px;
  }
  .latest-studio-scope .latest-form-layout .h3-image-dropzone {
    height: 112px;
    min-height: 112px;
  }
  .latest-studio-scope .latest-form-layout .h3-image-help {
    font-size: 10px;
    line-height: 1.6;
    padding: 0 3px;
  }
  .latest-form-layout .h3-image-actions {
    gap: 4px;
  }
  .latest-form-layout .h3-image-actions .btn {
    font-size: 11px;
    padding: 0 4px;
    min-width: 0;
    white-space: nowrap;
    flex: 1;
  }
  .latest-form-layout .h3-upload-feedback {
    font-size: 10px;
  }
  .latest-studio-scope .latest-form-layout .latest-media-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .latest-form-layout .latest-media-grid .h3-upload-heading {
    min-height: 24px;
    flex-wrap: nowrap;
  }
  .latest-studio-scope .latest-form-layout .latest-reference-section {
    padding: 12px;
  }
  .latest-form-layout .latest-prompt-actions {
    gap: 6px;
  }
  .latest-studio-scope .latest-form-layout #latest-prompt {
    height: 280px;
    min-height: 220px;
    padding: 12px;
    font-size: 12px;
  }
  .latest-form-layout .latest-resolution-settings {
    gap: 12px;
  }
  .latest-form-layout .latest-resolution-label {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-form-layout .latest-resolution-settings select {
    width: 92px;
    min-width: 92px;
  }
  .latest-form-layout .latest-save-settings > label {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .latest-studio-scope .latest-form-layout .latest-save-settings input:not([type=checkbox]) {
    width: 210px;
  }
}


/* apps/web/src/components/creation-versions.css */
.creation-version-header {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink,#102544);
}
.creation-version-header > h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.creation-version-header .creation-version-nav {
  margin: 0;
  padding: 0;
  max-width: none;
  display: flex;
  align-items: stretch;
  gap: 10px;
  font-size: 13px;
  flex-wrap: nowrap;
}
.creation-version-header .creation-version-option {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  color: #596b85;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  text-align: center;
  transition:
    border-color .18s,
    background .18s,
    color .18s;
}
.creation-version-header .creation-version-option.is-latest[aria-current=page] {
  background: #285ced;
  border-color: #285ced;
  color: #fff;
  box-shadow: 0 2px 6px #285ced18;
}
.creation-version-header .creation-version-option.is-classic[aria-current=page] {
  background: #eef2f7;
  border-color: #c7d3e2;
  color: #243e61;
  font-weight: 650;
}
.creation-version-header a.creation-version-option:not([aria-current=page]):hover {
  background: #f7f9fd;
  border-color: #adc1e3;
  color: #2859bd;
}
.creation-version-header a.creation-version-option:focus-visible {
  outline: 2px solid #80a2ff;
  outline-offset: 3px;
}
.creation-version-page > .creation-center > .page-header {
  margin: 12px 0 14px;
  min-height: 38px;
  justify-content: flex-end;
}
.creation-version-page > .creation-center > .page-header > .page-header-copy {
  display: none;
}
.creation-version-page > .creation-center > .page-header .page-header-actions {
  margin-left: auto;
}
.latest-studio-scope .latest-connected {
  padding-top: 12px;
}
.latest-studio-scope .latest-connected > .latest-workbench-toolbar {
  justify-content: flex-end;
  min-height: 40px;
  margin: 0 0 16px;
}
.latest-studio-scope .latest-workbench-toolbar .h3-header-actions {
  margin-left: auto;
  gap: 10px;
}
.latest-studio-scope .latest-workbench-toolbar .btn {
  height: 38px;
  min-height: 38px;
  font-size: 13px;
}
.creation-gateway-version-page .h3-studio {
  padding-top: 12px;
}
.creation-gateway-version-page .h3-header .h3-creation-title {
  display: none;
}
.creation-gateway-version-page .h3-inputs > .h3-panel-heading {
  display: none;
}
.creation-gateway-version-page .h3-header {
  gap: 14px;
}
@media (max-width:900px) {
  .creation-version-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .creation-version-header .creation-version-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .creation-version-header .creation-version-option {
    min-width: 0;
  }
}
@media (max-width:650px) {
  .creation-version-header {
    margin-top: 16px;
    padding: 0 16px;
    gap: 12px;
  }
  .creation-version-header > h1 {
    font-size: 22px;
  }
  .creation-version-header .creation-version-nav {
    gap: 8px;
  }
  .creation-version-header .creation-version-option {
    padding: 9px 8px;
    min-height: 58px;
    font-size: 12px;
    line-height: 19px;
    border-radius: 9px;
    overflow-wrap: anywhere;
  }
  .latest-studio-scope .latest-connected > .latest-workbench-toolbar {
    margin-bottom: 12px;
  }
  .latest-studio-scope .latest-workbench-toolbar .h3-header-actions {
    justify-content: flex-start;
    gap: 8px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .creation-version-header .creation-version-option {
    transition: none;
  }
}

/* apps/web/src/pages/latest/latest-form-layout.css */
.latest-studio-scope .latest-connected .latest-form-layout {
  padding: 24px 26px;
}
.latest-form-layout .latest-form-section {
  min-width: 0;
}
.latest-form-layout .latest-form-section + .latest-form-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e9eef6;
}
.latest-form-layout .h3-step-heading {
  margin: 0 0 16px;
}
.latest-form-layout .h3-step-heading h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 17px;
  line-height: 26px;
  font-weight: 650;
}
.latest-form-layout .h3-step-heading p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: #72839c;
}
.latest-form-layout .h3-step-number {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #edf2ff;
  color: #3260e8;
  font-size: 12px;
}
.latest-form-layout .latest-section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 13px;
}
.latest-form-layout .latest-section-label span {
  color: #71839e;
  font-size: 12px;
  white-space: nowrap;
}
.latest-studio-scope .latest-form-layout .h3-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
  align-items: stretch;
}
.latest-studio-scope .latest-form-layout .h3-images > div {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  position: relative;
}
.latest-studio-scope .latest-form-layout .h3-upload-card {
  height: 272px;
  min-height: 272px;
  padding: 13px 14px;
  box-sizing: border-box;
  border: 1px solid #e0e7f1;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.latest-form-layout .h3-upload-heading {
  min-height: 24px;
  margin: 0 0 9px;
}
.latest-studio-scope .latest-form-layout .h3-upload-heading strong {
  margin: 0;
  font-size: 13px;
  line-height: 24px;
}
.latest-form-layout .h3-upload-badge {
  font-size: 10px;
  padding: 2px 7px;
  line-height: 18px;
}
.latest-studio-scope .latest-form-layout .h3-image-dropzone {
  height: 136px;
  min-height: 136px;
}
.latest-studio-scope .latest-form-layout .h3-image-dropzone img,
.latest-studio-scope .latest-form-layout .h3-image-dropzone .h3-placeholder {
  height: 100%;
  min-height: 0;
  width: 100%;
  object-fit: contain;
}
.latest-studio-scope .latest-form-layout .h3-image-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
  min-height: 34px;
  flex-wrap: nowrap;
}
.latest-form-layout .h3-image-actions .btn {
  height: 34px;
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.latest-form-layout .h3-upload-feedback {
  min-height: 20px;
  margin-top: 7px;
  font-size: 11px;
  line-height: 17px;
  gap: 5px;
  flex-wrap: nowrap;
}
.latest-form-layout .h3-upload-feedback > span:not(.h3-upload-indicator) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.latest-form-layout .h3-upload-feedback .h3-upload-filename {
  display: none;
}
.latest-form-layout .latest-upload-retry {
  position: absolute;
  right: 14px;
  bottom: 33px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  font-size: 12px;
}
.latest-studio-scope .latest-form-layout .latest-reference-section {
  padding: 14px 16px;
  margin: 10px 0 0;
  border: 1px solid #e1e8f3;
  border-radius: 12px;
  background: #f9fbfe;
}
.latest-form-layout .latest-reference-section summary {
  display: list-item;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  color: #263f61;
}
.latest-form-layout .latest-reference-section summary::marker {
  color: #8598b5;
  font-size: 11px;
}
.latest-form-layout .latest-reference-section summary > span {
  float: right;
  margin-left: 12px;
  font-size: 12px;
  font-weight: 400;
  color: #7386a0;
}
.latest-form-layout .latest-reference-help {
  margin: 9px 0 12px;
  line-height: 1.7;
  font-size: 12px;
  color: #7b8da5;
}
.latest-studio-scope .latest-form-layout .latest-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  align-items: stretch;
}
.latest-studio-scope .latest-form-layout .latest-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 136px;
  min-height: 136px;
  margin: 0;
  background: #f6f8fc;
  border: 1px dashed #dce3ec;
  border-radius: 9px;
  box-sizing: border-box;
}
.latest-form-layout .latest-media-placeholder p {
  font-size: 12px;
  line-height: 1.6;
  max-width: 90%;
  margin: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.latest-form-layout .latest-media-placeholder small {
  font-size: 11px;
}
.latest-form-layout .latest-media-placeholder > span {
  font-size: 25px;
  color: #8ba4cd;
  line-height: 1;
}
.latest-form-layout .latest-media-saved,
.latest-form-layout .latest-upload-status {
  margin: 7px 0 0;
  padding: 0;
  font-size: 11px;
  line-height: 18px;
  min-height: 20px;
}
.latest-form-layout .latest-upload-status {
  flex-wrap: wrap;
  gap: 5px;
}
.latest-form-layout .latest-upload-status .h3-upload-track {
  width: 52px;
  margin-top: 0;
}
.latest-form-layout .h3-prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}
.latest-form-layout .h3-prompt-heading .h3-field-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #415676;
}
.latest-form-layout .latest-prompt-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.latest-form-layout .latest-prompt-actions .btn {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 8px;
}
.latest-form-layout .latest-prompt-actions .latest-prompt-clear,
.latest-form-layout .latest-prompt-actions .latest-prompt-undo {
  width: 36px;
  min-width: 36px;
  padding: 0;
}
.latest-studio-scope .latest-form-layout #latest-prompt {
  display: block;
  min-height: 260px;
  height: 300px;
  max-height: 650px;
  margin: 12px 0 0;
  padding: 14px 16px;
  background: #fcfdff;
  font:
    13px/1.85 Consolas,
    "SFMono-Regular",
    monospace;
  resize: vertical;
}
.latest-studio-scope .latest-form-layout .latest-settings-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}
.latest-form-layout .latest-resolution-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  min-width: 0;
  flex: 1;
}
.latest-form-layout .latest-resolution-label {
  font-size: 13px;
  font-weight: 600;
  color: #304665;
  white-space: nowrap;
}
.latest-form-layout .latest-resolution-settings label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  white-space: nowrap;
}
.latest-studio-scope .latest-form-layout .latest-resolution-settings select {
  width: 102px;
  min-width: 102px;
  height: 38px;
  min-height: 38px;
  padding: 7px 10px;
  font-size: 13px;
}
.latest-form-layout .latest-resolution-hint {
  flex-basis: 100%;
  font-size: 12px;
  line-height: 1.7;
  color: #7b8da6;
}
.latest-studio-scope .latest-form-layout .latest-settings-main .latest-martial-card {
  margin: 0;
  padding: 12px 14px;
  min-height: 76px;
  gap: 10px;
  border-radius: 12px;
  box-shadow: none;
  flex-shrink: 0;
}
.latest-form-layout .latest-martial-copy strong {
  font-size: 13px;
}
.latest-form-layout .latest-martial-copy small {
  font-size: 11px;
}
.latest-form-layout .latest-martial-emblem {
  width: 32px;
  height: 34px;
}
.latest-form-layout .latest-generation-range .h3-step-heading {
  margin-bottom: 14px;
}
.latest-studio-scope .latest-form-layout .latest-range {
  gap: 10px;
  font-size: 13px;
}
.latest-form-layout .latest-range > label {
  display: flex;
  gap: 9px;
  align-items: center;
}
.latest-studio-scope .latest-form-layout .latest-range input {
  width: 82px;
  min-height: 38px;
  height: 38px;
  font-size: 13px;
}
.latest-form-layout .latest-generation-range > .h3-field-hint {
  margin: 10px 0 14px;
  font-size: 12px;
  color: #7385a0;
  line-height: 1.7;
}
.latest-studio-scope .latest-form-layout .latest-save-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0;
}
.latest-form-layout .latest-save-settings > label {
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
}
.latest-studio-scope .latest-form-layout .latest-save-settings input:not([type=checkbox]) {
  width: 230px;
  max-width: 100%;
  height: 38px;
  min-height: 38px;
  font-size: 13px;
}
.latest-form-layout input[type=checkbox] {
  accent-color: #2f61ed;
}
.latest-form-layout .latest-save-settings input[type=checkbox] {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
}
.latest-form-layout .latest-generate-actions {
  margin: 24px 0 12px;
  gap: 10px;
}
.latest-form-layout > .h3-field-hint {
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 0;
}
@media (max-width:960px) {
  .latest-form-layout .latest-resolution-settings {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-form-layout .latest-settings-main .latest-martial-card {
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
  }
  .latest-form-layout .latest-martial-control {
    margin-left: auto;
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-connected .latest-form-layout {
    padding: 16px;
  }
  .latest-form-layout .latest-form-section + .latest-form-section {
    margin-top: 20px;
    padding-top: 20px;
  }
  .latest-studio-scope .latest-form-layout .h3-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .latest-studio-scope .latest-form-layout .h3-upload-card {
    padding: 10px 8px;
    height: 252px;
    min-height: 252px;
  }
  .latest-form-layout .h3-upload-heading {
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0;
    min-height: 42px;
    margin-bottom: 6px;
  }
  .latest-form-layout .h3-upload-badge {
    font-size: 9px;
    padding: 1px 5px;
    line-height: 16px;
  }
  .latest-studio-scope .latest-form-layout .h3-image-dropzone {
    height: 112px;
    min-height: 112px;
  }
  .latest-studio-scope .latest-form-layout .h3-image-help {
    font-size: 10px;
    line-height: 1.6;
    padding: 0 3px;
  }
  .latest-form-layout .h3-image-actions {
    gap: 4px;
  }
  .latest-form-layout .h3-image-actions .btn {
    font-size: 11px;
    padding: 0 4px;
    min-width: 0;
    white-space: nowrap;
    flex: 1;
  }
  .latest-form-layout .h3-upload-feedback {
    font-size: 10px;
  }
  .latest-studio-scope .latest-form-layout .latest-media-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .latest-form-layout .latest-media-grid .h3-upload-heading {
    min-height: 24px;
    flex-wrap: nowrap;
  }
  .latest-studio-scope .latest-form-layout .latest-reference-section {
    padding: 12px;
  }
  .latest-form-layout .latest-prompt-actions {
    gap: 6px;
  }
  .latest-studio-scope .latest-form-layout #latest-prompt {
    height: 280px;
    min-height: 220px;
    padding: 12px;
    font-size: 12px;
  }
  .latest-form-layout .latest-resolution-settings {
    gap: 12px;
  }
  .latest-form-layout .latest-resolution-label {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-form-layout .latest-resolution-settings select {
    width: 92px;
    min-width: 92px;
  }
  .latest-form-layout .latest-save-settings > label {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .latest-studio-scope .latest-form-layout .latest-save-settings input:not([type=checkbox]) {
    width: 210px;
  }
}

/* apps/web/src/pages/latest/latest-prompt-tools.css */
.latest-studio-scope .latest-prompt-review {
  margin-top: 14px;
}
.latest-studio-scope .latest-review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-review-toolbar > p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #7688a2;
}
.latest-studio-scope .latest-review-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-review-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  min-height: 36px;
  font-size: 12px;
  padding: 0 14px;
}
.latest-studio-scope .latest-review-actions .machine-creation-spinner {
  width: 14px;
  height: 14px;
}
.latest-studio-scope .latest-review-result {
  padding: 16px 18px;
  margin-top: 14px;
  border: 1px solid #e5d9bc;
  border-radius: 10px;
  background: #fffcf6;
  color: #74552a;
  font-size: 13px;
  line-height: 1.75;
}
.latest-studio-scope .latest-review-result.is-passed {
  border-color: #cce7da;
  background: #f2fbf7;
  color: #217b5a;
}
.latest-studio-scope .latest-review-result-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.latest-studio-scope .latest-review-result-heading > span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.latest-studio-scope .latest-review-result > p {
  margin: 7px 0;
}
.latest-studio-scope .latest-review-result ul {
  margin: 8px 0;
  padding-left: 22px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .latest-review-comparison > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.latest-studio-scope .latest-review-comparison section {
  min-width: 0;
}
.latest-studio-scope .latest-review-comparison h4 {
  margin: 10px 0 6px;
}
.latest-studio-scope .latest-review-comparison pre {
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  padding: 12px;
  background: #fff;
  border: 1px solid #dce8e1;
  border-radius: 8px;
  color: #465b77;
  font: 12px/1.8 Consolas, monospace;
}
.latest-studio-scope .latest-review-notice {
  margin: 10px 0 0;
  font-size: 12px;
  color: #6f839f;
}
.latest-studio-scope .latest-range-controls {
  display: flex;
  align-items: center;
  gap: 12px 18px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 18px;
}
.latest-studio-scope .latest-range-controls label {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.latest-studio-scope .latest-range-controls input {
  width: 80px;
  height: 38px;
  min-height: 38px;
}
.latest-studio-scope .latest-range-controls select {
  height: 38px;
  min-height: 38px;
  min-width: 155px;
}
.latest-studio-scope .latest-range-controls > .h3-field-hint {
  color: #7487a1;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.latest-studio-scope .latest-connection {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.latest-studio-scope .latest-connection-dot {
  position: relative;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8ca0b9;
}
.latest-studio-scope .is-ready .latest-connection-dot {
  background: #16b981;
  box-shadow: 0 0 0 3px #16b98114;
}
.latest-studio-scope .is-ready .latest-connection-dot:after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid #23bd8b;
  border-radius: 50%;
  animation: latest-connection-breathe 2.2s ease-out infinite;
}
.latest-studio-scope .is-connecting .latest-connection-dot {
  background: #688cef;
  animation: latest-connection-fade 1.8s ease-in-out infinite;
}
.latest-studio-scope .is-unavailable .latest-connection-dot {
  background: #e1a14b;
}
dialog.latest-confirm-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  padding: 26px;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: #fff;
  color: #183555;
  box-shadow: 0 20px 70px #10274838;
  overflow: auto;
}
dialog.latest-confirm-dialog:not([open]) {
  display: none;
}
dialog.latest-confirm-dialog::backdrop {
  background: #10233e66;
}
.latest-confirm-dialog .latest-confirm-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #edf3ff;
  color: #2a60e8;
  font-size: 20px;
  font-weight: 700;
}
.latest-confirm-dialog h2 {
  font-size: 18px;
  line-height: 1.5;
  margin: 2px 0 10px;
}
.latest-confirm-dialog .machine-confirm-description {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
  color: #6d7e96;
}
.latest-confirm-dialog .machine-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.latest-confirm-dialog .btn {
  min-height: 38px;
  font-size: 13px;
  padding: 8px 18px;
}
@keyframes latest-connection-breathe {
  0% {
    opacity: .65;
    transform: scale(.6);
  }
  85%, 100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes latest-connection-fade {
  0%, 100% {
    opacity: .35;
  }
  50% {
    opacity: 1;
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-review-actions {
    width: 100%;
  }
  .latest-studio-scope .latest-review-actions .btn {
    flex: 1;
  }
  .latest-studio-scope .latest-review-comparison > div {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-range-controls {
    gap: 12px;
  }
  .latest-studio-scope .latest-range-controls > .h3-field-hint {
    flex-basis: 100%;
  }
  dialog.latest-confirm-dialog {
    padding: 20px;
    gap: 12px;
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .latest-confirm-dialog .latest-confirm-icon {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-connection-dot,
  .latest-studio-scope .latest-connection-dot:after {
    animation: none;
  }
}


/* apps/web/src/components/creation-versions.css */
.creation-version-intro {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 24px;
}
.creation-version-intro > .creation-version-header {
  max-width: none;
  margin: 0;
  padding: 0;
}
.creation-current-version {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 7px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  color: #596b85;
  background: #f8fafc;
  overflow-wrap: anywhere;
}
.creation-current-version.is-latest {
  color: #285ced;
  background: #edf3ff;
  border-color: #d9e5ff;
}
.creation-current-version.is-classic {
  color: #96702f;
  background: #fffaf0;
  border-color: #f1e4cc;
}
.creation-generation-notice {
  margin: 10px 0 0;
  color: #71819a;
  font-size: 12px;
  line-height: 1.7;
}
.machine-row-actions .machine-creation-center-entry .machine-enter-legacy.btn-primary:not(:disabled) {
  background: #1a56db;
  border-color: #1a56db;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 5px #1a56db25;
}
.machine-row-actions .machine-creation-center-entry .machine-enter-legacy.btn-primary:hover:not(:disabled) {
  background: #1445b5;
  border-color: #1445b5;
}
.machine-creation-center-entry .machine-enter-legacy.btn-primary span {
  color: inherit;
}
.machine-row-actions .machine-creation-center-entry .machine-enter-studio.btn-ghost:not(:disabled) {
  background: #fff;
  border-color: #dce3ed;
  color: #64748b;
  font-weight: 500;
  box-shadow: none;
}
.machine-row-actions .machine-creation-center-entry .machine-enter-studio.btn-ghost:hover:not(:disabled) {
  background: #f4f6fa;
  border-color: #bfcddd;
  color: #334e70;
  box-shadow: none;
}
.creation-version-header {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink,#102544);
}
.creation-version-header > h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.creation-version-header .creation-version-nav {
  margin: 0;
  padding: 0;
  max-width: none;
  display: flex;
  align-items: stretch;
  gap: 10px;
  font-size: 13px;
  flex-wrap: nowrap;
}
.creation-version-header .creation-version-option {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  color: #596b85;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  text-align: center;
  transition:
    border-color .18s,
    background .18s,
    color .18s;
}
.creation-version-header .creation-version-option.is-latest[aria-current=page] {
  background: #285ced;
  border-color: #285ced;
  color: #fff;
  box-shadow: 0 2px 6px #285ced18;
}
.creation-version-header .creation-version-option.is-classic[aria-current=page] {
  background: #eef2f7;
  border-color: #c7d3e2;
  color: #243e61;
  font-weight: 650;
}
.creation-version-header a.creation-version-option:not([aria-current=page]):hover {
  background: #f7f9fd;
  border-color: #adc1e3;
  color: #2859bd;
}
.creation-version-header a.creation-version-option:focus-visible {
  outline: 2px solid #80a2ff;
  outline-offset: 3px;
}
.creation-version-page > .creation-center > .page-header {
  margin: 12px 0 14px;
  min-height: 38px;
  justify-content: flex-end;
}
.creation-version-page > .creation-center > .page-header > .page-header-copy {
  display: none;
}
.creation-version-page > .creation-center > .page-header .page-header-actions {
  margin-left: auto;
}
.latest-studio-scope .latest-connected {
  padding-top: 12px;
}
.latest-studio-scope .latest-connected > .latest-workbench-toolbar {
  justify-content: flex-end;
  min-height: 40px;
  margin: 0 0 16px;
}
.latest-studio-scope .latest-workbench-toolbar .h3-header-actions {
  margin-left: auto;
  gap: 10px;
}
.latest-studio-scope .latest-workbench-toolbar .btn {
  height: 38px;
  min-height: 38px;
  font-size: 13px;
}
.creation-gateway-version-page .h3-studio {
  padding-top: 12px;
}
.creation-gateway-version-page .h3-header .h3-creation-title {
  display: none;
}
.creation-gateway-version-page .h3-inputs > .h3-panel-heading {
  display: none;
}
.creation-gateway-version-page .h3-header {
  gap: 14px;
}
@media (max-width:900px) {
  .creation-version-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .creation-version-header .creation-version-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .creation-version-header .creation-version-option {
    min-width: 0;
  }
}
@media (max-width:650px) {
  .creation-version-intro {
    margin-top: 16px;
    padding: 0 16px;
  }
  .creation-version-header {
    margin-top: 16px;
    padding: 0 16px;
    gap: 12px;
  }
  .creation-version-header > h1 {
    font-size: 22px;
  }
  .creation-version-header .creation-version-nav {
    gap: 8px;
  }
  .creation-version-header .creation-version-option {
    padding: 9px 8px;
    min-height: 58px;
    font-size: 12px;
    line-height: 19px;
    border-radius: 9px;
    overflow-wrap: anywhere;
  }
  .latest-studio-scope .latest-connected > .latest-workbench-toolbar {
    margin-bottom: 12px;
  }
  .latest-studio-scope .latest-workbench-toolbar .h3-header-actions {
    justify-content: flex-start;
    gap: 8px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .creation-version-header .creation-version-option {
    transition: none;
  }
}

/* apps/web/src/pages/latest/latest-form-layout.css */
.latest-form-layout .latest-optional-media-note {
  margin: -4px 0 16px;
  padding: 10px 12px;
  border: 1px solid #dce9ff;
  border-radius: 9px;
  background: #f3f7ff;
  color: #48678f;
  font-size: 12px;
  line-height: 1.7;
}
.latest-form-layout .h3-upload-heading strong {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.latest-form-layout .latest-reference-tag {
  display: inline-block;
  padding: 0 5px;
  border-radius: 4px;
  background: #eef4ff;
  color: #3262bb;
  font-size: 10px;
  line-height: 19px;
  white-space: nowrap;
  font-weight: 500;
}
.latest-form-layout .latest-reference-numbering {
  margin: 12px 0 0;
  line-height: 1.7;
  font-size: 12px;
  color: #71839d;
}
.latest-studio-scope .latest-connected .latest-form-layout {
  padding: 24px 26px;
}
.latest-form-layout .latest-form-section {
  min-width: 0;
}
.latest-form-layout .latest-form-section + .latest-form-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e9eef6;
}
.latest-form-layout .h3-step-heading {
  margin: 0 0 16px;
}
.latest-form-layout .h3-step-heading h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 17px;
  line-height: 26px;
  font-weight: 650;
}
.latest-form-layout .h3-step-heading p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: #72839c;
}
.latest-form-layout .h3-step-number {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #edf2ff;
  color: #3260e8;
  font-size: 12px;
}
.latest-form-layout .latest-section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 13px;
}
.latest-form-layout .latest-section-label span {
  color: #71839e;
  font-size: 12px;
  white-space: nowrap;
}
.latest-studio-scope .latest-form-layout .h3-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
  align-items: stretch;
}
.latest-studio-scope .latest-form-layout .h3-images > div {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  position: relative;
}
.latest-studio-scope .latest-form-layout .h3-upload-card {
  height: 272px;
  min-height: 272px;
  padding: 13px 14px;
  box-sizing: border-box;
  border: 1px solid #e0e7f1;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.latest-form-layout .h3-upload-heading {
  min-height: 24px;
  margin: 0 0 9px;
}
.latest-studio-scope .latest-form-layout .h3-upload-heading strong {
  margin: 0;
  font-size: 13px;
  line-height: 24px;
}
.latest-form-layout .h3-upload-badge {
  font-size: 10px;
  padding: 2px 7px;
  line-height: 18px;
}
.latest-studio-scope .latest-form-layout .h3-image-dropzone {
  height: 136px;
  min-height: 136px;
}
.latest-studio-scope .latest-form-layout .h3-image-dropzone img,
.latest-studio-scope .latest-form-layout .h3-image-dropzone .h3-placeholder {
  height: 100%;
  min-height: 0;
  width: 100%;
  object-fit: contain;
}
.latest-studio-scope .latest-form-layout .h3-image-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
  min-height: 34px;
  flex-wrap: nowrap;
}
.latest-form-layout .h3-image-actions .btn {
  height: 34px;
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.latest-form-layout .h3-upload-feedback {
  min-height: 20px;
  margin-top: 7px;
  font-size: 11px;
  line-height: 17px;
  gap: 5px;
  flex-wrap: nowrap;
}
.latest-form-layout .h3-upload-feedback > span:not(.h3-upload-indicator) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.latest-form-layout .h3-upload-feedback .h3-upload-filename {
  display: none;
}
.latest-form-layout .latest-upload-retry {
  position: absolute;
  right: 14px;
  bottom: 33px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  font-size: 12px;
}
.latest-studio-scope .latest-form-layout .latest-reference-section {
  padding: 14px 16px;
  margin: 10px 0 0;
  border: 1px solid #e1e8f3;
  border-radius: 12px;
  background: #f9fbfe;
}
.latest-form-layout .latest-reference-section summary {
  display: list-item;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  color: #263f61;
}
.latest-form-layout .latest-reference-section summary::marker {
  color: #8598b5;
  font-size: 11px;
}
.latest-form-layout .latest-reference-section summary > span {
  float: right;
  margin-left: 12px;
  font-size: 12px;
  font-weight: 400;
  color: #7386a0;
}
.latest-form-layout .latest-reference-help {
  margin: 9px 0 12px;
  line-height: 1.7;
  font-size: 12px;
  color: #7b8da5;
}
.latest-studio-scope .latest-form-layout .latest-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  align-items: stretch;
}
.latest-studio-scope .latest-form-layout .latest-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 136px;
  min-height: 136px;
  margin: 0;
  background: #f6f8fc;
  border: 1px dashed #dce3ec;
  border-radius: 9px;
  box-sizing: border-box;
}
.latest-form-layout .latest-media-placeholder p {
  font-size: 12px;
  line-height: 1.6;
  max-width: 90%;
  margin: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.latest-form-layout .latest-media-placeholder small {
  font-size: 11px;
}
.latest-form-layout .latest-media-placeholder > span {
  font-size: 25px;
  color: #8ba4cd;
  line-height: 1;
}
.latest-form-layout .latest-media-saved,
.latest-form-layout .latest-upload-status {
  margin: 7px 0 0;
  padding: 0;
  font-size: 11px;
  line-height: 18px;
  min-height: 20px;
}
.latest-form-layout .latest-upload-status {
  flex-wrap: wrap;
  gap: 5px;
}
.latest-form-layout .latest-upload-status .h3-upload-track {
  width: 52px;
  margin-top: 0;
}
.latest-form-layout .h3-prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}
.latest-form-layout .h3-prompt-heading .h3-field-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #415676;
}
.latest-form-layout .latest-prompt-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.latest-form-layout .latest-prompt-actions .btn {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 8px;
}
.latest-form-layout .latest-prompt-actions .latest-prompt-clear,
.latest-form-layout .latest-prompt-actions .latest-prompt-undo {
  width: 36px;
  min-width: 36px;
  padding: 0;
}
.latest-studio-scope .latest-form-layout #latest-prompt {
  display: block;
  min-height: 260px;
  height: 300px;
  max-height: 650px;
  margin: 12px 0 0;
  padding: 14px 16px;
  background: #fcfdff;
  font:
    13px/1.85 Consolas,
    "SFMono-Regular",
    monospace;
  resize: vertical;
}
.latest-studio-scope .latest-form-layout .latest-settings-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}
.latest-form-layout .latest-resolution-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  min-width: 0;
  flex: 1;
}
.latest-form-layout .latest-resolution-label {
  font-size: 13px;
  font-weight: 600;
  color: #304665;
  white-space: nowrap;
}
.latest-form-layout .latest-resolution-settings label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  white-space: nowrap;
}
.latest-studio-scope .latest-form-layout .latest-resolution-settings select {
  width: 102px;
  min-width: 102px;
  height: 38px;
  min-height: 38px;
  padding: 7px 10px;
  font-size: 13px;
}
.latest-form-layout .latest-resolution-hint {
  flex-basis: 100%;
  font-size: 12px;
  line-height: 1.7;
  color: #7b8da6;
}
.latest-studio-scope .latest-form-layout .latest-settings-main .latest-martial-card {
  margin: 0;
  padding: 12px 14px;
  min-height: 76px;
  gap: 10px;
  border-radius: 12px;
  box-shadow: none;
  flex-shrink: 0;
}
.latest-form-layout .latest-martial-copy strong {
  font-size: 13px;
}
.latest-form-layout .latest-martial-copy small {
  font-size: 11px;
}
.latest-form-layout .latest-martial-emblem {
  width: 32px;
  height: 34px;
}
.latest-form-layout .latest-generation-range .h3-step-heading {
  margin-bottom: 14px;
}
.latest-studio-scope .latest-form-layout .latest-range {
  gap: 10px;
  font-size: 13px;
}
.latest-form-layout .latest-range > label {
  display: flex;
  gap: 9px;
  align-items: center;
}
.latest-studio-scope .latest-form-layout .latest-range input {
  width: 82px;
  min-height: 38px;
  height: 38px;
  font-size: 13px;
}
.latest-form-layout .latest-generation-range > .h3-field-hint {
  margin: 10px 0 14px;
  font-size: 12px;
  color: #7385a0;
  line-height: 1.7;
}
.latest-studio-scope .latest-form-layout .latest-save-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0;
}
.latest-form-layout .latest-save-settings > label {
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
}
.latest-studio-scope .latest-form-layout .latest-save-settings input:not([type=checkbox]) {
  width: 230px;
  max-width: 100%;
  height: 38px;
  min-height: 38px;
  font-size: 13px;
}
.latest-form-layout input[type=checkbox] {
  accent-color: #2f61ed;
}
.latest-form-layout .latest-save-settings input[type=checkbox] {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
}
.latest-form-layout .latest-generate-actions {
  margin: 24px 0 12px;
  gap: 10px;
}
.latest-form-layout > .h3-field-hint {
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 0;
}
@media (max-width:960px) {
  .latest-form-layout .latest-resolution-settings {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-form-layout .latest-settings-main .latest-martial-card {
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
  }
  .latest-form-layout .latest-martial-control {
    margin-left: auto;
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-connected .latest-form-layout {
    padding: 16px;
  }
  .latest-form-layout .latest-form-section + .latest-form-section {
    margin-top: 20px;
    padding-top: 20px;
  }
  .latest-studio-scope .latest-form-layout .h3-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .latest-studio-scope .latest-form-layout .h3-upload-card {
    padding: 10px 8px;
    height: 252px;
    min-height: 252px;
  }
  .latest-form-layout .h3-upload-heading {
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0;
    min-height: 42px;
    margin-bottom: 6px;
  }
  .latest-form-layout .h3-upload-badge {
    font-size: 9px;
    padding: 1px 5px;
    line-height: 16px;
  }
  .latest-studio-scope .latest-form-layout .h3-image-dropzone {
    height: 112px;
    min-height: 112px;
  }
  .latest-studio-scope .latest-form-layout .h3-image-help {
    font-size: 10px;
    line-height: 1.6;
    padding: 0 3px;
  }
  .latest-form-layout .h3-image-actions {
    gap: 4px;
  }
  .latest-form-layout .h3-image-actions .btn {
    font-size: 11px;
    padding: 0 4px;
    min-width: 0;
    white-space: nowrap;
    flex: 1;
  }
  .latest-form-layout .h3-upload-feedback {
    font-size: 10px;
  }
  .latest-studio-scope .latest-form-layout .latest-media-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .latest-form-layout .latest-media-grid .h3-upload-heading {
    min-height: 24px;
    flex-wrap: nowrap;
  }
  .latest-studio-scope .latest-form-layout .latest-reference-section {
    padding: 12px;
  }
  .latest-form-layout .latest-prompt-actions {
    gap: 6px;
  }
  .latest-studio-scope .latest-form-layout #latest-prompt {
    height: 280px;
    min-height: 220px;
    padding: 12px;
    font-size: 12px;
  }
  .latest-form-layout .latest-resolution-settings {
    gap: 12px;
  }
  .latest-form-layout .latest-resolution-label {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-form-layout .latest-resolution-settings select {
    width: 92px;
    min-width: 92px;
  }
  .latest-form-layout .latest-save-settings > label {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .latest-studio-scope .latest-form-layout .latest-save-settings input:not([type=checkbox]) {
    width: 210px;
  }
}

/* apps/web/src/pages/latest/latest-prompt-tools.css */
.latest-studio-scope .latest-prompt-review {
  margin-top: 14px;
}
.latest-studio-scope .latest-review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-review-toolbar > p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #7688a2;
}
.latest-studio-scope .latest-review-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-review-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  min-height: 36px;
  font-size: 12px;
  padding: 0 14px;
}
.latest-studio-scope .latest-review-actions .machine-creation-spinner {
  width: 14px;
  height: 14px;
}
.latest-studio-scope .latest-review-result {
  padding: 16px 18px;
  margin-top: 14px;
  border: 1px solid #e5d9bc;
  border-radius: 10px;
  background: #fffcf6;
  color: #74552a;
  font-size: 13px;
  line-height: 1.75;
}
.latest-studio-scope .latest-review-result.is-passed {
  border-color: #cce7da;
  background: #f2fbf7;
  color: #217b5a;
}
.latest-studio-scope .latest-review-result-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.latest-studio-scope .latest-review-result-heading > span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.latest-studio-scope .latest-review-result > p {
  margin: 7px 0;
}
.latest-studio-scope .latest-review-result ul {
  margin: 8px 0;
  padding-left: 22px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .latest-review-comparison > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.latest-studio-scope .latest-review-comparison section {
  min-width: 0;
}
.latest-studio-scope .latest-review-comparison h4 {
  margin: 10px 0 6px;
}
.latest-studio-scope .latest-review-comparison pre {
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  padding: 12px;
  background: #fff;
  border: 1px solid #dce8e1;
  border-radius: 8px;
  color: #465b77;
  font: 12px/1.8 Consolas, monospace;
}
.latest-studio-scope .latest-review-notice {
  margin: 10px 0 0;
  font-size: 12px;
  color: #6f839f;
}
.latest-studio-scope .latest-range-controls {
  display: flex;
  align-items: center;
  gap: 12px 18px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 18px;
}
.latest-studio-scope .latest-range-controls label {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.latest-studio-scope .latest-range-controls input {
  width: 80px;
  height: 38px;
  min-height: 38px;
}
.latest-studio-scope .latest-range-controls select {
  height: 38px;
  min-height: 38px;
  min-width: 155px;
}
.latest-studio-scope .latest-range-controls > .h3-field-hint {
  color: #7487a1;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.latest-studio-scope .latest-connection {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.latest-studio-scope .latest-connection-dot {
  position: relative;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8ca0b9;
}
.latest-studio-scope .is-ready .latest-connection-dot {
  background: #16b981;
  box-shadow: 0 0 0 3px #16b98114;
}
.latest-studio-scope .is-ready .latest-connection-dot:after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid #23bd8b;
  border-radius: 50%;
  animation: latest-connection-breathe 2.2s ease-out infinite;
}
.latest-studio-scope .is-connecting .latest-connection-dot {
  background: #688cef;
  animation: latest-connection-fade 1.8s ease-in-out infinite;
}
.latest-studio-scope .is-unavailable .latest-connection-dot {
  background: #e1a14b;
}
dialog.latest-confirm-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  padding: 26px;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: #fff;
  color: #183555;
  box-shadow: 0 20px 70px #10274838;
  overflow: auto;
}
dialog.latest-confirm-dialog:not([open]) {
  display: none;
}
dialog.latest-confirm-dialog::backdrop {
  background: #10233e66;
}
.latest-confirm-dialog .latest-confirm-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #edf3ff;
  color: #2a60e8;
  font-size: 20px;
  font-weight: 700;
}
.latest-confirm-dialog h2 {
  font-size: 18px;
  line-height: 1.5;
  margin: 2px 0 10px;
}
.latest-confirm-dialog .machine-confirm-description {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
  color: #6d7e96;
}
.latest-confirm-dialog .machine-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.latest-confirm-dialog .btn {
  min-height: 38px;
  font-size: 13px;
  padding: 8px 18px;
}
@keyframes latest-connection-breathe {
  0% {
    opacity: .65;
    transform: scale(.6);
  }
  85%, 100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes latest-connection-fade {
  0%, 100% {
    opacity: .35;
  }
  50% {
    opacity: 1;
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-review-actions {
    width: 100%;
  }
  .latest-studio-scope .latest-review-actions .btn {
    flex: 1;
  }
  .latest-studio-scope .latest-review-comparison > div {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-range-controls {
    gap: 12px;
  }
  .latest-studio-scope .latest-range-controls > .h3-field-hint {
    flex-basis: 100%;
  }
  dialog.latest-confirm-dialog {
    padding: 20px;
    gap: 12px;
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .latest-confirm-dialog .latest-confirm-icon {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-connection-dot,
  .latest-studio-scope .latest-connection-dot:after {
    animation: none;
  }
}


.machine-creation-center-entry .machine-enter-legacy.btn-primary span{color:inherit;font:inherit;line-height:inherit;display:inline}
.machine-row-actions .machine-creation-center-entry .machine-enter-studio.btn-ghost:not(:disabled){font-weight:600}
.machine-row-actions .machine-creation-center-entry .btn:is(.machine-enter-legacy,.machine-enter-studio){font-size:14px;line-height:20px;font-weight:600}


/* apps/web/src/components/creation-versions.css */
.creation-version-intro {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 24px;
}
.creation-version-intro > .creation-version-header {
  max-width: none;
  margin: 0;
  padding: 0;
}
.creation-current-version {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 7px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  color: #596b85;
  background: #f8fafc;
  overflow-wrap: anywhere;
}
.creation-current-version.is-latest {
  color: #285ced;
  background: #edf3ff;
  border-color: #d9e5ff;
}
.creation-current-version.is-classic {
  color: #96702f;
  background: #fffaf0;
  border-color: #f1e4cc;
}
.creation-generation-notice {
  margin: 10px 0 0;
  color: #71819a;
  font-size: 12px;
  line-height: 1.7;
}
.machine-row-actions .machine-creation-center-entry .machine-enter-legacy.btn-primary:not(:disabled) {
  background: #1a56db;
  border-color: #1a56db;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 5px #1a56db25;
}
.machine-row-actions .machine-creation-center-entry .machine-enter-legacy.btn-primary:hover:not(:disabled) {
  background: #1445b5;
  border-color: #1445b5;
}
.machine-creation-center-entry .machine-enter-legacy.btn-primary span {
  color: inherit;
  font: inherit;
  line-height: inherit;
  display: inline;
}
.machine-row-actions .machine-creation-center-entry .machine-enter-studio.btn-ghost:not(:disabled) {
  background: #fff;
  border-color: #dce3ed;
  color: #64748b;
  font-weight: 600;
  box-shadow: none;
}
.machine-row-actions .machine-creation-center-entry .machine-enter-studio.btn-ghost:hover:not(:disabled) {
  background: #f4f6fa;
  border-color: #bfcddd;
  color: #334e70;
  box-shadow: none;
}
.machine-row-actions .machine-creation-center-entry .btn:is(.machine-enter-legacy, .machine-enter-studio) {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.creation-version-header {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink,#102544);
}
.creation-version-header > h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.creation-version-header .creation-version-nav {
  margin: 0;
  padding: 0;
  max-width: none;
  display: flex;
  align-items: stretch;
  gap: 10px;
  font-size: 13px;
  flex-wrap: nowrap;
}
.creation-version-header .creation-version-option {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  color: #596b85;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  text-align: center;
  transition:
    border-color .18s,
    background .18s,
    color .18s;
}
.creation-version-header .creation-version-option.is-latest[aria-current=page] {
  background: #285ced;
  border-color: #285ced;
  color: #fff;
  box-shadow: 0 2px 6px #285ced18;
}
.creation-version-header .creation-version-option.is-classic[aria-current=page] {
  background: #eef2f7;
  border-color: #c7d3e2;
  color: #243e61;
  font-weight: 650;
}
.creation-version-header a.creation-version-option:not([aria-current=page]):hover {
  background: #f7f9fd;
  border-color: #adc1e3;
  color: #2859bd;
}
.creation-version-header a.creation-version-option:focus-visible {
  outline: 2px solid #80a2ff;
  outline-offset: 3px;
}
.creation-version-page > .creation-center > .page-header {
  margin: 12px 0 14px;
  min-height: 38px;
  justify-content: flex-end;
}
.creation-version-page > .creation-center > .page-header > .page-header-copy {
  display: none;
}
.creation-version-page > .creation-center > .page-header .page-header-actions {
  margin-left: auto;
}
.latest-studio-scope .latest-connected {
  padding-top: 12px;
}
.latest-studio-scope .latest-connected > .latest-workbench-toolbar {
  justify-content: flex-end;
  min-height: 40px;
  margin: 0 0 16px;
}
.latest-studio-scope .latest-workbench-toolbar .h3-header-actions {
  margin-left: auto;
  gap: 10px;
}
.latest-studio-scope .latest-workbench-toolbar .btn {
  height: 38px;
  min-height: 38px;
  font-size: 13px;
}
.creation-gateway-version-page .h3-studio {
  padding-top: 12px;
}
.creation-gateway-version-page .h3-header .h3-creation-title {
  display: none;
}
.creation-gateway-version-page .h3-inputs > .h3-panel-heading {
  display: none;
}
.creation-gateway-version-page .h3-header {
  gap: 14px;
}
@media (max-width:900px) {
  .creation-version-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .creation-version-header .creation-version-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .creation-version-header .creation-version-option {
    min-width: 0;
  }
}
@media (max-width:650px) {
  .creation-version-intro {
    margin-top: 16px;
    padding: 0 16px;
  }
  .creation-version-header {
    margin-top: 16px;
    padding: 0 16px;
    gap: 12px;
  }
  .creation-version-header > h1 {
    font-size: 22px;
  }
  .creation-version-header .creation-version-nav {
    gap: 8px;
  }
  .creation-version-header .creation-version-option {
    padding: 9px 8px;
    min-height: 58px;
    font-size: 12px;
    line-height: 19px;
    border-radius: 9px;
    overflow-wrap: anywhere;
  }
  .latest-studio-scope .latest-connected > .latest-workbench-toolbar {
    margin-bottom: 12px;
  }
  .latest-studio-scope .latest-workbench-toolbar .h3-header-actions {
    justify-content: flex-start;
    gap: 8px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .creation-version-header .creation-version-option {
    transition: none;
  }
}

/* apps/web/src/components/studio-upload-status.css */
.h3-upload-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 238px;
}
.h3-upload-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 24px;
  margin-bottom: 10px;
}
.h3-upload-heading > strong {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  white-space: nowrap;
  flex-shrink: 0;
}
.h3-upload-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  border-radius: 20px;
  padding: 3px 7px;
  background: #edf3ff;
  color: #2459df;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}
.h3-upload-badge.is-queued {
  color: #64748b;
  background: #f0f3f8;
}
.h3-upload-badge.is-uploaded {
  color: #14835e;
  background: #eaf9f1;
}
.h3-upload-badge.is-failed {
  color: #c34747;
  background: #fff0ef;
}
.h3-upload-dot {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.is-uploading > .h3-upload-dot {
  animation: h3-upload-pulse 1.4s ease-in-out infinite;
}
.h3-upload-card .h3-image-dropzone {
  position: relative;
  flex-shrink: 0;
  background: #f6f8fc;
  transition: border-color .2s, box-shadow .2s;
}
.h3-upload-card .h3-image-dropzone[aria-disabled=true] {
  opacity: 1;
}
.h3-upload-card.is-uploading .h3-image-dropzone {
  border-style: solid;
  border-color: #bdd0ff;
  box-shadow: 0 0 0 3px #2459df08;
}
.h3-upload-card.is-queued .h3-image-dropzone {
  border-color: #cbd5e1;
}
.h3-upload-card.is-uploaded .h3-image-dropzone {
  border-style: solid;
  border-color: #c5e5d7;
}
.h3-upload-card.is-failed .h3-image-dropzone {
  border-color: #f0c1c1;
}
.h3-upload-card .h3-placeholder {
  align-content: center;
  gap: 5px;
}
.h3-upload-card .h3-image-help {
  font-size: 11px;
  line-height: 1.7;
  padding: 0 6px;
}
.h3-upload-empty-icon {
  width: 26px;
  height: 26px;
  margin: 0 auto;
  color: #94a8c8;
}
.h3-upload-overlay {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background:
    linear-gradient(
      145deg,
      #f8fbffed,
      #eef4fff5);
  color: #2459df;
  pointer-events: none;
  backdrop-filter: blur(3px);
}
.h3-upload-overlay.is-queued {
  background:
    linear-gradient(
      145deg,
      #fafcffef,
      #f0f4f9f5);
  color: #71819b;
}
.h3-upload-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 12px #2459df0c;
}
.h3-upload-orbit:before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 2px solid #dce7ff;
  border-top-color: #3d6ef0;
  border-radius: 50%;
  animation: h3-upload-spin 1.2s linear infinite;
}
.h3-upload-overlay.is-queued .h3-upload-orbit:before {
  border-color: #dce3ed;
  animation: h3-upload-pulse 1.8s ease-in-out infinite;
}
.h3-upload-title {
  font-size: 14px;
  font-weight: 650;
  line-height: 20px;
}
.h3-upload-subtitle {
  font-size: 11px;
  line-height: 17px;
  color: #7890b3;
}
.h3-upload-track {
  display: block;
  position: relative;
  width: 100px;
  height: 3px;
  margin-top: 4px;
  border-radius: 6px;
  background: #dce7fc;
  overflow: hidden;
}
.h3-upload-track > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 45%;
  border-radius: 6px;
  background:
    linear-gradient(
      90deg,
      #81a6ff,
      #3b6bf0);
  animation: h3-upload-slide 1.6s ease-in-out infinite;
}
.h3-upload-overlay.is-queued .h3-upload-track {
  background: #e0e6ef;
}
.h3-upload-overlay.is-queued .h3-upload-track > span {
  background: #aebbd0;
  animation-duration: 2.8s;
}
.h3-upload-card .h3-image-actions {
  margin: 11px 0 7px;
  gap: 7px;
  min-height: 36px;
}
.h3-upload-card .h3-image-actions .btn {
  min-height: 34px;
  font-size: 12px;
}
.h3-upload-feedback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 31px;
  font-size: 11px;
  line-height: 17px;
  color: #91a0b6;
}
.h3-upload-feedback.is-uploading {
  color: #416ab8;
}
.h3-upload-feedback.is-uploaded {
  color: #19845f;
}
.h3-upload-feedback.is-failed {
  color: #c34747;
}
.h3-upload-indicator {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.h3-upload-indicator svg {
  width: 13px;
  height: 13px;
}
.h3-upload-indicator.is-spinning {
  box-sizing: border-box;
  border: 1.5px solid #cbdcff;
  border-top-color: #3b6bf0;
  border-radius: 50%;
  animation: h3-upload-spin .9s linear infinite;
}
.h3-upload-filename {
  flex-basis: 100%;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #91a0b6;
  font-size: 10px;
}
@keyframes h3-upload-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes h3-upload-pulse {
  0%, 100% {
    opacity: .4;
  }
  50% {
    opacity: 1;
  }
}
@keyframes h3-upload-slide {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(330%);
  }
}
@media (max-width:480px) {
  .h3-images:has(.h3-upload-card) {
    grid-template-columns: minmax(0, 1fr);
  }
  .h3-upload-card .h3-image-help {
    font-size: 12px;
  }
  .h3-upload-card .h3-image-actions .btn {
    min-height: 38px;
  }
  .h3-upload-feedback {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .h3-upload-card *,
  .h3-upload-card *:before {
    animation: none !important;
    transition: none !important;
  }
  .h3-upload-track > span {
    left: 28%;
  }
}

/* apps/web/src/pages/latest/latest-studio.css */
.latest-studio-scope .h3-studio {
  max-width: 1200px;
  margin: auto;
  padding: 28px 24px 60px;
  color: #102544;
}
.latest-studio-scope .h3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-header h1 {
  font-size: 26px;
}
.latest-studio-scope .h3-note {
  color: #64748b;
  font-size: 13px;
}
.latest-studio-scope .h3-inputs,
.latest-studio-scope .h3-results {
  padding: 24px;
  margin-top: 20px;
}
.latest-studio-scope .h3-studio h2 {
  font-size: 19px;
}
.latest-studio-scope .h3-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-studio select {
  padding: 8px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: white;
}
.latest-studio-scope .h3-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-images > div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}
.latest-studio-scope .h3-images strong {
  display: block;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-images img,
.latest-studio-scope .h3-placeholder {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}
.latest-studio-scope .h3-placeholder {
  display: grid;
  place-items: center;
  color: #94a3b8;
}
.latest-studio-scope .h3-studio textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 14px;
  line-height: 1.6;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  resize: vertical;
  font-family: inherit;
}
.latest-studio-scope .h3-review {
  padding: 16px;
  background: #f1f5ff;
  border-radius: 10px;
}
.latest-studio-scope .h3-studio pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.latest-studio-scope .h3-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-result-grid img,
.latest-studio-scope .h3-result-grid video {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-studio details {
  margin: 14px 0;
}
.latest-studio-scope .h3-studio summary {
  cursor: pointer;
}
.latest-studio-scope .h3-studio .alert {
  margin-top: 14px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, 1fr);
  }
  .latest-studio-scope .h3-studio {
    padding: 16px;
  }
  .latest-studio-scope .h3-inputs,
  .latest-studio-scope .h3-results {
    padding: 16px;
  }
  .latest-studio-scope .h3-header h1 {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-image-dropzone {
  border: 1px dashed #dce3ec;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  height: 140px;
  box-sizing: border-box;
  overflow: hidden;
}
.latest-studio-scope .h3-image-dropzone img,
.latest-studio-scope .h3-image-dropzone .h3-placeholder {
  display: grid;
  height: 100%;
  border-radius: 9px;
}
.latest-studio-scope .h3-image-dropzone .h3-image-help {
  text-align: center;
  margin: 0;
  padding: 8px;
  line-height: 1.8;
}
.latest-studio-scope .h3-image-dropzone:focus,
.latest-studio-scope .h3-image-dropzone.is-dragging {
  border-color: var(--brand,#2459df);
  background: var(--surface,#f1f5ff);
}
.latest-studio-scope .h3-image-dropzone[aria-disabled=true] {
  cursor: default;
  opacity: .7;
}
.latest-studio-scope .h3-image-dropzone[draggable=true] {
  cursor: grab;
  transition:
    border-color .18s,
    box-shadow .18s,
    opacity .18s;
}
.latest-studio-scope .h3-image-dropzone[draggable=true]:active {
  cursor: grabbing;
}
.latest-studio-scope .h3-image-dropzone.is-moving {
  opacity: .5;
}
.latest-studio-scope .h3-image-dropzone.is-dragging {
  box-shadow: 0 0 0 3px rgba(36, 89, 223, .13);
}
.latest-studio-scope .h3-image-help {
  display: block;
  color: var(--ink-3,#64748b);
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
}
.latest-studio-scope .h3-image-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-image-slot > small {
  display: block;
  line-height: 1.5;
}
.latest-studio-scope .h3-workspace {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.latest-studio-scope .h3-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}
.latest-studio-scope .h3-mode-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .h3-mode-control select {
  height: 40px;
  min-width: 128px;
  font-weight: 400;
}
.latest-studio-scope .h3-header-actions > .btn {
  min-height: 40px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .latest-studio-scope .h3-mode-control select {
    min-width: 110px;
  }
}
.latest-studio-scope .h3-task-metrics .h3-segment-remaining {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-produced-link {
  font-size: 13px;
  color: var(--brand,#2459df);
  text-decoration: none;
}
.latest-studio-scope .h3-produced-link:hover {
  text-decoration: underline;
}
.latest-studio-scope #studio-results {
  scroll-margin-top: 100px;
}
.latest-studio-scope .h3-stop-dialog {
  border: 0;
  margin: auto;
  color: var(--ink,#102544);
}
.latest-studio-scope .h3-stop-dialog:not([open]) {
  display: none;
}
.latest-studio-scope .h3-stop-dialog::backdrop {
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(3px);
}
.latest-studio-scope .h3-prompt-editor.is-dragging textarea {
  border-color: var(--brand,#2459df);
  background: #f5f8ff;
  box-shadow: 0 0 0 2px rgba(36, 89, 223, .1);
}
.latest-studio-scope .h3-prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.latest-studio-scope .h3-prompt-import {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-prompt-import .btn {
  min-width: 96px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.latest-studio-scope .h3-prompt-import .h3-field-hint {
  margin: 0;
}
.latest-studio-scope .h3-header .h3-creation-title {
  font-size: 24px;
}
.latest-studio-scope .h3-studio .h3-inputs > h2,
.latest-studio-scope .h3-studio .h3-results > h2 {
  font-size: 18px;
  font-weight: 700;
}
.latest-studio-scope .h3-step-heading {
  margin: 24px 0 12px;
}
.latest-studio-scope .h3-step-heading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.latest-studio-scope .h3-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf0ff;
  color: var(--brand,#2459df);
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .h3-step-heading p,
.latest-studio-scope .h3-field-hint {
  margin: 6px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs .h3-row > label {
  font-size: 14px;
  font-weight: 600;
}
.latest-studio-scope .h3-inputs select,
.latest-studio-scope .h3-inputs input {
  font-weight: 400;
}
.latest-studio-scope .h3-field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-required-label {
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff0ef;
  color: #c1372d;
  font-size: 12px;
  font-weight: 500;
}
.latest-studio-scope .h3-step-heading + .h3-images {
  margin-top: 12px;
}
.latest-studio-scope .h3-results > h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header .h3-creation-title {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-studio .h3-prompt-check {
  width: auto;
  min-width: 104px;
  padding: 0 14px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 6px;
}
.latest-studio-scope .h3-check-icon {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
}
.latest-studio-scope .h3-action-feedback {
  flex: 0 1 240px;
  min-height: 20px;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-report {
  margin: 16px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface,#fff);
}
.latest-studio-scope .h3-check-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-summary h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.latest-studio-scope .h3-check-summary p {
  margin: 0;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-details {
  max-height: 420px;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 8px;
}
.latest-studio-scope .h3-check-details[hidden] {
  display: none;
}
.latest-studio-scope .h3-check-explanation {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.latest-studio-scope .h3-check-category {
  border: 1px solid var(--line,#dce3ee);
  border-radius: 8px;
  padding: 10px;
}
.latest-studio-scope .h3-check-category > summary {
  font-weight: 600;
}
.latest-studio-scope .h3-check-occurrences {
  max-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
}
.latest-studio-scope .h3-check-occurrences:focus-visible {
  outline: 2px solid var(--brand,#2459df);
  outline-offset: 2px;
}
.latest-studio-scope .h3-check-group > summary {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-count {
  margin-left: 8px;
  color: var(--ink-2,#64748b);
  white-space: nowrap;
}
.latest-studio-scope .h3-check-group ul {
  padding-left: 22px;
}
.latest-studio-scope .h3-check-group li {
  padding: 8px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-group li p {
  margin: 6px 0;
}
.latest-studio-scope .h3-review > details {
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
}
.latest-studio-scope .h3-studio .h3-generate-button {
  width: auto;
  min-width: 120px;
  padding: 0 20px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 8px;
}
.latest-studio-scope .h3-generate-button .machine-creation-spinner {
  border-color: rgba(255, 255, 255, .4);
  border-top-color: currentColor;
}
.latest-studio-scope .h3-studio .h3-generate-button.is-generating {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  opacity: 1;
}
.latest-studio-scope .h3-generate-button.is-generating::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      rgba(255, 255, 255, .2) 50%,
      transparent 80%);
  transform: translateX(-100%);
  animation: latest-h3-generation-shimmer 2.8s ease-in-out infinite;
}
@keyframes latest-h3-generation-shimmer {
  0%, 15% {
    transform: translateX(-100%);
  }
  85%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-generate-button.is-generating::after {
    animation: none;
    display: none;
  }
}
.latest-studio-scope .h3-generation-guidance {
  min-height: 0;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.latest-studio-scope .h3-action-feedback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.latest-studio-scope .h3-analysis-hourglass {
  flex: none;
  font-size: 16px;
  line-height: 20px;
}
.latest-studio-scope .h3-task-progress {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  background: var(--surface,#f8faff);
}
@property --latest-h3-border-angle { syntax:"<angle>";inherits:false;initial-value:0deg }
.latest-studio-scope .h3-task-progress.is-generating {
  position: relative;
  isolation: isolate;
}
.latest-studio-scope .h3-task-progress.is-generating::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(
      from var(--latest-h3-border-angle),
      transparent 0deg 235deg,
      #c4b5fd 275deg,
      #7954ed 305deg,
      #22c8f3 335deg,
      transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(94, 104, 245, .3));
  animation: latest-h3-border-orbit 24s linear infinite;
}
@keyframes latest-h3-border-orbit {
  to {
    --latest-h3-border-angle:360deg;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-task-progress.is-generating::before {
    animation: none;
  }
}
.latest-studio-scope .h3-task-progress-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-task-progress-heading > span:last-child {
  margin-left: auto;
  color: var(--ink-2,#64748b);
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.latest-studio-scope .h3-task-phases li {
  padding: 6px 10px;
  background: var(--bg,#eef2f7);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-task-phases .is-current {
  color: var(--brand,#2459df);
  background: #e8efff;
  font-weight: 600;
}
.latest-studio-scope .h3-task-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.latest-studio-scope .h3-task-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.latest-studio-scope .h3-task-metrics span,
.latest-studio-scope .h3-progress-note {
  color: var(--ink-2,#64748b);
  font-size: 12px;
}
.latest-studio-scope .h3-task-metrics strong {
  font-size: 14px;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.latest-studio-scope .h3-real-progress {
  margin-top: 16px;
}
.latest-studio-scope .h3-real-progress label {
  font-size: 13px;
}
.latest-studio-scope .h3-real-progress progress {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 8px;
  accent-color: var(--brand,#2459df);
}
.latest-studio-scope .h3-progress-note {
  margin: 12px 0 0;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-followup {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-task-followup span {
  font-size: 12px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-result-media video,
.latest-studio-scope .h3-result-media img {
  border-radius: 8px;
}
.latest-studio-scope .h3-result-media p {
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-real-progress .h3-progress-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.latest-studio-scope .h3-progress-track {
  height: 14px;
  margin-top: 12px;
  padding: 2px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #dbe5fa;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      #e8eef8,
      #f3f6fc);
  box-shadow: inset 0 1px 3px rgba(35, 66, 125, .1);
}
.latest-studio-scope .h3-progress-fill {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #3258f5 0%,
      #7954ed 48%,
      #22c8f3 100%);
  box-shadow: 0 0 12px rgba(79, 104, 244, .45), inset 0 1px 1px rgba(255, 255, 255, .55);
  transition: width .55s ease;
}
.latest-studio-scope .h3-progress-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 12px,
      rgba(255, 255, 255, .17) 12px 20px);
  background-size: 44px 100%;
}
.latest-studio-scope .h3-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      transparent 25%,
      rgba(255, 255, 255, .65) 50%,
      transparent 75%);
  transform: translateX(-100%);
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before {
  animation: latest-h3-progress-flow 1.5s linear infinite;
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
  animation: latest-h3-progress-glint 2.6s ease-in-out infinite;
}
.latest-studio-scope .h3-terminal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-heading h2 {
  margin: 0 0 6px;
}
.latest-studio-scope .h3-terminal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #536681;
}
.latest-studio-scope .h3-terminal-output {
  margin-top: 16px;
  padding: 18px 20px;
  max-height: 380px;
  min-height: 160px;
  overflow: auto;
  border: 1px solid #263651;
  border-radius: 10px;
  background: #101827;
  color: #b7e5c3;
  font:
    12px/1.8 Consolas,
    "Cascadia Code",
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 4;
  scrollbar-color: #4c607e #101827;
}
.latest-studio-scope .h3-terminal-output .is-error {
  color: #ff9b9b;
}
.latest-studio-scope .h3-terminal-output .is-warning {
  color: #f2d48b;
}
.latest-studio-scope .h3-terminal-empty {
  color: #8c9bb0;
}
.latest-studio-scope .h3-terminal-section > .h3-field-hint {
  margin-top: 12px;
}
@keyframes latest-h3-progress-flow {
  to {
    background-position: 44px 0;
  }
}
@keyframes latest-h3-progress-glint {
  0%, 10% {
    transform: translateX(-100%);
  }
  90%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-progress-fill {
    transition: none;
  }
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before,
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
    animation: none;
  }
  .latest-studio-scope .h3-progress-fill::after {
    display: none;
  }
}
.latest-studio-scope .h3-final-video {
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line,#dce3ee);
  border-bottom: 1px solid var(--line,#dce3ee);
}
.latest-studio-scope .h3-final-video h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.latest-studio-scope .h3-final-video > p {
  margin: 0 0 18px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-final-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 680px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-final-video-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .h3-machine-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-provider-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.latest-studio-scope .h3-provider-id {
  user-select: text;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-provider-identity > span {
  min-width: 0;
}
.latest-studio-scope .h3-provider-identity [role=status] {
  color: var(--ink-2);
}
.latest-studio-scope .h3-machine-specs {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-advanced-info > p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-creation-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-creation-origin {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.latest-studio-scope .h3-creation-origin .h3-origin-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 1.3em;
  height: 1.3em;
  padding: 0 .12em;
  margin-left: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1em;
  font-weight: inherit;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-task-progress {
  padding: 22px 24px;
  background:
    linear-gradient(
      145deg,
      #fff 55%,
      #f6f8ff);
  box-shadow: 0 3px 16px rgba(26, 53, 110, .035);
}
.latest-studio-scope .h3-task-progress.is-complete {
  border-color: #d4e9e2;
  background:
    linear-gradient(
      125deg,
      #fff 45%,
      #f0faf6);
}
.latest-studio-scope .h3-task-progress-heading > strong {
  font-size: 16px;
  font-weight: 650;
}
.latest-studio-scope .h3-status-emblem {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eaf0ff;
  color: #3560e7;
  font-size: 18px;
}
.latest-studio-scope .h3-status-emblem.is-complete {
  background: #dcf5e9;
  color: #15835c;
}
.latest-studio-scope .h3-task-phases {
  gap: 0;
  flex-wrap: nowrap;
  margin: 24px 0;
  padding: 0 0 22px;
  border-bottom: 1px solid #e6ebf3;
}
.latest-studio-scope .h3-task-phases li {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  padding: 0;
  background: none;
  border-radius: 0;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe6f1;
  margin: 0 14px;
}
.latest-studio-scope .h3-phase-dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #edf1f7;
  color: #8290a7;
  font-size: 12px;
  font-weight: 600;
}
.latest-studio-scope .h3-task-phases li.is-current {
  color: #2459df;
  background: none;
  font-weight: 650;
}
.latest-studio-scope .h3-task-phases .is-current .h3-phase-dot {
  background: #2d5be9;
  color: white;
  box-shadow: 0 0 0 4px #eaf0ff;
}
.latest-studio-scope .h3-task-phases li.is-done {
  color: #326754;
}
.latest-studio-scope .h3-task-phases .is-done .h3-phase-dot {
  background: #e1f3ea;
  color: #16825c;
}
.latest-studio-scope .h3-task-phases .is-done::after {
  background: #bfdece;
}
.latest-studio-scope .h3-task-metrics {
  align-items: start;
  gap: 20px;
}
.latest-studio-scope .h3-task-metrics .h3-current-summary {
  padding: 2px 0;
  gap: 9px;
}
.latest-studio-scope .h3-current-summary > strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-metrics > div > span:first-child {
  font-size: 12px;
  color: #7a879c;
}
.latest-studio-scope .h3-task-metrics .h3-segment-summary {
  position: relative;
  padding: 0 160px 0 20px;
  border-left: 1px solid #e1e8ef;
  min-height: 76px;
  justify-content: center;
}
.latest-studio-scope .h3-task-metrics .h3-segment-count {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
  color: #2459df;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-segment-count small {
  font-size: 14px;
  color: #7a879c;
  font-weight: 400;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #eaf0ff;
  color: #2459df;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, box-shadow .2s;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link:hover {
  background: #dde7ff;
  text-decoration: none;
  box-shadow: 0 3px 10px #2459df15;
}
.latest-studio-scope .h3-produced-link:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
@media (max-width:850px) {
  .latest-studio-scope .h3-task-phases li {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }
  .latest-studio-scope .h3-task-phases li:not(:last-child)::after {
    position: absolute;
    top: 13px;
    left: calc(50% + 21px);
    right: calc(-50% + 21px);
    margin: 0;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding-right: 0;
  }
  .latest-studio-scope .h3-segment-summary .h3-produced-link {
    position: static;
    transform: none;
    align-self: flex-start;
    margin-top: 5px;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-task-progress {
    padding: 18px 14px;
  }
  .latest-studio-scope .h3-task-phases {
    margin: 22px 0 18px;
  }
  .latest-studio-scope .h3-task-phases li {
    font-size: 11px;
  }
  .latest-studio-scope .h3-phase-dot {
    width: 24px;
    height: 24px;
  }
  .latest-studio-scope .h3-task-metrics {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid #e1e8ef;
  }
}
.latest-studio-scope .h3-result-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}
.latest-studio-scope .h3-result-section-heading h3 {
  margin: 0;
}
.latest-studio-scope .h3-result-section-heading .btn {
  white-space: nowrap;
}
.latest-studio-scope .h3-segment-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.latest-studio-scope .h3-segment-actions .btn {
  padding: 7px 10px;
  min-height: 34px;
  font-size: 12px;
}
.latest-studio-scope .h3-segment-regenerate {
  color: #2459df;
  border-color: #cbd9ff;
  background: #f5f8ff;
}
.latest-studio-scope .h3-merge-notice {
  padding: 12px 16px;
  border: 1px solid #f0d9a8;
  border-radius: 9px;
  background: #fff9ed;
  color: #92641a;
  font-size: 13px;
}
.latest-studio-scope .h3-segment-editor {
  width: min(880px, calc(100vw - 32px));
  max-height: 85vh;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #dce3ee;
  border-radius: 16px;
  color: #142b4a;
  background: #fff;
  box-shadow: 0 24px 80px #10254430;
}
.latest-studio-scope .h3-segment-editor::backdrop {
  background: #10254470;
  backdrop-filter: blur(4px);
}
.latest-studio-scope .h3-segment-editor header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .h3-segment-editor h2 {
  font-size: 20px;
  margin: 4px 0 8px;
}
.latest-studio-scope .h3-segment-editor label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}
.latest-studio-scope .h3-segment-editor textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 320px;
  resize: vertical;
  line-height: 1.8;
  font-size: 14px;
  border: 1px solid #ccd8eb;
  border-radius: 10px;
  padding: 14px;
}
.latest-studio-scope .h3-segment-editor footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.latest-studio-scope .h3-editor-error {
  font-size: 13px;
  color: #c13737;
}
.latest-studio-scope .h3-segment-editor textarea:focus {
  outline: 2px solid #bad0ff;
  border-color: #2459df;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-segment-editor {
    padding: 18px;
  }
  .latest-studio-scope .h3-segment-editor textarea {
    min-height: 240px;
  }
  .latest-studio-scope .h3-result-section-heading > .btn {
    width: 100%;
  }
}
.latest-studio-scope .main.main-studio {
  padding-top: 20px;
}
.latest-studio-scope .main-studio .h3-studio {
  padding-top: 0;
}
.latest-studio-scope .h3-header h1 {
  margin-top: 0;
}
.latest-studio-scope .h3-input-lock-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #edf3ff;
  color: #365c9b;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs textarea[readonly] {
  background: #f7f9fc;
  color: #53627a;
  cursor: default;
}
.latest-studio-scope .h3-patient-hint {
  margin: 18px 0 0;
  padding: 11px 14px;
  border-radius: 9px;
  background: #edf3ff;
  color: #4a6393;
  font-size: 13px;
  line-height: 1.8;
}
.latest-studio-scope .h3-check-reasons {
  margin: 12px 0;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-reasons span {
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-2,#64748b);
  transition:
    color .18s,
    border-color .18s,
    background .18s;
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear:not(:disabled):hover {
  color: #c1372d;
  border-color: #f1b8b3;
  background: #fff5f4;
}
.latest-studio-scope .h3-studio .h3-repair-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: #c1372d;
}
.latest-studio-scope .h3-repair-cancel:hover {
  background: #fff2f1;
  border-color: #f1b8b3;
}
.latest-studio-scope .h3-generation-guidance:empty {
  display: none;
}
.latest-studio-scope .h3-review-result.is-success {
  border-color: #c7e6d8;
  background: #f7fcf9;
}
.latest-studio-scope .h3-review-result.is-pending {
  border-color: #cddaff;
  background: #f8faff;
}
.latest-studio-scope .h3-review-verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.latest-studio-scope .h3-review-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff2df;
  color: #a86b12;
  font-size: 16px;
  font-weight: 700;
}
.latest-studio-scope .is-success .h3-review-status-icon {
  background: #e0f3e9;
  color: #23835b;
}
.latest-studio-scope .is-pending .h3-review-status-icon {
  background: #e9efff;
  color: var(--brand,#2459df);
}
.latest-studio-scope .h3-review-result .h3-check-summary p {
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-review-result .h3-check-summary h3 {
  font-size: 15px;
  margin-bottom: 3px;
}
.latest-studio-scope .h3-repair-proposal {
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 12px;
}
.latest-studio-scope .h3-repair-proposal details {
  max-height: 320px;
  overflow: auto;
}
.latest-studio-scope .h3-repair-proposal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.latest-studio-scope .h3-review-result.is-warning {
  border-color: #f0c9c5;
  background: #fffafa;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict p,
.latest-studio-scope .h3-review-result.is-warning .h3-check-reasons,
.latest-studio-scope .h3-review-result.is-warning .h3-check-details {
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-status-icon {
  background: #fee9e7;
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict p {
  color: #1f7a4f;
}
.latest-studio-scope .h3-log-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f1f5ff;
  border: 1px solid #dce5fa;
  color: #28466e;
}
.latest-studio-scope .h3-log-summary p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-log-summary.is-success {
  background: #f3fbf7;
  border-color: #c4e9d7;
  color: #14805b;
}
.latest-studio-scope .h3-log-summary.is-error {
  background: #fff5f5;
  border-color: #f4caca;
  color: #b62b35;
}
.latest-studio-scope .h3-log-summary.is-warning {
  background: #fffbf1;
  border-color: #efdeb0;
  color: #88631b;
}
.latest-studio-scope .h3-log-view-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.latest-studio-scope .h3-log-view-controls [role=group] {
  display: flex;
  gap: 6px;
}
.latest-studio-scope .h3-log-view-controls button[aria-pressed=true] {
  background: #eef3ff;
  border-color: #b5c7fa;
  color: #2459d8;
}
.latest-studio-scope .h3-log-view-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #536681;
  font-size: 13px;
}
.latest-studio-scope .h3-log-readable {
  max-height: 300px;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  padding: 4px 16px;
}
.latest-studio-scope .h3-log-readable ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.latest-studio-scope .h3-log-readable li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f6;
  font-size: 13px;
  line-height: 1.7;
  color: #344b68;
}
.latest-studio-scope .h3-log-readable li:last-child {
  border-bottom: 0;
}
.latest-studio-scope .h3-log-readable time {
  color: #71829a;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.latest-studio-scope .h3-log-readable small {
  color: #71829a;
}
.latest-studio-scope .h3-log-readable .is-warning {
  color: #88631b;
}
.latest-studio-scope .h3-log-readable .is-error {
  color: #b62b35;
}
.latest-studio-scope .h3-log-readable .is-success {
  color: #14805b;
}
.latest-studio-scope .h3-terminal-output[hidden] {
  display: none;
}
.latest-studio-scope .h3-workspace-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-top: 24px;
  padding: 10px 18px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 14px 14px 0 0;
  background:
    linear-gradient(
      110deg,
      #f5f8ff,
      var(--surface,#fff) 75%);
  width: 100%;
  box-sizing: border-box;
}
.latest-studio-scope .h3-workspace-tabs [role=tab] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  appearance: none;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  margin-bottom: -1px;
  background: transparent;
  color: #536681;
  padding: 14px 28px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background .2s,
    color .2s,
    box-shadow .2s,
    border-color .2s;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:hover {
  color: #2459df;
  background: #eaf1ff;
  box-shadow: inset 0 3px 12px #3775f50c;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true] {
  background:
    linear-gradient(
      180deg,
      #edf4ff 0%,
      var(--surface,#fff) 85%);
  border-color: var(--line,#dce3ee);
  color: #2459df;
  box-shadow: 0 -4px 14px #497cf519, inset 0 2px 0 #578bff;
  text-shadow: 0 0 14px #3775f52b;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 25%,
      #a9ceff40 50%,
      transparent 75%);
  transform: translateX(-120%);
  animation: latest-h3-tab-shine 4s ease-in-out infinite;
  pointer-events: none;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
.latest-studio-scope .h3-workspace-panel[hidden] {
  display: none !important;
}
.latest-studio-scope .h3-sync-status {
  margin: 12px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 12px;
  line-height: 1.7;
}
@keyframes latest-h3-tab-shine {
  0%, 25% {
    transform: translateX(-120%);
  }
  65%, 100% {
    transform: translateX(120%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    transition: none;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
    animation: none;
    transform: none;
    opacity: .3;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-workspace-tabs {
    padding: 8px 8px 0;
    gap: 0;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    flex: 1;
    padding: 13px 8px;
    font-size: 13px;
  }
}
.latest-studio-scope .h3-workspace-panel > .card {
  margin-top: 0;
  padding: 24px;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}
.latest-studio-scope .h3-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-studio .h3-panel-heading h2 {
  margin: .83em 0;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  color: inherit;
}
.latest-studio-scope .h3-panel-heading h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
.latest-studio-scope .h3-panel-heading .h3-terminal-actions {
  margin-top: 10px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-workspace-panel > .card {
    padding: 16px;
  }
}
.latest-studio-scope #studio-generation {
  scroll-margin-top: 130px;
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-workbench {
    scroll-behavior: auto;
  }
}
.latest-studio-scope .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters {
  margin: 24px 0;
  padding: 20px;
  border: 1px dashed #bdcde4;
  background: #f6f9fe;
  border-radius: 12px;
}
.latest-studio-scope .latest-parameters > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-parameters p {
  font-size: 13px;
  line-height: 1.8;
  color: #64748b;
  margin: 10px 0 0;
}
.latest-studio-scope .latest-pending-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 20px;
  background: #edf2fa;
  color: #526a90;
  font-size: 12px;
}
.latest-studio-scope .latest-pending-selection {
  font-size: 13px;
  color: #64748b;
  padding: 10px 0;
}
.latest-studio-scope .latest-workbench .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.latest-studio-scope .latest-parameter-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .latest-parameter-grid input,
.latest-studio-scope .latest-parameter-grid select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  background: white;
  border: 1px solid #d5dfef;
  border-radius: 8px;
  color: #18365c;
  font: inherit;
  font-weight: 400;
}
.latest-studio-scope .latest-parameter-grid input:focus,
.latest-studio-scope .latest-parameter-grid select:focus {
  outline: 2px solid #bdd0ff;
  outline-offset: 1px;
  border-color: #5784f5;
}
@media (max-width:900px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-workbench .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .h3-header {
  gap: 16px;
}
.latest-studio-scope .h3-header > div {
  min-width: 0;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .h3-header {
    align-items: flex-start;
  }
  .latest-studio-scope .h3-header-actions {
    flex-wrap: wrap;
  }
  .latest-studio-scope .h3-studio h1 {
    font-size: 22px;
  }
}
@media (max-width:380px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .latest-connection {
  font-size: 13px;
  color: #64748b;
  padding: 9px 13px;
  border-radius: 20px;
  background: #eef2f7;
}
.latest-studio-scope .latest-connection.is-ready {
  color: #13795b;
  background: #e8f8f1;
}
.latest-studio-scope .latest-message {
  padding: 14px 18px;
  border: 1px solid #d5e3ff;
  background: #f0f6ff;
  color: #31528a;
  border-radius: 10px;
  margin: 14px 0;
  line-height: 1.7;
}
.latest-studio-scope .latest-message.is-error {
  background: #fff4f3;
  color: #b1372f;
  border-color: #f2cfca;
}
.latest-studio-scope .latest-message button {
  float: right;
  border: 0;
  background: none;
  color: inherit;
  font-size: 20px;
}
.latest-studio-scope .latest-section-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
}
.latest-studio-scope .latest-section-label span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-reference-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #fafcff;
}
.latest-studio-scope .latest-reference-section > summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
}
.latest-studio-scope .latest-reference-section > summary span {
  float: right;
  font-size: 12px;
  font-weight: 400;
  color: #6b7e96;
}
.latest-studio-scope .latest-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .latest-media-slot {
  padding: 16px;
  border: 1px solid #dce5f0;
  background: #fff;
  border-radius: 12px;
  min-width: 0;
}
.latest-studio-scope .latest-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 125px;
  gap: 10px;
  margin-top: 12px;
  background: #f5f8fd;
  border: 1px dashed #d5dfef;
  border-radius: 9px;
}
.latest-studio-scope .latest-media-placeholder > span {
  font-size: 26px;
  color: #416fea;
}
.latest-studio-scope .latest-media-placeholder p {
  margin: 0 8px;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .latest-media-placeholder small {
  font-size: 11px;
  color: #8290a5;
}
.latest-studio-scope .latest-upload-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #3561d7;
  padding: 9px 0;
}
.latest-studio-scope .latest-upload-status .machine-creation-spinner {
  width: 15px;
  height: 15px;
  display: inline-block;
}
.latest-studio-scope .latest-image-uploading .h3-image-dropzone {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #e5eeff,
      #f1f6ff);
  background-size: 200% 100%;
  animation: latest-upload-glow 2s linear infinite;
}
.latest-studio-scope .latest-settings-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.latest-studio-scope .latest-settings-main > label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.latest-studio-scope .latest-settings-main select {
  min-width: 115px;
}
.latest-studio-scope .latest-settings-main .latest-martial {
  margin-left: auto;
  padding: 14px 18px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #f8faff;
}
.latest-studio-scope .latest-martial input {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 15px;
  background: #c7d2e2;
  border: 0;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}
.latest-studio-scope .latest-martial input:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.latest-studio-scope .latest-martial input:checked {
  background: #2b5ef0;
}
.latest-studio-scope .latest-martial input:checked:after {
  transform: translateX(16px);
}
.latest-studio-scope .latest-martial strong,
.latest-studio-scope .latest-martial small {
  display: block;
}
.latest-studio-scope .latest-martial small {
  font-size: 12px;
  color: #6b7e96;
  margin-top: 5px;
}
.latest-studio-scope .latest-advanced {
  padding: 18px;
  margin-top: 20px;
  background: #f7f9fe;
  border: 1px dashed #cbd8ea;
  border-radius: 10px;
}
.latest-studio-scope .latest-advanced summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.latest-studio-scope .latest-advanced .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}
.latest-studio-scope .latest-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.latest-studio-scope .latest-range label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.latest-studio-scope .latest-range input {
  width: 78px;
}
.latest-studio-scope .latest-connected input:not([type=checkbox]):not([type=file]),
.latest-studio-scope .latest-connected select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d4deed;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
}
.latest-studio-scope .latest-connected textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #d4deed;
  border-radius: 10px;
  padding: 15px;
  line-height: 1.8;
  font: 13px/1.8 monospace;
  margin-top: 12px;
  min-height: 240px;
}
.latest-studio-scope .latest-connected input:focus-visible,
.latest-studio-scope .latest-connected select:focus-visible,
.latest-studio-scope .latest-connected textarea:focus-visible {
  outline: 2px solid #b9d0ff;
  outline-offset: 2px;
}
.latest-studio-scope .latest-connected input:disabled,
.latest-studio-scope .latest-connected select:disabled,
.latest-studio-scope .latest-connected textarea:disabled {
  background: #f2f5fa;
}
.latest-studio-scope .latest-save-settings {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-save-settings label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
  max-width: 230px;
}
.latest-studio-scope .latest-generate-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-generate-actions > .btn-primary {
  min-width: 230px;
  min-height: 44px;
}
.latest-studio-scope .latest-generate-actions > span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.latest-studio-scope .latest-result-stamp {
  padding: 6px 12px;
  color: #a66420;
  border: 2px solid currentColor;
  border-radius: 5px;
  transform: rotate(-5deg);
  font-size: 19px;
  font-weight: 750;
  white-space: nowrap;
}
.latest-studio-scope .latest-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}
.latest-studio-scope .latest-segment-list {
  border: 1px solid #dde5f0;
  border-radius: 11px;
  margin-top: 20px;
  overflow: hidden;
}
.latest-studio-scope .latest-segment-list article {
  display: grid;
  grid-template-columns: 100px 90px minmax(90px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 16px;
  box-sizing: border-box;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
}
.latest-studio-scope .latest-segment-list article:last-child {
  border-bottom: 0;
}
.latest-studio-scope .latest-segment-list article > div {
  display: flex;
  gap: 8px;
}
.latest-studio-scope .latest-segment-list .is-ready {
  color: #07845e;
}
.latest-studio-scope .latest-empty {
  padding: 60px 20px;
  text-align: center;
  color: #7d8da3;
  font-size: 14px;
}
.latest-studio-scope .latest-history {
  margin: 20px 0;
}
.latest-studio-scope .latest-history .btn {
  margin: 10px 8px 0 0;
  font-size: 12px;
}
.latest-studio-scope .latest-log-list {
  max-height: 540px;
  overflow: auto;
  margin-top: 24px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  padding: 6px 16px;
}
.latest-studio-scope .latest-log-list > div {
  display: flex;
  gap: 22px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-log-list time {
  color: #7d8da3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@keyframes latest-upload-glow {
  to {
    background-position: -200% 0;
  }
}
@media (max-width:900px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    margin-left: 0;
  }
  .latest-studio-scope .latest-segment-list article {
    grid-template-columns: 70px 60px 1fr;
  }
  .latest-studio-scope .latest-segment-list article > div {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-media-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-reference-section {
    padding: 14px;
  }
  .latest-studio-scope .latest-save-settings {
    display: block;
  }
  .latest-studio-scope .latest-save-settings label {
    margin: 12px 0;
  }
  .latest-studio-scope .latest-range {
    gap: 8px;
  }
  .latest-studio-scope .latest-range input {
    width: 62px;
  }
  .latest-studio-scope .latest-generate-actions > .btn-primary {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-results-heading {
    align-items: flex-start;
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-settings-main > label {
    flex: 1;
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
    width: 100%;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-image-uploading .h3-image-dropzone {
    animation: none;
  }
}
.latest-studio-scope .latest-connected .h3-task-progress {
  scroll-margin-top: 135px;
}
.latest-studio-scope .latest-workbench .h3-upload-card {
  min-height: 294px;
  height: 100%;
  box-sizing: border-box;
}
.latest-studio-scope .latest-workbench .h3-upload-heading {
  min-height: 22px;
}
.latest-studio-scope .latest-workbench .h3-upload-status {
  margin-top: 10px;
}
.latest-studio-scope .latest-media-saved {
  display: block;
  color: #07876a;
  font-size: 12px;
  margin-top: 10px;
}
.latest-studio-scope .latest-upload-retry {
  margin-top: 8px;
}
.latest-studio-scope .latest-media-slot .h3-upload-track {
  display: inline-block;
  width: 100px;
}
.latest-studio-scope .latest-media-slot .latest-media-placeholder {
  min-height: 140px;
}
.latest-studio-scope .latest-settings-main .latest-martial-card {
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  background:
    linear-gradient(
      135deg,
      #fafcff,
      #f3f7ff);
  border-color: #dce6f6;
  border-radius: 14px;
  box-shadow: 0 2px 7px #203d6910;
  transition:
    border-color .2s,
    box-shadow .2s,
    background .2s;
}
.latest-studio-scope .latest-martial-card:hover:not(.is-locked) {
  border-color: #9db9ff;
  box-shadow: 0 4px 14px #285be91c;
}
.latest-studio-scope .latest-martial-card:focus-within {
  outline: 2px solid #779cff;
  outline-offset: 3px;
}
.latest-studio-scope .latest-settings-main .latest-martial-card.is-enabled {
  background:
    linear-gradient(
      135deg,
      #edf4ff,
      #f5f1ff);
  border-color: #9ab8ff;
  box-shadow: 0 3px 12px #406bf21a;
}
.latest-studio-scope .latest-martial-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eaf0fb;
  color: #7c90b1;
  transition: color .2s, background .2s;
}
.latest-studio-scope .is-enabled .latest-martial-emblem {
  color: #3664eb;
  background: #dfe9ff;
}
.latest-studio-scope .latest-martial-copy {
  min-width: 0;
}
.latest-studio-scope .latest-martial-copy strong {
  font-size: 14px;
  line-height: 1.5;
  color: #203552;
}
.latest-studio-scope .latest-martial-copy small {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 3px;
}
.latest-studio-scope .latest-martial-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  flex-shrink: 0;
}
.latest-studio-scope .latest-martial-status {
  font-size: 11px;
  white-space: nowrap;
  color: #8190a6;
}
.latest-studio-scope .is-enabled .latest-martial-status {
  color: #3966dc;
}
.latest-studio-scope .latest-martial-card input {
  flex-shrink: 0;
  margin: 0;
  width: 42px;
  height: 24px;
  box-shadow: inset 0 1px 3px #122e4620;
}
.latest-studio-scope .latest-martial-card input:after {
  width: 18px;
  height: 18px;
  box-shadow: 0 1px 3px #142c4b33;
}
.latest-studio-scope .latest-martial-card input:checked:after {
  transform: translateX(18px);
}
.latest-studio-scope .latest-martial-card.is-locked {
  cursor: not-allowed;
  opacity: .65;
}
.latest-studio-scope .latest-martial-card input:disabled {
  cursor: not-allowed;
}
@media (max-width:480px) {
  .latest-studio-scope .latest-settings-main .latest-martial-card {
    padding: 14px 12px;
    gap: 9px;
  }
  .latest-studio-scope .latest-martial-emblem {
    width: 30px;
    height: 34px;
  }
  .latest-studio-scope .latest-martial-control {
    margin-left: auto;
    gap: 4px;
  }
  .latest-studio-scope .latest-martial-status {
    display: none;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-martial-card,
  .latest-studio-scope .latest-martial-card input,
  .latest-studio-scope .latest-martial-card input:after,
  .latest-studio-scope .latest-martial-emblem {
    transition: none;
  }
}
.latest-studio-scope .latest-prompt-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.latest-studio-scope .latest-prompt-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
}
.latest-studio-scope .latest-prompt-actions .latest-prompt-clear {
  min-width: 38px;
  width: 38px;
  padding: 0;
  color: #7d8ba1;
}
.latest-studio-scope .latest-prompt-clear:not(:disabled):hover {
  color: #d04443;
  background: #fff2f1;
  border-color: #f2b9b5;
}
.latest-studio-scope .latest-prompt-copy:not(:disabled):hover {
  color: #2b5fe7;
  background: #f0f5ff;
  border-color: #b9ceff;
}
.latest-studio-scope .latest-resolution-hint {
  font-size: 12px;
  color: #8292aa;
  line-height: 1.6;
}
.latest-studio-scope .latest-prompt-actions .latest-prompt-undo {
  min-width: 38px;
  width: 38px;
  padding: 0;
  color: #55749e;
}
.latest-studio-scope .latest-prompt-undo:not(:disabled):hover {
  color: #2b5fe7;
  background: #f0f5ff;
  border-color: #b9ceff;
}

/* apps/web/src/pages/latest/latest-results.css */
.latest-studio-scope .latest-results-table {
  background: #fff;
  border-color: #e1e8f2;
  border-radius: 12px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  display: grid;
  grid-template-columns: 90px 100px minmax(130px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
}
.latest-studio-scope .latest-results-table .latest-segment-head {
  background: #f6f8fc;
  color: #72819a;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #e8edf5;
}
.latest-studio-scope .latest-results-table .latest-segment-head > span:last-child {
  text-align: right;
}
.latest-studio-scope .latest-results-table article {
  min-height: 80px;
  font-size: 14px;
}
.latest-studio-scope .latest-segment-name {
  white-space: nowrap;
  color: #182d4c;
}
.latest-studio-scope .latest-segment-duration {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #687994;
}
.latest-studio-scope .latest-segment-state {
  justify-self: start;
  line-height: 1.5;
  color: #526886;
  padding: 5px 10px;
  background: #f2f5fa;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .latest-segment-state.is-ready {
  color: #07845e;
  background: #edf9f3;
}
.latest-studio-scope .latest-results-table article > .latest-segment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: auto;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-segment-actions .btn {
  font-size: 13px;
  min-height: 38px;
  white-space: nowrap;
  padding: 8px 12px;
}
.latest-studio-scope .latest-segment-editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 51, .38);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.latest-studio-scope .latest-segment-editor {
  box-sizing: border-box;
  width: min(900px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 26px;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  box-shadow: 0 22px 70px #14284433;
}
.latest-studio-scope .latest-segment-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .latest-segment-editor-heading h2 {
  margin: 0;
  font-size: 20px;
}
.latest-studio-scope .latest-segment-editor p {
  font-size: 13px;
  line-height: 1.8;
  color: #6b7d96;
  margin: 14px 0 20px;
}
.latest-studio-scope .latest-segment-editor textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 280px;
  max-height: 48dvh;
  resize: vertical;
  padding: 16px;
  margin-top: 10px;
  border: 1px solid #cedbf0;
  border-radius: 10px;
  font:
    14px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #19314f;
  background: #fbfcff;
}
.latest-studio-scope .latest-segment-editor textarea:focus {
  outline: 2px solid #d9e4ff;
  border-color: #799bff;
}
.latest-studio-scope .latest-segment-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width:1050px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(100px, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }
  .latest-studio-scope .latest-segment-actions {
    max-width: 245px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table .latest-segment-head {
    display: none;
  }
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(0, 1fr);
    gap: 12px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
    max-width: none;
  }
  .latest-studio-scope .latest-segment-editor-backdrop {
    padding: 12px;
  }
  .latest-studio-scope .latest-segment-editor {
    padding: 18px;
    max-height: calc(100dvh - 24px);
  }
  .latest-studio-scope .latest-segment-editor textarea {
    min-height: 220px;
  }
}
.latest-studio-scope .latest-segment-editor p.latest-segment-editor-error {
  color: #c33131;
}
.latest-studio-scope .latest-live-summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 22px 0 18px;
  padding: 22px 24px;
  border: 1px solid #dbe5f8;
  border-radius: 14px;
  background:
    linear-gradient(
      115deg,
      #f3f7ff,
      #fcfdff);
  box-shadow: 0 4px 18px #2c5ac907;
}
.latest-studio-scope .latest-live-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.latest-studio-scope .latest-live-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  color: #315df4;
  background: #e4edff;
  font-size: 24px;
}
.latest-studio-scope .latest-live-heading strong {
  font-size: 18px;
  color: #193962;
  line-height: 1.5;
}
.latest-studio-scope .latest-live-heading p {
  margin: 5px 0 0;
  color: #73849d;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-elapsed {
  margin-left: auto;
  white-space: nowrap;
  color: #4c668c;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding: 8px 12px;
  border: 1px solid #dfe7f5;
  border-radius: 8px;
  background: #ffffffa8;
}
.latest-studio-scope .latest-live-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e0e8f7;
  color: #7184a1;
  font-size: 13px;
}
.latest-studio-scope .latest-live-footer strong {
  color: #315df4;
  font-size: 16px;
}
.latest-studio-scope .latest-live-sampling {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: #5477b2;
}
.latest-studio-scope .latest-live-sampling progress {
  height: 6px;
  flex: 1;
  min-width: 80px;
  accent-color: #4778ff;
  border-radius: 10px;
  overflow: hidden;
}
.latest-studio-scope .latest-live-flow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #91bdff,
      #3e70fa,
      transparent);
  background-size: 200% 100%;
  animation: latest-execution-flow 2.6s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-results-table article.latest-segment-row {
  position: relative;
  isolation: isolate;
  transition: background-color .3s, box-shadow .3s;
}
.latest-studio-scope .latest-results-table article.latest-segment-row.is-working {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #fbfdff);
  box-shadow: inset 3px 0 #4275ff;
}
.latest-studio-scope .latest-segment-row.is-working::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      #b9d2ff 38%,
      #4d7bff 50%,
      #afceff 62%,
      transparent 80%);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 3s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-segment-row.is-working .latest-segment-name {
  color: #2855c5;
}
.latest-studio-scope .latest-segment-state.is-working {
  color: #2e5bcf;
  background: #e7efff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .latest-segment-state.is-waiting {
  color: #8391a6;
  background: #f4f6f9;
}
.latest-studio-scope .latest-segment-state small {
  font-size: 12px;
  font-weight: 400;
}
.latest-studio-scope .latest-segment-running-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid #b8ceff;
  border-top-color: #3c6ef0;
  border-radius: 50%;
  animation: latest-execution-spin 1s linear infinite;
}
@keyframes latest-execution-flow {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -50% 0;
  }
}
@keyframes latest-execution-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-live-summary {
    padding: 18px 16px;
  }
  .latest-studio-scope .latest-live-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .latest-studio-scope .latest-live-heading > div {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-live-heading strong {
    font-size: 16px;
  }
  .latest-studio-scope .latest-live-elapsed {
    margin-left: 52px;
  }
  .latest-studio-scope .latest-live-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-live-sampling {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state.is-working {
    white-space: normal;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-live-flow,
  .latest-studio-scope .latest-segment-row.is-working::after,
  .latest-studio-scope .latest-segment-running-dot {
    animation: none;
  }
  .latest-studio-scope .latest-results-table article.latest-segment-row {
    transition: none;
  }
}
.latest-studio-scope .latest-live-sampling progress {
  appearance: none;
  -webkit-appearance: none;
  background: #e5edfc;
  border: 0;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-bar {
  background: #e5edfc;
  border-radius: 10px;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-value {
  background:
    linear-gradient(
      90deg,
      #729bff,
      #3c69f4);
  border-radius: 10px;
  transition: width .4s;
}
.latest-studio-scope .latest-live-sampling progress::-moz-progress-bar {
  background: #4d7bf5;
  border-radius: 10px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state {
    padding: 5px 8px;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs > button {
    flex: 1 1 auto;
    font-size: 12px;
    padding: 12px 8px;
    min-width: 0;
    white-space: normal;
    line-height: 1.5;
  }
}
.latest-studio-scope .latest-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}
.latest-studio-scope .latest-results-toolbar > .h3-field-hint {
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.latest-studio-scope .latest-results-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-results-page-count {
  font-size: 12px;
  color: #72839c;
  margin-right: 5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.latest-studio-scope .latest-results-pagination .btn {
  font-size: 13px;
  min-height: 36px;
  padding: 8px 12px;
}
.latest-studio-scope .latest-results-toolbar + .latest-results-table {
  margin-top: 0;
}
.latest-studio-scope .latest-result-stamp.latest-status-stamp {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1.4;
  border-radius: 8px;
  border: 2px solid currentColor;
  box-shadow: 0 3px 10px #24478009;
  color: #7d8ba0;
  background: #fafbfd;
  transform: rotate(-4deg);
  white-space: nowrap;
  flex-shrink: 0;
}
.latest-studio-scope .latest-status-stamp .latest-stamp-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 15px;
  line-height: 1;
}
.latest-studio-scope .latest-status-stamp.is-running {
  color: #3167e3;
  background: #f0f5ff;
  box-shadow: 0 3px 14px #3976f51a;
}
.latest-studio-scope .latest-status-stamp.is-running::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      110deg,
      transparent 15%,
      #aecbff 35%,
      #2459e5 50%,
      #a8caff 65%,
      transparent 85%);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 2.4s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
  animation: latest-execution-spin 2s linear infinite;
}
.latest-studio-scope .latest-status-stamp.is-complete {
  color: #078657;
  background: #eefbf5;
  border-color: #34ab7d;
  box-shadow: 0 3px 12px #149e6910;
}
.latest-studio-scope .latest-status-stamp.is-failed {
  color: #c8353e;
  background: #fff2f3;
  border-color: #de5c63;
  box-shadow: 0 3px 12px #d3434b10;
}
.latest-studio-scope .latest-status-stamp.is-stopped {
  color: #7a879a;
  background: #f4f6f9;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-pagination {
    justify-content: flex-start;
    width: 100%;
  }
  .latest-studio-scope .latest-results-page-count {
    flex: 1;
  }
  .latest-studio-scope .latest-result-stamp.latest-status-stamp {
    font-size: 15px;
    padding: 8px 10px;
    gap: 6px;
  }
  .latest-studio-scope .latest-results-heading {
    gap: 12px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-status-stamp.is-running::after,
  .latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
    animation: none;
  }
}
.latest-studio-scope .latest-live-summary .latest-live-meter {
  margin-top: 18px;
  display: block;
}
.latest-studio-scope .latest-live-summary .latest-live-meter > label {
  display: block;
  color: #315076;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-summary .latest-live-meter .h3-progress-track {
  width: 100%;
  margin-top: 10px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  grid-template-columns: 75px 85px minmax(105px, 1fr) 120px auto;
  gap: 14px;
}
.latest-studio-scope .latest-segment-thumbnail {
  min-width: 0;
}
.latest-studio-scope .latest-thumbnail-button {
  position: relative;
  display: block;
  width: 120px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #f2f5fa;
  cursor: zoom-in;
}
.latest-studio-scope .latest-thumbnail-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.latest-studio-scope .latest-thumbnail-button > small {
  position: absolute;
  left: 3px;
  bottom: 3px;
  padding: 1px 5px;
  color: #fff;
  background: #173253bb;
  border-radius: 3px;
  font-size: 10px;
}
.latest-studio-scope .latest-thumbnail-zoom {
  position: absolute;
  right: 4px;
  bottom: 3px;
  padding: 0 4px;
  border-radius: 3px;
  color: white;
  background: #17325399;
  opacity: 0;
  transition: opacity .2s;
}
.latest-studio-scope .latest-thumbnail-button:hover {
  border-color: #739aff;
  box-shadow: 0 2px 8px #3267e91a;
}
.latest-studio-scope .latest-thumbnail-button:hover .latest-thumbnail-zoom,
.latest-studio-scope .latest-thumbnail-button:focus-visible .latest-thumbnail-zoom {
  opacity: 1;
}
.latest-studio-scope .latest-thumbnail-placeholder {
  box-sizing: border-box;
  width: 120px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  background: #f6f8fb;
  border: 1px dashed #dce4f1;
  border-radius: 8px;
  color: #a0aec1;
}
.latest-studio-scope .latest-thumbnail-placeholder small {
  font-size: 11px;
}
.latest-studio-scope .latest-thumbnail-placeholder > span {
  font-size: 20px;
  line-height: 1;
}
.latest-studio-scope .latest-thumbnail-placeholder button {
  padding: 0 5px;
  background: none;
  border: 0;
  color: #416bcb;
  font-size: 11px;
  cursor: pointer;
}
.latest-studio-scope .latest-thumbnail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10213b66;
  padding: 20px;
}
.latest-studio-scope .latest-thumbnail-backdrop > section {
  background: white;
  padding: 20px;
  border-radius: 14px;
  width: min(560px, 100%);
  box-sizing: border-box;
  box-shadow: 0 18px 60px #10213b33;
}
.latest-studio-scope .latest-thumbnail-backdrop section > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.latest-studio-scope .latest-thumbnail-backdrop img {
  display: block;
  width: 100%;
  height: auto;
  background: #111c2d;
  border-radius: 8px;
}
.latest-studio-scope .latest-thumbnail-backdrop p {
  font-size: 12px;
  color: #8292aa;
  margin-bottom: 0;
}
@media (max-width:1100px) and (min-width:721px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 65px 70px minmax(90px, 1fr) 105px auto;
    gap: 10px;
  }
  .latest-studio-scope .latest-thumbnail-button,
  .latest-studio-scope .latest-thumbnail-placeholder {
    width: 105px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    max-width: 220px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 10px;
  }
  .latest-studio-scope .latest-segment-thumbnail {
    grid-column: 1/-1;
  }
  .latest-studio-scope .latest-thumbnail-button,
  .latest-studio-scope .latest-thumbnail-placeholder {
    width: 120px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
  }
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  grid-template-columns: 75px 85px minmax(105px, 1fr) 120px 290px;
}
.latest-studio-scope .latest-results-table article > .latest-segment-thumbnail {
  display: block;
  grid-column: auto;
}
@media (max-width:1100px) and (min-width:721px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 65px 70px minmax(90px, 1fr) 105px 220px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-thumbnail {
    grid-column: 1/-1;
  }
}
.latest-studio-scope .latest-logs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-logs-toolbar h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.latest-studio-scope .latest-logs-toolbar .h3-field-hint {
  margin: 0;
}
.latest-studio-scope .latest-logs-pagination {
  padding-top: 2px;
  margin-left: auto;
}
.latest-studio-scope .latest-logs-pagination .has-updates {
  color: #285fe2;
  background: #edf3ff;
  border-color: #cbdcff;
}
.latest-studio-scope .latest-log-page-hint {
  margin: 20px 0 12px;
  color: #8a9ab0;
  font-size: 12px;
  line-height: 1.6;
}
.latest-studio-scope .latest-log-list.latest-log-paged {
  max-height: none;
  overflow: visible;
  margin-top: 0;
  padding: 2px 16px;
  background: #fff;
}
.latest-studio-scope .latest-log-paged > div {
  min-height: 44px;
  box-sizing: border-box;
  align-items: flex-start;
  gap: 18px;
  padding: 12px 0;
}
.latest-studio-scope .latest-log-paged > div:last-child {
  border-bottom: 0;
}
.latest-studio-scope .latest-log-paged > div > span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.latest-studio-scope .latest-logs-empty {
  padding: 35px 10px;
  text-align: center;
  color: #8b9bb1;
  font-size: 13px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-logs-toolbar {
    gap: 16px;
  }
  .latest-studio-scope .latest-logs-pagination {
    margin-left: 0;
    justify-content: flex-start;
  }
  .latest-studio-scope .latest-logs-pagination .latest-results-page-count {
    width: 100%;
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-log-paged > div {
    gap: 10px;
  }
  .latest-studio-scope .latest-log-list.latest-log-paged {
    padding: 2px 12px;
  }
}
.latest-studio-scope dialog.latest-thumbnail-backdrop {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(600px, 100vw);
  height: fit-content;
  max-height: calc(100dvh - 32px);
  max-width: 100vw;
  overflow: auto;
  padding: 20px;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}
.latest-studio-scope dialog.latest-thumbnail-backdrop:not([open]) {
  display: none;
}
.latest-studio-scope dialog.latest-thumbnail-backdrop::backdrop {
  background: rgba(16, 33, 59, .55);
}
.latest-studio-scope dialog.latest-thumbnail-backdrop > section {
  width: 100%;
}
.latest-studio-scope .latest-logs-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.latest-studio-scope .latest-logs-jump label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  color: #6f829f;
}
.latest-studio-scope .latest-logs-jump input {
  box-sizing: border-box;
  width: 62px;
  min-width: 0;
  height: 38px;
  padding: 6px 8px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  text-align: center;
  background: #fff;
  color: #183555;
}
.latest-studio-scope .latest-completion-sound {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-completion-sound .latest-sound-choice {
  width: auto;
  min-width: 112px;
  min-height: 38px;
  padding: 8px 28px 8px 10px;
  border: 1px solid #dce5f2;
  border-radius: 9px;
  background-color: #fff;
  color: #294260;
  font-size: 13px;
  cursor: pointer;
}
.latest-studio-scope .latest-sound-choice:focus-visible {
  outline: 2px solid #779cff;
  outline-offset: 2px;
}

/* apps/web/src/pages/latest/latest-form-layout.css */
.latest-form-layout .latest-optional-media-note {
  margin: -4px 0 16px;
  padding: 10px 12px;
  border: 1px solid #dce9ff;
  border-radius: 9px;
  background: #f3f7ff;
  color: #48678f;
  font-size: 12px;
  line-height: 1.7;
}
.latest-form-layout .h3-upload-heading strong {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.latest-form-layout .latest-reference-tag {
  display: inline-block;
  padding: 0 5px;
  border-radius: 4px;
  background: #eef4ff;
  color: #3262bb;
  font-size: 10px;
  line-height: 19px;
  white-space: nowrap;
  font-weight: 500;
}
.latest-form-layout .latest-reference-numbering {
  margin: 12px 0 0;
  line-height: 1.7;
  font-size: 12px;
  color: #71839d;
}
.latest-form-layout .h3-required-label {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff0ef;
  color: #c1372d;
  font-size: 12px;
  font-weight: 500;
}
.latest-form-layout .latest-prompt-required {
  margin: 8px 0 0;
  color: #c1372d;
  font-size: 12px;
  line-height: 1.6;
}
.latest-studio-scope .latest-connected .latest-form-layout {
  padding: 24px 26px;
}
.latest-form-layout .latest-form-section {
  min-width: 0;
}
.latest-form-layout .latest-form-section + .latest-form-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e9eef6;
}
.latest-form-layout .h3-step-heading {
  margin: 0 0 16px;
}
.latest-form-layout .h3-step-heading h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 17px;
  line-height: 26px;
  font-weight: 650;
}
.latest-form-layout .h3-step-heading p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: #72839c;
}
.latest-form-layout .h3-step-number {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #edf2ff;
  color: #3260e8;
  font-size: 12px;
}
.latest-form-layout .latest-section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 13px;
}
.latest-form-layout .latest-section-label span {
  color: #71839e;
  font-size: 12px;
  white-space: nowrap;
}
.latest-studio-scope .latest-form-layout .h3-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
  align-items: stretch;
}
.latest-studio-scope .latest-form-layout .h3-images > div {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  position: relative;
}
.latest-studio-scope .latest-form-layout .h3-upload-card {
  height: 272px;
  min-height: 272px;
  padding: 13px 14px;
  box-sizing: border-box;
  border: 1px solid #e0e7f1;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.latest-form-layout .h3-upload-heading {
  min-height: 24px;
  margin: 0 0 9px;
}
.latest-studio-scope .latest-form-layout .h3-upload-heading strong {
  margin: 0;
  font-size: 13px;
  line-height: 24px;
}
.latest-form-layout .h3-upload-badge {
  font-size: 10px;
  padding: 2px 7px;
  line-height: 18px;
}
.latest-studio-scope .latest-form-layout .h3-image-dropzone {
  height: 136px;
  min-height: 136px;
}
.latest-studio-scope .latest-form-layout .h3-image-dropzone img,
.latest-studio-scope .latest-form-layout .h3-image-dropzone .h3-placeholder {
  height: 100%;
  min-height: 0;
  width: 100%;
  object-fit: contain;
}
.latest-studio-scope .latest-form-layout .h3-image-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
  min-height: 34px;
  flex-wrap: nowrap;
}
.latest-form-layout .h3-image-actions .btn {
  height: 34px;
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.latest-form-layout .h3-upload-feedback {
  min-height: 20px;
  margin-top: 7px;
  font-size: 11px;
  line-height: 17px;
  gap: 5px;
  flex-wrap: nowrap;
}
.latest-form-layout .h3-upload-feedback > span:not(.h3-upload-indicator) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.latest-form-layout .h3-upload-feedback .h3-upload-filename {
  display: none;
}
.latest-form-layout .latest-upload-retry {
  position: absolute;
  right: 14px;
  bottom: 33px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  font-size: 12px;
}
.latest-studio-scope .latest-form-layout .latest-reference-section {
  padding: 14px 16px;
  margin: 10px 0 0;
  border: 1px solid #e1e8f3;
  border-radius: 12px;
  background: #f9fbfe;
}
.latest-form-layout .latest-reference-section summary {
  display: list-item;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  color: #263f61;
}
.latest-form-layout .latest-reference-section summary::marker {
  color: #8598b5;
  font-size: 11px;
}
.latest-form-layout .latest-reference-section summary > span {
  float: right;
  margin-left: 12px;
  font-size: 12px;
  font-weight: 400;
  color: #7386a0;
}
.latest-form-layout .latest-reference-help {
  margin: 9px 0 12px;
  line-height: 1.7;
  font-size: 12px;
  color: #7b8da5;
}
.latest-studio-scope .latest-form-layout .latest-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  align-items: stretch;
}
.latest-studio-scope .latest-form-layout .latest-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 136px;
  min-height: 136px;
  margin: 0;
  background: #f6f8fc;
  border: 1px dashed #dce3ec;
  border-radius: 9px;
  box-sizing: border-box;
}
.latest-form-layout .latest-media-placeholder p {
  font-size: 12px;
  line-height: 1.6;
  max-width: 90%;
  margin: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.latest-form-layout .latest-media-placeholder small {
  font-size: 11px;
}
.latest-form-layout .latest-media-placeholder > span {
  font-size: 25px;
  color: #8ba4cd;
  line-height: 1;
}
.latest-form-layout .latest-media-saved,
.latest-form-layout .latest-upload-status {
  margin: 7px 0 0;
  padding: 0;
  font-size: 11px;
  line-height: 18px;
  min-height: 20px;
}
.latest-form-layout .latest-upload-status {
  flex-wrap: wrap;
  gap: 5px;
}
.latest-form-layout .latest-upload-status .h3-upload-track {
  width: 52px;
  margin-top: 0;
}
.latest-form-layout .h3-prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}
.latest-form-layout .h3-prompt-heading .h3-field-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #415676;
}
.latest-form-layout .latest-prompt-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.latest-form-layout .latest-prompt-actions .btn {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 8px;
}
.latest-form-layout .latest-prompt-actions .latest-prompt-clear,
.latest-form-layout .latest-prompt-actions .latest-prompt-undo {
  width: 36px;
  min-width: 36px;
  padding: 0;
}
.latest-studio-scope .latest-form-layout #latest-prompt {
  display: block;
  min-height: 260px;
  height: 300px;
  max-height: 650px;
  margin: 12px 0 0;
  padding: 14px 16px;
  background: #fcfdff;
  font:
    13px/1.85 Consolas,
    "SFMono-Regular",
    monospace;
  resize: vertical;
}
.latest-studio-scope .latest-form-layout .latest-settings-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}
.latest-form-layout .latest-resolution-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  min-width: 0;
  flex: 1;
}
.latest-form-layout .latest-resolution-label {
  font-size: 13px;
  font-weight: 600;
  color: #304665;
  white-space: nowrap;
}
.latest-form-layout .latest-resolution-settings label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  white-space: nowrap;
}
.latest-studio-scope .latest-form-layout .latest-resolution-settings select {
  width: 102px;
  min-width: 102px;
  height: 38px;
  min-height: 38px;
  padding: 7px 10px;
  font-size: 13px;
}
.latest-form-layout .latest-resolution-hint {
  flex-basis: 100%;
  font-size: 12px;
  line-height: 1.7;
  color: #7b8da6;
}
.latest-studio-scope .latest-form-layout .latest-settings-main .latest-martial-card {
  margin: 0;
  padding: 12px 14px;
  min-height: 76px;
  gap: 10px;
  border-radius: 12px;
  box-shadow: none;
  flex-shrink: 0;
}
.latest-form-layout .latest-martial-copy strong {
  font-size: 13px;
}
.latest-form-layout .latest-martial-copy small {
  font-size: 11px;
}
.latest-form-layout .latest-martial-emblem {
  width: 32px;
  height: 34px;
}
.latest-form-layout .latest-generation-range .h3-step-heading {
  margin-bottom: 14px;
}
.latest-studio-scope .latest-form-layout .latest-range {
  gap: 10px;
  font-size: 13px;
}
.latest-form-layout .latest-range > label {
  display: flex;
  gap: 9px;
  align-items: center;
}
.latest-studio-scope .latest-form-layout .latest-range input {
  width: 82px;
  min-height: 38px;
  height: 38px;
  font-size: 13px;
}
.latest-form-layout .latest-generation-range > .h3-field-hint {
  margin: 10px 0 14px;
  font-size: 12px;
  color: #7385a0;
  line-height: 1.7;
}
.latest-studio-scope .latest-form-layout .latest-save-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0;
}
.latest-form-layout .latest-save-settings > label {
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
}
.latest-studio-scope .latest-form-layout .latest-save-settings input:not([type=checkbox]) {
  width: 230px;
  max-width: 100%;
  height: 38px;
  min-height: 38px;
  font-size: 13px;
}
.latest-form-layout input[type=checkbox] {
  accent-color: #2f61ed;
}
.latest-form-layout .latest-save-settings input[type=checkbox] {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
}
.latest-form-layout .latest-generate-actions {
  margin: 24px 0 12px;
  gap: 10px;
}
.latest-form-layout > .h3-field-hint {
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 0;
}
@media (max-width:960px) {
  .latest-form-layout .latest-resolution-settings {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-form-layout .latest-settings-main .latest-martial-card {
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
  }
  .latest-form-layout .latest-martial-control {
    margin-left: auto;
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-connected .latest-form-layout {
    padding: 16px;
  }
  .latest-form-layout .latest-form-section + .latest-form-section {
    margin-top: 20px;
    padding-top: 20px;
  }
  .latest-studio-scope .latest-form-layout .h3-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .latest-studio-scope .latest-form-layout .h3-upload-card {
    padding: 10px 8px;
    height: 252px;
    min-height: 252px;
  }
  .latest-form-layout .h3-upload-heading {
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0;
    min-height: 42px;
    margin-bottom: 6px;
  }
  .latest-form-layout .h3-upload-badge {
    font-size: 9px;
    padding: 1px 5px;
    line-height: 16px;
  }
  .latest-studio-scope .latest-form-layout .h3-image-dropzone {
    height: 112px;
    min-height: 112px;
  }
  .latest-studio-scope .latest-form-layout .h3-image-help {
    font-size: 10px;
    line-height: 1.6;
    padding: 0 3px;
  }
  .latest-form-layout .h3-image-actions {
    gap: 4px;
  }
  .latest-form-layout .h3-image-actions .btn {
    font-size: 11px;
    padding: 0 4px;
    min-width: 0;
    white-space: nowrap;
    flex: 1;
  }
  .latest-form-layout .h3-upload-feedback {
    font-size: 10px;
  }
  .latest-studio-scope .latest-form-layout .latest-media-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .latest-form-layout .latest-media-grid .h3-upload-heading {
    min-height: 24px;
    flex-wrap: nowrap;
  }
  .latest-studio-scope .latest-form-layout .latest-reference-section {
    padding: 12px;
  }
  .latest-form-layout .latest-prompt-actions {
    gap: 6px;
  }
  .latest-studio-scope .latest-form-layout #latest-prompt {
    height: 280px;
    min-height: 220px;
    padding: 12px;
    font-size: 12px;
  }
  .latest-form-layout .latest-resolution-settings {
    gap: 12px;
  }
  .latest-form-layout .latest-resolution-label {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-form-layout .latest-resolution-settings select {
    width: 92px;
    min-width: 92px;
  }
  .latest-form-layout .latest-save-settings > label {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .latest-studio-scope .latest-form-layout .latest-save-settings input:not([type=checkbox]) {
    width: 210px;
  }
}

/* apps/web/src/pages/latest/latest-prompt-tools.css */
.latest-studio-scope .latest-prompt-review {
  margin-top: 14px;
}
.latest-studio-scope .latest-review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-review-toolbar > p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #7688a2;
}
.latest-studio-scope .latest-review-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-review-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  min-height: 36px;
  font-size: 12px;
  padding: 0 14px;
}
.latest-studio-scope .latest-review-actions .machine-creation-spinner {
  width: 14px;
  height: 14px;
}
.latest-studio-scope .latest-review-result {
  padding: 16px 18px;
  margin-top: 14px;
  border: 1px solid #e5d9bc;
  border-radius: 10px;
  background: #fffcf6;
  color: #74552a;
  font-size: 13px;
  line-height: 1.75;
}
.latest-studio-scope .latest-review-result.is-passed {
  border-color: #cce7da;
  background: #f2fbf7;
  color: #217b5a;
}
.latest-studio-scope .latest-review-result-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.latest-studio-scope .latest-review-result-heading > span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.latest-studio-scope .latest-review-result > p {
  margin: 7px 0;
}
.latest-studio-scope .latest-review-result ul {
  margin: 8px 0;
  padding-left: 22px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .latest-review-comparison > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.latest-studio-scope .latest-review-comparison section {
  min-width: 0;
}
.latest-studio-scope .latest-review-comparison h4 {
  margin: 10px 0 6px;
}
.latest-studio-scope .latest-review-comparison pre {
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  padding: 12px;
  background: #fff;
  border: 1px solid #dce8e1;
  border-radius: 8px;
  color: #465b77;
  font: 12px/1.8 Consolas, monospace;
}
.latest-studio-scope .latest-review-notice {
  margin: 10px 0 0;
  font-size: 12px;
  color: #6f839f;
}
.latest-studio-scope .latest-range-controls {
  display: flex;
  align-items: center;
  gap: 12px 18px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 18px;
}
.latest-studio-scope .latest-range-controls label {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.latest-studio-scope .latest-range-controls input {
  width: 80px;
  height: 38px;
  min-height: 38px;
}
.latest-studio-scope .latest-range-controls select {
  height: 38px;
  min-height: 38px;
  min-width: 155px;
}
.latest-studio-scope .latest-range-controls > .h3-field-hint {
  color: #7487a1;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.latest-studio-scope .latest-connection {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.latest-studio-scope .latest-connection-dot {
  position: relative;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8ca0b9;
}
.latest-studio-scope .is-ready .latest-connection-dot {
  background: #16b981;
  box-shadow: 0 0 0 3px #16b98114;
}
.latest-studio-scope .is-ready .latest-connection-dot:after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid #23bd8b;
  border-radius: 50%;
  animation: latest-connection-breathe 2.2s ease-out infinite;
}
.latest-studio-scope .is-connecting .latest-connection-dot {
  background: #688cef;
  animation: latest-connection-fade 1.8s ease-in-out infinite;
}
.latest-studio-scope .is-unavailable .latest-connection-dot {
  background: #e1a14b;
}
dialog.latest-confirm-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  padding: 26px;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: #fff;
  color: #183555;
  box-shadow: 0 20px 70px #10274838;
  overflow: auto;
}
dialog.latest-confirm-dialog:not([open]) {
  display: none;
}
dialog.latest-confirm-dialog::backdrop {
  background: #10233e66;
}
.latest-confirm-dialog .latest-confirm-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #edf3ff;
  color: #2a60e8;
  font-size: 20px;
  font-weight: 700;
}
.latest-confirm-dialog h2 {
  font-size: 18px;
  line-height: 1.5;
  margin: 2px 0 10px;
}
.latest-confirm-dialog .machine-confirm-description {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
  color: #6d7e96;
}
.latest-confirm-dialog .machine-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.latest-confirm-dialog .btn {
  min-height: 38px;
  font-size: 13px;
  padding: 8px 18px;
}
@keyframes latest-connection-breathe {
  0% {
    opacity: .65;
    transform: scale(.6);
  }
  85%, 100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes latest-connection-fade {
  0%, 100% {
    opacity: .35;
  }
  50% {
    opacity: 1;
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-review-actions {
    width: 100%;
  }
  .latest-studio-scope .latest-review-actions .btn {
    flex: 1;
  }
  .latest-studio-scope .latest-review-comparison > div {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-range-controls {
    gap: 12px;
  }
  .latest-studio-scope .latest-range-controls > .h3-field-hint {
    flex-basis: 100%;
  }
  dialog.latest-confirm-dialog {
    padding: 20px;
    gap: 12px;
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .latest-confirm-dialog .latest-confirm-icon {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-connection-dot,
  .latest-studio-scope .latest-connection-dot:after {
    animation: none;
  }
}

/* apps/web/src/styles/instance-badge.css */

/* packages/shared/src/withdrawals.css */
.withdrawal-history {
  display: grid;
  gap: 14px;
  min-width: 0;
  color: var(--ink,#142844);
}
.withdrawal-history-table {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line,#dfe7f1);
  border-radius: 10px;
}
.withdrawal-history table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 980px;
}
.withdrawal-history.is-admin table {
  min-width: 1450px;
}
.withdrawal-history th,
.withdrawal-history td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.withdrawal-history th {
  font-weight: 500;
  font-size: 12px;
  background: var(--surface-2,#f2f6fc);
  white-space: nowrap;
}
.withdrawal-history tbody tr + tr {
  border-top: 1px solid var(--line,#dfe7f1);
}
.withdrawal-history small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-2,#60708a);
}
.withdrawal-history-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.withdrawal-history-status.is-success {
  color: #087443;
  background: #eaf8f0;
}
.withdrawal-history-status.is-pending {
  color: #8a5a0a;
  background: #fff6e6;
}
.withdrawal-history-status.is-danger {
  color: #b13438;
  background: #fff0f0;
}
.withdrawal-history-status.is-neutral {
  color: #50637a;
  background: #f0f3f7;
}
.withdrawal-history-reason {
  min-width: 140px;
  max-width: 260px;
  overflow-wrap: anywhere;
}
.withdrawal-history-event {
  min-width: 230px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line,#dfe7f1);
}
.withdrawal-history-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 130px;
}
.withdrawal-history details summary {
  cursor: pointer;
  white-space: nowrap;
}
.withdrawal-history-empty {
  margin: 0;
  padding: 28px;
  text-align: center;
  color: var(--ink-2,#60708a);
}
.withdrawal-history-filters,
.withdrawal-history-pagination,
.withdrawal-history-pagination > div,
.withdrawal-history-pagination label,
.withdrawal-history-pagination form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.withdrawal-history-filters .input:first-child {
  width: 260px;
  max-width: 100%;
}
.withdrawal-history-filters select {
  width: auto;
}
.withdrawal-history-pagination {
  justify-content: space-between;
  font-size: 12px;
}
.withdrawal-history-pagination input {
  width: 48px;
  text-align: center;
}
.withdrawal-history-pagination select,
.withdrawal-history-pagination input {
  height: 32px;
  border: 1px solid var(--line,#dfe7f1);
  border-radius: 6px;
  background: var(--surface,#fff);
  color: inherit;
  padding: 4px;
}
.withdrawal-history-pagination .btn {
  min-height: 32px;
  padding: 4px 9px;
  font-size: 12px;
}
.withdrawal-history-pagination > div > span {
  min-width: 80px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
@media (max-width:600px) {
  .withdrawal-history:not(.is-admin) .withdrawal-history-table {
    border: 0;
    overflow: visible;
  }
  .withdrawal-history:not(.is-admin) table,
  .withdrawal-history:not(.is-admin) tbody {
    display: block;
    min-width: 0;
  }
  .withdrawal-history:not(.is-admin) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .withdrawal-history:not(.is-admin) tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    border: 1px solid var(--line,#dfe7f1);
    border-radius: 10px;
    padding: 12px;
  }
  .withdrawal-history:not(.is-admin) tbody tr + tr {
    margin-top: 10px;
  }
  .withdrawal-history:not(.is-admin) td {
    display: grid;
    gap: 3px;
    padding: 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .withdrawal-history:not(.is-admin) td::before {
    content: attr(data-label);
    font-size: 11px;
    color: var(--ink-2,#60708a);
  }
  .withdrawal-history:not(.is-admin) td:last-child {
    grid-column: 1/-1;
  }
  .withdrawal-history-pagination {
    justify-content: flex-start;
  }
  .withdrawal-history-filters .input:first-child {
    width: 100%;
  }
}

/* apps/web/src/pages/my-works.css */
.mw-page {
  padding: 0;
  color: var(--ink);
}
.mw-page header p {
  color: var(--text-secondary,#63758a);
  line-height: 1.8;
}
.mw-page button,
.mw-page select,
.mw-page input {
  font: inherit;
  border: 1px solid var(--border-color,#dce3ec);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--card-bg,#fff);
  color: inherit;
}
.mw-page button {
  cursor: pointer;
}
.mw-page button:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.mw-page button[aria-pressed=true] {
  background: #245bdf;
  color: white;
}
.mw-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.mw-stats > div,
.mw-results,
.mw-filters,
.mw-zip {
  border: 1px solid var(--border-color,#dce3ec);
  background: var(--card-bg,#fff);
  border-radius: 12px;
  padding: 20px;
}
.mw-stats strong {
  display: block;
  font-size: 26px;
  color: #245bdf;
}
.mw-stats span,
.mw-page small {
  display: block;
  color: var(--text-secondary,#63758a);
  font-size: 12px;
  line-height: 1.8;
}
.mw-filters,
.mw-toolbar,
.mw-pagination,
.mw-actions,
.mw-zip {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.mw-filters label {
  display: grid;
  gap: 8px;
  min-width: 160px;
  flex: 1;
}
.mw-filters label:first-child {
  flex: 2;
}
.mw-toolbar {
  justify-content: space-between;
}
.mw-toolbar > div {
  display: flex;
  gap: 8px;
}
.mw-table-wrap {
  overflow-x: auto;
}
.mw-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 650px;
  font-size: 14px;
}
.mw-table th,
.mw-table td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border-color,#e8edf3);
  overflow-wrap: anywhere;
}
.mw-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff0d8;
  color: #775000;
}
.mw-badge.ready {
  background: #e2f6ed;
  color: #086c48;
}
.mw-task {
  border: 1px solid var(--border-color,#e5eaf1);
  border-radius: 10px;
  margin-bottom: 12px;
}
.mw-task-head {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px;
}
.mw-task-head > div:first-child {
  flex: 1;
  min-width: 180px;
}
.mw-task code {
  overflow-wrap: anywhere;
}
.mw-task-head button {
  margin-left: 6px;
}
.mw-task-videos {
  padding: 0 14px;
}
.mw-pagination {
  justify-content: flex-end;
  margin: 20px 0 0;
}
.mw-pagination form {
  display: flex;
  gap: 6px;
}
.mw-pagination input {
  width: 80px;
}
.mw-error {
  padding: 12px;
  background: #fff0ee;
  color: #a82b27;
  border-radius: 8px;
}
.mw-error button {
  margin-left: 12px;
}
.mw-empty {
  padding: 52px 16px;
  text-align: center;
  color: var(--text-secondary,#63758a);
}
.mw-scroll {
  position: fixed;
  right: 18px;
  bottom: 22px;
  display: grid;
  gap: 8px;
  z-index: 8;
}
.mw-scroll button {
  box-shadow: 0 2px 10px #0001;
}
@media (max-width:720px) {
  .mw-stats {
    gap: 8px;
  }
  .mw-stats > div {
    padding: 12px;
  }
  .mw-stats strong {
    font-size: 21px;
  }
  .mw-task-head {
    align-items: flex-start;
    gap: 12px;
  }
  .mw-results {
    padding: 12px;
  }
  .mw-scroll button {
    padding: 7px;
  }
  .mw-pagination {
    justify-content: flex-start;
  }
  .mw-task-head > span {
    width: 100%;
  }
}
.mw-search-panel {
  border: 1px solid var(--border-color,#dce3ec);
  background: var(--card-bg,#fff);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.mw-search-panel h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.mw-search-panel header p {
  font-size: 13px;
  margin: 0 0 18px;
}
.mw-search-panel .mw-filters {
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  gap: 16px;
  align-items: flex-end;
}
.mw-search-panel .mw-search-keyword {
  flex: 1 0 100%;
  min-width: 0;
}
.mw-search-keyword input {
  width: 100%;
  box-sizing: border-box;
}
.mw-search-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.mw-page .mw-button-primary {
  background: #245bdf;
  border-color: #245bdf;
  color: #fff;
  font-weight: 600;
}
.mw-page .mw-button-secondary {
  background: transparent;
}
.mw-search-panel input:focus-visible,
.mw-search-panel button:focus-visible,
.mw-search-panel select:focus-visible {
  outline: 2px solid #245bdf;
  outline-offset: 3px;
}
.mw-retention-rule {
  font-size: 13px;
}
.mw-view-help {
  font-size: 13px;
  color: var(--text-secondary,#63758a);
  line-height: 1.8;
  margin: -4px 0 18px;
}
.mw-retention {
  border-left: 3px solid #245bdf;
  padding-left: 10px;
  min-width: 150px;
  margin-top: 8px;
}
.mw-retention > strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary,#18314e);
}
.mw-retention-urgent {
  border-color: #b46a00;
}
.mw-retention-urgent > strong {
  color: #a45c00;
}
.mw-retention-expired {
  border-color: #bc3e38;
}
.mw-retention-expired > strong {
  color: #a82b27;
}
.mw-retention-unknown {
  border-color: #8d99a8;
}
.mw-task-head > .mw-retention {
  flex: 1;
  max-width: 350px;
}
[data-theme=dark] .mw-retention-urgent > strong {
  color: #ffc977;
}
[data-theme=dark] .mw-retention-expired > strong {
  color: #ffaaa2;
}
@media (max-width:720px) {
  .mw-search-panel {
    padding: 16px;
  }
  .mw-search-panel .mw-filters > label {
    min-width: 0;
    flex-basis: 100%;
  }
  .mw-search-actions {
    width: 100%;
  }
  .mw-search-actions button {
    flex: 1;
  }
  .mw-task-head > .mw-retention {
    max-width: none;
    flex-basis: 100%;
  }
}
.mw-actions button.mw-zip-ready {
  background: #e5f7ed;
  color: #11633e;
  border-color: #8bc9a8;
  font-weight: 700;
}
.mw-actions button.mw-zip-ready:hover:not(:disabled) {
  background: #cef0dd;
}
.mw-task-head .mw-save-pending {
  color: #854d0e;
  background: #fef3c7;
  border-radius: 4px;
  padding: 1px 4px;
  font-weight: 700;
  white-space: nowrap;
}
.mw-completion {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}
.mw-completion span {
  display: inline-block;
  padding: 4px 11px;
  border: 2px solid currentColor;
  border-radius: 5px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .08em;
  white-space: nowrap;
  background: #fff7df;
  color: #854d0e;
  transform: rotate(-4deg);
}
.mw-completion span[data-complete=true] {
  background: #e5f7ed;
  color: #11633e;
}


/* apps/web/src/components/creation-workspace-entries.css */
.creation-center .creation-machine-card .creation-workspace-entries {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
}
.creation-center .creation-machine-card .creation-workspace-entries > .btn {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  border-radius: 9px;
}
.creation-workspace-entries > .btn:focus-visible {
  outline: 2px solid #80a2ff;
  outline-offset: 3px;
}
.creation-version-directory .creation-version-header {
  justify-content: flex-start;
}

/* apps/web/src/components/creation-versions.css */


.creation-guide-page .resource-reader-title h2{margin:0;font-size:clamp(21px,3vw,28px);line-height:1.5}.creation-guide-body img{display:block;width:100%;height:auto;border-radius:4px}.creation-guide-body li{margin-bottom:.35em}.creation-guide-body pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;border-radius:8px;background:#7485a21a}.creation-guide-body h2[id]{scroll-margin-top:12px}
.creation-guide-page .creation-guide-toc{align-self:stretch;padding:24px 14px;background:#f8fafd}
.creation-guide-toc h2{font-size:14px;font-weight:700;margin:0 0 13px;padding:0 10px;color:#243650}
.creation-guide-toc ol{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.creation-guide-toc button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:0;border-radius:8px;padding:8px 10px;background:transparent;color:#43536b;font:inherit;font-size:13px;line-height:1.45;cursor:pointer;transition:background-color .18s ease,color .18s ease}
.creation-guide-toc-number{width:23px;height:23px;display:grid;place-items:center;flex:none;border-radius:6px;background:#edf1f7;color:#586b87;font-size:12px;font-weight:650;transition:background-color .18s ease,color .18s ease,transform .18s ease}
.creation-guide-toc button:hover{background:#eef3fb;color:#2458ac}
.creation-guide-toc button:hover .creation-guide-toc-number{transform:translateX(2px)}
.creation-guide-toc button:focus-visible{outline:2px solid #326cce;outline-offset:1px}
.creation-guide-toc button[aria-current=step]{background:#e7efff;color:#184b9b;font-weight:700}
.creation-guide-toc button[aria-current=step] .creation-guide-toc-number{background:#3165bd;color:#fff}
@media(prefers-reduced-motion:reduce){.creation-guide-toc button,.creation-guide-toc-number{transition:none}.creation-guide-toc button:hover .creation-guide-toc-number{transform:none}}


.latest-repair-guide{width:min(570px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #dfe7f3;border-radius:22px;overflow:auto;background:#fff;color:#192d4d;box-shadow:0 30px 100px #101f4b38;animation:latest-repair-enter .24s cubic-bezier(.16,1,.3,1)}
.latest-repair-guide::backdrop{background:#13213c66;backdrop-filter:blur(5px);animation:latest-repair-fade .2s ease}
.latest-repair-guide-inner{position:relative;padding:32px}
.latest-repair-guide-close{position:absolute;right:16px;top:13px;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:#8290a7;font-size:26px;cursor:pointer;transition:background .16s,color .16s}
.latest-repair-guide-close:hover{background:#eef3fa;color:#223d67}
.latest-repair-guide-icon{display:grid;place-items:center;width:60px;height:60px;border:1px solid #dbe7ff;border-radius:18px;background:linear-gradient(145deg,#f1f6ff,#e6efff);color:#3768d8;margin-bottom:20px}
.latest-repair-guide h2{margin:0 0 10px;font-size:24px;line-height:1.4;letter-spacing:-.4px;color:#182d50}
.latest-repair-guide #latest-repair-guide-description{margin:0;font-size:14px;line-height:1.85;color:#64748d}
.latest-repair-guide-issues{margin-top:22px;padding:14px 16px;background:#f7f9fd;border:1px solid #e9eef6;border-radius:12px;font-size:13px;line-height:1.7}
.latest-repair-guide-issues strong{font-size:12px;color:#5e718e}
.latest-repair-guide-issues ul{margin:7px 0 0;padding-left:18px;color:#405674}
.latest-repair-guide-issues li+li{margin-top:4px}
.latest-repair-guide-issues p{margin:7px 0 0;color:#7b899e;font-size:12px}
.latest-repair-guide-steps{display:flex;gap:12px;margin:24px 0;padding:0;list-style:none}
.latest-repair-guide-steps li{display:flex;align-items:center;gap:6px;flex:1;font-size:12px;line-height:1.5;color:#516683}
.latest-repair-guide-steps span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;flex:none;color:#3865b3;background:#eaf0fc;font-size:11px;font-weight:600}
.latest-repair-guide-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:6px}
.latest-repair-guide-footer .btn{padding:11px 17px;border-radius:10px;min-height:44px;transition:transform .16s,box-shadow .16s}
.latest-repair-guide-footer .btn-primary{background:#3268dc;box-shadow:0 5px 12px #3268dc26}
.latest-repair-guide-footer .btn-primary:hover{transform:translateY(-1px);box-shadow:0 7px 17px #3268dc38}
.latest-repair-guide-note{margin:14px 0 0;text-align:right;color:#8b98ac;font-size:11px;line-height:1.6}
.latest-repair-guide button:focus-visible{outline:3px solid #8db1ff;outline-offset:3px}
@keyframes latest-repair-enter{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes latest-repair-fade{from{opacity:0}to{opacity:1}}
@media(max-width:560px){.latest-repair-guide-inner{padding:26px 21px}.latest-repair-guide h2{font-size:21px}.latest-repair-guide-steps{gap:6px}.latest-repair-guide-steps li{font-size:11px;gap:4px}.latest-repair-guide-footer{flex-direction:column-reverse}.latest-repair-guide-footer .btn{width:100%;justify-content:center}.latest-repair-guide-note{text-align:center}}
@media(prefers-reduced-motion:reduce){.latest-repair-guide,.latest-repair-guide::backdrop{animation:none}.latest-repair-guide button{transition:none!important;transform:none!important}}


.latest-repair-guide{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border-radius:16px;box-shadow:0 20px 70px #10274838}
.latest-repair-guide-inner{display:grid;grid-template-columns:36px minmax(0,1fr);gap:0 12px;padding:26px}
.latest-repair-guide-icon{grid-column:1;grid-row:1 / 3;width:36px;height:36px;border-radius:10px;margin:0}
.latest-repair-guide-icon svg{width:22px;height:22px}
.latest-repair-guide h2{grid-column:2;font-size:18px;line-height:1.5;margin:2px 14px 8px 0;letter-spacing:0}
.latest-repair-guide #latest-repair-guide-description{grid-column:2;font-size:13px;line-height:1.8}
.latest-repair-guide-issues{grid-column:2;margin-top:14px;padding:10px 12px;font-size:12px;max-height:110px;overflow:auto;border-radius:8px}
.latest-repair-guide-steps{grid-column:2;margin:14px 0;gap:7px}
.latest-repair-guide-steps li{font-size:11px;gap:4px}
.latest-repair-guide-steps span{width:19px;height:19px;font-size:10px}
.latest-repair-guide-footer{grid-column:2;padding-top:2px;gap:8px}
.latest-repair-guide-footer .btn{min-height:38px;padding:8px 14px;font-size:13px;border-radius:8px}
.latest-repair-guide-note{grid-column:2;margin-top:10px;font-size:10px}
.latest-repair-guide-close{right:10px;top:9px;width:26px;height:26px;font-size:22px}
@media(max-width:560px){.latest-repair-guide-inner{padding:20px;grid-template-columns:30px minmax(0,1fr);gap:0 10px}.latest-repair-guide-icon{width:30px;height:30px}.latest-repair-guide h2{font-size:17px}.latest-repair-guide-footer{flex-direction:row}.latest-repair-guide-footer .btn{width:auto;flex:1;padding:8px 9px}.latest-repair-guide-steps{grid-column:1 / -1;justify-content:flex-end}.latest-repair-guide-note{text-align:right}}
@media(max-width:380px){.latest-repair-guide-footer{grid-column:1 / -1}.latest-repair-guide-steps{gap:3px}.latest-repair-guide-steps li{font-size:10px}}


.latest-form-layout .latest-generation-section .latest-settings-main{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;align-items:end}
.latest-form-layout .latest-generation-section .latest-resolution-settings{display:contents}
.latest-generation-section .latest-resolution-label{display:none}
.latest-generation-section .latest-resolution-mode-options{grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.latest-resolution-mode-option{display:flex;align-items:center;gap:12px;min-width:0;min-height:76px;padding:15px 18px;border:1px solid #dfe6f0;border-radius:11px;background:#fff;color:#324c70;text-align:left;font:inherit;cursor:pointer;transition:background .16s,border-color .16s,box-shadow .16s}
.latest-resolution-mode-option:hover:not(:disabled){border-color:#a4bff4;background:#f8faff}
.latest-resolution-mode-option.is-selected{border-color:#6897f1;background:#f1f6ff;box-shadow:0 0 0 1px #6897f122}
.latest-mode-radio{display:grid;place-items:center;flex:none;width:17px;height:17px;border:1.5px solid #c4cfe0;border-radius:50%;background:#fff}
.is-selected .latest-mode-radio{border-color:#3267d8;background:#3267d8}
.is-selected .latest-mode-radio::after{content:"";width:6px;height:6px;border-radius:50%;background:white}
.latest-mode-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.latest-mode-copy strong{font-size:14px;font-weight:600;color:#203c65}
.latest-mode-copy small{font-size:12px;line-height:1.5;color:#7a8da8}
.latest-resolution-mode-option:disabled{opacity:.55;cursor:not-allowed}
.latest-resolution-mode-option:focus-visible{outline:2px solid #7da5ee;outline-offset:3px}
.latest-form-layout .latest-generation-section .latest-resolution-settings>label{grid-column:span 3;display:flex;flex-direction:column;align-items:stretch;gap:7px;font-size:12px;color:#5a708f}
.latest-form-layout .latest-generation-section .latest-resolution-settings select{width:100%;min-width:0;height:38px;border-radius:8px;background-color:#fff}
.latest-form-layout .latest-generation-section .latest-martial-card{grid-column:span 6;min-width:0;width:100%;min-height:65px;margin:0;padding:12px 16px;align-self:end;border-radius:9px;background:#f9fbfe}
.latest-form-layout .latest-generation-section .latest-resolution-hint{grid-column:1/-1;order:4;margin:-4px 0 0;font-size:11px;line-height:1.6;color:#8a9ab0}
.latest-generation-range .latest-save-settings{margin-top:16px;display:flex;align-items:center;flex-wrap:wrap;gap:14px 24px}
.latest-generation-range .latest-save-settings label:first-child{display:flex;align-items:center;gap:10px}
.latest-generation-range .latest-save-settings input:not([type=checkbox]){min-width:0;width:260px;max-width:100%;height:38px;border-radius:8px}
.latest-form-layout .latest-generate-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid #edf1f7}
.latest-form-layout .latest-generate-actions>.btn-primary{min-width:190px;width:auto;min-height:42px;padding:11px 24px;border-radius:9px}
.latest-generation-submit-summary{font-size:12px;line-height:1.7;color:#7a8da8}
@media(max-width:680px){.latest-generation-section .latest-resolution-mode-options{gap:8px}.latest-resolution-mode-option{padding:12px;gap:8px}.latest-mode-copy small{font-size:11px}.latest-form-layout .latest-generation-section .latest-resolution-settings>label{grid-column:span 6}.latest-form-layout .latest-generation-section .latest-martial-card{grid-column:1/-1}.latest-generation-range .latest-save-settings{gap:12px}.latest-generation-range .latest-save-settings label:first-child{width:100%}.latest-generation-range .latest-save-settings input:not([type=checkbox]){flex:1}.latest-generation-submit-summary{width:100%}}
@media(max-width:420px){.latest-resolution-mode-options{grid-template-columns:1fr!important}.latest-resolution-mode-option{min-height:64px}.latest-form-layout .latest-generate-actions>.btn-primary{width:100%}}
@media(prefers-reduced-motion:reduce){.latest-resolution-mode-option{transition:none}}



.latest-image-heading-actions{display:flex;align-items:center;gap:12px;margin-left:auto}.latest-image-heading-actions .latest-clear-images{min-height:30px;padding:5px 11px;border-radius:7px;border-color:#e1e7ef;background:#fff;color:#697c98;font-size:12px;line-height:1.5;white-space:nowrap;transition:background .16s,color .16s,border-color .16s}.latest-image-heading-actions .latest-clear-images:hover:not(:disabled){color:#bc3e3e;background:#fff6f5;border-color:#f1d0cc}.latest-image-heading-actions .latest-clear-images:disabled{opacity:.45;cursor:not-allowed}.latest-image-heading-actions .latest-clear-images:focus-visible{outline:2px solid #8cadf0;outline-offset:2px}@media(prefers-reduced-motion:reduce){.latest-image-heading-actions .latest-clear-images{transition:none}}

.machine-ready-sound-controls.machine-ready-sound-settings{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0;border:0;background:transparent}.machine-ready-sound-settings .btn{min-height:38px;white-space:nowrap}.machine-ready-sound-settings select{width:auto;min-width:112px;min-height:38px;padding:8px 10px;border:1px solid #dce5f2;border-radius:9px;background:var(--surface,#fff);color:var(--text,#294260);font:inherit;font-size:13px}

.machine-product-action:has(> .fixed-stock-alternative) {
  height: auto;
  flex: 0 0 auto;
  align-items: stretch;
}
.fixed-stock-alternative {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid #dce8ff;
  border-radius: 10px;
  background: #f4f8ff;
  color: var(--text, #203c65);
}
.fixed-stock-alternative p { margin: 4px 0 12px; font-size: 13px; }
.fixed-stock-alternative-actions { display: flex; gap: 8px; }
.fixed-stock-alternative-actions .btn { width: auto; min-height: 44px; }
.fixed-stock-alternative-actions .fixed-stock-elastic-cta {
  flex: 1 1 auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.fixed-stock-elastic-arrow { transition: transform 160ms ease; }
.fixed-stock-elastic-cta:focus-visible { outline: 2px solid #245dea; outline-offset: 3px; }
@media (hover: hover) {
  .fixed-stock-elastic-cta:hover { box-shadow: 0 4px 12px #1851d333; }
  .fixed-stock-elastic-cta:hover .fixed-stock-elastic-arrow { transform: translateX(3px); }
}
.fixed-stock-elastic-cta:active { transform: translateY(1px); }
@media (max-width: 480px) {
  .fixed-stock-alternative-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .fixed-stock-alternative-actions .fixed-stock-elastic-cta,
  .fixed-stock-elastic-arrow { transition: none; transform: none; }
  .fixed-stock-elastic-cta:hover .fixed-stock-elastic-arrow,
  .fixed-stock-elastic-cta:active { transform: none; }
}

@keyframes fq-elastic-arrow-nudge {
  0%, 100% { transform: translateX(0); }
  55% { transform: translateX(5px); }
}
@media (prefers-reduced-motion: no-preference) {
  .fixed-stock-elastic-arrow {
    flex: 0 0 auto;
    animation: fq-elastic-arrow-nudge 1.55s ease-in-out infinite;
  }
  .fixed-stock-elastic-cta:is(:hover, :focus-visible) .fixed-stock-elastic-arrow {
    animation-duration: 1s;
  }
}


@media (min-width: 1025px) {
  .topbar-inner { gap: 14px; }
  .topbar-inner .nav-links { gap: 10px; justify-content: space-between; }
  .topbar-inner .nav-link { flex: 0 0 auto; white-space: nowrap; }
  .topbar-inner .topbar-user > span:last-child { max-width: 82px; }
}
@media (min-width: 1025px) and (max-width: 1199px) {
  .topbar-inner .brand-block { width: 180px; min-width: 180px; flex-basis: 180px; }
  .topbar-inner .brand-logo { width: 170px; }
  .topbar-inner .nav-link { font-size: 14px; }
  .topbar-inner .topbar-user > span:last-child { max-width: 68px; }
}
@media (min-width: 1025px) and (max-width: 1079px) {
  .topbar-inner { gap: 10px; }
  .topbar-inner .nav-links { gap: 8px; }
  .topbar-inner .topbar-user > span:last-child { display: none; }
}


@media (min-width: 1100px) {
  .machine-product-card--recommended:has(.fixed-weekly-stamp) .machine-product-copy { max-width: calc(100% - 100px); }
  .machine-product-card--recommended .fixed-weekly-stamp { width: 94px; right: 17px; font-size: 23px; letter-spacing: 2px; }
}


.referral-withdrawal .referral-form { display: grid; gap: 12px; }
.referral-withdrawal .referral-form > p { margin: 0; }
.referral-withdrawal .referral-withdrawal-balances {
  overflow: hidden;
  border: 1px solid var(--referral-line);
  border-radius: 10px;
  background: var(--surface);
}
.referral-withdrawal .referral-available { padding: 10px 14px; }
.referral-withdrawal-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  padding: 8px 14px;
  margin: 0;
  border-top: 1px solid var(--referral-line);
}
.referral-withdrawal-breakdown > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.referral-withdrawal-breakdown dt, .referral-withdrawal-rule { color: var(--referral-muted); font-size: 13px; }
.referral-withdrawal-breakdown dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.referral-withdrawal .referral-payout-fields { gap: 10px; }
.referral-withdrawal .referral-payout-destination > [aria-hidden="true"],
.referral-withdrawal .referral-payout-details > [aria-hidden="true"],
.referral-withdrawal .referral-payout-preview-hint[aria-hidden="true"] { display: none; }
.referral-withdrawal .referral-payout-totals { margin: 0; padding: 4px; gap: 4px; }
.referral-withdrawal .referral-payout-totals > div { padding: 7px 9px; min-width: 0; }
.referral-withdrawal .referral-payout-totals > div:nth-child(3) { background: var(--brand-soft); border-radius: 6px; }
.referral-withdrawal .referral-payout-totals dd { font-variant-numeric: tabular-nums; }
.referral-withdrawal .referral-payout-totals > div:nth-child(3) dd { color: var(--referral-accent); font-weight: 700; }
.referral-withdrawal .referral-form > .btn { margin-top: 0; justify-self: end; min-width: 132px; }
@media (max-width: 600px) {
  .referral-withdrawal .referral-payout-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .referral-withdrawal .referral-form > .btn { justify-self: stretch; }
}


.referral-withdrawal-amount-group { display: grid; gap: 6px; min-width: 0; }
.referral-withdrawal-amount-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 10px;
  border: 1px solid var(--referral-line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--referral-muted);
}
.referral-withdrawal-amount-input:focus-within { border-color: var(--referral-accent); }
.referral-withdrawal-amount-input .input { flex: 1; min-width: 0; width: 0; padding-inline: 0; border: 0; box-shadow: none; }
.referral-withdrawal-fill {
  flex: none;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: var(--referral-accent);
  font: inherit;
  cursor: pointer;
}
.referral-withdrawal-fill:disabled { color: var(--referral-muted); opacity: .6; cursor: default; }
.referral-withdrawal-fill:enabled:hover { text-decoration: underline; }
.referral-withdrawal-quote { display: grid; gap: 3px; margin: 3px 0 0; padding: 7px 0 0; border-top: 1px solid var(--referral-line); }
.referral-withdrawal-quote > div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 7px; }
.referral-withdrawal-quote dt { color: var(--referral-muted); }
.referral-withdrawal-quote dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
.referral-withdrawal-quote .referral-withdrawal-net { background: var(--brand-soft); border-radius: 6px; }
.referral-withdrawal-net dd { color: var(--referral-accent); font-weight: 700; }

.referral-withdrawal .referral-form > .referral-withdrawal-balances { display: grid; gap: 0; }
.referral-withdrawal .referral-withdrawal-balances fieldset.referral-cash-sources {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px;
  margin: 0 4px 8px; padding: 5px 0 0;
}
.referral-cash-sources legend { color: var(--referral-muted); font-size: 12px; }
.referral-form label.referral-cash-source {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding: 8px 9px; border: 1px solid var(--referral-line); border-radius: 8px;
  font-size: 13px; cursor: pointer;
}
.referral-cash-source:has(:checked) { background: var(--brand-soft); border-color: var(--referral-accent); }
.referral-cash-source input { margin: 0; accent-color: var(--referral-accent); }
.referral-cash-source strong { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.referral-withdrawal .referral-payout-top { grid-template-columns: minmax(0, 1fr); gap: 14px; }
/* Keep the amount and its calculation visually grouped. */
.referral-withdrawal .referral-withdrawal-amount-group {
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  gap: 8px;
  padding: 14px;
  border: 1px dashed var(--referral-line);
  border-color: color-mix(in srgb, var(--referral-accent) 38%, var(--referral-line));
  border-radius: 10px;
  background: var(--surface);
}
.referral-withdrawal-amount-group > label { font-size: 13px; }
.referral-withdrawal-amount-group > small { font-size: 12px; line-height: 1.5; }
.referral-withdrawal .referral-withdrawal-amount-input {
  background: color-mix(in srgb, var(--referral-tint) 55%, var(--surface));
}
.referral-withdrawal .referral-withdrawal-quote { margin: 0; font-size: 13px; }
.referral-withdrawal .referral-withdrawal-quote .referral-withdrawal-net { padding-block: 6px; }
@media (max-width: 480px) {
  .referral-withdrawal .referral-withdrawal-amount-group { padding: 11px; }
}
.referral-withdrawal .referral-withdrawal-quote > div { padding: 4px 8px; }
.referral-withdrawal .referral-payout-option-card { min-height: 43px; }
.referral-withdrawal .referral-payout-placeholder { grid-column: 1 / -1; }
.referral-payout-info:not(:has(label)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 420px) {
  .referral-withdrawal .referral-withdrawal-balances fieldset.referral-cash-sources { grid-template-columns: minmax(0, 1fr); }
}


.nav-links .video-replica-nav { white-space: nowrap; }
.nav-links .video-replica-nav[aria-disabled="true"] { color: #8290a4; cursor: default; }
.nav-links .video-replica-nav[aria-disabled="true"]:hover { color: #8290a4; background: transparent; }

@media (min-width: 1025px) {
  .topbar-inner { max-width: 1320px; flex-wrap: nowrap; }
  .topbar-inner .nav-links { flex-wrap: nowrap; }
  .topbar-inner .nav-link { flex: 0 0 auto; white-space: nowrap; }
  .topbar-inner .topbar-right { flex: 0 0 auto; white-space: nowrap; }
}

@media (min-width: 1200px) and (max-width: 1279px) {
  .topbar-inner .brand-block { width: 206px; min-width: 206px; flex-basis: 206px; }
  .topbar-inner .brand-logo { width: 198px; }
}

@media (min-width: 1025px) and (max-width: 1120px) {
  .topbar-inner { gap: 10px; }
  .topbar-inner .nav-links { gap: 7px; }
}


.video-replica-host { min-width: 0; }

.video-replica-workspace {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.video-replica-sections {
  display: flex;
  gap: 4px;
  padding: 9px 12px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, #f4f7ff, var(--surface) 75%);
}

.video-replica-sections a {
  flex: none;
  padding: 10px 16px;
  color: var(--ink-2);
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.video-replica-sections a:hover { background: #eaf1ff; }
.video-replica-sections a:focus-visible { outline: 2px solid #3267db; outline-offset: -3px; }
.video-replica-sections a[aria-current="page"] {
  border-color: var(--line);
  background: linear-gradient(180deg, #edf4ff, var(--surface) 90%);
  box-shadow: inset 0 2px 0 #578bff;
  color: #2459df;
}

.video-replica-content {
  display: block;
  width: 100%;
  height: max(520px, calc(100dvh - 250px));
  border: 0;
  background: transparent;
}

@media (max-width: 768px) {
  .video-replica-sections a { padding-inline: 12px; }
  .video-replica-content { height: max(440px, calc(100dvh - 220px)); }
}

@media (max-height: 520px) {
  .video-replica-content { height: calc(100dvh - 24px); }
}

.video-replica-status {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
}

.video-replica-status > p { margin: 0 0 10px; }
.video-replica-status > p:last-child { margin-bottom: 0; }

