/* The landing artwork and generous layout are confined to the idle home state. */
#predictionView .home-hero-art { display: none; }
#predictionView .home-hero-copy h2 span { display: block; }
#predictionView .home-assurances { display: flex; flex-wrap: wrap; gap: 24px; padding: 0; list-style: none; }
#predictionView .home-assurances li { display: flex; align-items: center; gap: 10px; }
#predictionView .home-history { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; min-height: 44px; white-space: nowrap; }
#predictionView .home-workflow { display: flex; align-items: center; gap: 24px; padding: 0; margin: 0; list-style: none; }
#predictionView .home-workflow li { display: flex; align-items: center; gap: 16px; flex: 1; }
#predictionView .home-workflow li:last-child { flex: 0 0 auto; }
#predictionView .home-workflow li:not(:last-child)::after { content: ''; flex: 1; height: 1px; margin-left: 8px; background: #bbd7ff; }
#predictionView .home-workflow li > span { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #eaf3ff; color: #075bd7; font-size: 18px; font-weight: 650; }
#predictionView .home-workflow strong { font-size: 16px; font-weight: 600; white-space: nowrap; }
#predictionView.has-results .home-hero-copy > :not(h2),
#predictionView.has-results .home-workflow,
#predictionView.has-results .home-action-help { display: none; }
#predictionView.has-results .prediction-upload-heading { flex-wrap: wrap; }

body.prediction-home { --home-blue: #0754e9; --home-ink: #081f50; background: #fff; }
body.prediction-home .analysis-main { display: block; min-height: calc(100dvh - 72px); padding: 0; }
body.prediction-home #predictionView { position: relative; isolation: isolate; display: block; width: 88%; max-width: 1690px; margin: 0 auto; padding-bottom: 20px; color: var(--home-ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif; }
body.prediction-home #predictionView .home-hero-art { display: block; position: absolute; z-index: -1; top: clamp(-87px, -4.5vw, -46px); left: calc((100% - 100vw) / 2); width: 100vw; height: clamp(550px, 41.3vw, 793px); max-width: none; object-fit: cover; object-position: 70% top; pointer-events: none; }
body.prediction-home #predictionView .prediction-intro { display: flex; align-items: center; min-height: clamp(390px, 24.5vw, 475px); margin: 0; padding: 24px 2.6%; text-align: left; }
body.prediction-home #predictionView .home-hero-copy { width: 61%; }
body.prediction-home #predictionView .home-eyebrow { margin: 0 0 14px; color: var(--home-blue); font-size: 17px; font-weight: 650; letter-spacing: 1px; }
body.prediction-home #predictionView .prediction-intro h2 { margin: 0 0 20px; color: var(--home-ink); font-size: clamp(44px, 3.9vw, 74px); font-weight: 800; line-height: 1.24; letter-spacing: -1.5px; text-wrap: initial; }
body.prediction-home #predictionView .prediction-intro h2 span { color: var(--home-blue); white-space: nowrap; }
body.prediction-home #predictionView .home-description { margin: 0; color: #415b80; font-size: clamp(16px, 1.18vw, 22px); line-height: 1.65; }
body.prediction-home #predictionView .home-assurances { gap: 0; margin: 26px 0 0; color: #405a80; font-size: clamp(14px, 1.05vw, 18px); }
body.prediction-home #predictionView .home-assurances li { gap: 10px; }
body.prediction-home #predictionView .home-assurances li + li { margin-left: 18px; padding-left: 18px; border-left: 1px solid #b8c9e2; }
body.prediction-home #predictionView .home-assurances svg { width: 25px; height: 25px; padding: 5px; border-radius: 50%; color: #fff; background: #639bfa; }
body.prediction-home #predictionView .prediction-workspace { display: block; margin: 0; }
body.prediction-home #predictionView .prediction-upload { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr); grid-template-rows: auto 174px auto; gap: 14px 28px; padding: 22px 30px 18px; border: 1px solid #dce9f8; border-radius: 16px; background: #fff; box-shadow: 0 6px 26px #2868ab0c; }
body.prediction-home #predictionView .prediction-upload-heading { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; margin: 0; }
body.prediction-home #predictionView .prediction-section-icon { width: 50px; height: 50px; border-radius: 50%; background: #eaf4ff; color: var(--home-blue); }
body.prediction-home #predictionView .prediction-section-icon svg { width: 26px; height: 26px; }
body.prediction-home #predictionView .prediction-upload-heading h3 { margin: 0; color: var(--home-ink); font-size: 24px; line-height: 1.3; font-weight: 700; }
body.prediction-home #predictionView .prediction-upload-heading p { margin: 0; color: #536b8d; font-size: 17px; line-height: 1.5; }
body.prediction-home #predictionView .home-history { color: var(--home-blue); font-size: 15px; font-weight: 550; }
body.prediction-home #predictionView .upload-zone { grid-column: 1; grid-row: 2; gap: 6px; min-height: 0; max-height: none; padding: 14px 24px; border: 1px dashed #97bcfa; border-radius: 10px; background: #f7fbff; }
body.prediction-home #predictionView .upload-zone:hover, body.prediction-home #predictionView .upload-zone.dragging, body.prediction-home #predictionView .upload-zone.has-file { background: #edf5ff; border-color: var(--home-blue); }
body.prediction-home #predictionView .upload-zone.has-error { border-color: #b42318; }
body.prediction-home #predictionView .upload-symbol { display: grid; place-items: center; width: 45px; height: 45px; margin: 0 0 3px; border: 1px solid #d1e3ff; border-radius: 10px; background: #fff; color: var(--home-blue); }
body.prediction-home #predictionView .upload-symbol svg { width: 25px; height: 25px; }
body.prediction-home #predictionView .upload-zone strong { color: var(--home-ink); font-size: 16px; font-weight: 600; }
body.prediction-home #predictionView #fileMeta { color: #526b8b; font-size: 14px; }
body.prediction-home #predictionView .prediction-file-types { display: flex; margin-top: 2px; }
body.prediction-home #predictionView .prediction-file-types span { padding: 0 8px; color: #405b82; font-size: 13px; }
body.prediction-home #predictionView .prediction-choose-file { display: none; }
body.prediction-home #predictionView .prediction-submit { grid-column: 2; grid-row: 2; align-self: center; display: flex; flex-direction: column; gap: 12px; margin: 0; }
body.prediction-home #predictionView #startPrediction { flex: none; width: 100%; min-height: 58px; gap: 20px; padding: 14px 20px; border: 1px solid #1269f4; border-radius: 10px; background: #0965f4; color: white; font-size: 20px; font-weight: 550; box-shadow: 0 4px 10px #1666ee12; }
body.prediction-home #predictionView #startPrediction:hover { background: #0754cf; border-color: #0754cf; }
body.prediction-home #predictionView #startPrediction:disabled { opacity: .65; cursor: wait; }
body.prediction-home #predictionView .home-action-help { margin: 0; color: #647897; font-size: 14px; text-align: center; }
body.prediction-home #predictionView .home-workflow { grid-column: 1 / -1; grid-row: 3; }
body.prediction-home #predictionView #predictionProgress { grid-column: 1 / -1; grid-row: 4; margin: 0; }
body.prediction-home #predictionView #predictionProgress:empty { display: none; }
body.prediction-home #predictionView .prediction-highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 32px 0 0; }
body.prediction-home #predictionView .prediction-highlights article { display: flex; align-items: center; gap: 18px; padding: 4px 26px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.prediction-home #predictionView .prediction-highlights article + article { border-left: 1px solid #dae4f2; }
body.prediction-home #predictionView .prediction-highlights h4 { margin: 0 0 5px; color: var(--home-ink); font-size: 17px; font-weight: 650; }
body.prediction-home #predictionView .prediction-highlights p { margin: 0; color: #596e8d; font-size: 14px; line-height: 1.6; }
body.prediction-home #predictionView .prediction-highlight-icon { width: 54px; height: 54px; border-radius: 50%; background: #e8f4ff; color: var(--home-blue); }
body.prediction-home #predictionView .prediction-highlight-icon svg { width: 27px; height: 27px; }

@media (min-width: 1921px) {
 body.prediction-home #predictionView .home-hero-art { left: 50%; transform: translateX(-50%); }
}
@media (max-width: 1400px) {
 body.prediction-home #predictionView .prediction-highlights article { gap: 12px; padding: 4px 16px; }
 body.prediction-home #predictionView .prediction-highlight-icon { width: 44px; height: 44px; }
 body.prediction-home #predictionView .prediction-highlights h4 { font-size: 15px; }
 body.prediction-home #predictionView .prediction-highlights p { font-size: 13px; }
}
@media (max-width: 1100px) {
 body.prediction-home #predictionView { width: 92%; }
 body.prediction-home #predictionView .prediction-intro { min-height: 370px; padding-inline: 8px; }
 body.prediction-home #predictionView .home-hero-copy { width: 68%; }
 body.prediction-home #predictionView .prediction-intro h2 { font-size: 42px; }
 body.prediction-home #predictionView .home-assurances li + li { margin-left: 12px; padding-left: 12px; }
 body.prediction-home #predictionView .prediction-upload { padding: 22px; gap: 16px 22px; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); }
 body.prediction-home #predictionView .prediction-upload-heading h3 { font-size: 22px; }
 body.prediction-home #predictionView .prediction-upload-heading p { font-size: 15px; }
 body.prediction-home #predictionView .prediction-highlights { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 0; }
 body.prediction-home #predictionView .prediction-highlights article:nth-child(3) { border-left: 0; }
}
@media (max-width: 800px) {
 body.prediction-home #predictionView .prediction-intro { min-height: 385px; padding: 35px 10px; align-items: flex-start; }
 body.prediction-home #predictionView .home-hero-copy { width: 100%; }
 body.prediction-home #predictionView .home-hero-art { top: 0; height: 430px; object-position: 57% top; opacity: .38; }
 body.prediction-home #predictionView .prediction-intro h2 { font-size: clamp(30px, 5.5vw, 42px); }
 body.prediction-home #predictionView .home-description { font-size: 16px; }
 body.prediction-home #predictionView .prediction-upload { grid-template-columns: minmax(0,1fr); grid-template-rows: auto; gap: 18px; padding: 22px; }
 body.prediction-home #predictionView .prediction-upload-heading { flex-wrap: wrap; gap: 12px; }
 body.prediction-home #predictionView .prediction-upload-heading p { font-size: 14px; }
 body.prediction-home #predictionView .home-history { font-size: 14px; }
 body.prediction-home #predictionView .upload-zone { grid-column: 1; grid-row: 2; min-height: 180px; padding: 20px 12px; }
 body.prediction-home #predictionView .prediction-submit { grid-column: 1; grid-row: 3; }
 body.prediction-home #predictionView .home-workflow { grid-row: 4; gap: 10px; }
 body.prediction-home #predictionView #predictionProgress { grid-row: 5; }
 body.prediction-home #predictionView .home-workflow li { gap: 8px; }
 body.prediction-home #predictionView .home-workflow li > span { width: 32px; height: 32px; font-size: 14px; }
 body.prediction-home #predictionView .home-workflow strong { font-size: 13px; }
 body.prediction-home #predictionView .home-workflow li:not(:last-child)::after { margin-left: 0; }
}
@media (max-width: 520px) {
 body.prediction-home #predictionView .prediction-intro { min-height: 345px; padding: 30px 4px 24px; }
 body.prediction-home #predictionView .home-eyebrow { font-size: 14px; }
 body.prediction-home #predictionView .prediction-intro h2 { font-size: clamp(26px, 7.5vw, 38px); letter-spacing: -.7px; line-height: 1.35; margin-bottom: 16px; }
 body.prediction-home #predictionView .home-description { font-size: 14px; }
 body.prediction-home #predictionView .home-assurances { gap: 8px 16px; margin-top: 20px; font-size: 12px; }
 body.prediction-home #predictionView .home-assurances li { gap: 6px; }
 body.prediction-home #predictionView .home-assurances li + li { margin: 0; padding: 0; border: 0; }
 body.prediction-home #predictionView .home-assurances svg { width: 20px; height: 20px; padding: 4px; }
 body.prediction-home #predictionView .prediction-upload { padding: 18px 16px; border-radius: 12px; }
 body.prediction-home #predictionView .prediction-section-icon { width: 40px; height: 40px; }
 body.prediction-home #predictionView .prediction-upload-heading { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px 12px; }
 body.prediction-home #predictionView .prediction-upload-heading > div:nth-child(2) { flex: 1; min-width: 0; }
 body.prediction-home #predictionView .prediction-upload-heading h3 { font-size: 20px; }
 body.prediction-home #predictionView .home-history { grid-column: 2; justify-self: start; margin-left: 0; min-height: 32px; }
 body.prediction-home #predictionView #startPrediction { font-size: 18px; min-height: 54px; }
 body.prediction-home #predictionView .home-workflow { justify-content: space-between; gap: 8px; }
 body.prediction-home #predictionView .home-workflow li { flex: 0 1 auto; flex-direction: column; gap: 6px; }
 body.prediction-home #predictionView .home-workflow li::after { display: none; }
 body.prediction-home #predictionView .prediction-highlights { margin-top: 24px; gap: 20px 0; }
 body.prediction-home #predictionView .prediction-highlights article { align-items: flex-start; flex-direction: column; gap: 10px; padding: 0 12px; }
 body.prediction-home #predictionView .prediction-highlights h4 { font-size: 14px; }
 body.prediction-home #predictionView .prediction-highlights p { font-size: 12px; }
 body.prediction-home #predictionView .prediction-highlight-icon { width: 40px; height: 40px; }
}

/* Fit the idle homepage to the available viewport; content remains scrollable
   on unusually short screens or when browser text scaling needs more room. */
@media (min-width: 801px) {
 body.prediction-home .app-shell { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100dvh; }
 body.prediction-home .analysis-main { display: flex; min-height: 0; }
 body.prediction-home #predictionView { display: grid; grid-template-rows: minmax(min-content, 1fr) auto auto; min-height: 0; padding-bottom: 16px; }
 body.prediction-home #predictionView .prediction-intro { position: relative; min-height: 0; padding: 16px 2.6%; }
 body.prediction-home #predictionView .home-hero-copy { width: 64%; }
 body.prediction-home #predictionView .home-hero-art { top: 0; left: auto; right: calc((100% - 100vw) / 2); transform: none; width: auto; height: calc(100% + 60px); object-fit: contain; object-position: right top; background: transparent; mask-image: linear-gradient(to right, transparent 20%, #000 60%); }
 body.prediction-home #predictionView .home-eyebrow { margin-bottom: 10px; font-size: 15px; }
 body.prediction-home #predictionView .prediction-intro h2 { margin-bottom: 14px; font-size: clamp(36px, min(3.8vw, 6.5dvh), 70px); line-height: 1.2; }
 body.prediction-home #predictionView .home-description { font-size: clamp(15px, 1.8dvh, 19px); line-height: 1.55; }
 body.prediction-home #predictionView .home-assurances { margin-top: 18px; font-size: 15px; }
 body.prediction-home #predictionView .home-assurances svg { width: 22px; height: 22px; padding: 4px; }
 body.prediction-home #predictionView .prediction-upload { grid-template-rows: auto clamp(124px, 16dvh, 174px) auto; gap: 12px 28px; padding: 18px 26px 14px; }
 body.prediction-home #predictionView .prediction-upload-heading { gap: 14px; }
 body.prediction-home #predictionView .prediction-section-icon { width: 44px; height: 44px; }
 body.prediction-home #predictionView .prediction-upload-heading h3 { font-size: 21px; }
 body.prediction-home #predictionView .prediction-upload-heading p { font-size: 15px; }
 body.prediction-home #predictionView .upload-zone { gap: 4px; padding: 8px 16px; }
 body.prediction-home #predictionView #fileLabel { flex-shrink: 0; display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 body.prediction-home #predictionView .upload-symbol { width: 34px; height: 34px; margin: 0; border-radius: 8px; }
 body.prediction-home #predictionView .upload-symbol svg { width: 22px; height: 22px; }
 body.prediction-home #predictionView #startPrediction { min-height: 50px; padding-block: 10px; font-size: 18px; }
 body.prediction-home #predictionView .home-workflow li > span { width: 34px; height: 34px; font-size: 15px; }
 body.prediction-home #predictionView .home-workflow strong { font-size: 14px; }
 body.prediction-home #predictionView #predictionProgress { grid-column: 2; grid-row: 2; align-self: end; padding: 6px 10px; font-size: 13px; line-height: 1.45; }
 body.prediction-home #predictionView .prediction-upload:has(#predictionProgress:not(:empty)) .prediction-submit { align-self: start; }
 body.prediction-home #predictionView .prediction-upload:has(#predictionProgress:not(:empty)) .home-action-help { display: none; }
 body.prediction-home #predictionView .prediction-highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; gap: 0; }
 body.prediction-home #predictionView .prediction-highlights article { gap: 12px; padding: 0 18px; }
 body.prediction-home #predictionView .prediction-highlights article:nth-child(3) { border-left: 1px solid #dae4f2; }
 body.prediction-home #predictionView .prediction-highlight-icon { width: 42px; height: 42px; }
 body.prediction-home #predictionView .prediction-highlight-icon svg { width: 24px; height: 24px; }
 body.prediction-home #predictionView .prediction-highlights h4 { margin-bottom: 3px; font-size: 15px; }
 body.prediction-home #predictionView .prediction-highlights p { font-size: 13px; line-height: 1.5; }
}
@media (min-width: 801px) and (max-height: 760px) {
 body.prediction-home #predictionView { width: 92%; padding-bottom: 12px; }
 body.prediction-home #predictionView .prediction-intro { padding-block: 12px; }
 body.prediction-home #predictionView .home-eyebrow { font-size: 14px; margin-bottom: 6px; }
 body.prediction-home #predictionView .prediction-intro h2 { font-size: clamp(32px, min(3.4vw, 5.6dvh), 43px); margin-bottom: 10px; }
 body.prediction-home #predictionView .home-description { font-size: 14px; }
 body.prediction-home #predictionView .home-assurances { margin-top: 12px; font-size: 14px; }
 body.prediction-home #predictionView .prediction-upload { grid-template-rows: auto 124px auto; gap: 10px 24px; padding: 14px 22px 12px; }
 body.prediction-home #predictionView .prediction-upload-heading h3 { font-size: 19px; }
 body.prediction-home #predictionView .prediction-upload-heading p { font-size: 14px; }
 body.prediction-home #predictionView .upload-zone { gap: 2px; padding-block: 6px; }
 body.prediction-home #predictionView .upload-symbol { width: 30px; height: 30px; }
 body.prediction-home #predictionView .upload-zone strong { font-size: 15px; }
 body.prediction-home #predictionView #fileMeta { font-size: 13px; }
 body.prediction-home #predictionView .prediction-file-types { margin-top: 0; }
 body.prediction-home #predictionView .prediction-file-types span { font-size: 12px; }
 body.prediction-home #predictionView .home-workflow li > span { width: 30px; height: 30px; font-size: 14px; }
 body.prediction-home #predictionView .prediction-highlights { margin-top: 12px; }
 body.prediction-home #predictionView .prediction-highlights h4 { font-size: 14px; }
 body.prediction-home #predictionView .prediction-highlight-icon { width: 36px; height: 36px; }
}

/* A single launch panel: context and steps, upload and action, capability footer. */
body.prediction-home #predictionView .prediction-upload { border-radius: 16px 16px 0 0; border-bottom: 0; box-shadow: 0 -4px 28px #2868ab08; }
body.prediction-home #predictionView .prediction-highlights { margin-top: 0; padding: 18px 8px; border: 1px solid #dce9f8; border-top-color: #e8eff8; border-radius: 0 0 16px 16px; background: #f7faff; }
body.prediction-home #predictionView .prediction-highlight-icon { background: #e9f1ff; border-radius: 12px; }
body.prediction-home #predictionView .prediction-submit .home-history { justify-content: center; align-self: center; margin: 0; min-height: 32px; font-size: 14px; }
@media (min-width: 801px) {
 body.prediction-home #predictionView .prediction-upload { grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr); grid-template-rows: auto clamp(124px, 16dvh, 150px); gap: 20px 32px; padding: 24px 28px; }
 body.prediction-home #predictionView .prediction-upload-heading { grid-column: 1; grid-row: 1; }
 body.prediction-home #predictionView .prediction-section-icon { border-radius: 12px; }
 body.prediction-home #predictionView .home-workflow { grid-column: 2; grid-row: 1; gap: 12px; }
 body.prediction-home #predictionView .home-workflow li { gap: 7px; }
 body.prediction-home #predictionView .home-workflow li > span { width: 26px; height: 26px; font-size: 12px; background: #eff4fb; color: #536b8d; }
 body.prediction-home #predictionView .home-workflow li:first-child > span { background: #e6efff; color: var(--home-blue); }
 body.prediction-home #predictionView .home-workflow strong { font-size: 13px; color: #536b8d; }
 body.prediction-home #predictionView .home-workflow li:first-child strong { color: var(--home-ink); }
 body.prediction-home #predictionView .home-workflow li:not(:last-child)::after { margin-left: 0; min-width: 8px; }
 body.prediction-home #predictionView .upload-zone { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; align-items: center; justify-items: start; gap: 6px 20px; padding: 20px 24px; text-align: left; }
 body.prediction-home #predictionView .upload-symbol { grid-column: 1; grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 14px; }
 body.prediction-home #predictionView .upload-symbol svg { width: 28px; height: 28px; }
 body.prediction-home #predictionView #fileLabel { grid-column: 2; grid-row: 1; align-self: end; }
 body.prediction-home #predictionView #fileMeta { grid-column: 2; grid-row: 2; align-self: start; }
 body.prediction-home #predictionView .prediction-file-types { display: none; }
 body.prediction-home #predictionView .prediction-choose-file { display: inline-flex; grid-column: 3; grid-row: 1 / 3; align-items: center; min-height: 44px; margin: 0; padding: 8px 16px; border: 1px solid #b7cef5; border-radius: 8px; background: #fff; color: var(--home-blue); font-size: 14px; font-weight: 600; white-space: nowrap; }
 body.prediction-home #predictionView .prediction-submit { gap: 4px; padding-left: 4px; }
 body.prediction-home #predictionView .home-action-help { margin-top: 4px; font-size: 13px; }
 /* shares the upload zone's cell; raised so the zone's background does not paint over the message */
 body.prediction-home #predictionView #predictionProgress { position: relative; z-index: 1; grid-column: 1; grid-row: 2; align-self: end; margin: 0 12px 8px; padding: 4px 10px; pointer-events: none; }
 body.prediction-home #predictionView .prediction-upload:has(#predictionProgress:not(:empty)) .upload-zone { padding-bottom: 44px; }
 body.prediction-home #predictionView .prediction-upload:has(#predictionProgress:not(:empty)) .prediction-submit { align-self: center; }
 body.prediction-home #predictionView .prediction-upload:has(#predictionProgress:not(:empty)) .home-action-help { display: block; }
 body.prediction-home #predictionView .prediction-highlights article { padding-inline: 20px; }
}
@media (min-width: 801px) and (max-width: 1200px) {
 body.prediction-home #predictionView .prediction-upload { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 16px 24px; padding-inline: 22px; }
 body.prediction-home #predictionView .upload-zone { grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding-inline: 16px; }
 body.prediction-home #predictionView .upload-symbol { width: 44px; height: 44px; }
 body.prediction-home #predictionView .prediction-choose-file { display: none; }
 body.prediction-home #predictionView .home-workflow { gap: 8px; }
 body.prediction-home #predictionView .home-workflow li { gap: 5px; }
 body.prediction-home #predictionView .home-workflow strong { font-size: 12px; }
 body.prediction-home #predictionView .prediction-highlights article { padding-inline: 12px; }
}
@media (min-width: 801px) and (max-height: 760px) {
 body.prediction-home #predictionView .prediction-upload { padding-block: 16px; gap: 12px 24px; }
 body.prediction-home #predictionView .prediction-highlights { padding-block: 12px; }
}
@media (max-width: 800px) {
 body.prediction-home #predictionView .prediction-submit { gap: 8px; }
 body.prediction-home #predictionView .prediction-highlights { padding-block: 20px; }
}
/* The three comparison companies (chosen before the upload) take one compact row under the
   upload zone; the zone gives up the height so the idle home still fits one screen. */
@media (min-width: 801px) {
 body.prediction-home #predictionView .prediction-upload { grid-template-rows: auto clamp(88px, 13dvh, 150px) auto; }
 body.prediction-home #predictionView .upload-subjects { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: center; gap: 14px; margin: 0; }
 body.prediction-home #predictionView .upload-subjects legend { float: left; flex: 0 0 auto; margin: 0; padding: 0; font-size: 14px; }
 body.prediction-home #predictionView .upload-subject-list { flex: 1; min-width: 0; }
 body.prediction-home #predictionView .upload-subject { flex-direction: row; align-items: center; gap: 6px; }
 body.prediction-home #predictionView .upload-subject span { flex: 0 0 auto; }
 body.prediction-home #predictionView .upload-subject select { min-height: 32px; padding: 3px 6px; }
}
@media (max-width: 800px) {
 body.prediction-home #predictionView .upload-subjects { grid-column: 1; grid-row: 3; margin: 0; }
 body.prediction-home #predictionView .prediction-submit { grid-row: 4; }
 body.prediction-home #predictionView .home-workflow { grid-row: 5; }
 body.prediction-home #predictionView #predictionProgress { grid-row: 6; }
}
