/* All component styling stays inside the download centre. */
/* Original tool sections stay hidden until JavaScript moves them into their tab. */
#iwish-tools > :is(.audience-strip, .scenario-section, .catalog-section, .featured-section, .method-section) {
    display: none !important;
}
#iwish-tools > #iwish-downloads,
#iwish-downloads .iwish-dl-tools-panel > section {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
#iwish-downloads {
    --dl-ink: #102d58;
    --dl-muted: #657b9d;
    --dl-line: #dce7f3;
    --dl-blue: #075bfa;
    --dl-soft: #f4f9ff;
    width: 100%;
    color: var(--dl-ink);
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
}
#iwish-downloads *, #iwish-downloads *::before, #iwish-downloads *::after { box-sizing: border-box; }
#iwish-downloads [hidden] { display: none !important; }
#iwish-downloads .iwish-dl-width { width: 100%; padding-left: 10.4vw; padding-right: 10.4vw; margin: 0 auto; }
#iwish-downloads .iwish-dl-tabbar { background: #fff; }
#iwish-downloads .iwish-dl-tabs { display: flex; align-items: stretch; gap: 22px; border-bottom: 1px solid var(--dl-line); }
#iwish-downloads :where(.iwish-dl-tabbar, .iwish-dl-downloads-panel, .iwish-dl-dialog) :is(button, input, select) { font: inherit; letter-spacing: normal; text-transform: none; }
#iwish-downloads :where(.iwish-dl-tabbar, .iwish-dl-downloads-panel, .iwish-dl-dialog) button { appearance: none; -webkit-appearance: none; cursor: pointer; box-shadow: none; }
#iwish-downloads :where(.iwish-dl-tabbar, .iwish-dl-downloads-panel, .iwish-dl-dialog) button:disabled { cursor: default; }
#iwish-downloads .iwish-dl-tab { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 78px; position: relative; padding: 19px 21px; margin: 0; color: #405c7f; background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; font-size: 18px; font-weight: 750; line-height: 1.35; white-space: nowrap; }
#iwish-downloads .iwish-dl-tab:hover, #iwish-downloads .iwish-dl-tab[aria-selected="true"] { color: var(--dl-blue); }
#iwish-downloads .iwish-dl-tab[aria-selected="true"] { border-bottom-color: var(--dl-blue); }
#iwish-downloads .iwish-dl-tab-count { padding: 3px 7px; background: #edf5ff; color: #244e83; border-radius: 4px; font-size: 12px; font-weight: 700; line-height: 1.5; }
#iwish-downloads :where(.iwish-dl-tabbar, .iwish-dl-downloads-panel, .iwish-dl-dialog) :is(button, a, input, select):focus-visible { outline: 3px solid #5ca6ff; outline-offset: 3px; }
#iwish-downloads .iwish-dl-tools-panel { width: 100%; }
#iwish-downloads .iwish-dl-downloads-panel { width: 100%; padding: 0; margin: 0; }
#iwish-downloads .iwish-dl-content { padding-top: 36px; padding-bottom: 76px; }
#iwish-downloads .iwish-dl-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 34px; }
#iwish-downloads .iwish-dl-heading h2 { padding: 0; margin: 0 0 3px; color: var(--dl-ink); font-size: clamp(25px, 2.7vw, 34px); font-weight: 780; line-height: 1.35; letter-spacing: -.035em; }
#iwish-downloads .iwish-dl-heading p { padding: 0; margin: 0; color: var(--dl-muted); font-size: 15px; }
#iwish-downloads .iwish-dl-total { flex: 0 0 auto; padding-bottom: 2px; color: var(--dl-muted); font-size: 12px; }
#iwish-downloads .iwish-dl-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 28px; }
#iwish-downloads .iwish-dl-sidebar { min-width: 0; min-height: 420px; padding: 5px 8px 24px; background: #f5faff; border-radius: 8px; }
#iwish-downloads .iwish-dl-sidebar-label { display: none; }
#iwish-downloads .iwish-dl-categories { display: flex; flex-direction: column; gap: 4px; }
#iwish-downloads .iwish-dl-category { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 10px 13px; margin: 0; position: relative; color: var(--dl-ink); background: transparent; border: 0; border-radius: 7px; text-align: left; font-size: 14px; line-height: 1.5; }
#iwish-downloads .iwish-dl-category:hover { background: #eaf3ff; }
#iwish-downloads .iwish-dl-category[aria-pressed="true"] { color: var(--dl-blue); background: #e5f1ff; font-weight: 750; }
#iwish-downloads .iwish-dl-category[aria-pressed="true"]::before { content: ""; position: absolute; left: -8px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--dl-blue); }
#iwish-downloads .iwish-dl-category-count { color: #6e85a4; font-size: 11px; font-weight: 500; }
#iwish-downloads .iwish-dl-help { display: flex; align-items: flex-start; gap: 10px; padding-top: 24px; margin: 26px 10px 0; border-top: 1px solid var(--dl-line); color: var(--dl-blue); font-size: 12px; line-height: 1.7; }
#iwish-downloads .iwish-dl-help > .dashicons { flex: 0 0 auto; margin-top: 1px; font-size: 20px; }
#iwish-downloads .iwish-dl-help strong { display: block; margin: 0; font-weight: 650; }
#iwish-downloads .iwish-dl-help button { display: inline-flex; align-items: center; gap: 5px; padding: 0; margin-top: 3px; color: var(--dl-blue); border: 0; border-radius: 0; background: none; font-size: 12px; line-height: 1.7; }
#iwish-downloads .iwish-dl-help button:hover { text-decoration: underline; }
#iwish-downloads .iwish-dl-help button .dashicons { width: 16px; height: 16px; font-size: 16px; }
#iwish-downloads .iwish-dl-main { min-width: 0; }
#iwish-downloads .iwish-dl-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 125px; align-items: center; gap: 20px; padding: 0; margin: 0 0 5px; }
#iwish-downloads .iwish-dl-search { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 13px; color: #476589; border: 1px solid #d3e2f2; border-radius: 6px; background: #f6faff; }
#iwish-downloads .iwish-dl-search:focus-within { border-color: #73adff; box-shadow: 0 0 0 2px #dcecff; }
#iwish-downloads .iwish-dl-search .dashicons { flex: 0 0 20px; font-size: 21px; }
#iwish-downloads .iwish-dl-search input { display: block; min-width: 0; width: 100%; height: 40px; padding: 0; margin: 0; color: var(--dl-ink); border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; font-size: 13px; }
#iwish-downloads .iwish-dl-search input::placeholder { color: #7589a5; opacity: 1; }
#iwish-downloads .iwish-dl-search input:focus-visible { outline: none; }
#iwish-downloads .iwish-dl-toolbar select { min-width: 0; width: 100%; height: 42px; padding: 0 28px 0 14px; margin: 0; color: var(--dl-ink); border: 1px solid #d3e2f2; border-radius: 6px; background-color: #fff; box-shadow: none; font-size: 12px; font-weight: 600; cursor: pointer; }
#iwish-downloads .iwish-dl-status { min-height: 18px; padding: 0; margin: 8px 0 0; color: var(--dl-muted); font-size: 11px; line-height: 1.6; }
#iwish-downloads .iwish-dl-status:empty { min-height: 11px; margin-top: 0; }
#iwish-downloads .iwish-dl-results { min-height: 90px; transition: opacity .15s; }
#iwish-downloads .iwish-dl-results[aria-busy="true"] { opacity: .46; pointer-events: none; }
#iwish-downloads .iwish-dl-item { display: grid; grid-template-columns: 54px minmax(0, 1fr) 84px 155px; align-items: center; gap: 21px; padding: 22px 0; margin: 0; border-bottom: 1px solid var(--dl-line); background: #fff; }
#iwish-downloads .iwish-dl-item-icon { display: flex; justify-content: center; align-items: center; align-self: start; width: 54px; height: 58px; border-radius: 11px; color: #075bfa; background: #eaf3ff; }
#iwish-downloads .iwish-dl-item-icon .dashicons { width: 30px; height: 30px; font-size: 30px; }
#iwish-downloads .iwish-dl-item:nth-child(4n + 2) .iwish-dl-item-icon { color: #008b68; background: #e3f6f0; }
#iwish-downloads .iwish-dl-item:nth-child(4n + 3) .iwish-dl-item-icon { color: #7752d6; background: #f0eaff; }
#iwish-downloads .iwish-dl-item:nth-child(4n) .iwish-dl-item-icon { color: #b67b13; background: #fff4df; }
#iwish-downloads .iwish-dl-item-text { min-width: 0; }
#iwish-downloads .iwish-dl-item h3 { padding: 0; margin: 0 0 6px; color: var(--dl-ink); font-size: 16px; line-height: 1.55; font-weight: 750; letter-spacing: -.025em; overflow-wrap: anywhere; }
#iwish-downloads .iwish-dl-description { padding: 0; margin: 0; color: var(--dl-muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
#iwish-downloads .iwish-dl-item-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
#iwish-downloads .iwish-dl-item-tags span { display: inline-block; max-width: 100%; padding: 2px 6px; color: #537496; background: #f0f6fd; border-radius: 3px; font-size: 9px; line-height: 1.6; overflow-wrap: anywhere; }
#iwish-downloads .iwish-dl-meta { min-width: 0; align-self: center; color: var(--dl-ink); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
#iwish-downloads .iwish-dl-meta time { display: block; color: var(--dl-muted); font-size: 11px; white-space: nowrap; }
#iwish-downloads .iwish-dl-item-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; }
#iwish-downloads .iwish-dl-download { display: inline-flex; justify-content: center; align-items: center; gap: 4px; min-height: 38px; max-width: 100%; padding: 9px 10px; color: #fff; border: 1px solid var(--dl-blue); border-radius: 5px; background: var(--dl-blue); font-size: 12px; font-weight: 650; line-height: 1.5; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
#iwish-downloads .iwish-dl-download:hover { color: #fff; border-color: #004bda; background: #004bda; text-decoration: none; }
#iwish-downloads .iwish-dl-no-file { min-height: 38px; display: flex; align-items: center; justify-content: center; color: var(--dl-muted); background: #edf3f9; border-radius: 5px; font-size: 12px; }
#iwish-downloads .iwish-dl-instructions { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 25px; padding: 0 5px; margin: 0; color: var(--dl-blue); background: none; border: 0; border-radius: 2px; font-size: 12px; line-height: 1.6; font-weight: 600; }
#iwish-downloads .iwish-dl-instructions:hover { color: #004bda; text-decoration: underline; }
#iwish-downloads .iwish-dl-instructions .dashicons { width: 15px; height: 15px; font-size: 15px; }
#iwish-downloads .iwish-dl-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; }
#iwish-downloads .iwish-dl-page { display: inline-flex; justify-content: center; align-items: center; min-width: 35px; min-height: 35px; padding: 5px 9px; margin: 0; color: var(--dl-ink); border: 1px solid var(--dl-line); border-radius: 5px; background: #fff; font-size: 12px; line-height: 1.5; font-weight: 500; }
#iwish-downloads .iwish-dl-page:hover:not(:disabled) { color: var(--dl-blue); border-color: #aacdfd; background: #f4f9ff; }
#iwish-downloads .iwish-dl-page[aria-current="page"] { color: #fff; background: var(--dl-blue); border-color: var(--dl-blue); font-weight: 700; }
#iwish-downloads .iwish-dl-page:disabled { color: #b1bed0; background: #fafcff; }
#iwish-downloads .iwish-dl-page .dashicons { width: 18px; height: 18px; font-size: 18px; }
#iwish-downloads .iwish-dl-page-gap { padding: 0 2px; color: var(--dl-muted); }
#iwish-downloads .iwish-dl-empty { min-height: 235px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 32px 20px; border-bottom: 1px solid var(--dl-line); text-align: center; }
#iwish-downloads .iwish-dl-empty > .dashicons { width: 34px; height: 34px; color: #89a9ce; font-size: 34px; }
#iwish-downloads .iwish-dl-empty h3 { margin: 2px 0 0; padding: 0; color: var(--dl-ink); font-size: 17px; font-weight: 700; }
#iwish-downloads .iwish-dl-empty p { margin: 0; padding: 0; color: var(--dl-muted); font-size: 12px; }
#iwish-downloads .iwish-dl-empty button { padding: 7px 14px; margin-top: 4px; color: var(--dl-blue); border: 1px solid #b6d3fc; border-radius: 5px; background: #fff; font-size: 12px; }
#iwish-downloads .iwish-dl-dialog { position: fixed; inset: 0; width: min(660px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: min(80vh, 850px); padding: 0; margin: auto; color: var(--dl-ink); background: #fff; border: 1px solid #cfdeed; border-radius: 12px; box-shadow: 0 25px 90px #13315238; overscroll-behavior: contain; z-index: 100000; }
#iwish-downloads .iwish-dl-dialog::backdrop { background: #092b5673; }
#iwish-downloads .iwish-dl-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 25px 28px 20px; border-bottom: 1px solid var(--dl-line); }
#iwish-downloads .iwish-dl-dialog-kicker { color: var(--dl-blue); font-size: 11px; font-weight: 650; }
#iwish-downloads .iwish-dl-dialog-head h2 { padding: 0; margin: 4px 0 0; color: var(--dl-ink); font-size: 22px; line-height: 1.5; overflow-wrap: anywhere; }
#iwish-downloads .iwish-dl-dialog-close { display: flex; justify-content: center; align-items: center; flex: 0 0 auto; width: 32px; height: 32px; padding: 0; margin: -4px -6px 0 0; color: #58718e; border: 0; border-radius: 5px; background: #f0f6fc; }
#iwish-downloads .iwish-dl-dialog-close:hover { color: var(--dl-blue); background: #e5effb; }
#iwish-downloads .iwish-dl-dialog-body { padding: 22px 28px 25px; color: #4e6580; font-size: 13px; line-height: 1.85; }
#iwish-downloads .iwish-dl-dialog-body p { padding: 0; margin: 0 0 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
#iwish-downloads .iwish-dl-dialog-body p:last-child { margin-bottom: 0; }
#iwish-downloads .iwish-dl-dialog-body h3 { padding: 0; margin: 22px 0 9px; color: var(--dl-ink); font-size: 15px; font-weight: 700; }
#iwish-downloads .iwish-dl-dialog-body h3:first-child { margin-top: 0; }
#iwish-downloads .iwish-dl-dialog-actions { padding: 0 28px 26px; }
#iwish-downloads .iwish-dl-dialog-actions:empty { display: none; }
#iwish-downloads .iwish-dl-dialog-actions .iwish-dl-download { min-width: 150px; }
#iwish-downloads .iwish-dl-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
#iwish-downloads .iwish-dl-submit:focus { position: static !important; width: auto !important; height: 40px !important; clip: auto !important; margin: 0 !important; grid-column: 1 / -1; color: #fff; background: var(--dl-blue); border-radius: 5px; }
@media (min-width: 1600px) { #iwish-downloads .iwish-dl-width { max-width: 1600px; padding-left: 166px; padding-right: 166px; } }
@media (max-width: 1100px) {
    #iwish-downloads .iwish-dl-width { padding-left: 7vw; padding-right: 7vw; }
    #iwish-downloads .iwish-dl-layout { grid-template-columns: 165px minmax(0, 1fr); gap: 22px; }
    #iwish-downloads .iwish-dl-item { grid-template-columns: 48px minmax(0, 1fr) 74px 135px; gap: 14px; }
    #iwish-downloads .iwish-dl-item-icon { width: 48px; height: 54px; }
    #iwish-downloads .iwish-dl-item h3 { font-size: 15px; }
}
@media (max-width: 820px) {
    #iwish-downloads .iwish-dl-width { padding-left: 5.5vw; padding-right: 5.5vw; }
    #iwish-downloads .iwish-dl-tabs { gap: 12px; }
    #iwish-downloads .iwish-dl-tab { min-height: 66px; padding: 17px 16px; font-size: 16px; }
    #iwish-downloads .iwish-dl-content { padding-top: 28px; padding-bottom: 52px; }
    #iwish-downloads .iwish-dl-heading { margin-bottom: 24px; }
    #iwish-downloads .iwish-dl-layout { grid-template-columns: 1fr; gap: 20px; }
    #iwish-downloads .iwish-dl-sidebar { min-height: 0; padding: 12px; }
    #iwish-downloads .iwish-dl-sidebar-label { display: block; margin: 0 0 8px; color: var(--dl-muted); font-size: 10px; font-weight: 650; }
    #iwish-downloads .iwish-dl-categories { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    #iwish-downloads .iwish-dl-category { justify-content: center; width: auto; min-height: 36px; padding: 7px 11px; font-size: 12px; }
    #iwish-downloads .iwish-dl-category[aria-pressed="true"]::before { display: none; }
    #iwish-downloads .iwish-dl-help { padding-top: 12px; margin: 12px 0 0; font-size: 11px; gap: 7px; }
    #iwish-downloads .iwish-dl-help > .dashicons { font-size: 17px; width: 17px; height: 17px; }
    #iwish-downloads .iwish-dl-help strong, #iwish-downloads .iwish-dl-help button { display: inline-flex; font-size: 11px; margin: 0; }
    #iwish-downloads .iwish-dl-help button { margin-left: 7px; }
    #iwish-downloads .iwish-dl-item { grid-template-columns: 48px minmax(0, 1fr) 82px 140px; gap: 16px; }
}
@media (max-width: 580px) {
    #iwish-downloads .iwish-dl-width { padding-left: 20px; padding-right: 20px; }
    #iwish-downloads .iwish-dl-tabs { gap: 8px; }
    #iwish-downloads .iwish-dl-tab { min-height: 62px; padding: 16px 10px; font-size: 16px; gap: 7px; }
    #iwish-downloads .iwish-dl-tab-count { font-size: 10px; }
    #iwish-downloads .iwish-dl-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 21px; }
    #iwish-downloads .iwish-dl-heading h2 { font-size: 27px; }
    #iwish-downloads .iwish-dl-heading p { font-size: 13px; }
    #iwish-downloads .iwish-dl-total { font-size: 11px; }
    #iwish-downloads .iwish-dl-toolbar { grid-template-columns: minmax(0, 1fr) 106px; gap: 9px; }
    #iwish-downloads .iwish-dl-search { gap: 7px; padding: 0 10px; }
    #iwish-downloads .iwish-dl-search input { font-size: 12px; }
    #iwish-downloads .iwish-dl-toolbar select { padding-left: 9px; font-size: 11px; }
    #iwish-downloads .iwish-dl-item { grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 0 13px; padding: 22px 0; }
    #iwish-downloads .iwish-dl-item-icon { width: 44px; height: 48px; border-radius: 9px; }
    #iwish-downloads .iwish-dl-item-icon .dashicons { width: 25px; height: 25px; font-size: 25px; }
    #iwish-downloads .iwish-dl-item h3 { font-size: 15px; margin-bottom: 5px; }
    #iwish-downloads .iwish-dl-description { font-size: 12px; }
    #iwish-downloads .iwish-dl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; grid-column: 2; padding-top: 9px; font-size: 11px; }
    #iwish-downloads .iwish-dl-meta time { display: inline; font-size: 10px; }
    #iwish-downloads .iwish-dl-item-actions { flex-direction: row; justify-content: flex-start; align-items: center; flex-wrap: wrap; grid-column: 2; gap: 10px 14px; padding-top: 13px; }
    #iwish-downloads .iwish-dl-download { min-height: 35px; padding: 7px 12px; font-size: 11px; }
    #iwish-downloads .iwish-dl-instructions { font-size: 11px; }
    #iwish-downloads .iwish-dl-dialog-head { padding: 21px 20px 16px; }
    #iwish-downloads .iwish-dl-dialog-head h2 { font-size: 19px; }
    #iwish-downloads .iwish-dl-dialog-body { padding: 18px 20px 22px; font-size: 12px; }
    #iwish-downloads .iwish-dl-dialog-actions { padding: 0 20px 22px; }
}
@media (prefers-reduced-motion: reduce) { #iwish-downloads * { scroll-behavior: auto !important; transition: none !important; } }
/* Keep Chinese descriptions readable at the public site's normal text scale. */
#iwish-downloads .iwish-dl-description { font-size: 14px; line-height: 1.7; }
#iwish-downloads .iwish-dl-item-tags span { font-size: 11px; }
#iwish-downloads .iwish-dl-meta { font-size: 13px; }
#iwish-downloads .iwish-dl-meta time { font-size: 12px; }
#iwish-downloads .iwish-dl-search input { font-size: 14px; }
@media (max-width: 580px) {
    #iwish-downloads .iwish-dl-description { font-size: 13px; }
    #iwish-downloads .iwish-dl-search input { font-size: 13px; }
}
