/* Shared "what we measured" report UI: used by /switch/ and /websites/ (assets/js/site-report-ui.js).
   Moved verbatim out of switch.php. Needs the site tokens and nx.css (.nx-locked). */
.sw-fine { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.sw-fine a { color: var(--purple-light); text-decoration: underline; text-underline-offset: 2px; }

/* result */
.sw-result { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--border); }
.sw-result:focus { outline: none; }
.sw-result { scroll-margin-top: 16px; overflow-wrap: anywhere; }
.sw-result-head h3:focus { outline: none; }
.sw-result-head h3:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 4px; border-radius: 4px; }
.sw-result-head { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.sw-result-head h3 { font-family: "Manrope", Inter, sans-serif; font-size: 1.35rem; letter-spacing: -.03em; overflow-wrap: anywhere; min-width: 0; }
.sw-chip { padding: 5px 12px; border: 1px solid rgba(130,87,255,.4); border-radius: 999px; color: var(--purple-light); font-size: .76rem; font-weight: 700; }
.sw-summary { margin-top: 12px; color: var(--text); font-size: 1.05rem; line-height: 1.6; }
.sw-summary span { color: var(--muted); }
.sw-meter { margin-top: 16px; display: flex; gap: 4px; max-width: 560px; }
.sw-seg { flex: 1 1 0; height: 10px; border-radius: 3px; background: rgba(255,255,255,.1); transform-origin: left center; }
.sw-seg.is-warn { background: var(--amber, #ffb84d); }
.sw-seg.is-good { background: var(--green); }
.sw-seg.is-info { background: rgba(255,255,255,.28); }
@media (prefers-reduced-motion: no-preference) {
  .sw-meter .sw-seg { animation: sw-seg .5s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * 55ms); }
}
@keyframes sw-seg { from { opacity: 0; transform: scaleX(.2); } to { opacity: 1; transform: scaleX(1); } }
.sw-tally { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.sw-tally-item { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px 0 11px; border: 1px solid var(--border-hover); border-radius: 999px; font-size: .86rem; color: var(--muted); }
.sw-tally-item svg { width: 14px; height: 14px; flex: 0 0 auto; }
.sw-tally-item b { color: var(--text); font-variant-numeric: tabular-nums; }
.sw-tally-item.is-warn { color: var(--amber, #ffb84d); border-color: rgba(255,184,77,.45); }
.sw-tally-item.is-good { color: var(--green); border-color: rgba(62,227,161,.4); }
.sw-tally-item.is-warn b, .sw-tally-item.is-good b { color: var(--text); }
.sw-legend { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .78rem; }
.sw-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw-group-title { margin: 30px 0 12px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.sw-checks { list-style: none; display: grid; gap: 10px; }
.sw-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.02); }
.sw-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--border-hover); color: var(--muted); }
.sw-badge svg { width: 12px; height: 12px; }
.sw-check.is-warn .sw-badge { color: var(--amber, #ffb84d); border-color: rgba(255,184,77,.45); }
.sw-check.is-good .sw-badge { color: var(--green); border-color: rgba(62,227,161,.4); }
.sw-check-body { min-width: 0; }
.sw-check-cat { display: block; margin-bottom: 4px; color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.sw-check.is-warn { border-color: rgba(255,184,77,.22); }
.sw-cat-title { margin: 22px 0 8px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sw-checks-rows { gap: 6px; }
.sw-row { display: block; padding: 0; }
.sw-row-d { display: block; }
.sw-row-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 48px; padding: 10px 16px; list-style: none; }
.sw-row-head::-webkit-details-marker { display: none; }
summary.sw-row-head { cursor: pointer; border-radius: 14px; }
summary.sw-row-head::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .18s ease; }
.sw-row-d[open] > summary.sw-row-head::after { transform: rotate(-135deg); }
.is-plain > .sw-row-head { grid-template-columns: auto minmax(0, 1fr); }
summary.sw-row-head:hover { background: rgba(255,255,255,.03); }
summary.sw-row-head:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 2px; }
.sw-row-text { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; min-width: 0; }
.sw-row-detail { margin: 0; padding: 0 16px 14px; }
.sw-row .sw-row-detail { margin-top: 0; }
.sw-row-d[open] > .sw-row-head { padding-bottom: 6px; }
.sw-check.is-info .sw-badge svg { width: 12px; height: 12px; }
.sw-check-top { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.sw-check-label { font-weight: 700; font-size: .95rem; }
.sw-check-value { color: var(--text); font-size: .95rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sw-check p { margin-top: 6px; color: var(--muted); font-size: .86rem; line-height: 1.65; overflow-wrap: anywhere; }
.sw-more { margin-top: 12px; }
.sw-more summary { cursor: pointer; padding: 12px 0; min-height: 44px; color: var(--purple-light); font-weight: 700; font-size: .9rem; }
.sw-more summary:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 3px; border-radius: 6px; }
.sw-more .sw-checks { margin-top: 8px; }
.sw-improve { list-style: none; counter-reset: sw; display: grid; gap: 12px; }
.sw-improve li { counter-increment: sw; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
.sw-improve li::before { content: counter(sw); width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(130,87,255,.14); border: 1px solid rgba(130,87,255,.3); color: var(--purple-light); font-weight: 800; font-size: .85rem; }
.sw-improve strong { display: block; font-size: .98rem; }
.sw-improve p { margin-top: 3px; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.sw-next { margin-top: 30px; padding: clamp(18px, 3vw, 28px); border: 1px solid rgba(130,87,255,.35); border-radius: var(--radius); background: rgba(130,87,255,.07); }
.sw-next h4 { font-family: "Manrope", Inter, sans-serif; font-size: 1.2rem; letter-spacing: -.02em; }
.sw-next p { margin-top: 8px; color: var(--muted); line-height: 1.7; font-size: .93rem; max-width: 640px; }
.sw-next .sw-form { margin-top: 16px; }
.sw-next-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }
.sw-saved { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.sw-saved svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; color: var(--green); }
@media (prefers-reduced-motion: reduce) {
  .sw-meter .sw-seg { animation: none; }
  summary.sw-row-head::after { transition: none; }
}
@media (max-width: 760px) {
  .sw-check { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sw-badge { justify-self: start; }
  .sw-row-head { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 10px 14px; }
  .sw-row-head .sw-badge { grid-column: 1 / -1; justify-self: start; }
  .sw-row-head .sw-row-text { grid-column: 1; }
  .is-plain > .sw-row-head { grid-template-columns: minmax(0, 1fr); }
  .sw-row-detail { padding: 0 14px 14px; }
  .sw-tally-item { min-height: 40px; }
  .sw-next-actions .button { width: 100%; min-height: 48px; justify-content: center; text-align: center; }
  .sw-improve li { gap: 12px; }
}

/* ---------- Measuring state (2026-10-13, SiteReportUI.measure) ---------- */
.sw-measure { padding: 18px 18px 16px; border-radius: 18px; border: 1px solid var(--border-hover, rgba(255,255,255,.16)); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)); }
.sw-measure-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .95rem; color: var(--text, #f3f5f8); }
.sw-measure-head > b { font-weight: 700; overflow-wrap: anywhere; }
.sw-measure-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--purple-light, #a98dff); box-shadow: 0 0 0 0 rgba(169,141,255,.6); }
.sw-measure-count { margin-left: auto; font-size: .82rem; color: var(--muted, #929aaa); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sw-measure-count b { font-family: "Manrope", Inter, sans-serif; font-size: 1.15rem; font-weight: 800; color: var(--text, #f3f5f8); margin-right: 4px; }
.sw-measure-bar { position: relative; height: 8px; margin-top: 14px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.sw-measure-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--purple, #8257ff), var(--purple-light, #a98dff), var(--cyan, #56e0ff)); transition: width .4s cubic-bezier(.2,.7,.2,1); }
.sw-measure-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-100%); }
.sw-measure-cats { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.sw-measure-cats li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; min-height: 30px; font-size: .84rem; color: var(--muted, #929aaa); }
.sw-measure-ic { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.18); }
.sw-measure-cats li.is-active { color: var(--text, #f3f5f8); }
.sw-measure-cats li.is-active .sw-measure-ic { border-color: var(--purple-light, #a98dff); border-top-color: transparent; }
.sw-measure-cats li.is-done { color: var(--text, #f3f5f8); }
.sw-measure-cats li.is-done .sw-measure-ic { border-color: var(--green, #3ee3a1); background: var(--green, #3ee3a1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23050609' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.sw-measure-val { font-size: .76rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sw-measure-cats li.is-done .sw-measure-val { color: var(--green, #3ee3a1); font-weight: 700; }
.sw-measure-note { margin: 14px 0 0; font-size: .86rem; color: var(--text, #f3f5f8); }
.sw-measure-pitch { margin: 6px 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted, #929aaa); }
.sw-measure.is-done .sw-measure-pulse { background: var(--green, #3ee3a1); }
.sw-pitch { margin: 8px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(169,141,255,.3); background: rgba(130,87,255,.1); font-size: .9rem; line-height: 1.5; color: var(--text, #f3f5f8); }
@media (prefers-reduced-motion: no-preference) {
  .sw-measure-pulse { animation: sw-pulse 1.6s ease-out infinite; }
  .sw-measure-bar i::after { animation: sw-shimmer 1.6s ease-in-out infinite; }
  .sw-measure-cats li.is-active .sw-measure-ic { animation: sw-spin .8s linear infinite; }
  .sw-measure-cats li.is-done .sw-measure-ic { animation: sw-pop .35s cubic-bezier(.2,.8,.2,1.4); }
}
@keyframes sw-pulse { 0% { box-shadow: 0 0 0 0 rgba(169,141,255,.6); } 100% { box-shadow: 0 0 0 10px rgba(169,141,255,0); } }
@keyframes sw-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes sw-spin { to { transform: rotate(360deg); } }
@keyframes sw-pop { from { transform: scale(.6); } to { transform: scale(1); } }
@media (max-width: 560px) { .sw-measure-cats { grid-template-columns: 1fr; } .sw-measure-count { margin-left: 0; flex-basis: 100%; } }

/* =====================================================================================================
   Audit v2 (2026-10-15): scanner + score panel. Purple leads; green/amber only for pass/fix status.
   ===================================================================================================== */
/* ---------- scanner (measuring state) ---------- */
.sw-scan { position: relative; overflow: hidden; padding: 20px; border-radius: 22px; isolation: isolate;
  background: radial-gradient(120% 80% at 0% 0%, rgba(130,87,255,.22), transparent 55%), radial-gradient(90% 70% at 100% 100%, rgba(86,224,255,.1), transparent 60%), linear-gradient(180deg, rgba(20,20,32,.96), rgba(9,10,16,.98));
  border: 1px solid rgba(169,141,255,.3); box-shadow: 0 30px 70px -40px rgba(130,87,255,.6), inset 0 1px 0 rgba(255,255,255,.06); }
.sw-scan::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(80% 70% at 30% 20%, #000, transparent); }
.sw-scan-top { display: flex; align-items: center; gap: 18px; }
.sw-scan-ring { position: relative; flex: none; width: 104px; height: 104px; }
.sw-scan-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.sw-scan-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 7; }
.sw-scan-arc { fill: none; stroke: url(#sw-rg); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset .45s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 0 6px rgba(169,141,255,.7)); }
.sw-scan-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.sw-scan-mid b { font: 800 1.9rem/1 Manrope, Inter, sans-serif; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--text, #f3f5f8); }
.sw-scan-mid span { margin-top: 3px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #929aaa); }
.sw-scan-meta { min-width: 0; display: grid; gap: 4px; }
.sw-scan-live { display: inline-flex; align-items: center; gap: 7px; justify-self: start; padding: 4px 10px; border-radius: 999px; background: rgba(130,87,255,.16); border: 1px solid rgba(169,141,255,.35); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ddd4ff; }
.sw-scan-live i { width: 7px; height: 7px; border-radius: 50%; background: #c9b8ff; }
.sw-scan-host { font: 800 1.15rem/1.25 Manrope, Inter, sans-serif; letter-spacing: -.02em; overflow-wrap: anywhere; color: var(--text, #f3f5f8); }
.sw-scan .sw-measure-note { margin: 0; font-size: .86rem; color: var(--muted, #929aaa); }
.sw-scan.is-done .sw-scan-live { background: rgba(62,227,161,.14); border-color: rgba(62,227,161,.4); color: #b6f5da; }
.sw-scan.is-done .sw-scan-live i { background: var(--green, #3ee3a1); }

/* schematic page being read */
.sw-scan-page { position: relative; display: grid; gap: 8px; margin-top: 18px; padding: 12px 14px 14px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.sw-scan-page > span { display: block; border-radius: 4px; }
.sw-sp-bar { display: flex !important; align-items: center; gap: 5px; margin-bottom: 4px; }
.sw-sp-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.18); }
.sw-sp-bar em { margin-left: 8px; width: 38%; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); }
.sw-sp-h { width: 62%; height: 12px; background: rgba(255,255,255,.2); }
.sw-sp-l { width: 84%; height: 7px; background: rgba(255,255,255,.1); }
.sw-sp-l.is-s { width: 56%; }
.sw-sp-row { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.sw-sp-row i { height: 34px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06); }
.sw-sp-beam { position: absolute !important; left: 0; right: 0; top: 0; height: 46px; border-radius: 0 !important; background: linear-gradient(180deg, transparent, rgba(130,87,255,.18) 70%, rgba(169,141,255,.75) 98%, transparent); box-shadow: 0 1px 14px rgba(169,141,255,.6); pointer-events: none; opacity: 0; }

/* categories as chips that light up */
.sw-scan .sw-measure-cats { margin-top: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sw-scan .sw-measure-cats li { grid-template-columns: 18px minmax(0, 1fr) auto; min-height: 40px; padding: 0 10px; border-radius: 11px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02); transition: border-color .3s ease, background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.sw-scan .sw-measure-cats li.is-active { border-color: rgba(169,141,255,.55); background: rgba(130,87,255,.14); box-shadow: 0 0 0 3px rgba(130,87,255,.12), 0 10px 24px -14px rgba(130,87,255,.9); }
.sw-scan .sw-measure-cats li.is-done { border-color: rgba(62,227,161,.22); background: rgba(62,227,161,.05); }
.sw-scan .sw-measure-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-scan .sw-measure-val { font-size: .72rem; }
.sw-scan .sw-measure-cats li.is-active .sw-measure-val { color: #ddd4ff; }
.sw-scan .sw-measure-pitch { margin-top: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .sw-scan:not(.is-done) .sw-sp-beam { animation: sw-beam 1.9s cubic-bezier(.45,.05,.55,.95) infinite; }
  .sw-scan:not(.is-done) .sw-scan-live i { animation: sw-pulse 1.4s ease-out infinite; }
  .sw-scan:not(.is-done) .sw-scan-page > span:not(.sw-sp-beam) { animation: sw-read 1.9s ease-in-out infinite; }
  .sw-scan .sw-measure-cats li { animation: sw-chip-in .45s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * 45ms); }
  .sw-scan.is-done .sw-scan-ring { animation: sw-ring-done .7s cubic-bezier(.2,.8,.2,1.3); }
}
@keyframes sw-beam { 0% { transform: translateY(-46px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(170px); opacity: 0; } }
@keyframes sw-read { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes sw-chip-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sw-ring-done { 0% { transform: scale(1); } 40% { transform: scale(1.07); } 100% { transform: scale(1); } }
@media (max-width: 560px) {
  .sw-scan { padding: 16px; }
  .sw-scan-ring { width: 88px; height: 88px; }
  .sw-scan-mid b { font-size: 1.6rem; }
  .sw-scan .sw-measure-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-scan .sw-measure-val { display: none; }
  .sw-scan .sw-measure-cats li { grid-template-columns: 18px minmax(0, 1fr); font-size: .8rem; }
}

/* ---------- score panel (report) ---------- */
.sw-score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 18px; padding: 20px; border-radius: 22px; isolation: isolate; position: relative; overflow: hidden;
  background: radial-gradient(90% 90% at 0% 50%, rgba(62,227,161,.1), transparent 60%), radial-gradient(90% 90% at 100% 0%, rgba(130,87,255,.16), transparent 60%), linear-gradient(180deg, rgba(20,20,32,.96), rgba(9,10,16,.98));
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 70px -44px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06); }
.sw-score-ring { position: relative; width: 132px; height: 132px; }
.sw-score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.sw-score-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 9; }
.sw-score-arc { fill: none; stroke: url(#sw-sg); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 0 8px rgba(62,227,161,.45)); }
.sw-score-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.sw-score-mid b { font: 800 2.5rem/1 Manrope, Inter, sans-serif; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--text, #f3f5f8); }
.sw-score-mid span { margin-top: 4px; font-size: .72rem; font-weight: 700; color: var(--muted, #929aaa); }
.sw-score-k { margin: 0 0 10px; font: 800 1.05rem/1.3 Manrope, Inter, sans-serif; letter-spacing: -.01em; color: var(--text, #f3f5f8); }
.sw-score-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sw-score-cat-top { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: #c9cedb; }
.sw-score-cat-top small { font-size: .74rem; font-weight: 700; white-space: nowrap; }
.sw-score-cat-top small.is-warn { color: var(--amber, #ffb84d); }
.sw-score-cat-top small.is-good { color: var(--green, #3ee3a1); }
.sw-score-bar { display: flex; gap: 3px; height: 7px; margin-top: 5px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.06); }
.sw-score-bar i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms + .2s); }
.sw-score-cats li { --i: 0; }
.sw-score-cats li .sw-score-bar i { transition-delay: inherit; }
.sw-score-bar i.is-good { background: linear-gradient(90deg, #2bc28a, #3ee3a1); }
.sw-score-bar i.is-warn { background: linear-gradient(90deg, #ffb84d, #ffcf85); }
.sw-score.is-in .sw-score-bar i { width: var(--w); }
.sw-score-cats li:nth-child(1) .sw-score-bar i { transition-delay: .2s; } .sw-score-cats li:nth-child(2) .sw-score-bar i { transition-delay: .28s; }
.sw-score-cats li:nth-child(3) .sw-score-bar i { transition-delay: .36s; } .sw-score-cats li:nth-child(4) .sw-score-bar i { transition-delay: .44s; }
.sw-score-cats li:nth-child(5) .sw-score-bar i { transition-delay: .52s; } .sw-score-cats li:nth-child(n+6) .sw-score-bar i { transition-delay: .6s; }
.sw-meter { display: none; } /* the score panel replaces the segment strip */
@media (max-width: 560px) {
  .sw-score { grid-template-columns: 1fr; justify-items: center; gap: 16px; padding: 18px 16px; }
  .sw-score-side { width: 100%; }
  .sw-score-k { text-align: center; }
}

/* ---------- report cards: a little more life ---------- */
.sw-checks:not(.sw-checks-rows) .sw-check.is-warn { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(255,184,77,.08), rgba(255,255,255,.015) 40%); border-color: rgba(255,184,77,.3); }
.sw-checks:not(.sw-checks-rows) .sw-check.is-warn::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--amber, #ffb84d); box-shadow: 0 0 12px rgba(255,184,77,.6); }
.sw-improve { position: relative; }
.sw-improve li { position: relative; }
.sw-improve li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 38px; bottom: -10px; width: 2px; background: linear-gradient(180deg, rgba(169,141,255,.45), rgba(169,141,255,.05)); }
.sw-improve li::before { background: linear-gradient(135deg, rgba(130,87,255,.35), rgba(86,224,255,.15)) !important; box-shadow: 0 8px 18px -10px rgba(130,87,255,.9); }
@media (prefers-reduced-motion: no-preference) {
  .sw-result:not([hidden]) .sw-score, .sw-result:not([hidden]) .sw-summary, .sw-result:not([hidden]) .sw-pitch, .sw-result:not([hidden]) .sw-tally,
  .sw-result:not([hidden]) .sw-checks:not(.sw-checks-rows) > li, .sw-result:not([hidden]) .sw-improve > li { animation: sw-rise .6s cubic-bezier(.16,1,.3,1) both; }
  .sw-result:not([hidden]) .sw-summary { animation-delay: .15s; } .sw-result:not([hidden]) .sw-pitch { animation-delay: .22s; } .sw-result:not([hidden]) .sw-tally { animation-delay: .28s; }
  .sw-result:not([hidden]) .sw-checks:not(.sw-checks-rows) > li:nth-child(1) { animation-delay: .35s; } .sw-result:not([hidden]) .sw-checks:not(.sw-checks-rows) > li:nth-child(2) { animation-delay: .45s; }
  .sw-result:not([hidden]) .sw-checks:not(.sw-checks-rows) > li:nth-child(n+3) { animation-delay: .55s; }
  .sw-result:not([hidden]) .sw-improve > li:nth-child(1) { animation-delay: .5s; } .sw-result:not([hidden]) .sw-improve > li:nth-child(2) { animation-delay: .6s; } .sw-result:not([hidden]) .sw-improve > li:nth-child(n+3) { animation-delay: .7s; }
}
@keyframes sw-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sw-score-arc, .sw-score-bar i, .sw-scan-arc, .sw-scan .sw-measure-cats li { transition: none; } }

/* ---------- light theme ---------- */
html[data-theme="light"] .sw-scan, html[data-theme="light"] .sw-score { background: radial-gradient(120% 80% at 0% 0%, rgba(130,87,255,.1), transparent 55%), #ffffff; border-color: rgba(106,63,230,.22); box-shadow: 0 30px 60px -40px rgba(40,20,120,.35); }
html[data-theme="light"] .sw-scan::before { background-image: linear-gradient(rgba(10,12,20,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(10,12,20,.04) 1px, transparent 1px); }
html[data-theme="light"] .sw-scan-track, html[data-theme="light"] .sw-score-track { stroke: rgba(10,12,20,.08); }
html[data-theme="light"] :is(.sw-scan-mid b, .sw-scan-host, .sw-score-mid b, .sw-score-k) { color: #0b0c14; }
html[data-theme="light"] .sw-scan-live { color: #4a2bc9; background: rgba(130,87,255,.1); border-color: rgba(106,63,230,.3); }
html[data-theme="light"] .sw-scan-live i { background: #6a3fe6; }
html[data-theme="light"] .sw-scan.is-done .sw-scan-live { color: #0a7a4c; }
html[data-theme="light"] .sw-scan-page { background: #f7f8fb; border-color: rgba(10,12,20,.08); }
html[data-theme="light"] .sw-sp-h { background: rgba(10,12,20,.25); } html[data-theme="light"] :is(.sw-sp-l, .sw-sp-bar em, .sw-sp-row i, .sw-sp-bar i) { background: rgba(10,12,20,.08); }
html[data-theme="light"] .sw-scan .sw-measure-cats li { background: #fff; border-color: rgba(10,12,20,.08); color: #3c4452; }
html[data-theme="light"] .sw-scan .sw-measure-cats li.is-active { background: rgba(130,87,255,.08); border-color: rgba(106,63,230,.4); color: #0b0c14; }
html[data-theme="light"] .sw-scan .sw-measure-cats li.is-active .sw-measure-val { color: #4a2bc9; }
html[data-theme="light"] .sw-scan .sw-measure-cats li.is-done { background: rgba(62,227,161,.06); border-color: rgba(10,122,76,.2); }
html[data-theme="light"] .sw-score-cat-top { color: #3c4452; }
html[data-theme="light"] .sw-score-cat-top small.is-warn { color: #a35a00; }
html[data-theme="light"] .sw-score-cat-top small.is-good { color: #0a7a4c; }
html[data-theme="light"] .sw-score-bar { background: rgba(10,12,20,.06); }
html[data-theme="light"] .sw-checks:not(.sw-checks-rows) .sw-check.is-warn { background: linear-gradient(90deg, rgba(255,184,77,.12), #fff 45%); border-color: rgba(163,90,0,.25); }

/* Scan progress bar (owner, 2026-10-15) */
.sw-scan-prog { margin-top: 16px; }
.sw-scan-prog-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .8rem; color: #c9cedb; }
.sw-scan-step { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-scan-pct { font: 800 .95rem Manrope, Inter, sans-serif; font-variant-numeric: tabular-nums; color: var(--text, #f3f5f8); }
.sw-scan-prog-bar { position: relative; height: 10px; margin-top: 8px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.sw-scan-prog-bar i { position: relative; display: block; height: 100%; width: 0; border-radius: 999px; overflow: hidden; background: linear-gradient(90deg, #8257ff, #a98dff 60%, #56e0ff); box-shadow: 0 0 14px rgba(169,141,255,.7); transition: width .3s linear; }
.sw-scan-prog-bar i::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.18) 0 10px, transparent 10px 20px); }
.sw-scan.is-done .sw-scan-prog-bar i { background: linear-gradient(90deg, #2bc28a, #3ee3a1 60%, #56e0ff); box-shadow: 0 0 14px rgba(62,227,161,.6); }
@media (prefers-reduced-motion: no-preference) { .sw-scan:not(.is-done) .sw-scan-prog-bar i::after { animation: sw-stripes .8s linear infinite; } }
@keyframes sw-stripes { from { background-position: 0 0; } to { background-position: 40px 0; } }
html[data-theme="light"] .sw-scan-prog-top { color: #3c4452; }
html[data-theme="light"] .sw-scan-pct { color: #0b0c14; }
html[data-theme="light"] .sw-scan-prog-bar { background: rgba(10,12,20,.07); box-shadow: inset 0 1px 2px rgba(10,12,20,.1); }
