/* OTA-first layout, promoted from the operator-reviewed /neu design. */
.ota-first .flasher-builder-notice { display: flex; align-items: center; gap: 20px; margin-top: 24px; padding: 20px; border: 1px solid var(--line-strong); border-radius: 13px; background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.ota-first .flasher-builder-copy { flex: 1; min-width: 0; }
.ota-first .flasher-builder-notice h2 { margin: 0 0 7px; color: var(--ink); font-size: 17px; line-height: 1.4; letter-spacing: -.02em; }
.ota-first .flasher-builder-notice p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.ota-first .flasher-builder-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex-shrink: 0; padding: 12px 16px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: color-mix(in srgb, var(--accent) 15%, var(--card)); font-size: 13px; font-weight: 650; text-decoration: none; }
.ota-first .flasher-builder-link:hover { background: color-mix(in srgb, var(--accent) 25%, var(--card)); }
.ota-first .flasher-builder-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 700px) {
  .ota-first .flasher-builder-notice { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .ota-first .flasher-builder-notice h2 { font-size: 16px; }
}
body.ota-first { padding: 0 24px 24px; background: radial-gradient(ellipse at 12% 0, color-mix(in srgb, var(--accent) 6%, transparent), transparent 45%), var(--bg); }
.ota-first .site-shell { width: min(1220px, 100%); gap: 0; }
.neu-header { position: relative; z-index: 80; display: flex; align-items: center; gap: 34px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.neu-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.neu-brand > span:last-child { display: grid; gap: 1px; }
.neu-brand strong { font-size: 19px; letter-spacing: -.025em; font-weight: 800; }
.neu-brand strong span { font-weight: 500; color: var(--muted); }
.neu-brand small { color: var(--muted-2); font-size: 10px; letter-spacing: .04em; }
.neu-logo { display: grid; place-items: center; width: 39px; height: 43px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.neu-logo svg { width: 25px; height: 25px; }
.neu-nav { display: flex; align-items: center; gap: 6px; }
.neu-nav a { text-decoration: none; padding: 10px 13px; border-radius: 9px; font-size: 12px; color: var(--muted); font-weight: 650; white-space: nowrap; }
.neu-nav a:hover { background: var(--card); color: var(--ink); }
.neu-nav a.is-active { color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.neu-nav a span { opacity: .6; margin-left: 4px; }
.neu-header-tools { display: flex; align-items: center; gap: 19px; margin-left: auto; }
.neu-support { display: inline-flex; gap: 7px; align-items: center; text-decoration: none; color: var(--ink); font-size: 12px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.neu-support > span:first-child { font-size: 25px; line-height: 1; color: var(--accent); }
.neu-header .theme-toggle { width: auto; min-height: 41px; grid-template-columns: 24px max-content 9px; gap: 7px; border-radius: 10px; padding: 7px 10px; }
.neu-header .theme-palette-icon { width: 24px; }
.neu-header .theme-current-label { white-space: nowrap; }
.neu-header .theme-toggle-kicker { display: none; }
.neu-header .theme-menu { z-index: 100; }
.neu-intro { display: flex; justify-content: space-between; gap: 35px; align-items: end; padding: 36px 0 27px; }
.neu-eyebrow { color: var(--accent); font-size: 10px; letter-spacing: .13em; font-weight: 750; margin: 0 0 10px; }
.neu-intro h1 { color: var(--ink); font-size: clamp(29px, 3.4vw, 43px); font-weight: 800; line-height: 1.18; letter-spacing: -.045em; margin-bottom: 13px; }
.neu-intro h1 span { color: var(--muted); font-weight: 500; }
.neu-intro-copy { color: var(--muted); font-size: 13px; line-height: 1.8; }
.neu-brands { max-width: 255px; display: flex; flex-wrap: wrap; gap: 9px 15px; justify-content: flex-end; padding-bottom: 3px; color: var(--muted-2); font-size: 11px; font-weight: 750; }
.neu-text-link { color: var(--accent); font-size: 12px; text-decoration: none; line-height: 1.7; }
.neu-text-link:hover { text-decoration: underline; }
.ota-first main.portal-panel { padding: 0; background: transparent; border: 0; box-shadow: none; }
.ota-first main > .support-nudge:not(.neu-support-note), .ota-first main > .aera-project-promo, .neu-view-ota .ota-container > p.ota-note { display: none; }
.ota-first .ota-container { max-width: none; padding: 22px; margin: 0; border: 1px solid var(--line-strong); background: var(--panel); border-radius: 18px; box-shadow: 0 10px 40px color-mix(in srgb, var(--bg) 30%, transparent); position: relative; z-index: 2; }
.neu-picker-heading { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 20px; }
.neu-picker-heading h2 { color: var(--ink); font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.neu-picker-heading .neu-eyebrow { margin-bottom: 5px; }
.neu-picker-heading > p { color: var(--muted-2); font-size: 11px; padding-bottom: 3px; }
.ota-first .ota-row { background: transparent !important; padding: 0; border: 0; border-radius: 0; gap: 13px; margin: 0; grid-template-columns: minmax(180px,1fr) minmax(130px,.6fr) minmax(180px,1fr) auto; }
.ota-first .ota-row label { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: none; margin-bottom: 8px; }
.ota-first .ota-device-trigger, .ota-first .ota-region-trigger, .ota-first .ota-version-trigger, .ota-first .ota-select { min-height: 49px; border-radius: 10px; background: var(--card); border-color: var(--line); color: var(--ink); }
.ota-first .ota-resolve-actions { display: flex; align-items: center; gap: 6px; }
.ota-first #otaResolveBtn { min-height: 49px; border-radius: 10px; gap: 12px; padding-inline: 20px; color: var(--ink); background: color-mix(in srgb, var(--accent) 19%, var(--card)); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); font-size: 12px; }
.ota-first #otaResolveBtn:not(:disabled):hover { background: color-mix(in srgb, var(--accent) 29%, var(--card)); }
.ota-first #resetBtn { color: var(--muted); background: transparent; border: 0; padding-inline: 10px; font-size: 11px; }
.neu-empty { display: grid; justify-items: center; padding: 34px 10px 12px; margin-top: 23px; border-top: 1px solid var(--line); text-align: center; }
.neu-empty-symbol { color: color-mix(in srgb, var(--accent) 60%, var(--muted-2)); width: 37px; height: 40px; margin-bottom: 13px; }
.neu-empty h3 { font-size: 14px; font-weight: 650; color: var(--ink); margin-bottom: 5px; }
.neu-empty > p { font-size: 12px; color: var(--muted-2); }
.neu-possibilities { display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: center; margin-top: 24px; color: var(--muted); font-size: 11px; }
.neu-possibilities > span::before { content: '↳'; color: var(--accent); margin-right: 6px; }
.neu-possibilities small { display: block; padding-top: 2px; color: var(--muted-2); font-size: 9px; }
.ota-first .ota-result { max-width: none; margin-top: 25px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 24px 0 0; background: transparent !important; box-shadow: none; }
.ota-first .ota-result-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 14px; align-items: start; }
.ota-first .ota-package-panel { grid-column: auto; background: var(--card) !important; padding: 18px; border: 1px solid var(--line); border-radius: 13px; box-shadow: none; }
.ota-first .ota-package-panel .ota-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: start; }
.ota-first .ota-package-title { font-size: clamp(19px, 2vw, 23px); letter-spacing: -.025em; }
.ota-first .ota-package-region { font-size: .6em; color: var(--muted); }
.ota-first .ota-version-name { margin-top: 7px; font-size: 13px; }
.ota-first .ota-version-highlight { font-size: 1.12em; }
.ota-first .ota-meta-chips { margin-top: 12px; }
.ota-first .ota-chip { border-radius: 6px; background: var(--card); color: var(--muted); border-color: var(--line); font-size: 10px; min-height: 26px; padding: 4px 8px; }
.ota-first .ota-extract-panel { min-width: 0; padding: 18px; border: 1px solid var(--line); background: var(--card) !important; border-radius: 13px; box-shadow: none; }
.ota-first .ota-extract-panel h3 { font-size: 18px; color: var(--ink); }
.ota-first .ota-extract-panel > .ota-note { font-size: 12px; line-height: 1.7; }
.ota-first .neu-tool-label { margin: 0 0 11px; font-size: 9px; color: var(--muted-2); }
.ota-first .ota-package-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 14px 9px; }
.ota-first .ota-package-actions > .ota-btn { width: auto; }
.ota-first .ota-btn, .ota-first .ota-mini-btn { border-radius: 9px; font-size: 12px; min-height: 43px; }
.ota-first #downloadBtn { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 16%, var(--card)); min-width: 190px; }
.ota-first .ota-build-menu { flex-shrink: 0; }
.ota-first .ota-build-menu > summary { font-size: 11px; min-height: 36px; }
.ota-first .ota-build-menu-popover { z-index: 60; right: 0; left: auto; }
.ota-first .ota-build-status { margin-top: 10px; padding: 10px 0; background: transparent; border: 0; border-top: 1px solid var(--line); }
.ota-first .ota-build-status > div { min-width: 0; padding: 8px 10px; }
.ota-first .ota-build-status strong { font-size: 11px; }
.ota-first .ota-build-status span { font-size: 10px; }
.ota-first .ota-help { background: transparent !important; border: 0; border-top: 1px solid var(--line); border-radius: 0; margin-top: 20px; padding: 0; }
.ota-first .ota-help > summary { padding: 16px 0; font-size: 12px; }
.ota-first .ota-device-popover, .ota-first .ota-region-popover, .ota-first .ota-version-popover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.neu-section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 16px; }
.neu-section-heading .neu-eyebrow { margin-bottom: 6px; }
.neu-section-heading h2 { font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.neu-more { padding: 32px 0 0; }
.neu-more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.neu-resource { display: flex; align-items: center; gap: 14px; padding: 19px; border: 1px solid var(--line); border-radius: 13px; text-decoration: none; background: var(--panel); }
.neu-resource:hover { border-color: var(--line-strong); background: var(--card); }
.neu-resource > span:nth-child(2) { display: grid; gap: 4px; flex: 1; }
.neu-resource strong { font-size: 13px; color: var(--ink); }
.neu-resource small { font-size: 11px; color: var(--muted); line-height: 1.7; }
.neu-resource > span:last-child { color: var(--muted-2); }
.neu-resource-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; background: var(--card); color: var(--accent); border: 1px solid var(--line); border-radius: 10px; font-family: monospace; font-size: 17px; }
.neu-archive-link { display: flex; align-items: center; gap: 15px; text-decoration: none; padding: 23px 0; margin-top: 10px; border-bottom: 1px solid var(--line); }
.neu-archive-link > span:nth-child(2) { display: grid; gap: 4px; flex: 1; }
.neu-archive-link strong { font-size: 12px; color: var(--ink); }
.neu-archive-link small { font-size: 11px; color: var(--muted-2); }
.neu-archive-link > span:last-child { font-size: 12px; color: var(--accent); white-space: nowrap; }
.neu-archive-icon { font-size: 30px; font-weight: 400; color: var(--muted-2); }
.neu-projects { padding-top: 29px; }
.ota-first .aera-project-promo { margin: 0 auto; border-radius: 13px; overflow: hidden; }
.neu-announcement { border: 1px solid var(--line); border-radius: 12px; margin-top: 20px; background: var(--panel); }
.neu-announcement > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 16px 19px; }
.neu-announcement > summary::-webkit-details-marker { display: none; }
.neu-announcement > summary > span:first-child { display: grid; gap: 4px; }
.neu-announcement strong { color: var(--ink); font-size: 12px; }
.neu-announcement small { color: var(--muted); font-size: 11px; line-height: 1.7; }
.neu-expand { font-size: 22px; font-weight: 400; color: var(--muted-2); }
.neu-announcement[open] > summary { border-bottom: 1px solid var(--line); }
.neu-announcement[open] .neu-expand { transform: rotate(45deg); }
.neu-announcement-copy { padding: 18px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.neu-announcement-copy p { margin-bottom: 12px; }
.neu-announcement-copy a { color: var(--accent); }
.ota-first .neu-announcement .superflasher-farewell { margin: 0; padding: 20px; border: 0; background: transparent; box-shadow: none; font-size: 12px; }
.ota-first .neu-announcement .superflasher-farewell h2 { font-size: 18px; }
.ota-first .neu-announcement .superflasher-farewell h3 { font-size: 14px; }
.ota-first .neu-support-note { margin: 20px 0 0; padding: 16px 0; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.ota-first .neu-support-note h2 { font-size: 13px; }
.ota-first .neu-support-note .support-nudge-kicker { display: none; }
.ota-first .neu-support-note p { font-size: 11px; }
.ota-first .neu-support-note .support-nudge-cta { font-size: 11px; padding: 9px 14px; min-height: 38px; }
.ota-first .neu-support-note.neu-support-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 17px 0 0; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 11px; background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.ota-first.neu-view-files .neu-support-note.neu-support-strip { margin-bottom: 24px; }
.ota-first .neu-support-strip .support-nudge-copy { min-width: 0; }
.ota-first .neu-support-strip .support-nudge-kicker { display: block; color: var(--accent); font-size: 9px; margin-bottom: 3px; }
.ota-first .neu-support-strip h2 { font-size: 13px; line-height: 1.5; margin: 0; }
.ota-first .neu-support-strip p { font-size: 11px; margin: 3px 0 0; line-height: 1.6; }
.ota-first .neu-support-strip .support-nudge-cta { flex-shrink: 0; width: auto; min-height: 39px; color: var(--ink); border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.ota-first .footer-redesign { margin-top: 20px; padding: 22px 0 0; background: transparent !important; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.ota-first .footer-link-deck a { background: var(--panel); border-color: var(--line); border-radius: 10px; }
.ota-first .traffic-console { margin-top: 18px; border-radius: 13px; background: var(--panel); border-color: var(--line); }
.ota-first .traffic-console-head { border-color: var(--line); }
.ota-first .traffic-row { background: var(--card); border-color: var(--line); }
.ota-first .path-info { margin-top: 6px; }
@media (min-width: 1600px) { .ota-first .site-shell { width: min(1280px,100%); } }
@media (max-width: 1020px) {
  .neu-header { gap: 15px; flex-wrap: wrap; padding: 17px 0 12px; }
  .neu-header-tools { gap: 15px; }
  .neu-nav { order: 3; flex-basis: 100%; margin-left: -10px; }
  .neu-nav a { padding: 9px 11px; }
  .neu-intro { padding-top: 28px; }
  .neu-brands { max-width: 210px; }
  .ota-first .ota-row { grid-template-columns: minmax(0,1fr) minmax(0,.65fr) minmax(0,1fr); }
  .ota-first .ota-resolve-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 700px) {
  body.ota-first { padding: 0 14px 18px; }
  .neu-header { padding-top: 15px; }
  .neu-brand { gap: 9px; }
  .neu-brand strong { font-size: 17px; }
  .neu-logo { width: 34px; height: 38px; border-radius: 10px; }
  .neu-support > span:last-child { display: none; }
  .neu-header-tools { gap: 9px; }
  .neu-header .theme-toggle-copy { display: flex; }
  .neu-header .theme-current-label { font-size: 11px; }
  .neu-support { padding: 7px 8px; }
  .neu-support > span:first-child { font-size: 22px; }
  .neu-header .theme-toggle { padding: 8px; min-height: 36px; }
  .neu-nav { gap: 3px; justify-content: space-between; }
  .neu-nav a { font-size: 11px; padding: 8px 10px; }
  .neu-intro { display: block; padding: 25px 0 21px; }
  .neu-intro h1 { font-size: clamp(27px, 6.6vw, 35px); margin-bottom: 10px; }
  .neu-intro-copy { font-size: 12px; line-height: 1.75; }
  .neu-desktop-break { display: none; }
  .neu-brands { max-width: none; justify-content: start; gap: 8px 17px; margin-top: 15px; font-size: 10px; }
  .ota-first .ota-container { padding: 17px 14px; border-radius: 14px; }
  .neu-picker-heading { margin-bottom: 17px; }
  .neu-picker-heading h2 { font-size: 17px; }
  .neu-picker-heading > p { display: none; }
  .ota-first .ota-row { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .ota-first .ota-device-field { grid-column: 1 / -1; }
  .ota-first .ota-resolve-actions { justify-content: stretch; gap: 6px; }
  .ota-first #otaResolveBtn { flex: 1; }
  .ota-first #resetBtn { padding-inline: 8px; }
  .ota-first .ota-result-grid { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .ota-first .ota-package-panel .ota-panel-head { flex-wrap: wrap; gap: 12px; }
  .ota-first .ota-package-panel .ota-panel-head > div { flex-basis: 100%; }
  .ota-first .ota-package-title { font-size: 22px; }
  .ota-first .ota-package-panel { padding: 17px 14px; }
  .ota-first .ota-build-menu > summary { min-height: 32px; }
  .ota-first .ota-build-menu-popover { left: 0; right: auto; }
  .ota-first .ota-package-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
  .ota-first .ota-lazy-package-form { grid-column: 1 / -1; }
  .ota-first #downloadBtn { width: 100%; }
  .ota-first .ota-extract-panel { padding: 17px 14px; }
  .ota-first .ota-extract-panel h3 { font-size: 17px; }
  .neu-empty { padding: 25px 0 6px; margin-top: 20px; }
  .neu-possibilities { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); width: 100%; gap: 15px 10px; text-align: left; font-size: 10px; }
  .neu-possibilities small { padding-left: 16px; }
  .neu-more { padding-top: 26px; }
  .neu-section-heading h2 { font-size: 18px; }
  .neu-more-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .neu-resource { padding: 15px; gap: 12px; }
  .neu-archive-link { flex-wrap: wrap; gap: 12px; padding: 20px 0; }
  .neu-archive-link > span:nth-child(2) { flex-basis: calc(100% - 55px); }
  .neu-archive-link > span:last-child { padding-left: 43px; font-size: 11px; }
  .neu-projects .neu-section-heading { flex-wrap: wrap; gap: 10px; }
  .neu-projects { padding-top: 23px; }
  .neu-announcement > summary { padding: 15px; }
  .ota-first .neu-support-note { align-items: start; }
  .ota-first .neu-support-note.neu-support-strip { gap: 10px; padding: 12px; }
  .ota-first .neu-support-strip p { display: none; }
  .ota-first .neu-support-strip h2 { font-size: 12px; }
  .ota-first .neu-support-strip .support-nudge-cta { font-size: 10px; padding: 8px 11px; }
  .ota-first .footer-link-deck small { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .ota-first * { scroll-behavior: auto !important; } }

/* Desktop readability: keep the mobile sizing and compact result layout intact. */
@media (min-width: 701px) {
  .ota-first .ota-container { padding: 28px; }
  .ota-first .neu-picker-heading { margin-bottom: 23px; }
  .ota-first .neu-picker-heading h2 { font-size: 23px; }
  .ota-first .neu-picker-heading > p { font-size: 13px; }
  .ota-first .neu-picker-heading .neu-eyebrow { font-size: 11px; }
  .ota-first #otaForm { gap: 16px; }
  .ota-first #otaForm label { font-size: 14px; font-weight: 650; margin-bottom: 10px; }
  .ota-first #otaForm .ota-device-trigger,
  .ota-first #otaForm .ota-region-trigger,
  .ota-first #otaForm .ota-version-trigger,
  .ota-first #otaForm .ota-select { min-height: 58px; padding: 13px 16px; font-size: 16px; line-height: 1.4; }
  .ota-first #otaResolveBtn { min-height: 58px; padding-inline: 22px; font-size: 15px; }
  .ota-first #resetBtn { min-height: 58px; font-size: 13px; }
  .ota-first #otaForm .ota-device-option,
  .ota-first #otaForm .ota-region-option,
  .ota-first #otaForm .ota-version-option { min-height: 46px; font-size: 15px; }
  .ota-first #otaForm .ota-device-search { font-size: 15px; }
}
@media (min-width: 1021px) {
  .ota-first #otaForm { grid-template-columns: minmax(190px,1fr) minmax(145px,.65fr) minmax(250px,1.35fr) auto; }
}
