html:has(.install-guide[open]) { overflow:hidden; }
.install-guide { width:min(1640px,calc(100vw - 48px),calc((100dvh - 48px) * 1330 / 620)); height:auto; aspect-ratio:1330/620; max-width:none; max-height:none; margin:auto; padding:0; border:0; border-radius:18px; color:var(--ink); background:#fff; box-shadow:0 20px 70px rgb(32 38 41 / 18%); font-family:var(--font); overflow:hidden; }
.install-guide::backdrop { background:#ffffffb8; }
.install-guide:focus { outline:none; }
.ig-shell { position:relative; width:100%; height:100%; }
.ig-content { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); grid-template-areas:"animation copy"; align-items:stretch; gap:0; width:100%; height:100%; padding:0; }
.ig-copy { grid-area:copy; display:flex; flex-direction:column; justify-content:center; min-width:0; min-height:0; padding:56px; text-align:left; }
.ig-copy-content { flex:0 1 auto; min-height:0; overflow:auto; scrollbar-width:thin; scrollbar-color:#b5b5b5 transparent; }
.ig-title { margin:0 0 24px; font:700 clamp(26px,2.5vw,40px)/1.3 var(--font); letter-spacing:-.025em; text-wrap:balance; }
.ig-title:focus { outline:none; }
.ig-copy p { margin:0 0 16px; font:18px/1.75 var(--font); color:var(--muted); overflow-wrap:anywhere; }
.ig-copy .ig-usage-warning { color:var(--ink); font-weight:600; }
.ig-description a,.ig-ai-action { color:var(--ink); text-underline-offset:4px; }
.ig-tutorial-tools { margin-bottom:16px; }
.ig-tutorial-tools:has(>[hidden]):not(:has(>:not([hidden]))) { display:none; }
.ig-ai-action { display:inline-block; font:500 16px/1.6 var(--font); }
.ig-link { padding:0; border:0; background:none; color:var(--muted); font:16px/1.6 var(--font); cursor:pointer; text-underline-offset:4px; }
.ig-link:hover { text-decoration:underline; }
.ig-retry .ig-link { min-height:44px; padding:10px 18px; border-radius:8px; background:#202629; color:#fff; font-weight:550; }
.ig-retry .ig-link:hover { background:#000; text-decoration:none; }
.ig-retry .ig-link:active { background:#35373a; }
.ig-utility { margin-bottom:16px; }
.ig-copy .extensions-address { width:100%; max-width:440px; margin:0; }
.ig-copy .extensions-address input { font-size:16px; }
.ig-copy .extensions-address button { min-height:44px; padding:10px 14px; font-size:14px; }
.ig-copy .extensions-address [role="status"] { margin:8px 0 0; font-size:14px; }
.ig-help { margin-top:12px; font:16px/1.7 var(--font); }
.ig-help summary { cursor:pointer; }
.ig-help p { margin-top:12px; font-size:15px; }
.ig-help strong { color:var(--ink); }
.ig-nav { flex:none; display:flex; align-items:center; justify-content:flex-start; gap:12px; margin-top:24px; }
.ig-nav button { min-height:44px; padding:11px 22px; border:0; border-radius:8px; font:550 16px/1.4 var(--font); cursor:pointer; }
.ig-prev { color:var(--muted); background:#f2f3f4; }
.ig-prev:hover { background:#e7e7e7; }
.ig-next { color:#fff; background:#202629; }
.ig-next:hover { background:#000; }
.ig-next:active { background:#35373a; }
.ig-demo { grid-area:animation; display:grid; min-width:0; min-height:0; container-type:size; }
.install-guide .install-picture { width:100%; height:100%; aspect-ratio:798/620; border-radius:0; overflow:hidden; background:#fff; box-shadow:none; }
.install-guide .install-art { position:absolute; inset:0; width:100%; height:100%; }
.ig-close { position:absolute; z-index:3; right:16px; top:16px; display:grid; place-items:center; width:36px; height:36px; padding:6px; border:0; border-radius:6px; background:transparent; color:#41464b; cursor:pointer; }
.ig-close:hover { background:#f0f0f0; }
.ig-close svg { width:24px; height:24px; }
.install-guide [hidden] { display:none !important; }
.install-guide :is(button,input,a,summary):focus-visible { outline:3px solid var(--ink); outline-offset:2px; }
.ig-scene { display:block; width:100%; height:100%; pointer-events:none; user-select:none; }
.ig-scene text { font-family:system-ui,sans-serif; fill:#202629; }
.ig-scene .ig-muted { fill:#6b7277; }
.ig-scene .ig-link-ink { fill:#1766b5; }
.ig-scene [data-anim] { transform-box:fill-box; transform-origin:center; }
.ig-scene [data-anim="progress-fill"] { transform-origin:left center; }
.ig-scene .ig-pointer { transform-box:view-box; transform-origin:0 0; }
@media(max-width:1000px) {
 .ig-copy { padding:40px 28px; }
 .ig-title { font-size:28px; margin-bottom:16px; }
 .ig-copy p { font-size:16px; }
}
@media(max-height:500px) and (min-width:701px) {
 .ig-copy { padding:36px 24px 24px; }
 .ig-title { font-size:24px; margin-bottom:12px; }
 .ig-copy p { font-size:14px; margin-bottom:12px; }
 .ig-nav { margin-top:16px; }
}
@media(max-width:700px) and (min-height:501px) {
 .install-guide { width:calc(100vw - 24px); height:min(780px,calc(100dvh - 24px)); aspect-ratio:auto; border-radius:12px; }
 .ig-content { grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); grid-template-areas:"animation" "copy"; }
 .ig-demo { aspect-ratio:798/620; }
 .ig-copy { justify-content:center; padding:24px; }
 .ig-title { font-size:26px; }
 .ig-copy p { font-size:16px; line-height:1.6; }
 .ig-nav { margin-top:16px; }
 .ig-nav button { padding:10px 18px; }
 .ig-close { top:8px; right:8px; }
 .ig-copy .extensions-address-row { flex-wrap:wrap; }
 .ig-copy .extensions-address input { flex:1 1 140px; }
}
.download-notice { width:min(520px,calc(100vw - 32px)); padding:40px; border:0; border-radius:16px; color:var(--ink); background:#fff; box-shadow:0 20px 70px #2026292e; }
.download-notice::backdrop { background:#ffffffb8; }
.download-notice h2 { margin:0 0 18px; font:700 34px/1.3 var(--font); }
.download-notice p { margin:0 0 32px; font:17px/1.6 var(--font); color:var(--muted); }
.download-notice .download-file { margin-bottom:12px; color:var(--ink); overflow-wrap:anywhere; }
.download-close { position:absolute; right:16px; top:16px; display:grid; place-items:center; width:32px; height:32px; padding:5px; border:0; background:transparent; color:var(--ink); cursor:pointer; }
.download-close svg { width:22px; height:22px; }
.download-retry { padding:0; border:0; background:none; color:var(--ink); font:inherit; text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.download-continue { width:100%; min-height:52px; padding:14px; font-size:20px; }
.download-notice :is(button,a):focus-visible { outline:3px solid var(--ink); outline-offset:4px; }
/* Modal-only layout. The illustrated quick-start document remains independent. */
.overlay-tutorial.install-guide { width:min(1880px,calc(100vw - 32px),calc((100dvh - 32px) * 1560 / 760)); height:auto; aspect-ratio:1560/760; max-height:calc(100dvh - 32px); }
.overlay-tutorial .ig-content { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); grid-template-areas:"animation copy"; }
.overlay-tutorial .ig-demo { position:relative; min-height:0; overflow:hidden; }
.overlay-tutorial .install-picture { height:100%; aspect-ratio:auto; }
.overlay-tutorial .install-art { position:absolute; inset:0; height:100%; }
.overlay-tutorial .install-art>.ig-scene { display:block; width:100%; height:100%; }
.overlay-tutorial .ig-copy { position:relative; padding:clamp(28px,3vw,56px); justify-content:center; align-items:stretch; text-align:left; }
.overlay-tutorial .ig-title { font-size:clamp(30px,2.8vw,46px); line-height:1.4; margin:0 0 20px; }
.overlay-tutorial .ig-nav { justify-content:flex-start; margin-top:24px; }
.overlay-tutorial .ig-nav button { min-height:48px; padding:12px 22px; font-size:20px; border:0; }
.overlay-tutorial .ig-close { z-index:4; top:10px; right:10px; width:32px; height:32px; padding:7px; background:transparent; }
.overlay-tutorial .ig-close svg { width:18px; height:18px; }
.overlay-tutorial .ig-copy p { font-size:22px; }
.overlay-tutorial .ig-link,.overlay-tutorial .ig-help { font-size:20px; }
.overlay-tutorial .ig-copy .extensions-address input { font-size:18px; }
.overlay-tutorial .ig-help { position:relative; max-width:none; text-align:left; }
.install-art>yue-workflow-demo { display:block; width:100%; height:100%; }
@media(max-width:700px) {
 .overlay-tutorial.install-guide { width:calc(100vw - 24px); height:min(780px,calc(100dvh - 24px)); aspect-ratio:auto; max-height:calc(100dvh - 24px); }
 .overlay-tutorial .ig-content { grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); grid-template-areas:"animation" "copy"; }
 .overlay-tutorial .ig-demo { width:100%; aspect-ratio:1040/760; align-self:start; }
 .overlay-tutorial .ig-copy { padding:26px 24px; }
 .overlay-tutorial .ig-title { font-size:28px; margin-bottom:16px; }
 .overlay-tutorial .ig-copy p { font-size:18px; }
 .overlay-tutorial .ig-nav { margin-top:18px; }
 .overlay-tutorial .ig-close { top:5px; right:5px; width:28px; height:28px; background:#fff; }
 .overlay-tutorial .ig-copy-content { max-height:30dvh; }
}
