/* Portal base colors, controls and card treatment come from the unchanged auth.css copy in portal.css. */
.portal-auth.download-page { display: block; padding: 0; overflow: visible; min-height: 100dvh; }
body { margin: 0; }
.header-inner, main, footer { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--auth-border); background: var(--auth-surface); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-auth .brand { display: flex; align-items: center; gap: 12px; color: var(--auth-text); font: 700 18px/1.3 Outfit, Inter, system-ui, sans-serif; text-decoration: none; }
.brand img { flex-shrink: 0; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-section { font-size: 13px; color: var(--auth-muted); }
.portal-auth .site-header .portal-auth-theme { position: static; flex-shrink: 0; }
.sun, .dark .moon { display: none; }
.dark .sun { display: block; }
.intro { padding: 36px 0 28px; }
.portal-auth .intro h1 { font: 700 28px/1.3 Outfit, Inter, system-ui, sans-serif; margin: 0 0 8px; letter-spacing: -.4px; }
.intro p { margin: 0; max-width: 680px; font-size: 14px; line-height: 1.7; color: var(--auth-muted); }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.portal-auth .product { width: 100%; min-width: 0; padding: 28px; }
.product-number { display: inline-flex; padding: 4px 9px; border: 1px solid var(--auth-border); border-radius: 5px; color: var(--auth-muted); font-size: 11px; font-weight: 500; }
.product h2 { margin: 18px 0 6px; font: 700 22px/1.3 Outfit, Inter, system-ui, sans-serif; letter-spacing: -.3px; }
.description { margin: 0 0 22px; font-size: 13px; line-height: 1.6; color: var(--auth-muted); }
.version { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--auth-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.version strong { color: var(--auth-text); font-weight: 600; }
.portal-auth .download { margin: 20px 0 24px; }
.product h3 { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.notes { margin: 0; padding-left: 18px; color: var(--auth-muted); font-size: 13px; line-height: 1.7; }
.notes li { margin: 6px 0; overflow-wrap: anywhere; }
details { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--auth-border); font-size: 12px; }
summary { cursor: pointer; color: var(--auth-muted); }
summary:hover { color: var(--auth-text); }
summary:focus-visible { outline: 2px solid var(--auth-link); outline-offset: 3px; }
code { display: block; margin-top: 12px; overflow-wrap: anywhere; color: var(--auth-muted); font: 11px/1.7 ui-monospace, monospace; }
.previous { padding-top: 18px; }
.previous a { display: inline-block; margin-bottom: 6px; font-weight: 500; }
.empty { margin: 20px 0 0; padding: 16px; border: 1px dashed var(--auth-border); border-radius: 5px; color: var(--auth-muted); font-size: 13px; line-height: 1.7; }
.guide { margin: 28px 0 36px; padding: 24px 28px; border: 1px solid var(--auth-border); border-radius: 8px; background: var(--auth-surface); }
.guide h2 { margin: 0 0 20px; font-size: 16px; font-weight: 600; }
.guide ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; counter-reset: steps; }
.guide li { display: grid; gap: 8px; counter-increment: steps; }
.guide li strong { font-size: 13px; font-weight: 600; }
.guide li strong::before { content: counter(steps) ". "; color: var(--auth-muted); }
.guide li span { font-size: 12px; line-height: 1.7; color: var(--auth-muted); }
footer { padding: 20px 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--auth-border); font-size: 12px; color: var(--auth-muted); }
footer p { margin: 0; } footer p span { margin: 0 6px; }
#status:not(:empty) { margin: 0 0 18px; font-size: 13px; color: var(--auth-muted); }
.portal-auth #retry { width: auto; margin-bottom: 20px; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .header-inner, main, footer { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; } .header-section { display: none; }
  .intro { padding: 28px 0 22px; } .portal-auth .intro h1 { font-size: 24px; }
  .intro p { font-size: 13px; } .intro br { display: none; }
  .products { grid-template-columns: 1fr; gap: 18px; }
  .portal-auth .product { padding: 24px; }
  .guide { padding: 22px 24px; margin-top: 20px; }
  .guide ol { grid-template-columns: 1fr; gap: 20px; }
  footer { flex-wrap: wrap; font-size: 11px; }
}
