/* Small helpers that replace inline style="" attributes, so the Content-Security-Policy can forbid inline styles.
   Scoped to #refx like the main stylesheet. */
#refx .u-tinted { background: #fbf8fd; }
#refx .u-mt-13 { margin-top: 13px; }
#refx .u-mt-16 { margin-top: 16px; }
#refx .u-mt-17 { margin-top: 17px; }
#refx .h3-gap { margin-bottom: 13px; }
#refx .splash-eyebrow { color: #ecd5ff; }
#refx .mock-arrow { color: #8643bf; font-size: 23px; }
#refx .evidence-title { font-size: 10px; }

/* Statistic card colours */
#refx .tone-ok strong { color: #1c8766; }
#refx .tone-warn strong { color: #b27e1d; }
#refx .tone-bad strong { color: #bd5861; }

/* Four statistic cards in the results view */
#refx .stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 4px; }
@media (max-width: 900px) { #refx .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { #refx .stats.four { grid-template-columns: 1fr; } }

/* Results: give the table the width, let long ids wrap instead of forcing a horizontal scroll */
#refx .results { grid-template-columns: minmax(0, 2.2fr) minmax(250px, 1fr); }
#refx .results td:nth-child(-n+2) { white-space: normal; overflow-wrap: anywhere; max-width: 180px; }
@media (max-width: 900px) { #refx .results { grid-template-columns: 1fr; } }

/* Disclosure panel used for "how the tool read your values" */
#refx details.panel > summary::after { content: "Show"; font-size: 10px; color: #a294ab; margin-left: auto; }
#refx details.panel[open] > summary::after { content: "Hide"; }
#refx details.panel > summary { cursor: pointer; list-style: none; }
#refx details.panel > summary::-webkit-details-marker { display: none; }
#refx .rangebox input[type=checkbox] { margin: 8px 0 4px; }
#refx .field label { font-weight: 650; }
#refx .field input[type=text], #refx .field select { max-width: 100%; }

/* Used by the copy-to-clipboard fallback (an off-screen text box). Not scoped: it is added to the page body. */
.clip-offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
/* The layout report box */
#refx .report-box { width: 100%; min-height: 220px; font: 11px/1.45 ui-monospace, Consolas, monospace; padding: 10px; border: 1px solid #ebe4ef; border-radius: 8px; background: #fbf8fd; color: #30213d; }
#refx .modes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#refx .groupfield { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
#refx .groupside { min-width: 0; }
#refx .gap-top { margin-top: 12px; }
#refx .field input[type=number] { width: 120px; border: 1px solid #e5dce9; padding: 9px 10px; border-radius: 7px; font-size: 11px; }
#refx .matchcell { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
#refx .newrow td { background: #fbf8fd; }
#refx .newrow .hint { font-style: italic; }
#refx .previews { align-items: start; } #refx .previews .panel { min-width: 0; }
#refx .fieldcell { display: grid; gap: 6px; min-width: 190px; } #refx .fieldcell select { width: 100%; }
#refx .structure, #refx .structure ul { list-style: none; margin: 0; padding: 0; }
#refx .structure ul { margin-left: 18px; padding-left: 12px; border-left: 2px solid #e6d8f0; }
#refx .structure li { margin: 6px 0; font-size: 11px; color: #46384e; }
#refx .st-leaf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#refx .st-name { font-family: ui-monospace, Consolas, monospace; font-weight: 650; }
#refx .st-branch { color: #7436b8; }
#refx .st-branch::before { content: '▾ '; color: #a778c6; }
#refx .st-arr { color: #ae52bb; font-weight: 500; }
#refx .st-attr { color: #a2731d; }
#refx .st-kind { font-size: 9px; font-weight: 780; padding: 3px 7px; border-radius: 5px; }
#refx .st-number { background: #e5f7ec; color: #14835c; }
#refx .st-date { background: #e8f0ff; color: #2c5cb0; }
#refx .st-id { background: #f3eafa; color: #7a4a98; }
#refx .st-sample { color: #94869c; font-size: 10px; }
#refx .st-legend { margin-top: 12px; }
#refx .rawview { font-size: 11px; line-height: 1.7; max-height: 330px; }
#refx .tok-head { background: #4a2f66; color: #fff; padding: 1px 4px; border-radius: 3px; }
#refx .tok-key { color: #f3a6e6; font-weight: 700; }
#refx .tok-attr { color: #ffd479; }
#refx .tok-str { color: #9fe0b8; }
#refx .tok-num { color: #8fc7ff; }
#refx .tok-lit { color: #ffb38a; }
#refx .tok-punc { color: #a99bb5; }
#refx .st-headcell { background: #efe1fa; color: #5b2d86; }
#refx .structure-view { align-items: start; }
#refx .structure-view .panel { min-width: 0; }
#refx .st-map { gap: 10px; }
#refx .st-map input[type=text] { width: 190px; border: 1px solid #e5dce9; padding: 6px 8px; border-radius: 7px; font-size: 11px; }
#refx .st-to { color: #a778c6; }
#refx .st-off { opacity: .5; }
#refx .st-branchlabel { display: flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; font-size: 11px; }
#refx .scrolly { max-height: 460px; overflow: auto; }
#refx .scrolly thead th { position: sticky; top: 0; z-index: 1; }
#refx .rownum { color: #a799b0; text-align: right; width: 1%; font-variant-numeric: tabular-nums; }
#refx .fmtlabel { display: block; font-size: 9px; color: #94869c; margin: 0 0 3px 2px; text-transform: uppercase; letter-spacing: .5px; }
#refx .teachwrap { border: 1px solid #e6d8f0; border-radius: 10px; background: #f4eef9; padding: 10px; margin: 10px 0; max-height: 640px; overflow: auto; }
#refx .teachpage { width: 100%; height: auto; display: block; background: #fff; cursor: crosshair; border-radius: 6px; max-width: 900px; margin: 0 auto; }
#refx .teachpage .pagebg { fill: #fff; }
#refx .teachpage .pagetext { fill: #3b2d49; pointer-events: none; font-family: Arial, Helvetica, sans-serif; }
#refx .teachpage .band { pointer-events: none; opacity: .28; }
#refx .teachpage .bandlabel { font-size: 9px; font-weight: 800; fill: #4a2f66; pointer-events: none; }
#refx .band-date { fill: #3b82f6; } #refx .band-description { fill: #8b5cf6; } #refx .band-out { fill: #ef4444; }
#refx .band-in { fill: #22c55e; } #refx .band-amount { fill: #f59e0b; } #refx .band-balance { fill: #14b8a6; }
#refx .teachsteps { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 12px 0; }
#refx .teachsteps li { font-size: 11px; padding: 6px 10px; border-radius: 999px; background: #f3eafa; color: #7a4a98; }
#refx .teachsteps li.done { background: #e5f7ec; color: #14835c; }
#refx .teachsteps li.now { background: #7436b8; color: #fff; font-weight: 700; }
#refx .savedlayouts { list-style: none; margin: 0 0 8px; padding: 0; }
#refx .savedlayouts li { display: flex; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid #f2ecf4; font-size: 11px; }
#refx .feedbackpage { padding: 0; background: #fbf9fd; }
#refx .feedbackpage .workbody { max-width: 900px; padding: 30px 24px 40px; }
#refx .feedback-box { width: 100%; border: 1px solid #e5dce9; border-radius: 8px; padding: 10px; font: inherit; font-size: 12px; resize: vertical; }
#refx .linkbtn { background: none; border: 0; padding: 0; color: #7436b8; font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }
#refx .feedbackfab { position: fixed; right: 18px; bottom: 18px; z-index: 20; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 0; color: #fff; background: linear-gradient(120deg, #7037c0, #b83fae); box-shadow: 0 6px 18px #4a2f6640; cursor: pointer; text-decoration: none; }
#refx .sitefoot.compact { padding: 20px 6%; }
#refx .sitefoot.compact .footrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
#refx .sitefoot.compact .footlinks { flex-direction: row; flex-wrap: wrap; gap: 18px; }
#refx .sitefoot.compact .disclaimer { margin-top: 14px; padding-top: 12px; }
#refx section.legal { max-width: 820px; }
#refx section.legal h3 { margin: 18px 0 6px; }
#refx section.legal p { margin: 6px 0; font-size: 12px; }
#refx .hero.solo { grid-template-columns: 1fr; text-align: center; justify-items: center; }
#refx .hero.solo p { max-width: 640px; margin-left: auto; margin-right: auto; }
#refx .hero.solo .actions { justify-content: center; }
#refx .hero.solo .trust { justify-content: center; }

/* ---------- the connection board: fields and lines on the left, the selected connection's settings on the right ---------- */
#refx .stephead { margin: 18px 0 4px; font-size: 13px; }
#refx .drops.compact .drop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; text-align: left; padding: 10px 14px; min-height: 0; }
#refx .drops.compact .dropicon { grid-row: 1 / 3; margin: 0; }
#refx .drops.compact .drop strong, #refx .drops.compact .drop small { margin: 0; grid-column: 2; overflow-wrap: anywhere; }
#refx .drops.compact .drop .btn { grid-column: 3; grid-row: 1 / 3; margin: 0; }
#refx .mapping { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
#refx .mapmain { min-width: 0; }
@media (min-width: 1180px) {
  #refx .mapping { grid-template-columns: minmax(0, 1fr) 350px; }
  #refx .mapside { position: sticky; top: 10px; max-height: calc(100vh - 20px); overflow: auto; }
}
#refx .boardtools { display: flex; gap: 6px; flex-wrap: wrap; }
#refx .fileline { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
#refx .fileline b { min-width: 0; }
#refx .fileline .btn { padding: 3px 9px; font-size: 10px; flex: none; }
#refx .setupbar { display: flex; gap: 10px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 11px 16px; }
#refx .setuptext { min-width: 0; } #refx .setuptext strong { font-size: 12px; display: block; overflow-wrap: anywhere; } #refx .setuptext small { color: #84758b; font-size: 11px; }
#refx .setuprow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
#refx .setupform { border-top: 1px solid #f1eaf5; padding: 13px 16px; display: grid; gap: 10px; }
#refx .setupform label.top { font-size: 11px; font-weight: 800; }
#refx .setupform input[type=text] { border: 1px solid #e0d3ea; border-radius: 7px; padding: 8px 10px; font-size: 12px; min-width: 0; flex: 1 1 220px; }
#refx .setupform .how { overflow-wrap: anywhere; }
#refx .setuplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
#refx .setuplist li { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; border-bottom: 1px solid #f4eef7; padding-bottom: 9px; }
#refx .setupname { flex: 1 1 260px; min-width: 0; display: grid; gap: 3px; } #refx .setupname small { color: #84758b; font-size: 11px; }
#refx .boardhead, #refx .boardgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 150px) minmax(0, 1fr); }
#refx .filehead { background: #f3eafa; border-radius: 10px; padding: 8px 12px; margin: 8px 0 4px; min-width: 0; }
#refx .filehead b { display: block; font-size: 12px; overflow-wrap: anywhere; }
#refx .filehead small { color: #84758b; font-size: 10px; }
#refx .filehead input { width: 100%; margin-top: 6px; padding: 6px 9px; border: 1px solid #e0d3ea; border-radius: 7px; font-size: 11px; background: #fff; }
#refx .head-b { grid-column: 3; }
#refx .boardgrid { max-height: 620px; overflow: auto; align-items: start; }
#refx .fieldcol { display: flex; flex-direction: column; min-width: 0; }
#refx .fieldcard { flex: none; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 9px; align-content: center; width: 100%; height: 48px; margin: 4px 0; padding: 0 10px; border: 1px solid #e5dce9; border-radius: 9px; background: #fff; text-align: left; cursor: pointer; position: relative; overflow: hidden; }
#refx .side-a .fieldcard { padding-right: 22px; } #refx .side-b .fieldcard { padding-left: 22px; grid-template-columns: 30px minmax(0, 1fr); }
#refx .ficon { grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: #f3eafa; color: #7436b8; font-weight: 800; font-size: 12px; }
#refx .fieldcard b { font-size: 12px; color: #30213d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
#refx .fieldcard small { font-size: 10px; color: #94869c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
#refx .fieldcard::after { content: ''; position: absolute; top: 18px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #c3a9d6; background: #fff; }
#refx .side-a .fieldcard::after { right: 5px; } #refx .side-b .fieldcard::after { left: 5px; }
#refx .fieldcard.joined { border-color: #c9a7e6; } #refx .fieldcard.joined::after { background: #7436b8; border-color: #7436b8; }
#refx .fieldcard.selected { border: 2px solid #7436b8; background: #f4ebfc; }
#refx .fieldcard.picked { outline: 3px solid #b83fae; outline-offset: -3px; background: #fdf0fb; }
#refx .linecol { position: relative; }
#refx .connlines, #refx .connbadges { display: block; overflow: visible; }
#refx .connbadges { position: absolute; left: 0; top: 0; pointer-events: none; }
#refx .conn { cursor: pointer; }
#refx .conn path { fill: none; }
#refx .conn .hit { stroke: transparent; stroke-width: 14; }
#refx .conn .line { stroke: #a99ab5; stroke-width: 2; }
#refx .conn.link .line { stroke: #0f8a74; stroke-width: 2.5; }
#refx .conn.suggested .line { stroke-dasharray: 6 5; }
#refx .conn.optional .line { stroke-dasharray: 2 4; }
#refx .conn.off .line { opacity: .25; }
#refx .conn.selected .line { stroke: #7436b8; stroke-width: 4; }
#refx .conn.link.selected .line { stroke: #0f8a74; }
#refx .cbadge { pointer-events: auto; cursor: pointer; }
#refx .cbadge rect { fill: #fff; stroke: #a99ab5; stroke-width: 1.2; }
#refx .cbadge text { font-size: 10px; font-weight: 800; fill: #4a3a5a; text-anchor: middle; dominant-baseline: central; }
#refx .cbadge.link rect { fill: #e3f5f0; stroke: #0f8a74; } #refx .cbadge.link text { fill: #0f6f5e; }
#refx .cbadge.selected rect { fill: #7436b8; stroke: #7436b8; } #refx .cbadge.selected text { fill: #fff; }
#refx .cbadge.link.selected rect { fill: #0f8a74; stroke: #0f8a74; }
#refx .connlist { list-style: none; margin: 0; padding: 0; }
#refx .connlist li { display: flex; gap: 8px; align-items: center; border-bottom: 1px solid #f1eaf5; padding: 3px 6px; }
#refx .connlist li.selected { background: #f4ebfc; border-radius: 8px; }
#refx .connpick { flex: 1; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: none; border: 0; text-align: left; padding: 6px 0; cursor: pointer; min-width: 0; }
#refx .connpick small { color: #84758b; font-size: 10px; }
#refx .conntext { font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
#refx .connkind { white-space: nowrap; flex: none; justify-self: start; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 3px 8px; border-radius: 99px; background: #e6f6ec; color: #17784f; }
#refx .connkind.link { background: #e3f5f0; color: #0f6f5e; border: 1px solid #0f8a74; }
#refx .connkind.optional { background: #f3eafa; color: #7436b8; }
#refx .logicfoot { display: flex; gap: 8px 14px; flex-wrap: wrap; margin-top: 10px; font-size: 11px; color: #6f6079; }
#refx .conneditor .panelbody { display: grid; gap: 13px; }
#refx .conneditor.empty { padding: 16px; font-size: 12px; color: #6f6079; }
#refx .relchip { display: flex; gap: 8px; justify-content: space-between; align-items: center; background: #f4ebfc; border-radius: 9px; padding: 9px 11px; font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
#refx .conneditor label.top, #refx .conneditor h4 { display: block; margin: 0 0 4px; font-size: 11px; font-weight: 800; overflow-wrap: anywhere; }
#refx .conneditor select { width: 100%; min-width: 0; }
#refx .tolrow { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
#refx .tolrow input[type=number] { width: 110px; }
#refx .switch { display: flex; gap: 8px; align-items: center; font-size: 11px; font-weight: 700; cursor: pointer; margin: 0; padding-bottom: 6px; }
#refx .switch input { appearance: none; width: 34px; height: 19px; border-radius: 99px; background: #d5c9de; position: relative; cursor: pointer; margin: 0; flex: none; }
#refx .switch input::after { content: ''; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: left .15s; }
#refx .switch input:checked { background: #7436b8; } #refx .switch input:checked::after { left: 17px; }
#refx .section-title { border-top: 1px solid #f1eaf5; padding-top: 11px; font-size: 9px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: #8b6fa3; }
#refx .sideedit { min-width: 0; display: grid; gap: 7px; align-content: start; }
#refx .calcrow { display: flex; gap: 6px; align-items: center; }
#refx .calcrow select.opsel, #refx .calcrow .opsel { width: 62px; flex: none; }
#refx .calcrow input[type=number] { width: 100%; min-width: 0; }
#refx .calcop { width: 24px; text-align: center; font-weight: 800; }
#refx .calcadd { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
#refx .calcadd select { flex: 1 1 150px; width: auto; }
#refx .conneditor input[type=number] { border: 1px solid #e5dce9; padding: 8px; border-radius: 7px; font-size: 11px; }
#refx label.inline { display: flex; gap: 6px; align-items: center; font-weight: 600; margin: 0; font-size: 11px; }
#refx label.inline input[type=number] { width: 60px; }
#refx .fmtlabel { display: block; font-size: 9px; color: #94869c; margin: 0 0 -3px 2px; text-transform: uppercase; letter-spacing: .5px; }
#refx .calcexample { background: #241831; color: #f4dffb; border-radius: 8px; padding: 8px 10px; display: grid; gap: 3px; font-size: 11px; }
#refx .calcexample span { font-size: 9px; text-transform: uppercase; letter-spacing: .5px; color: #c9b5d6; }
#refx .calcexample code { overflow-wrap: anywhere; }
#refx .comparerow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#refx .preview { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11px; }
#refx .preview th, #refx .preview td { border: 1px solid #ece3f2; padding: 5px 7px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#refx .preview th:last-child, #refx .preview td:last-child { width: 62px; }
#refx .yes { color: #17784f; font-weight: 800; } #refx .no { color: #b0561a; font-weight: 800; }
#refx .verdict { margin: 0; font-size: 12px; }
#refx .comparerow:empty { display: none; }
#refx .comparerow small { display: block; margin-top: 3px; }
#refx .how { background: #f8f3fc; border-radius: 9px; padding: 9px 11px; font-size: 11px; color: #5d4a6d; }
@media (max-width: 650px) {
  #refx .boardhead, #refx .boardgrid { grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr); }
  #refx .fieldcard { grid-template-columns: minmax(0, 1fr); } #refx .side-b .fieldcard { grid-template-columns: minmax(0, 1fr); }
  #refx .ficon { display: none; }
  #refx .connpick { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  #refx .drops.compact { grid-template-columns: 1fr; }
}

/* Homepage: local-processing illustration alongside the product message. */
#refx .hero.hero-split{grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);gap:clamp(28px,4vw,64px);align-items:center;padding:60px 6% 66px}
#refx .hero-copy{min-width:0}
#refx .hero-copy h1{font-size:clamp(36px,4.5vw,60px);line-height:1.1}
#refx .hero-copy > p{max-width:570px}
#refx .hero-copy .eyebrow{letter-spacing:1.3px}
#refx .privacy-art{width:100%;min-width:0;padding:20px 21px 23px;border:1px solid #e2d0f2;border-radius:22px;background:linear-gradient(145deg,#fff,#faf5ff 65%,#f3e9fb);box-shadow:0 26px 60px #743fa31b}
#refx .privacy-art-top{display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:.8px;color:#7c6493;font-weight:850}
#refx .privacy-art-dot{display:inline-block;flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:#2dab79;box-shadow:0 0 0 4px #ddf7e9}
#refx .privacy-art-status{margin-left:auto;background:#e8f8ef;border-radius:99px;color:#17784f;font-size:8px;letter-spacing:.35px;padding:5px 8px;white-space:nowrap}
#refx .privacy-art-svg{display:block;width:100%;height:auto;margin:13px auto 2px}
#refx .privacy-art-copy{text-align:center;margin:0 auto 15px}
#refx .privacy-art-copy h2{font-size:clamp(20px,2.5vw,27px);letter-spacing:-.7px;color:#382346}
#refx .privacy-art-copy p{font-size:12px;color:#80718b;margin-top:4px}
#refx .privacy-art-pills{display:flex;justify-content:center;flex-wrap:wrap;gap:7px}
#refx .privacy-art-pills span{display:inline-flex;align-items:center;border:1px solid #cde7d7;border-radius:99px;background:#f0faf5;color:#237452;padding:6px 9px;font-size:10px;font-weight:750}
#refx .price-layout.price-usage-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#refx .price-usage-grid .price-card{padding:22px 18px}
#refx .price-usage-grid .price-card h3{font-size:21px}
#refx .price-usage-grid .price-card > p{min-height:0}
#refx .price-usage-grid .price-card .price-volume{border-radius:8px;padding:10px 11px;background:#f3e9fb;color:#692d95;font-size:12px;font-weight:850;line-height:1.3}
#refx .price-usage-grid .price-card ul{line-height:1.75}
#refx .price-custom{font-size:28px}
@media(max-width:1000px){
  #refx .hero.hero-split{grid-template-columns:minmax(0,1fr) minmax(300px,1fr);gap:25px;padding:48px 5%}
  #refx .hero-copy h1{font-size:clamp(33px,4vw,46px)}
  #refx .price-layout.price-usage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  #refx .hero.hero-split{grid-template-columns:minmax(0,1fr);padding:39px 5%;gap:29px}
  #refx .hero-copy h1{font-size:clamp(35px,9vw,47px)}
  #refx .privacy-art{max-width:510px;margin:0 auto}
  #refx .price-layout.price-usage-grid{grid-template-columns:1fr}
  #refx .price-usage-grid .price-card{padding:23px 21px}
}


/* Header: the message, and the local-processing illustration close beside it. */
#refx .hero.hero-home{display:grid;grid-template-columns:minmax(0,620px) minmax(380px,1fr);align-items:center;gap:40px;min-height:0;padding:30px 5% 26px;background:radial-gradient(ellipse at 86% 15%,#f2defe,transparent 55%),linear-gradient(120deg,#fff,#fbf5ff)}
#refx .hero.hero-home .hero-copy{min-width:0}
/* The drawing grows and shrinks with the screen, keeping its shape: by the panel on narrow screens, by the height of the window on large ones. */
#refx .hero-home .privacy-art-svg{width:min(100%,max(340px,48vh));max-width:none}
#refx .hero-home .privacy-art-copy h2{font-size:clamp(19px,2.4vh,30px)}
#refx .hero.hero-home .privacy-art-copy p{font-size:clamp(12px,1.35vh,16px)}
#refx .hero.hero-home .privacy-art-copy p{margin-left:auto;margin-right:auto}
#refx .hero.hero-home h1{font-size:clamp(34px,4.1vw,52px);line-height:1.08;margin:11px 0 12px}
#refx .hero.hero-home p{max-width:780px;font-size:13px;line-height:1.55}
#refx .hero.hero-home .actions{margin-top:17px}
#refx section.section.home-tools{padding:20px 5% 30px}
#refx .home-tools h2{font-size:23px;margin:5px 0 13px}
#refx .home-tools .twocards{gap:12px}
#refx .home-tools .product{padding:15px 18px;gap:8px}
#refx .home-product-heading{display:flex;align-items:center;gap:11px}
#refx .home-tools .producticon{width:35px;height:35px;border-radius:9px;font-size:20px;flex-shrink:0}
#refx .home-tools .product h3{font-size:18px;letter-spacing:-.3px}
#refx .home-tools .product p{min-height:0;font-size:11px;line-height:1.55}
#refx .home-tools .tagrow{margin-bottom:0}
#refx .home-tools .tag{padding:3px 7px}
#refx .home-tools .product .btn{padding:9px 12px;margin-top:3px}
#refx .workspace-privacy.workspace-offline{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 18px;padding:10px 14px;margin-bottom:16px}
#refx .workspace-offline-main{display:flex;flex-direction:column;gap:2px;min-width:220px;flex:1 1 300px}
#refx .workspace-offline-main strong{color:#205d40;font-size:11px}
#refx .workspace-offline-main span{font-size:11px;color:#426c59}
#refx .workspace-offline-details{max-width:100%;flex-shrink:0}
#refx .workspace-offline-details summary{cursor:pointer;color:#276448;font-weight:750;font-size:11px;text-decoration:underline;text-underline-offset:2px}
#refx .workspace-offline-details summary:focus-visible{outline:3px solid #80c6a5;outline-offset:3px;border-radius:3px}
#refx .workspace-offline-details[open]{flex-basis:100%;padding-top:7px}
#refx .workspace-offline-details p{font-size:11px;max-width:820px;color:#426c59;line-height:1.65}
@media(max-width:900px){
  #refx .hero.hero-home{grid-template-columns:minmax(0,1fr);gap:22px}
  #refx .hero-home .privacy-art{max-width:510px;margin:0 auto}
}
@media(max-width:650px){
  #refx .hero.hero-home{padding:30px 5% 23px}
  #refx .hero.hero-home h1{font-size:clamp(34px,9vw,43px)}
  #refx section.section.home-tools{padding:20px 5% 26px}
  #refx .home-tools .product{padding:14px 16px}
}

/* ---------- results on narrow screens: each case is a card, with the decision right under it ---------- */
#refx .results .rowdetail { display: none; }
@media (max-width: 900px) {
  #refx .results .rowdetail { display: table-row; }
  #refx .results .rowdetail td { background: #f7f0fd; white-space: normal; line-height: 1.5; max-width: none; }
  #refx .results .rowdetail small { display: block; color: #84758b; margin-top: 3px; }
  #refx .results .rowdetail .bar { margin: 10px 0 0; justify-content: flex-start; gap: 8px; }
  #refx .results .rowdetail .btn { min-height: 40px; }
}
@media (max-width: 650px) {
  #refx .results table, #refx .results tbody { display: block; width: 100%; }
  #refx .results thead { display: none; }
  #refx .results tr.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "status status" "a b" "amta amtb"; border-bottom: 1px solid #efe8f3; padding: 6px 0; }
  #refx .results tr.case td { display: block; border: 0; padding: 4px 12px; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
  #refx .results tr.case td::before { display: block; font-size: 9px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #94869c; }
  #refx .results .c-a { grid-area: a; } #refx .results .c-a::before { content: 'Source A'; }
  #refx .results .c-b { grid-area: b; } #refx .results .c-b::before { content: 'Source B'; }
  #refx .results .c-amt-a { grid-area: amta; font-weight: 800; } #refx .results .c-amt-a::before { content: 'Amount A'; }
  #refx .results .c-amt-b { grid-area: amtb; font-weight: 800; } #refx .results .c-amt-b::before { content: 'Amount B'; }
  #refx .results .c-status { grid-area: status; }
  #refx .results tr.rowdetail { display: block; width: 100%; } #refx .results tr.rowdetail td { display: block; width: 100%; max-width: none; box-sizing: border-box; }
}
