  body { padding-top: 56px; background: #EDEFF7; }

  .fw-nav { position: fixed; top: 0; left: 0; right: 0; background: var(--pe-green); z-index: 40; }
  .navin { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
  .navin img.pe-mark { height: 20px; width: auto; display: block; }
  .pe-rule { width: 1px; height: 16px; background: rgba(255,255,255,.45); flex-shrink: 0; }
  .fw-word { color: #fff; font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: .2px; line-height: 1; white-space: nowrap; }
  .pe-burger { width: 40px; height: 40px; border: none; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
  .pe-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }

  /* PharmEasy hamburger menu (nav structure + links ported from Mosquito Watch) */
  .pe-topnav { display: none; position: fixed; top: 56px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: var(--pe-green-dark); padding: 8px; box-shadow: 0 12px 22px rgba(0,0,0,.24); z-index: 50; max-height: calc(100vh - 56px); overflow-y: auto; }
  .pe-topnav.open { display: flex; }
  .pe-nav-item { position: static; }
  .pe-nav-btn, .pe-nav-link { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 5px; background: none; border: 0; color: #fff; font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer; padding: 12px; border-radius: 8px; text-decoration: none; }
  .pe-nav-btn:hover, .pe-nav-link:hover, .pe-nav-item.open .pe-nav-btn { background: rgba(255,255,255,.12); }
  .pe-caret { font-size: 9px; transition: transform .15s; }
  .pe-nav-item.open .pe-caret { transform: rotate(180deg); }
  .pe-nav-drop { display: none; background: rgba(255,255,255,.06); border-radius: 8px; margin: 2px 0 4px; padding: 4px 4px 4px 10px; }
  .pe-nav-item.open .pe-nav-drop { display: block; }
  .pe-nav-drop a { display: block; padding: 11px 12px; color: #eafffb; font-size: 14px; font-weight: 500; text-decoration: none; border-radius: 7px; }
  .pe-nav-drop a:hover { background: rgba(255,255,255,.12); color: #fff; }

  .hero { background: linear-gradient(180deg, #0A534F 0%, #0A534F 6%, #246965 38%, #307471 51%, #559190 76%, #89B8B9 100%); color: #fff; padding: 24px 16px 38px; }
  .hero h1 { font-size: 24px; line-height: 1.28; font-weight: 700; margin: 0 0 8px; letter-spacing: -.2px; }
  .hero h1 em { font-style: normal; color: var(--pe-gold); }
  .hero p { font-size: 13px; line-height: 1.55; margin: 0; color: #d8efed; }
  .searchnote { font-size: 11.5px; color: var(--pe-muted-2); margin: 9px 4px 0; }

  .wrap { padding: 18px 16px 28px; }

  .card { background: #fff; border: 1px solid var(--pe-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; margin-bottom: 14px; }
  .sectiontitle { font-size: 16px; font-weight: 700; margin: 0; }
  .sectionsub { font-size: 12.5px; color: var(--pe-muted); margin: 4px 0 14px; }

  /* risk card */
  .rtop { display: flex; gap: 14px; align-items: center; }
  .rfoot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--pe-bg-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .rfoot .note { font-size: 10.5px; color: var(--pe-muted-2); line-height: 1.45; }
  .sharebtn { border: none; background: var(--pe-green); color: #fff; font-weight: 800; font-size: 13.5px; padding: 11px 16px; border-radius: 12px; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 6px 18px rgba(16,132,126,.28); }

  /* breakdown */
  .acc { border: 1px solid var(--pe-line); border-radius: var(--radius-sm); overflow: hidden; }
  .acc + .acc { margin-top: 8px; }
  .acchead { width: 100%; min-height: 71px; background: #fff; border: none; padding: 13px 14px; display: flex; align-items: center; gap: 11px; text-align: left; }
  .acchead .emoji { font-size: 17px; }
  .acchead .name { flex: 1; font-size: 14px; font-weight: 600; }
  .acchead .dot { width: 10px; height: 10px; border-radius: 50%; }
  .acchead .sc { font-size: 14px; font-weight: 700; min-width: 22px; text-align: right; }
  .acchead .chev { color: var(--pe-muted-2); font-size: 11px; transition: transform .2s; }
  .acc.open .acchead .chev { transform: rotate(180deg); }
  .accbody { padding: 6px 14px 16px; background: var(--pe-bg); display: none; }
  .acc.open .accbody { display: block; }
  /* let the open accordion overflow so a per-signal popover is not clipped; re-round head/body corners */
  .acc.open { overflow: visible; }
  .acc.open .acchead { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .acc.open .accbody { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
  .sig { margin: 13px 0; position: relative; }
  .sig .row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
  .sig .lbl { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--pe-ink); }
  .sig .v { font-size: 13.5px; font-weight: 800; color: var(--pe-ink); white-space: nowrap; }
  .sigbadge { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
  .sigbadge svg { width: 13px; height: 13px; display: block; }
  .sigbadge.up { background: var(--risk-high); }
  .sigbadge.down { background: var(--risk-low); }
  .sig .v i { font-style: normal; font-weight: 600; color: var(--pe-muted); }
  .sig .tag { font-size: 11.5px; color: var(--pe-muted); margin: 0 0 7px; }
  .track { height: 8px; background: #E7EDF5; border-radius: 5px; overflow: hidden; }
  .fill { height: 100%; border-radius: 5px; background: #BFC8D3; }
  .accnote { font-size: 11.5px; color: var(--pe-ink-2); line-height: 1.55; margin: 12px 0 0; padding-top: 11px; border-top: 1px dashed var(--pe-line); }

  /* actions */
  .actcard { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border: 1px solid var(--pe-line); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fff; }
  .actcard .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pe-green-100); flex-shrink: 0; }
  .actcard .ic svg { width: 24px; height: 24px; display: block; }
  .actcard .tx b { color: var(--pe-green); }
  .actcard .tx { flex: 1; }
  .actcard .tx b { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
  .actcard .tx span { font-size: 11.5px; color: var(--pe-muted); line-height: 1.4; }
  .actcard .go { color: var(--pe-muted-2); font-size: 20px; }
  .ctabig { display: block; box-sizing: border-box; text-align: center; text-decoration: none; width: 100%; border: none; color: #fff; font-weight: 700; font-size: 14.5px; padding: 14px; border-radius: var(--radius-sm); margin-top: 4px; cursor: pointer; }

  /* methodology (now shown in the #methodsheet bottom sheet, opened by the risk-card "Know more" link) */
  .methbody { display: none; margin-top: 14px; font-size: 12.5px; color: var(--pe-ink-2); line-height: 1.65; }
  .methbody.open { display: block; }
  .methbody h3 { font-size: 13px; margin: 16px 0 5px; color: var(--pe-ink); font-weight: 700; }
  .methbody h3:first-child { margin-top: 0; }
  .methbody code { background: var(--pe-bg-2); padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }
  .methbody ul { margin: 6px 0; padding-left: 18px; }
  .methbody li { margin: 4px 0; }
  .cite { font-size: 11.5px; margin: 6px 0; padding-left: 14px; text-indent: -14px; color: var(--pe-ink-2); }

  /* leaderboard */
  .chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
  .chip { border: 1px solid var(--pe-line); background: #fff; border-radius: var(--pill); padding: 7px 11px; font-size: 12px; font-weight: 600; color: var(--pe-ink-2); display: inline-flex; gap: 5px; align-items: center; }
  .chip.on { background: var(--pe-green); border-color: var(--pe-green); color: #fff; }
  .lbrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--pe-bg-2); font-size: 13.5px; }
  .lbrow .rk { width: 20px; color: var(--pe-muted-2); font-weight: 700; text-align: center; }
  .lbrow .nm { flex: 1; }
  .lbrow.you { font-weight: 700; }
  .lbrow.you .nm:after { content: " you"; color: var(--pe-green); font-size: 10px; font-weight: 700; }
  .lbbar { width: 62px; height: 8px; background: #e7edf5; border-radius: 5px; overflow: hidden; }
  .lbbar i { display: block; height: 100%; border-radius: 5px; }
  .lbrow .v { width: 26px; text-align: right; font-weight: 700; }
  /* Your-city row pinned at the bottom when it is off the current page (see leaderboardInner). */
  /* Full-bleed to the card edges (negative margin = card padding) so the highlight band has breathing
     room around the rank + score instead of cutting off flush against them; columns stay aligned. */
  .lbrow.lb-pinned { margin: 4px -18px 0; padding: 10px 18px; border-top: 2px solid var(--pe-green); background: #eef7f6; }
  .lbmore { font-size: 11.5px; color: var(--pe-muted); text-align: center; margin-top: 12px; }
  .lbpager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
  .pgbtn { border: 1px solid var(--pe-line); background: #fff; border-radius: var(--pill); padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: var(--pe-green); }
  .pgbtn:disabled { color: var(--pe-muted-2); opacity: .5; }
  .pginfo { font-size: 12px; color: var(--pe-muted); font-weight: 600; }

  .pfoot { padding: 8px 4px 24px; color: var(--pe-muted-2); font-size: 10.5px; line-height: 1.6; }
  .pfoot .disc { margin-bottom: 8px; }

  /* Further reading (PharmEasy blog interlinks, ported from Mosquito Watch) */
  .related-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .related-col h3 { margin: 0 0 8px; font-size: 14px; color: var(--pe-ink); padding-left: 9px; border-left: 3px solid var(--pe-green); font-weight: 700; }
  .related-col ul { list-style: none; margin: 0; padding: 0; }
  .related-col li { margin: 0 0 10px; }
  .related-col a { font-size: 13.5px; color: var(--pe-green-dark); text-decoration: none; font-weight: 500; }
  .related-col a:hover { text-decoration: underline; }

  /* sheets */
  .scrim { position: fixed; inset: 0; background: rgba(15,28,27,.5); z-index: 60; display: none; }
  .scrim.open { display: block; }
  /* visibility:hidden when closed so the closed sheet cannot paint at all; otherwise the first scroll
     (address-bar collapse resizes the viewport, recomputing translateY(100%)) flashes it briefly.
     visibility is toggled instantly (no transition); the open slide still animates via transform, and
     the scrim already vanishes instantly on close, so an instant sheet-hide on close is consistent. */
  .sheet { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 20px 20px 0 0; z-index: 70; transform: translateY(100%); visibility: hidden; transition: transform .25s ease; max-height: 90vh; display: flex; flex-direction: column; }
  .sheet.open { transform: translateY(0); visibility: visible; }
  .sheet.full { top: 0; bottom: 0; border-radius: 0; max-height: none; }
  .sheethead { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--pe-bg-2); }
  .sheethead h3 { margin: 0; font-size: 16px; font-weight: 700; }
  .sheethead .x { border: none; background: var(--pe-bg-2); width: 32px; height: 32px; border-radius: 50%; font-size: 15px; color: var(--pe-ink); }
  .sheetbody { overflow-y: auto; padding: 14px 16px 28px; }
  .citysearch { width: 100%; padding: 13px 14px; border: 1px solid var(--pe-line); border-radius: var(--radius-sm); font-size: 15px; margin-bottom: 6px; }
  .locrow { display: flex; align-items: center; gap: 10px; padding: 13px 4px; color: var(--pe-green); font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--pe-bg-2); }
  .cityopt { width: 100%; text-align: left; background: none; border: none; padding: 13px 4px; border-bottom: 1px solid var(--pe-bg-2); font-size: 15px; display: flex; align-items: center; justify-content: space-between; }
  .cityopt small { color: var(--pe-muted); font-size: 12px; }
  .cityopt .sb { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--pill); }

  /* share sheet (preview = the CI-baked share image) */
  .sharecard-img { display: block; max-width: 100%; width: auto; height: auto; max-height: 44vh; margin: 0 auto; border-radius: 18px; background: #0C3B37; }
  .sharetext { font-size: 12.5px; color: var(--pe-ink-2); line-height: 1.55; background: var(--pe-bg); border-radius: var(--radius-sm); padding: 13px; margin: 16px 0; }
  .sharebtns { display: flex; gap: 8px; margin-top: 14px; }
  .sharebtns button { flex: 1; border: none; color: #fff; padding: 13px; border-radius: 11px; font-weight: 700; font-size: 13px; }

  /* FAQ accordion styles are shared in tokens.css (.faq-list) */
  .faqsec { margin: 16px 0 8px; }
  .faqsec .sectiontitle { margin-bottom: 4px; }

  /* PharmEasy footer (baked server-side, shared across flows) */
  .footer { background: #EBEFF6; border-top: 1px solid var(--pe-line); margin-top: 8px; }
  .footin { padding: 26px 16px 8px; display: grid; grid-template-columns: 1fr; gap: 24px; }
  .footcol { min-width: 0; }
  .footsec + .footsec { margin-top: 18px; }
  .footin h2 { font-size: 14.5px; font-weight: 800; color: var(--pe-ink); margin: 0 0 10px; }
  .footin a { display: block; font-size: 13px; color: var(--pe-ink-2); margin: 8px 0; text-decoration: none; }
  .footfollow .footsocial { display: flex; align-items: center; gap: 18px; margin-top: 2px; }
  .footfollow .footsocial a { color: var(--pe-ink); display: inline-flex; }
  .footbar { border-top: 1px solid var(--pe-line); }
  .footbarin { padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: var(--pe-muted-2); }

  /* baked SEO fallback (crawler / no-JS; replaced on hydration) */
  .fw-fallback { padding: 18px 16px 28px; }
  .fw-fallback h1 { font-size: 22px; font-weight: 700; line-height: 1.26; margin: 6px 0 10px; }
  .fw-fallback h2 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; }
  .fw-fallback p { font-size: 13.5px; color: var(--pe-ink-2); line-height: 1.6; margin: 8px 0; }
  .fw-fallback ul { padding-left: 18px; margin: 8px 0; }
  .fw-fallback li { font-size: 13.5px; color: var(--pe-ink-2); margin: 6px 0; line-height: 1.55; }
  .fw-fallback details { margin: 6px 0; border-top: 1px solid var(--pe-bg-2); padding-top: 6px; }
  .fw-fallback summary { font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px 0; }

  /* leaderboard city link (SEO interlink + tap target) */
  .lbcity { color: inherit; text-decoration: none; }
  .lbcity:hover { color: var(--pe-green); text-decoration: underline; }

  /* live ticker under the header (clickable cities; same component as desktop) */
  .fw-ticker { background: #10847e0f; border-bottom: 1px solid var(--pe-line); }
  .fw-ticker-in { display: flex; align-items: center; gap: 10px; padding: 7px 14px; }
  .fw-ticker-label { font-size: 10.5px; font-weight: 800; color: var(--pe-green-dark); text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; }
  .fw-ticker-label .livedot { width: 7px; height: 7px; border-radius: 50%; background: var(--pe-green-bright); box-shadow: 0 0 0 3px rgba(21,172,165,.18); animation: fwLive 1.6s ease-in-out infinite; }
  .fw-ticker-vp { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
  .fw-ticker-track { display: inline-flex; animation: fwMarquee 38s linear infinite; will-change: transform; }
  .fw-tick { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--pe-ink-2); white-space: nowrap; padding-right: 20px; text-decoration: none; }
  .fw-tick .tdot { width: 7px; height: 7px; border-radius: 50%; }
  .fw-tick b { font-weight: 800; }
  .fw-tick .tpill { font-size: 9.5px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
  .fw-ticker:hover .fw-ticker-track, .fw-ticker.held .fw-ticker-track { animation-play-state: paused; }

  /* floating awareness + share CTA bar (single balanced row; ticker now under the header) */
  body.fw-hydrated { padding-bottom: 92px; }
  .fw-foot { position: fixed; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); background: var(--pe-green); border: none; border-radius: 16px; box-shadow: 0 12px 30px rgba(10,83,79,.34); z-index: 45; }
  .fw-foot-cta { padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
  .fw-foot-text { flex: 1; line-height: 1.3; min-width: 0; }
  .fw-foot-title { font-size: 13.5px; font-weight: 800; color: #fff; }
  .fw-foot-sub { font-size: 11px; color: rgba(255,255,255,.82); margin-top: 2px; }
  /* Share button for the floating bar ONLY. A standalone class (NOT .sharebtn) so it is fully isolated -
     other Share buttons on the page neither affect it nor inherit from it. Keeps the current button design
     + 12px radius; flipped to white-on-green for contrast against the Porcelain Green bar. */
  .fw-foot-share { border: none; background: #fff; color: var(--pe-green); font-weight: 800; font-size: 13.5px; padding: 11px 16px; border-radius: 12px; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.16); }
  @keyframes fwMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @keyframes fwLive { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .fw-ticker-track { animation: none; } }

  /* --- redesign: single location card (full width; red map-pin; Change with caret) --- */
  /* width:calc forces the <button> to fill the row minus the 16px insets (a bare button shrinks to content). */
  .loccard { width: calc(100% - 32px); box-sizing: border-box; display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--pe-line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; margin: -20px 16px 0; text-align: left; cursor: pointer; }
  .locpin { width: 19px; height: 19px; flex-shrink: 0; display: block; }
  .locname { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; color: var(--pe-ink); line-height: 1.2; }
  .locchange { font-size: 14px; color: var(--pe-green); font-weight: 700; flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; }
  .loccaret { font-size: 10px; line-height: 1; }
  .loc-note { margin-top: 10px; text-align: center; }
  .reviewline { text-align: center; font-size: 11.5px; color: var(--pe-muted); margin: 6px 16px 0; line-height: 1.5; }
  .reviewline .revico { color: var(--pe-green); vertical-align: -2px; margin-right: 1px; }
  .reviewline a { color: var(--pe-green); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

  /* --- redesign: period tabs + per-disease dial + legend + band chip --- */
  .ftabs { display: flex; gap: 22px; border-bottom: 1px solid var(--pe-bg-2); margin: 0 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ftabs::-webkit-scrollbar { display: none; }
  .ftab { border: none; background: none; padding: 0 0 11px; font-size: 14.5px; font-weight: 600; color: var(--pe-muted); cursor: pointer; white-space: nowrap; position: relative; flex-shrink: 0; }
  .ftab.on { color: var(--pe-ink); font-weight: 700; }
  .ftab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; background: var(--pe-ink); border-radius: 2px; }

  .ringwrap { position: relative; flex-shrink: 0; }
  .ringwrap .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .ringwrap .numtop { display: flex; align-items: baseline; gap: 2px; }
  .ringwrap .num b { font-size: 27px; font-weight: 800; line-height: 1; letter-spacing: -.5px; color: var(--pe-ink); }
  .ringwrap .num span { font-size: 11px; color: var(--pe-muted-2); }
  .ringwrap .num em { font-size: 8px; font-style: normal; color: var(--pe-muted-2); line-height: 1.15; max-width: 60px; text-align: center; margin-top: 3px; }
  .leg { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .legrow { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
  .legdot { width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; }
  .legname { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; color: var(--pe-ink); }
  .legname b { font-weight: 800; font-size: 15.5px; }
  .legmax { font-size: 11px; font-weight: 600; color: var(--pe-muted-2); margin-left: 1px; }
  .legtrend { font-size: 10.5px; font-weight: 800; flex-shrink: 0; }
  .legtrend.up { color: var(--risk-high); }
  .legtrend.down { color: var(--risk-low); }
  .bandchip { display: block; font-size: 13.5px; font-weight: 700; padding: 11px 14px; border-radius: 12px; margin-top: 16px; line-height: 1.3; color: var(--pe-ink); border: 1.5px solid; }
  .knowmore { font: inherit; border: none; background: none; padding: 0; color: var(--pe-green); font-weight: 700; cursor: pointer; text-decoration: underline; }
  /* per-signal ⓘ in "Why this score?": ⓘ adopts the small info-button look */
  .sig .dialinfo-btn { width: 14px; height: 14px; font-size: 9.5px; vertical-align: baseline; }

  /* dial: plain-language meaning line + "how this one number is set" tooltip */
  .dialmean { margin: 14px 0 0; font-size: 13px; color: var(--pe-ink-2); line-height: 1.5; }
  .bandchip { position: relative; }   /* anchors .dialtip to the full chip width so it never overflows the screen */
  .dialinfo { display: inline-flex; vertical-align: middle; }
  .dialinfo-btn { width: 16px; height: 16px; padding: 0; border-radius: 50%; border: 1.4px solid currentColor; background: none; color: inherit; font: italic 700 11px/1 Georgia, "Times New Roman", serif; cursor: pointer; opacity: .7; display: inline-flex; align-items: center; justify-content: center; }
  .dialinfo-btn:hover, .dialinfo-btn:focus { opacity: 1; }
  .dialtip { position: fixed; left: 0; top: 0; width: min(320px, calc(100vw - 16px)); max-width: 320px; background: #1f2937; color: #fff; font-size: 11.5px; font-weight: 500; line-height: 1.45; text-align: left; white-space: normal; padding: 11px 13px; border-radius: 10px; box-shadow: 0 10px 26px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .16s, transform .16s; z-index: 90; pointer-events: none; }
  .dialinfo.open .dialtip { opacity: 1; visibility: visible; transform: translateY(0); }
  .dialtip .tiprow { display: block; }
  .dialtip b { font-weight: 800; color: #fff; }
  .tipbands { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.16); }
  .tb { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: #e5e7eb; }
  .tb i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
  .tipcaret { position: absolute; top: 100%; left: 50%; width: 0; height: 0; border: 7px solid transparent; border-top-color: #1f2937; transform: translateX(-50%); pointer-events: none; }
  .dialtip.below .tipcaret { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #1f2937; }

  /* --- redesign: weather conditions cards (icon + "Label . value" + a short line); 3 cards = 2 + 1 full-width --- */
  .wxgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
  .wxcard { border: 1px solid var(--pe-line); border-radius: 14px; padding: 14px; background: #fff; }
  .wxtop { display: flex; align-items: center; gap: 9px; }
  .wxic { width: 20px; height: 20px; color: var(--pe-muted); flex-shrink: 0; display: block; }
  .wxhead { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; font-size: 12.5px; font-weight: 600; color: var(--pe-muted); }
  .wxhead b { font-weight: 800; font-size: 17px; line-height: 1.15; color: var(--pe-ink); }
  .wxsep { display: none; }
  .wxsub { font-size: 12px; color: var(--pe-muted); line-height: 1.45; margin-top: 10px; }
  /* 3 cards: Temperature + Rainfall stacked tiles on top; Humidity full-width HORIZONTAL below (icon+value left, line right) */
  .wxgrid .wxcard:nth-child(3) { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
  .wxgrid .wxcard:nth-child(3) .wxtop { flex-shrink: 0; }
  .wxgrid .wxcard:nth-child(3) .wxsub { margin-top: 0; flex: 1; }

  /* Precaution card titles in brand teal (Figma "What you can do") */
  .actcard .tx b { color: var(--pe-green-dark); }

  /* server-rendered above-fold: show the mobile designed card, hide the desktop shell pre */
  .fw-pre-d { display: none; }
