/* ===== YGG Portal - Download page (navy + gold, matches ygg-site.css) ===== */
.dl {
    --dl-gold: #f2c873;
    --dl-amber: #e5a52a;
    --dl-line: #2c3c58;
    --dl-line-soft: #223049;
    --dl-panel: rgba(20, 30, 51, .88);
    --dl-text: #e9edf5;
    --dl-muted: #a8b4c9;
    --dl-dim: #8392ab;
    --dl-jade: #8ee2b3;
    --c-direct: #f2c873;
    --c-gdrive: #5bd08a;
    --c-mediafire: #5aa7ff;
    --c-mega: #ff6b6b;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 64px;
}
.dl code, .dlm code { font: 13px/1.4 Consolas, "Courier New", monospace; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 5px; color: #e9edf5; }

.dl-eyebrow { display: inline-block; color: var(--dl-gold, #f2c873); font: 800 11px/1 Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; }
.dl-h2 { margin: 6px 0 6px; font: 700 28px/1.2 Georgia, "Times New Roman", serif; color: #fff; }
.dl-h2--sm { font-size: 22px; margin-bottom: 14px; }
.dl-sub { margin: 0; color: var(--dl-muted); }

/* ---------- Buttons ---------- */
.dl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 22px; border-radius: 10px; border: 0;
    font: 700 15px/1 Arial, sans-serif; text-decoration: none !important; cursor: pointer;
    color: #1a1204 !important;
    background: linear-gradient(180deg, #f8d584, #e5a52a);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 26px rgba(229, 165, 42, .28);
    transition: transform .15s, filter .15s, box-shadow .15s, border-color .15s, color .15s;
}
.dl-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.dl-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.dl-btn--xl { padding: 18px 30px; font-size: 18px; border-radius: 12px; position: relative; overflow: hidden; }
.dl-btn--xl::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-20deg); animation: dlShine 3.6s ease-in-out infinite;
}
@keyframes dlShine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.dl-btn--ghost { background: rgba(13, 21, 38, .55); color: #d6deef !important; border: 1px solid #4a5a7e; box-shadow: none; }
.dl-btn--ghost:hover { border-color: #f2c873; color: #f2c873 !important; filter: none; }
.dl-btn--sm { padding: 10px 16px; font-size: 13.5px; border-radius: 9px; }
.dl-btn svg { flex: none; }

/* ---------- Hero ---------- */
.dl-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 10px;
    align-items: center;
    min-height: 470px;
    padding: 40px 24px 40px 44px;
    border: 1px solid var(--dl-line);
    border-radius: 22px;
    background:
        radial-gradient(60% 90% at 78% 55%, rgba(242, 200, 115, .20), transparent 62%),
        radial-gradient(90% 120% at 0% 0%, rgba(90, 167, 255, .10), transparent 55%),
        linear-gradient(160deg, #18263f, #0c1424 72%);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
    overflow: hidden;
    isolation: isolate;
}
.dl-hero::before {      /* subtle diagonal sheen */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 2px, transparent 2px 22px);
    mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
}
.dl-hero__main { position: relative; z-index: 2; max-width: 560px; }
.dl-title { margin: 12px 0 14px; font: 700 clamp(32px, 4.4vw, 50px)/1.08 Georgia, "Times New Roman", serif; color: var(--dl-gold); text-shadow: 0 2px 22px rgba(242, 200, 115, .22); }
.dl-lead { margin: 0 0 20px; color: #cfd8e8; font-size: 16.5px; line-height: 1.6; }
.dl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.dl-chips li { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--dl-line); background: rgba(13, 21, 38, .7); font-size: 13px; }
.dl-chips span { color: var(--dl-dim); }
.dl-chips b { color: #fff; }
.dl-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dl-hint { margin: 16px 0 0; color: var(--dl-dim); font-size: 13.5px; line-height: 1.5; }
.dl-hint + .dl-hint { margin-top: 6px; }
.dl-dot { display: inline-block; vertical-align: middle; margin: -2px 8px 0 0; width: 8px; height: 8px; border-radius: 50%; background: #5bd08a; box-shadow: 0 0 0 0 rgba(91, 208, 138, .6); animation: dlPulse 2s infinite; }
@keyframes dlPulse { 0% { box-shadow: 0 0 0 0 rgba(91,208,138,.55); } 70% { box-shadow: 0 0 0 9px rgba(91,208,138,0); } 100% { box-shadow: 0 0 0 0 rgba(91,208,138,0); } }

.dl-art { position: relative; z-index: 1; align-self: stretch; display: grid; place-items: center; margin: -40px 0; min-height: 420px; pointer-events: none; }
.dl-art__halo {
    position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 200, 115, .28), rgba(242, 200, 115, .06) 55%, transparent 70%);
    border: 1px solid rgba(242, 200, 115, .16);
    box-shadow: 0 0 0 26px rgba(242, 200, 115, .035), 0 0 0 58px rgba(242, 200, 115, .02);
}
.dl-art__floor { position: absolute; bottom: 9%; width: 70%; height: 34px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.dl-art picture { position: relative; display: block; width: min(560px, 100%); }
.dl-art__img {
    display: block; width: 100%; height: auto;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .55)) drop-shadow(0 0 1px rgba(0, 0, 0, .8));
    animation: dlFloat 6s ease-in-out infinite;
}
@keyframes dlFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Statistics ---------- */
.dl-stats {
    display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 2.2fr); gap: 16px;
    margin-top: 22px;
}
.dl-total-card {
    position: relative; overflow: hidden;
    padding: 24px; border-radius: 18px;
    border: 1px solid rgba(242, 200, 115, .3);
    background: radial-gradient(120% 90% at 0% 0%, rgba(242, 200, 115, .16), transparent 60%), rgba(12, 20, 36, .9);
}
.dl-stats__label { margin: 0; color: var(--dl-dim); font: 700 12px/1 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.dl-total { margin: 12px 0 10px; font: 800 clamp(42px, 5vw, 58px)/1 Arial, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.01em;
    background: linear-gradient(180deg, #fff, #f2c873); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #fff; }
.dl-total--off { -webkit-text-fill-color: var(--dl-dim); }
.dl-stats__foot { margin: 0; color: var(--dl-dim); font-size: 12.5px; line-height: 1.5; }
.dl-admin { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(229, 165, 42, .1); border: 1px solid rgba(229, 165, 42, .35); color: #f6dca4; font-size: 12.5px; line-height: 1.5; }

.dl-sources { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dl-src {
    display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon name" "num num" "track track"; gap: 8px 10px; align-items: center;
    padding: 13px 14px 12px; border-radius: 14px; border: 1px solid var(--dl-line); background: var(--dl-panel);
    transition: border-color .2s, transform .2s;
}
.dl-src:hover { border-color: var(--c); transform: translateY(-1px); }
.dl-src__icon { grid-area: icon; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--c); background: rgba(255,255,255,.05); }
.dl-src__name { grid-area: name; min-width: 0; display: grid; }
.dl-src__name b { font-size: 13.5px; color: #fff; line-height: 1.25; }
.dl-src__name small { font-size: 11.5px; color: var(--dl-dim); }
.dl-src__num { grid-area: num; margin-top: 2px; font: 800 22px/1 Arial, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.dl-src__track { grid-area: track; height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.dl-src__fill { display: block; height: 100%; border-radius: inherit; background: var(--c); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.dl-src.is-off { opacity: .5; }
.dl-src.is-off:hover { transform: none; border-color: var(--dl-line); }
[data-provider="direct"]    { --c: var(--c-direct); }
[data-provider="gdrive"]    { --c: var(--c-gdrive); }
[data-provider="mediafire"] { --c: var(--c-mediafire); }
[data-provider="mega"]      { --c: var(--c-mega); }

.dl-noscript { margin-top: 22px; padding: 18px; border: 1px solid var(--dl-line); border-radius: 14px; background: var(--dl-panel); }

/* ---------- Steps ---------- */
.dl-steps { margin-top: 48px; }
.dl-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dl-section-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-steprow { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: none; position: relative; }
.dl-stepcard {
    position: relative; width: 100%; height: 100%; display: grid; justify-items: start; gap: 6px; text-align: left;
    padding: 18px 16px; border-radius: 14px; border: 1px solid var(--dl-line); background: var(--dl-panel);
    color: #e9edf5; font: inherit; cursor: pointer;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.dl-stepcard:hover, .dl-stepcard:focus-visible { border-color: rgba(242, 200, 115, .55); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.35); outline: none; }
.dl-stepcard__n { position: absolute; top: 14px; right: 14px; font: 800 13px/1 Arial, sans-serif; color: var(--dl-dim); }
.dl-stepcard__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; color: #1a1204; background: linear-gradient(180deg, #f8d584, #e5a52a); box-shadow: 0 0 0 5px rgba(242, 200, 115, .1); }
.dl-stepcard b { font-size: 15px; color: #fff; }
.dl-stepcard small { font-size: 13px; color: var(--dl-muted); line-height: 1.45; }
.dl-noscript-steps { color: var(--dl-muted); line-height: 1.7; margin-top: 16px; }

/* ---------- Help footer ---------- */
.dl-help {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
    margin-top: 48px; border: 1px solid var(--dl-line); border-radius: 18px; overflow: hidden;
    background: linear-gradient(180deg, rgba(20, 30, 51, .9), rgba(12, 20, 36, .9));
}
.dl-help__item { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; }
.dl-help__item + .dl-help__item { border-left: 1px solid var(--dl-line-soft); }
.dl-help__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--dl-gold); background: rgba(242, 200, 115, .1); border: 1px solid rgba(242, 200, 115, .2); }
.dl-help h3 { margin: 2px 0 8px; font-size: 15px; color: #fff; }
.dl-help p { margin: 0; color: var(--dl-muted); font-size: 13.5px; line-height: 1.55; }
.dl-help__facts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.dl-help__facts li { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; color: #dfe6f3; background: rgba(255,255,255,.05); border: 1px solid var(--dl-line-soft); }
.dl-help__links { display: flex; gap: 8px; flex-wrap: wrap; }

.dl-faq { border: 1px solid var(--dl-line, #2c3c58); border-radius: 12px; background: rgba(18, 28, 48, .85); margin-bottom: 10px; overflow: hidden; }
.dl-faq summary { list-style: none; cursor: pointer; padding: 15px 48px 15px 18px; position: relative; font-weight: 700; color: #e9edf5; }
.dl-faq summary::-webkit-details-marker { display: none; }
.dl-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #f2c873; transition: transform .2s; }
.dl-faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.dl-faq summary:hover { color: #f2c873; }
.dl-faq summary:focus-visible { outline: 2px solid #f2c873; outline-offset: -2px; }
.dl-faq p { margin: 0; padding: 0 18px 16px; color: #a8b4c9; line-height: 1.65; }

/* ---------- Modal ---------- */
html.dl-lock { overflow: hidden; }
.dlm {
    width: min(720px, calc(100vw - 24px));
    max-height: calc(100vh - 32px);
    padding: 0; border: 1px solid #3a4b68; border-radius: 20px;
    background: linear-gradient(165deg, #1a2944, #0c1424 70%);
    color: #e9edf5;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .65), 0 0 0 1px rgba(242, 200, 115, .1), inset 0 1px 0 rgba(255, 255, 255, .05);
    overflow: auto;
    --c-direct: #f2c873; --c-gdrive: #5bd08a; --c-mediafire: #5aa7ff; --c-mega: #ff6b6b;
}
.dlm::backdrop { background: rgba(4, 8, 18, .8); backdrop-filter: blur(4px); }
.dlm[open] { animation: dlmIn .26s cubic-bezier(.2, .9, .3, 1.15); }
.dlm.is-fallback { position: fixed; inset: 16px; margin: auto; z-index: 10000; display: block; height: fit-content; }
@keyframes dlmIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.dlm-inner { padding: 24px 26px 22px; }
.dlm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.dlm-title { margin: 8px 0 0; font: 700 25px/1.2 Georgia, "Times New Roman", serif; color: #fff; }
.dlm-meta { margin: 6px 0 0; color: #a8b4c9; font-size: 13.5px; }
.dlm-close { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #4a5a7e; background: rgba(13, 22, 38, .9); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transition: border-color .15s, color .15s, transform .15s; }
.dlm-close:hover { border-color: #f2c873; color: #f2c873; transform: rotate(90deg); }

.dlm-primary, .dlm-host, .dlm-mirror, .dlm-mirrors li { animation: dlmItem .4s both cubic-bezier(.2, .8, .2, 1); animation-delay: calc(var(--i, 0) * 45ms + 80ms); }
@keyframes dlmItem { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.dlm-primary {
    display: flex; align-items: center; gap: 16px; padding: 18px 20px;
    border-radius: 16px; text-decoration: none !important; color: #fff !important;
    border: 1px solid rgba(242, 200, 115, .5);
    background: linear-gradient(120deg, rgba(242, 200, 115, .18), rgba(242, 200, 115, .04) 60%), #121d33;
    box-shadow: 0 10px 30px rgba(229, 165, 42, .12);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
a.dlm-primary:hover { transform: translateY(-2px); border-color: #f2c873; box-shadow: 0 16px 36px rgba(229, 165, 42, .25); }
a.dlm-primary:focus-visible, a.dlm-host:focus-visible, a.dlm-mirror:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dlm-primary__icon { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; color: #1a1204; background: linear-gradient(180deg, #f8d584, #e5a52a); box-shadow: 0 8px 20px rgba(229, 165, 42, .35); }
.dlm-primary__text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.dlm-primary__text b { font-size: 19px; }
.dlm-primary__text small { color: #c7d0e0; font-size: 13px; }
.dlm-badge { justify-self: start; padding: 3px 8px; border-radius: 999px; background: rgba(142, 226, 179, .14); color: #8ee2b3; font: 800 10px/1.2 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.dlm-primary__go { display: grid; justify-items: end; gap: 6px; text-align: right; }
.dlm-primary__go small { color: #a8b4c9; font-size: 12px; white-space: nowrap; }
.dlm-go { padding: 11px 18px; border-radius: 10px; font: 700 15px/1 Arial, sans-serif; color: #1a1204; background: linear-gradient(180deg, #f8d584, #e5a52a); white-space: nowrap; }

.dlm-h3 { margin: 22px 0 10px; color: #8392ab; font: 700 12px/1 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.dlm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dlm-host {
    position: relative; display: grid; justify-items: center; gap: 6px; padding: 18px 12px 14px; text-align: center;
    border-radius: 14px; border: 1px solid #2c3c58; background: rgba(18, 28, 48, .9);
    color: #e9edf5 !important; text-decoration: none !important;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}
.dlm-host::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 14px 14px 0 0; background: var(--c); opacity: .8; }
a.dlm-host:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 12px 26px rgba(0, 0, 0, .35), 0 0 0 1px var(--c) inset; }
.dlm-host__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--c); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
.dlm-host b { font-size: 15px; }
.dlm-host small { color: #8392ab; font-size: 12px; }
.dlm-host__btn { margin-top: 4px; padding: 8px 14px; border-radius: 8px; font: 700 13px/1 Arial, sans-serif; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); transition: background .18s, color .18s; }
a.dlm-host:hover .dlm-host__btn { background: var(--c); color: #0b1220; border-color: transparent; }

.dlm-mirrors { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dlm-mirror {
    display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px;
    border: 1px solid #2c3c58; background: rgba(18, 28, 48, .75);
    color: #e9edf5 !important; text-decoration: none !important; transition: border-color .18s, background .18s;
}
a.dlm-mirror:hover { border-color: var(--c); background: rgba(255, 255, 255, .04); }
.dlm-mirror__icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--c); background: rgba(255, 255, 255, .05); }
.dlm-mirror__name { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlm-mirror__name span { color: #8392ab; font-size: 12.5px; }
.dlm-mirror small { color: #a8b4c9; font-size: 12px; font-variant-numeric: tabular-nums; }
.dlm-mirror__btn { font: 700 12px/1 Arial, sans-serif; color: var(--c); white-space: nowrap; }

.is-off { opacity: .45; filter: grayscale(.7); cursor: not-allowed; }
.is-off .dlm-host__btn, .is-off .dlm-mirror__btn { color: #a8b4c9; background: transparent; }

.dlm-toast { margin: 16px 0 0; padding: 11px 14px; border-radius: 10px; background: rgba(142, 226, 179, .12); border: 1px solid rgba(142, 226, 179, .35); color: #c9f3dc; font-size: 13.5px; animation: dlmItem .3s both; }
.dlm-toast[hidden] { display: none; }

.dlm-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid #223049; }
.dlm-foot p { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: #8392ab; font-size: 12.5px; line-height: 1.5; }
.dlm-foot p svg { flex: none; margin-top: 2px; color: #8ee2b3; }
.dlm-hash { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; color: #8392ab; }
.dlm-hash code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.dlm-copy { padding: 6px 10px; border-radius: 7px; border: 1px solid #4a5a7e; background: transparent; color: #d6deef; font: 700 12px Arial, sans-serif; cursor: pointer; }
.dlm-copy:hover { border-color: #f2c873; color: #f2c873; }


/* ---------- Installation guide modal ---------- */
.dlg { width: min(860px, calc(100vw - 24px)); }
.dlg .dlm-inner { padding-bottom: 20px; }
.dlg-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 12px; background: rgba(9, 15, 28, .7); border: 1px solid #223049; }
.dlg-tabs button { padding: 9px 16px; border: 0; border-radius: 9px; background: transparent; color: #a8b4c9; font: 700 13.5px Arial, sans-serif; cursor: pointer; transition: background .15s, color .15s; }
.dlg-tabs button[aria-selected="true"] { background: linear-gradient(180deg, #f8d584, #e5a52a); color: #1a1204; }
.dlg-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dlg-panel[hidden] { display: none; }
#dlg-install { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "bar bar" "nav stage" "foot foot"; gap: 16px 22px; }
#dlg-install[hidden] { display: none; }
.dlg-progress { grid-area: bar; height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.dlg-progress__bar { display: block; height: 100%; width: 20%; border-radius: inherit; background: linear-gradient(90deg, #e5a52a, #f8d584); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.dlg-nav { grid-area: nav; margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; align-content: start; }
.dlg-nav__btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: #a8b4c9; font: 600 14px Arial, sans-serif; text-align: left; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.dlg-nav__btn span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #3a4b68; font: 800 12px Arial, sans-serif; color: #cfd8e8; }
.dlg-nav__btn:hover { background: rgba(255,255,255,.04); color: #fff; }
.dlg-nav__btn[aria-current="step"] { background: rgba(242, 200, 115, .1); border-color: rgba(242, 200, 115, .35); color: #fff; }
.dlg-nav__btn[aria-current="step"] span { background: #f2c873; border-color: #f2c873; color: #1a1204; }
.dlg-nav__btn.is-done span { background: rgba(91, 208, 138, .18); border-color: rgba(91, 208, 138, .5); color: #8ee2b3; }
.dlg-stage { grid-area: stage; min-height: 300px; }
.dlg-step { padding: 22px; border-radius: 16px; border: 1px solid #2c3c58; background: rgba(18, 28, 48, .85); animation: dlgIn .28s cubic-bezier(.2,.8,.2,1); }
.dlg-step[hidden] { display: none; }
@keyframes dlgIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.dlg-step__head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.dlg-step__icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; color: #1a1204; background: linear-gradient(180deg, #f8d584, #e5a52a); box-shadow: 0 10px 22px rgba(229,165,42,.25); }
.dlg-step__kicker { margin: 0 0 4px; color: #8392ab; font: 700 11px/1 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.dlg-step h3 { margin: 0; font: 700 22px/1.2 Georgia, "Times New Roman", serif; color: #fff; }
.dlg-step__body { margin: 0 0 14px; color: #cfd8e8; font-size: 15px; line-height: 1.65; }
.dlg-tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.dlg-tips li { position: relative; padding: 10px 12px 10px 36px; border-radius: 10px; background: rgba(9, 15, 28, .6); border: 1px solid #223049; color: #a8b4c9; font-size: 13.5px; line-height: 1.5; }
.dlg-tips li::before { content: "\2713"; position: absolute; left: 12px; top: 10px; color: #8ee2b3; font-weight: 800; }
.dlg-step__action { margin-top: 16px; }
.dlg-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid #223049; }
.dlg-foot .dl-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.dlg-count { color: #8392ab; font: 700 13px Arial, sans-serif; font-variant-numeric: tabular-nums; }
.dlg-still { margin: 16px 0 0; color: #8392ab; font-size: 13.5px; }
.dlm code { font: 13px/1.4 Consolas, "Courier New", monospace; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 5px; color: #e9edf5; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .dl-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
    .dl-steprow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .dl-hero { grid-template-columns: 1fr; padding: 28px 22px 14px; min-height: 0; text-align: left; }
    .dl-art { margin: 0 -22px; min-height: 0; padding-top: 6px; }
    .dl-art picture { width: min(460px, 100%); }
    .dl-art__halo { width: 64%; }
    .dl-stats { grid-template-columns: 1fr; }
    .dl-help { grid-template-columns: 1fr; }
    .dl-help__item + .dl-help__item { border-left: 0; border-top: 1px solid var(--dl-line-soft); }
}
@media (max-width: 720px) {
    #dlg-install { grid-template-columns: 1fr; grid-template-areas: "bar" "nav" "stage" "foot"; }
    .dlg-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
    .dlg-nav__btn b { display: none; }
    .dlg-nav__btn[aria-current="step"] b { display: inline; }
    .dlg-stage { min-height: 0; }
}
@media (max-width: 600px) {
    .dl { padding: 18px 14px 48px; }
    .dl-hero { padding: 22px 16px 10px; border-radius: 18px; }
    .dl-art { margin: 0 -16px; }
    .dl-cta .dl-btn { width: 100%; }
    .dl-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .dl-src { padding: 11px 12px 10px; }
    .dl-src__num { font-size: 19px; }
    .dl-steprow { grid-template-columns: 1fr; }
    .dl-stepcard { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
    .dl-stepcard__icon { grid-row: span 2; margin: 0; }
    .dl-stepcard small { grid-column: 2; }
    .dl-section-actions { width: 100%; }
    .dl-section-actions .dl-btn { flex: 1; }
    .dlm-inner { padding: 18px 16px; }
    .dlm-title { font-size: 21px; }
    .dlm-primary { flex-wrap: wrap; padding: 16px; }
    .dlm-primary__icon { width: 48px; height: 48px; }
    .dlm-primary__go { width: 100%; grid-template-columns: 1fr auto; align-items: center; justify-items: stretch; text-align: left; }
    .dlm-go { text-align: center; }
    .dlm-grid { grid-template-columns: 1fr; }
    .dlm-host { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; padding: 12px; gap: 4px 12px; }
    .dlm-host__icon { grid-row: span 2; width: 42px; height: 42px; }
    .dlm-host small { grid-column: 2; grid-row: 2; }
    .dlm-host__btn { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
    .dlm-mirrors { grid-template-columns: 1fr; }
    .dlg-step { padding: 16px; }
    .dlg-step h3 { font-size: 19px; }
    .dlg-tabs { display: flex; }
    .dlg-tabs button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .dlm[open], .dlm-primary, .dlm-host, .dlm-mirror, .dlm-mirrors li, .dlm-toast, .dlg-step { animation: none; }
    .dl-btn--xl::after, .dl-dot { animation: none; }
    .dl-btn--xl::after { display: none; }
    .dl-art__img { animation: none; }
    .dl-src__fill, .dlg-progress__bar { transition: none; }
}
