/* ---------------- Download helper v3 ------------------------- */
.dh3-overlay {
    display          : none;
    position         : fixed;
    z-index          : 10;
    top              : 0;
    right            : 0;
    bottom           : 0;
    left             : 0;
    background-color : rgba(0, 0, 0, 0.55);
}
.dh3 {
    display          : none;
    position         : fixed;
    z-index          : 11;
    top              : 24px;
    right            : 640px;
    box-sizing       : border-box;
    width            : 420px;
    max-width        : calc(100vw - 32px);
    padding          : 14px 18px 12px;
    border-radius    : 10px;
    background-color : #ffffff;
    box-shadow       : 0 8px 30px rgba(0, 0, 0, 0.45);
    color            : #1b1b1b;
    font-size        : 14px;
    line-height      : 1.4;
    text-align       : left;
}
.dh3--ja {
    font-family : "Meiryo", "Yu Gothic UI", "Yu Gothic", sans-serif;
}
.dh3--other {
    top       : 50%;
    right     : auto;
    left      : 50%;
    transform : translate(-50%, -50%);
}
.dh3.dh3--open,
.dh3-overlay.dh3--open {
    display : block;
}
/* The browser draws its own download box at the top right, newest file on top; the page can't see where it is
   or how long the list is. So the panel sits to its left and the arrow points right, at the top row. */
.dh3__arrow {
    position  : absolute;
    top       : 18px;
    right     : -84px;
    width     : 66px;
    height    : 28px;
    animation : dh3-nudge 1.2s ease-in-out infinite;
}
.dh3__arrow::before {
    content      : '';
    position     : absolute;
    top          : 0;
    right        : 0;
    border-top    : 14px solid transparent;
    border-bottom : 14px solid transparent;
    border-left   : 20px solid #d63104;
}
.dh3__arrow::after {
    content          : '';
    position         : absolute;
    top              : 8px;
    left             : 0;
    width            : 47px;
    height           : 12px;
    background-color : #d63104;
}
@keyframes dh3-nudge {
    0%, 100% { transform : translateX(0); }
    50%      { transform : translateX(10px); }
}
/* Narrow windows: no room beside the download box, so the panel goes to the bottom and the text does the pointing. */
@media (max-width: 1100px) {
    .dh3 {
        top       : auto;
        bottom    : 16px;
        right     : auto;
        left      : 50%;
        transform : translateX(-50%);
    }
    .dh3__arrow {
        display : none;
    }
}
.dh3__x {
    position   : absolute;
    top        : 6px;
    right      : 10px;
    padding    : 0 4px;
    border     : 0;
    background : none;
    font-size  : 24px;
    line-height: 1;
    color      : #80868b;
    cursor     : pointer;
}
.dh3__title {
    margin-bottom : 6px;
    font-size     : 19px;
    font-weight   : bold;
}
.dh3__step {
    display     : flex;
    align-items : center;
    gap         : 10px;
    padding     : 6px 0;
    border-top  : 1px solid #eeeeee;
}
.dh3__num {
    flex             : 0 0 26px;
    width            : 26px;
    height           : 26px;
    border-radius    : 50%;
    background-color : #d63104;
    color            : #ffffff;
    font             : bold 15px/26px Arial, sans-serif;
    text-align       : center;
}
.dh3__text {
    flex : 1;
}
.dh3__text b {
    color : #d63104;
}
.dh3__step--main .dh3__text {
    font-size   : 15px;
    font-weight : bold;
}
/* Step 1: a small copy of the browser's own download box */
.dh3__step--visual,
.dh3__step--uac {
    align-items : flex-start;
}
.dh3__step--visual .dh3__num,
.dh3__step--uac .dh3__num {
    margin-top : 2px;
}
.dh3__dl {
    --dl-bg   : #f9f9f9;
    --dl-bar  : #f3f3f3;
    --dl-fg   : #1b1b1b;
    --dl-sub  : #5f6368;
    --dl-link : #0f6cbd;
    --dl-line : #e0e0e0;
    margin-top     : 6px;
    overflow       : hidden;
    border         : 1px solid #c9c9c9;
    border-radius  : 8px;
    background     : var(--dl-bar);
    font-family    : "Segoe UI Variable Text", "Segoe UI", "Meiryo", sans-serif;
    font-weight    : normal;
    font-size      : 12px;
    line-height    : 1.35;
    color          : var(--dl-fg);
}
@media (prefers-color-scheme: dark) {
    .dh3__dl {
        --dl-bg   : #2b2b2b;
        --dl-bar  : #3b3b3b;
        --dl-fg   : #ffffff;
        --dl-sub  : #c5c5c5;
        --dl-link : #8ab4f8;
        --dl-line : #474747;
        border-color : #474747;
    }
}
.dh3__dl-bar {
    display         : flex;
    justify-content : flex-end;
    padding         : 2px 46px 2px 8px;
}
.dh3__dl-btn {
    display          : flex;
    padding          : 3px;
    border-radius    : 5px;
    background-color : rgba(128, 128, 128, 0.25);
    outline          : 2px solid #d63104;
    outline-offset   : 1px;
}
.dh3__dl-box {
    margin           : 0 8px 6px 22%;
    padding          : 4px 10px 7px;
    border-radius    : 8px;
    background-color : var(--dl-bg);
    box-shadow       : 0 3px 10px rgba(0, 0, 0, 0.25);
}
.dh3__dl-head {
    display         : flex;
    justify-content : space-between;
    align-items     : center;
    padding         : 0 0 5px;
    margin-bottom   : 5px;
    border-bottom   : 1px solid var(--dl-line);
    font-size       : 12px;
    font-weight     : bold;
}
.dh3__dl-tools {
    display     : flex;
    gap         : 10px;
    align-items : center;
    font-weight : normal;
}
.dh3__dl-row {
    display       : flex;
    gap           : 10px;
    align-items   : flex-start;
    padding       : 3px 6px;
    border-radius : 5px;
}
.dh3__dl--chrome .dh3__dl-row,
.dh3__dl--firefox .dh3__dl-row {
    margin-top : 4px;
    outline    : 2px solid #d63104;
}
.dh3__dl-file {
    flex : 0 0 22px;
}
.dh3__dl-name {
    font-size : 13px;
}
.dh3__dl-sub {
    color : var(--dl-sub);
}
.dh3__dl-open {
    display        : inline-block;
    margin-top     : 2px;
    padding        : 0 3px;
    border-radius  : 3px;
    color          : var(--dl-link);
    outline        : 2px solid #d63104;
    outline-offset : 1px;
}
.dh3__dl-foot {
    margin-top  : 8px;
    padding-top : 6px;
    border-top  : 1px solid var(--dl-line);
    text-align  : center;
}

/* Step 2: a small copy of the Windows 11 User Account Control prompt */
.dh3__uac {
    margin-top       : 6px;
    overflow         : hidden;
    border           : 1px solid #c9c9c9;
    border-radius    : 8px;
    background-color : #f9f9f9;
    box-shadow       : 0 3px 10px rgba(0, 0, 0, 0.18);
    font-family      : "Segoe UI Variable Text", "Segoe UI", "Meiryo", sans-serif;
    font-weight      : normal;
    font-size        : 10px;
    line-height      : 1.35;
    color            : #1b1b1b;
}
.dh3__uac-top {
    padding          : 5px 9px 6px;
    background-color : #ececec;
}
.dh3__uac-head {
    display         : flex;
    justify-content : space-between;
    font-size       : 9px;
    color           : #3b3b3b;
}
.dh3__uac-x {
    font-size : 9px;
}
.dh3__uac-ask {
    margin-top  : 3px;
    font-size   : 12px;
    font-weight : 600;
    line-height : 1.25;
}
.dh3__uac-mid {
    padding : 6px 9px 2px;
}
.dh3__uac-app {
    display     : flex;
    align-items : center;
    gap         : 8px;
    font-size   : 12px;
    font-weight : 600;
}
.dh3__uac-info {
    margin-top : 4px;
    color      : #333333;
}
.dh3__uac-more {
    margin-top : 3px;
    color      : #0067c0;
}
.dh3__uac-btns {
    display : flex;
    gap     : 8px;
    padding : 6px 9px 8px;
}
.dh3__uac-btns span {
    flex          : 1;
    padding       : 3px 0;
    border-radius : 4px;
    font-size     : 11px;
    text-align    : center;
}
.dh3__uac-btns .dh3__uac-yes {
    border           : 1px solid #d0d0d0;
    background-color : #fdfdfd;
    outline          : 2px solid #d63104;
    outline-offset   : 2px;
}
.dh3__uac-btns .dh3__uac-no {
    border           : 1px solid #0067c0;
    background-color : #0067c0;
    color            : #ffffff;
}
.dh3__help {
    margin    : 6px 0 8px;
    font-size : 12px;
    color     : #5f6368;
}
.dh3__keys {
    white-space : nowrap;
}
.dh3__help kbd {
    padding          : 0 5px;
    border           : 1px solid #bbbbbb;
    border-bottom-width : 2px;
    border-radius    : 4px;
    background-color : #f8f9fa;
    font             : bold 12px Arial, sans-serif;
    color            : #1b1b1b;
}
.dh3__actions {
    display         : flex;
    justify-content : space-between;
    align-items     : center;
}
.dh3__again {
    color           : #1a73e8;
    text-decoration : underline;
}
.dh3__close {
    padding          : 5px 16px;
    border           : 0;
    border-radius    : 6px;
    background-color : #1b1b1b;
    color            : #ffffff;
    font-size        : 14px;
    font-weight      : bold;
    cursor           : pointer;
}

/* The page's main Download button after the click */
.main_download.dh3-done,
.main_download.dh3-done:hover {
    display          : flex;
    align-items      : center;
    justify-content  : center;
    box-sizing       : border-box;
    padding          : 0 8px;
    background-color : #188038;
    white-space      : nowrap;
}

/* Short laptop screens: shrink the whole panel. zoom also scales its offsets, so "right" is raised to keep the
   panel (and arrow) clear of the browser's download box. */
@media (max-height: 680px) {
    .dh3 {
        zoom : 0.85;
    }
}
@media (max-height: 680px) and (min-width: 1101px) {
    .dh3 {
        top   : 28px;
        right : 753px;
    }
}
@media (max-height: 580px) {
    .dh3 {
        zoom : 0.72;
    }
}
@media (max-height: 580px) and (min-width: 1101px) {
    .dh3 {
        top   : 33px;
        right : 889px;
    }
}

/* ---------------- v4: the same helper filling the whole window ------------------------- */
/* ".dh3.dh3--full" outranks the narrow and short-screen rules above. Three equal tiles side by side, starting
   below where the browser's download box usually ends; an up arrow points at the toolbar's download icon (hidden
   under the box while it's open, visible once it has closed). A very long download list can cover tile 3. */
.dh3.dh3--full {
    top           : 0;
    right         : 0;
    bottom        : 0;
    left          : 0;
    width         : auto;
    max-width     : none;
    padding       : 24px max(48px, calc((100% - 1240px) / 2));
    border-radius : 0;
    background    : #f4f6f9;
    box-shadow    : none;
    overflow-y    : auto;
    transform     : none;
    zoom          : 1;
    font-size     : 16px;
}
.dh3--full .dh3__x {
    display : none;
}
/* A big green arrow with the words inside, pointing right and stopping just short of where the browser's download
   box opens (so the box never covers it), level with the box's top row. The thin red arrow isn't used here. */
.dh3--full .dh3__arrow {
    display : none;
}
.dh3--full .dh3__arrow-label {
    position         : absolute;
    top              : 14px;
    right            : 636px;
    height           : 66px;
    padding          : 0 18px 0 24px;
    border-radius    : 10px 0 0 10px;
    background-color : #1e8e3e;
    box-shadow       : 0 4px 12px rgba(30, 142, 62, 0.35);
    color            : #ffffff;
    font-size        : 22px;
    font-weight      : bold;
    line-height      : 66px;
    white-space      : nowrap;
    animation        : dh3-nudge 1s ease-in-out infinite;
}
.dh3--full .dh3__arrow-label::after {
    content       : '';
    position      : absolute;
    top           : -12px;
    left          : 100%;
    border-top    : 45px solid transparent;
    border-bottom : 45px solid transparent;
    border-left   : 36px solid #1e8e3e;
}
.dh3--full .dh3__logo {
    display       : block;
    margin-bottom : 14px;
}
.dh3--full .dh3__title {
    margin-bottom : 4px;
    font-size     : 34px;
}
.dh3--full .dh3__sub {
    max-width : 640px;
    font-size : 17px;
    color     : #5f6368;
}
.dh3--full .dh3__steps {
    display               : grid;
    grid-template-columns : repeat(3, minmax(0, 1fr));
    gap                   : 24px;
    align-items           : stretch;
    margin-top            : 28px;
}
.dh3--full .dh3__step {
    flex-direction   : column;
    align-items      : flex-start;
    gap              : 12px;
    padding          : 22px;
    border           : 2px solid transparent;
    border-radius    : 12px;
    background-color : #ffffff;
    box-shadow       : 0 1px 4px rgba(0, 0, 0, 0.08);
}
.dh3--full .dh3__step--main {
    border-color : #d63104;
}
.dh3--full .dh3__num {
    flex        : none;
    width       : 40px;
    height      : 40px;
    margin-top  : 0;
    font-size   : 22px;
    line-height : 40px;
}
.dh3--full .dh3__text,
.dh3--full .dh3__step--main .dh3__text {
    width       : 100%;
    font-size   : 18px;
    font-weight : bold;
    line-height : 1.35;
}
/* Same height for every step's words, so the three pictures line up */
.dh3--full .dh3__label {
    display    : block;
    min-height : 4.05em;
}
.dh3--full .dh3__dl,
.dh3--full .dh3__uac {
    margin-top : 6px;
}
.dh3--full .dh3__dl {
    zoom : 1.3;
}
/* Step 3: a small copy of the installer's first screen */
.dh3__sw {
    margin-top    : 6px;
    overflow      : hidden;
    border        : 1px solid #9a9a9a;
    border-radius : 8px;
    background    : #ffffff;
    box-shadow    : 0 3px 10px rgba(0, 0, 0, 0.18);
    font-family   : Tahoma, "Segoe UI", sans-serif;
    font-weight   : normal;
    font-size     : 7.5px;
    line-height   : 1.3;
    color         : #000000;
}
.dh3__sw-title {
    display     : flex;
    align-items : center;
    gap         : 5px;
    padding     : 5px 8px;
    font-family : "Segoe UI", sans-serif;
    font-size   : 10px;
}
.dh3__sw-ctl {
    display     : flex;
    gap         : 13px;
    margin-left : auto;
    font-size   : 10px;
    font-style  : normal;
}
.dh3__sw-ctl i {
    font-style : normal;
}
.dh3__sw-body {
    display : flex;
    height  : 158px;
}
.dh3__sw-side {
    display         : flex;
    flex            : 0 0 36%;
    flex-direction  : column;
    align-items     : center;
    padding         : 22px 6px 8px;
    background      : linear-gradient(160deg, #1d72b8 0%, #135c9e 60%, #0f4f8a 100%);
    color           : #ffffff;
}
.dh3__sw-brand {
    display     : flex;
    flex-direction : column;
    margin-top  : 10px;
    line-height : 1.1;
}
.dh3__sw-brand span {
    font-size : 9px;
}
.dh3__sw-brand sup {
    font-size : 5px;
}
.dh3__sw-brand b {
    font-size : 12.5px;
    color     : #ffffff;
}
.dh3__sw-brand em {
    align-self : flex-end;
    font-size  : 8.5px;
    font-style : normal;
}
.dh3__sw-wz {
    margin-top     : auto;
    font-size      : 7px;
    font-weight    : bold;
    letter-spacing : 0.5px;
}
.dh3__sw-main {
    flex    : 1;
    padding : 9px 10px 0;
}
.dh3__sw-h {
    margin-bottom : 7px;
    font-family   : Arial, sans-serif;
    font-size     : 10px;
    font-weight   : bold;
    line-height   : 1.2;
}
.dh3__sw-main p {
    margin : 0 0 4px;
}
.dh3__sw-main u {
    color : #0000ee;
}
.dh3__sw-foot {
    display         : flex;
    justify-content : space-between;
    padding         : 7px 10px;
    border-top      : 1px solid #dddddd;
    background      : #f0f0f0;
    font-family     : "Segoe UI", sans-serif;
    font-size       : 9px;
}
.dh3__sw-foot span {
    padding       : 2px 12px;
    border        : 1px solid #adadad;
    border-radius : 3px;
    background    : #fdfdfd;
}
.dh3__sw-foot .dh3__sw-next {
    padding        : 3px 16px;
    border         : 1px solid #0067c0;
    font-weight    : bold;
    outline        : 2px solid #d63104;
    outline-offset : 2px;
}
.dh3--full .dh3__step--main .dh3__help {
    margin      : 14px 0 0;
    font-size   : 14px;
    font-weight : normal;
    line-height : 1.5;
    color       : #3c4043;
}
.dh3--full .dh3__actions {
    justify-content : flex-start;
    gap             : 28px;
    margin-top      : 24px;
}
.dh3--full .dh3__again {
    padding          : 8px 20px;
    border           : 2px solid #d63104;
    border-radius    : 6px;
    background-color : #ffffff;
    color            : #d63104;
    font-weight      : bold;
    text-decoration  : none;
}
.dh3--full .dh3__close {
    padding          : 0;
    background-color : transparent;
    color            : #5f6368;
    font-size        : 15px;
    font-weight      : normal;
    text-decoration  : underline;
}
@media (max-height: 760px) {
    .dh3.dh3--full {
        padding-top    : 16px;
        padding-bottom : 16px;
    }
    .dh3--full .dh3__logo {
        margin-bottom : 6px;
    }
    .dh3--full .dh3__title {
        font-size : 28px;
    }
    .dh3--full .dh3__sub {
        font-size : 15px;
    }
    .dh3--full .dh3__steps {
        margin-top : 16px;
    }
    .dh3--full .dh3__step {
        padding : 16px;
    }
    .dh3--full .dh3__num {
        width       : 32px;
        height      : 32px;
        font-size   : 18px;
        line-height : 32px;
    }
    .dh3--full .dh3__text,
    .dh3--full .dh3__step--main .dh3__text {
        font-size : 16px;
    }
    .dh3--full .dh3__dl {
        zoom : 1.1;
    }
    .dh3--full .dh3__actions {
        margin-top : 14px;
    }
}
@media (max-width: 1000px) {
    .dh3.dh3--full {
        padding-right : 24px;
        padding-left  : 24px;
    }
    .dh3--full .dh3__steps {
        grid-template-columns : 1fr;
        max-width             : 560px;
    }
    .dh3--full .dh3__arrow,
    .dh3--full .dh3__arrow-label {
        display : none;
    }
    .dh3--full .dh3__label {
        min-height : 0;
    }
}
