/* Download is a short decision, with details available when needed. */
.download-page {
  --dl-surface: #e4e7db;
  --dl-line: #c8cebd;
  --dl-muted: #58614e;
  --dl-hover: #dce1d1;
}
.download-page .dl-main { max-width: 1160px; padding-bottom: 88px; }
.dl-heading { padding: 68px 0 44px; }
.dl-heading .utility-eyebrow { margin-bottom: 18px !important; font: 11px/1.5 ui-monospace, monospace; color: var(--site-muted, #62665b); letter-spacing: .09em; }
.dl-heading h1 { font-size: clamp(38px, 4.2vw, 60px); line-height: 1.2; letter-spacing: -.045em; }
.dl-card { border: 1px solid var(--dl-line); border-radius: 14px; background: var(--dl-surface); overflow: hidden; }
.dl-platforms { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 36px; border-bottom: 1px solid var(--dl-line); }
.dl-platforms > button { position: relative; border: 0; background: transparent; padding: 24px 14px; min-height: 68px; font-size: 15px; color: var(--dl-muted); transition: color 160ms, background 160ms; }
.dl-platforms > button::after { content: ''; position: absolute; height: 2px; left: 24px; right: 24px; bottom: -1px; background: var(--ink); transform: scaleX(0); transition: transform 220ms var(--ease); }
.dl-platforms > button:hover { background: #dfe4d6; color: var(--ink); }
.dl-platforms > button[aria-pressed=true] { color: var(--ink); font-weight: 500; }
.dl-platforms > button[aria-pressed=true]::after { transform: scaleX(1); }
.dl-platforms > button:focus-visible { outline-offset: -6px; border-radius: 6px; }
.dl-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 32px; min-height: 250px; padding: 56px 48px 48px; }
.dl-product { display: flex; align-items: flex-start; gap: 24px; min-width: 0; }
.dl-app-icon { flex: 0 0 64px; border-radius: 15px; margin-top: 3px; box-shadow: 0 3px 8px #313b2410; }
.dl-product-copy { min-width: 0; }
.dl-product h2 { font-size: 30px; line-height: 1.35; }
.dl-meta { margin-top: 10px !important; min-height: 22px; font-size: 13px; color: var(--dl-muted); font-variant-numeric: tabular-nums; }
.dl-compat { margin-top: 13px; font-size: 13px; color: var(--dl-muted); }
.dl-compat summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; min-height: 44px; margin-top: -7px; padding-right: 4px; border-radius: 3px; }
.dl-compat summary::-webkit-details-marker { display: none; }
.dl-compat summary:hover { color: var(--ink); }
.dl-compat .dl-chevron { width: 16px; height: 16px; }
.dl-compat[open] .dl-chevron { transform: rotate(180deg); }
.dl-compat > div { padding: 8px 0 0; max-width: 32em; line-height: 1.85; }
.dl-compat > div p + p { margin-top: 8px; }
.dl-actions { display: flex; flex-direction: column; align-items: stretch; width: 212px; gap: 8px; padding-top: 3px; }
.dl-download { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 14px 20px; border-radius: 7px; background: var(--ink); color: var(--surface) !important; font-size: 15px; line-height: 1.5; transition: background 160ms, box-shadow 160ms; }
.dl-download:hover { background: #3a4232; box-shadow: 0 3px 10px #20211f16; }
.dl-download:active { background: #0e1409; }
.dl-download[aria-disabled=true] { background: #cbd2c0; color: #5c6653 !important; cursor: default; box-shadow: none; }
.dl-download[aria-disabled=true] > svg { display: none; }
.dl-content[data-install-mode=scan] { align-items: center; }
.dl-content[data-install-mode=scan] .dl-actions { width: 232px; padding-top: 0; gap: 10px; }
.dl-mobile-qr-frame { display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 15px; border: 1px solid #d8ddcf; border-radius: 10px; background: #fff; }
.dl-mobile-qr-frame > img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.dl-mobile-qr-frame > p { max-width: 12em; color: var(--dl-muted); font-size: 13px; line-height: 1.7; text-align: center; }
.dl-scan-label { margin-top: 16px !important; color: var(--ink); font-size: 14px; line-height: 1.6; text-align: center; }
.dl-content[data-install-mode=scan] .dl-download { min-height: 44px; padding: 9px 0; border: 0; border-radius: 3px; background: transparent; color: var(--dl-muted) !important; box-shadow: none; font-size: 13px; gap: 8px; }
.dl-content[data-install-mode=scan] .dl-download:not([aria-disabled=true]):hover { color: var(--ink) !important; }
.dl-content[data-install-mode=scan] .dl-download:not([aria-disabled=true]):hover > span { text-decoration: underline; text-underline-offset: 5px; }
.download-page [hidden] { display: none !important; }
.download-page .dl-text-control { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 0; border: 0; border-radius: 3px; background: transparent; color: var(--dl-muted); font: 13px/1.5 Peixing, 'PingFang SC', 'Microsoft YaHei', sans-serif; text-decoration: none; transition: color 160ms; }
.dl-text-control > span { display: block; }
.dl-text-control:hover { color: var(--ink); }
.dl-text-control:hover > span { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #6f795e; }
.dl-text-control:disabled { opacity: .5; cursor: default; }
.dl-text-control:disabled:hover > span { text-decoration: none; }
.dl-icon { display: block; width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms var(--ease); }
.dl-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 48px; padding: 14px 0; border-top: 1px solid var(--dl-line); }
.dl-secondary-tools { display: flex; align-items: center; gap: 30px; }
.dl-feedback { margin: -24px 48px 28px 136px; font-size: 13px; color: var(--dl-muted); }
.dl-error { margin: -16px 48px 24px; padding: 12px 16px; border: 1px solid #b98d76; border-radius: 6px; font-size: 13px; color: #713c27; background: #f8efe7; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dl-error .dl-text-control { flex-shrink: 0; color: #713c27; }
.dl-resources { display: flex; justify-content: flex-end; gap: 32px; padding-top: 20px; }
.dl-resources .dl-text-control { color: var(--site-muted, #62665b); }
.dl-no-script { font-size: 14px; margin-top: 24px !important; }
.dl-no-script a { text-decoration: underline; }
.dl-dialog { box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 40px; width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow: auto; color: var(--ink); box-shadow: 0 24px 80px #20211f24; }
.dl-dialog::backdrop { background: #20251c66; backdrop-filter: blur(5px); }
.dl-dialog[open] { animation: dl-dialog-enter 200ms var(--ease); }
.dl-dialog h2 { padding-right: 28px; font-size: 25px; line-height: 1.45; }
.dl-dialog-note { color: var(--muted); font-size: 14px; margin-top: 12px !important; }
.dl-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 6px; }
.dl-close:hover { background: #eaece3; }
.dl-qr { background: white; padding: 10px; width: 180px; height: 180px; margin: 26px auto 18px; border: 1px solid #e5e7de; border-radius: 8px; }
#share-dialog > .dl-text-control { display: flex; margin-inline: auto; }
.dl-copy-status { font-size: 13px; color: var(--dl-muted); min-height: 23px; }
#share-status { text-align: center; }
.dl-package-data { margin: 24px 0; font-size: 14px; }
.dl-package-data > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dl-package-data dt { color: var(--muted); }
.dl-package-data dd { margin: 0; text-align: right; }
.dl-checksum-label { color: var(--muted); font-size: 12px; }
#release-sha { display: block; margin: 10px 0 4px; padding: 14px; border-radius: 6px; background: #edeFE7; overflow-wrap: anywhere; font: 12px/1.8 ui-monospace, monospace; }
.dl-dialog .manual-copy { font-size: 16px !important; }
@keyframes dl-dialog-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media(max-width: 900px) {
  .dl-heading { padding: 48px 0 36px; }
  .dl-platforms { padding-inline: 20px; }
  .dl-platforms > button { padding-inline: 8px; }
  .dl-content { padding: 40px 32px; gap: 28px; }
  .dl-product { gap: 18px; }
  .dl-app-icon { width: 52px; height: 52px; flex-basis: 52px; border-radius: 12px; }
  .dl-product h2 { font-size: 27px; }
  .dl-actions { width: 188px; }
  .dl-tools { margin-inline: 32px; }
  .dl-feedback { margin-left: 102px; margin-right: 32px; }
  .dl-error { margin-inline: 32px; }
}
@media(max-width: 640px) {
  .download-page .dl-main { padding-bottom: 56px; }
  .dl-heading { padding: 40px 0 28px; }
  .dl-heading .utility-eyebrow { font-size: 10px; margin-bottom: 16px !important; }
  .dl-card { border-radius: 10px; }
  .dl-platforms { padding: 0 10px; }
  .dl-platforms > button { padding: 18px 2px; min-height: 60px; font-size: 12px; white-space: nowrap; }
  .dl-platforms > button::after { left: 8px; right: 8px; }
  .dl-content { grid-template-columns: 1fr; gap: 30px; min-height: 0; padding: 32px 24px 20px; }
  .dl-product { gap: 16px; }
  .dl-product h2 { font-size: 25px; }
  .dl-meta { font-size: 12px; margin-top: 8px !important; }
  .dl-compat { font-size: 12px; margin-top: 12px; }
  .dl-actions { width: 100%; gap: 6px; padding: 0; }
  .dl-content[data-install-mode=scan] .dl-actions { width: 100%; max-width: 232px; justify-self: center; }
  .dl-download { min-height: 52px; }
  .dl-tools { margin-inline: 24px; gap: 12px; padding-block: 12px; }
  .dl-secondary-tools { gap: 18px; }
  .dl-tools .dl-text-control { font-size: 12px; gap: 5px; }
  .dl-tools .dl-icon { width: 16px; height: 16px; }
  .dl-feedback { margin: 0 24px 24px; text-align: center; }
  .dl-error { margin: 0 24px 24px; flex-wrap: wrap; gap: 0; }
  .dl-resources { justify-content: space-between; gap: 24px; padding-top: 12px; }
  .dl-dialog { padding: 32px 24px 24px; }
}
@media(max-width: 370px) {
  .dl-platforms { padding-inline: 4px; }
  .dl-platforms { grid-template-columns: repeat(2, 1fr); }
  .dl-platforms > button { font-size: 13px; min-height: 52px; padding-block: 14px; }
  .dl-content { padding-inline: 20px; }
  .dl-app-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 10px; }
  .dl-product { gap: 12px; }
  .dl-product h2 { font-size: 23px; }
  .dl-tools { margin-inline: 20px; flex-wrap: wrap; justify-content: flex-start; gap: 0 20px; }
  .dl-secondary-tools { flex: 1; justify-content: space-between; gap: 12px; }
}
@media(prefers-reduced-motion: reduce) {
  .download-page *, .download-page *::after { animation: none !important; transition: none !important; }
}
