/* Feli-Scan (AI security scan and repair system) — /feliscan/, /feliscan/protect/, /feliscan/sample-report/, /feliscan/dashboard/.
   Sits on the Modular F layer (public/modular.css). Every class here is prefixed ws- / scn- / res-
   so nothing collides with modular.css (.sec, .card and .hero are taken there). */
:root { --ws-red: #e5484d; --ws-red-soft: rgba(229, 72, 77, .14); --ws-amber: #e9bd63; --ws-amber-soft: rgba(233, 189, 99, .14);
  --ws-teal-soft: rgba(42, 175, 137, .14); --ws-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; }
html, body { height: auto !important; min-height: 100%; }
#dc-root, #dc-root > .sc-host { height: auto !important; min-height: 100%; }
body { background: var(--ground); }
html { scroll-padding-top: 80px; }

.ws { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.ws-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.ws-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 26px; border-radius: var(--r2);
  font: 600 16px/20px var(--sans); cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: background .15s, transform .15s; }
.ws-btn-p { background: var(--teal); color: var(--ground); border-color: var(--teal); }
.ws-btn-p:hover { background: var(--mint); border-color: var(--mint); color: var(--ground); transform: translateY(-2px); }
.ws-btn-s { background: transparent; color: var(--ink); border-color: var(--ink); }
.ws-btn-s:hover { background: var(--raised); color: var(--ink); }
.ws-btn-d { background: var(--ws-red); color: #fff; border-color: var(--ws-red); }
.ws-btn-d:hover { background: #ff5a5f; border-color: #ff5a5f; color: #fff; transform: translateY(-2px); }
.ws-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Prototype ribbon: remove when the scanner is wired to a real backend. */
.ws-proto { position: fixed; top: 84px; right: -42px; z-index: 900; transform: rotate(38deg); background: var(--gold); color: var(--ground);
  font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 8px 48px; box-shadow: 0 2px 10px rgba(0,0,4,.5); pointer-events: none; }

/* ---- alert strip + hero ---- */
.ws-alert { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 14px 8px 10px; border: 1px solid var(--ws-red); border-radius: 999px;
  background: var(--ws-red-soft); color: #ffb3b5; font: 600 13px/18px var(--sans); }
.ws-alert .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ws-red); box-shadow: 0 0 0 0 rgba(229,72,77,.7); animation: ws-pulse 1.6s infinite; }
@keyframes ws-pulse { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.7); } 70% { box-shadow: 0 0 0 10px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }
.ws-alert b { color: #fff; }
.ws-hero { padding-top: 64px; padding-bottom: 48px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .ws-hero { grid-template-columns: 1fr; gap: 32px; } }
.ws-hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ws-hero-art { min-width: 0; }
.ws-hero-art .scn-list li { grid-template-columns: 28px minmax(0, 1fr) auto; }
.ws-hero h1 { margin: 0; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; }
.ws-hero h1 em { font-style: normal; color: var(--ws-red); }
.ws-lede { margin: 0; font-size: 18px; line-height: 28px; color: var(--muted); max-width: 560px; }
.ws-lede b { color: var(--ink); }
.ws-scan-form { display: flex; gap: 10px; flex-wrap: wrap; }
.ws-scan-form input { flex: 1 1 260px; min-width: 0; min-height: 48px; padding: 12px 16px; border-radius: var(--r2); border: 1px solid var(--hair); background: var(--raised);
  color: var(--ink); font: 500 17px/24px var(--sans); }
.ws-scan-form input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--ws-teal-soft); }
.ws-note { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.ws-err { margin: 0; min-height: 18px; font-size: 14px; color: #ffb3b5; }
.ws-facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .ws-facts { grid-template-columns: 1fr; } }
.ws-facts li { border: 1px solid var(--hair); border-radius: var(--r2); padding: 14px; background: var(--raised); }
.ws-facts b { display: block; font-size: 26px; line-height: 30px; font-weight: 600; color: var(--ws-red); }
.ws-facts span { font-size: 13px; line-height: 18px; color: var(--muted); }

/* ---- the scanner ---- */
.scn { border: 1px solid var(--hair); border-radius: var(--r3); background: #06060a; box-shadow: 0 30px 80px rgba(0,0,4,.6), inset 0 0 0 1px rgba(255,255,255,.02); overflow: hidden; font-family: var(--sans); }
.scn-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--hair); background: var(--raised); font-size: 14px; }
.scn-lights { display: flex; gap: 6px; }
.scn-lights i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a44; }
.scn-lights i:nth-child(1) { background: #ff5f57; } .scn-lights i:nth-child(2) { background: #febc2e; } .scn-lights i:nth-child(3) { background: #28c840; }
.scn-host { font-family: var(--ws-mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scn-status { margin-left: auto; color: var(--muted); white-space: nowrap; }
.scn-status.is-live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: 8px; animation: ws-blink 1s infinite; }
@keyframes ws-blink { 50% { opacity: .2; } }
.scn-count { font-family: var(--ws-mono); color: var(--muted); white-space: nowrap; }
.scn-bar { height: 6px; background: #15151b; }
.scn-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--sky)); transition: width .45s ease; }
.scn-bar i.is-bad { background: linear-gradient(90deg, var(--ws-amber), var(--ws-red)); }
.scn-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 860px) { .scn-body { grid-template-columns: 1fr; } }
.scn-list { list-style: none; margin: 0; padding: 10px 0; max-height: 520px; overflow-y: auto; }
.scn-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 18px; font-size: 15px; line-height: 20px; color: #5f5f68;
  opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s, color .3s; }
.scn-list li.is-run, .scn-list li.is-done { opacity: 1; transform: none; color: var(--ink); }
.scn-list li.is-done.pass { color: var(--muted); }
.scn-ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 1px solid var(--hair); color: transparent; }
.is-run .scn-ico { border-color: var(--teal); border-top-color: transparent; animation: ws-spin .8s linear infinite; }
@keyframes ws-spin { to { transform: rotate(360deg); } }
.pass .scn-ico { background: var(--ws-teal-soft); border-color: var(--teal); color: var(--teal); animation: ws-pop .35s; }
.fail .scn-ico { background: var(--ws-red-soft); border-color: var(--ws-red); color: var(--ws-red); animation: ws-pop .35s; }
.warn .scn-ico { background: var(--ws-amber-soft); border-color: var(--ws-amber); color: var(--ws-amber); animation: ws-pop .35s; }
@keyframes ws-pop { 0% { transform: scale(.5); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.scn-tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; opacity: 0; transition: opacity .3s; }
.is-done .scn-tag { opacity: 1; }
.pass .scn-tag { color: var(--teal); background: var(--ws-teal-soft); }
.fail .scn-tag { color: #fff; background: var(--ws-red); }
.warn .scn-tag { color: var(--ground); background: var(--ws-amber); }
.fail.crit .scn-tag { animation: ws-blink 1.2s 3; }
.scn-log { margin: 0; padding: 14px 16px; border-left: 1px solid var(--hair); background: #020204; color: #7fd6bf; font: 12px/18px var(--ws-mono); white-space: pre-wrap; word-break: break-word;
  max-height: 520px; overflow-y: auto; }
@media (max-width: 860px) { .scn-log { border-left: 0; border-top: 1px solid var(--hair); max-height: 220px; } }
.scn-log .x { color: #ff8a8e; } .scn-log .w { color: var(--ws-amber); } .scn-log .d { color: #55555f; }
.scn-foot { padding: 12px 18px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---- results ---- */
.res { padding-top: 32px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; }
.res-top { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: center; border: 1px solid var(--hair); border-radius: var(--r3); padding: 28px; background: var(--raised);
  position: relative; overflow: hidden; }
.res-top::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 0% 50%, var(--res-glow, var(--ws-red-soft)), transparent 70%); pointer-events: none; }
@media (max-width: 700px) { .res-top { grid-template-columns: 1fr; text-align: center; } }
.res-grade { position: relative; width: 170px; height: 170px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--res-col, var(--ws-red)) calc(var(--res-pct, 20) * 1%), #1c1c23 0); }
.res-grade::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--ground); }
.res-grade b { position: relative; font-size: 84px; line-height: 1; font-weight: 700; color: var(--res-col, var(--ws-red)); letter-spacing: -.04em; }
.res-grade span { position: absolute; bottom: 30px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.res-copy { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.res-copy h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; font-weight: 600; }
.res-copy p { margin: 0; font-size: 16px; line-height: 24px; color: var(--muted); }
.res-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.res-counts span { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--hair); }
.res-counts .c { background: var(--ws-red); border-color: var(--ws-red); color: #fff; }
.res-counts .h { background: var(--ws-red-soft); border-color: var(--ws-red); color: #ffb3b5; }
.res-counts .m { background: var(--ws-amber-soft); border-color: var(--ws-amber); color: var(--ws-amber); }
.res-counts .p { background: var(--ws-teal-soft); border-color: var(--teal); color: var(--teal); }
.res-list { display: flex; flex-direction: column; gap: 10px; }
.res-item { border: 1px solid var(--hair); border-left-width: 4px; border-radius: var(--r2); background: var(--raised); }
.res-item.crit { border-left-color: var(--ws-red); } .res-item.high { border-left-color: #ff8a8e; } .res-item.med { border-left-color: var(--ws-amber); } .res-item.pass { border-left-color: var(--teal); }
.res-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; font-weight: 600; }
.res-item summary::-webkit-details-marker { display: none; }
.res-sev { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.crit .res-sev { background: var(--ws-red); color: #fff; } .high .res-sev { background: var(--ws-red-soft); color: #ffb3b5; border: 1px solid var(--ws-red); }
.med .res-sev { background: var(--ws-amber-soft); color: var(--ws-amber); border: 1px solid var(--ws-amber); } .pass .res-sev { background: var(--ws-teal-soft); color: var(--teal); border: 1px solid var(--teal); }
.res-item summary i { font-style: normal; color: var(--muted); transition: transform .2s; }
.res-item[open] summary i { transform: rotate(90deg); }
.res-detail { padding: 0 16px 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .res-detail { grid-template-columns: 1fr; } }
.res-detail div { border-top: 1px solid var(--hair); padding-top: 10px; font-size: 14px; line-height: 21px; color: var(--muted); }
.res-detail b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.res-detail code { font-family: var(--ws-mono); font-size: 12px; color: #ffb3b5; background: #06060a; padding: 1px 5px; border-radius: 3px; }
.res-lead { border: 1px solid var(--teal); border-radius: var(--r3); padding: 28px; background: linear-gradient(135deg, var(--ws-teal-soft), transparent 60%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 760px) { .res-lead { grid-template-columns: 1fr; } }
.res-lead h2 { margin: 0 0 8px; font-size: 24px; line-height: 30px; font-weight: 600; }
.res-lead p { margin: 0; color: var(--muted); font-size: 15px; line-height: 23px; }
.res-lead form { display: flex; flex-direction: column; gap: 10px; }
.res-lead input { min-width: 0; width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r2); border: 1px solid var(--hair); background: var(--ground); color: var(--ink); font: 500 15px/22px var(--sans); }
.res-lead input:focus { border-color: var(--teal); outline: none; }
.res-lead .ws-err { min-height: 0; }
.res-lead.is-done form { display: none; }
.res-done { display: none; border-top: 1px solid var(--hair); padding-top: 14px; }
.res-lead.is-done .res-done { display: block; }

/* ---- offers ---- */
.ws-band { background: var(--raised); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.ws-offers { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.ws-offers h2, .ws-how h2, .ws-faq h2, .ws-cta h2 { margin: 0; font-size: 30px; line-height: 38px; font-weight: 600; }
.ws-offers > p { margin: -12px 0 0; color: var(--muted); max-width: 640px; }
.ws-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .ws-cards { grid-template-columns: 1fr; } }
.ws-card { border: 1px solid var(--hair); border-radius: var(--r3); padding: 28px; background: var(--ground); display: flex; flex-direction: column; gap: 14px; position: relative; }
.ws-card.is-main { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 20px 60px rgba(42,175,137,.15); }
.ws-card .ws-flag { position: absolute; top: -12px; left: 24px; background: var(--teal); color: var(--ground); font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.ws-card h3 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; }
.ws-card .ws-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ws-card .ws-price b { font-size: 44px; line-height: 44px; font-weight: 600; letter-spacing: -.03em; }
.ws-card .ws-price span { font-size: 16px; font-weight: 600; color: var(--muted); }
.ws-card .ws-fine { margin: -6px 0 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.ws-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 22px; color: var(--muted); }
.ws-card li { padding-left: 24px; position: relative; }
.ws-card li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.ws-card .ws-btn { margin-top: auto; }

/* ---- how / faq / cta ---- */
.ws-how { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.ws-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: ws; }
@media (max-width: 900px) { .ws-how ol { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .ws-how ol { grid-template-columns: 1fr; } }
.ws-how li { border: 1px solid var(--hair); border-radius: var(--r2); padding: 22px; background: var(--raised); counter-increment: ws; }
.ws-how li::before { content: "0" counter(ws); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--teal); }
.ws-how h3 { margin: 8px 0 6px; font-size: 18px; line-height: 24px; font-weight: 600; }
.ws-how p { margin: 0; font-size: 14px; line-height: 22px; color: var(--muted); }
.ws-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 24px; color: var(--muted); }
@media (max-width: 640px) { .ws-checks { grid-template-columns: 1fr; } }
.ws-checks li::before { content: "✓ "; color: var(--teal); font-weight: 700; }
.ws-faq { padding-bottom: 64px; display: flex; flex-direction: column; gap: 18px; }
.ws-faq details { border-top: 1px solid var(--hair); }
.ws-faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-size: 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.ws-faq summary::-webkit-details-marker { display: none; }
.ws-faq summary::after { content: "+"; color: var(--teal); font-weight: 600; }
.ws-faq details[open] summary::after { content: "–"; }
.ws-faq details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 24px; max-width: 760px; }
.ws-cta { padding-top: 64px; padding-bottom: 96px; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.ws-cta p { margin: 0; color: var(--muted); max-width: 600px; }
.ws-cta .ws-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---- timeline (service page) ---- */
.ws-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .ws-timeline { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .ws-timeline { grid-template-columns: 1fr; } }
.ws-timeline li { border: 1px solid var(--hair); border-radius: var(--r2); padding: 18px; background: var(--raised); font-size: 14px; line-height: 22px; color: var(--muted); }
.ws-timeline b { display: block; color: var(--ws-red); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.ws-timeline strong { color: var(--ink); }
.ws-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ws-table th, .ws-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.ws-table th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ws-table td:first-child { color: var(--ink); font-weight: 600; }
.ws-table td { color: var(--muted); }
.ws-table .y { color: var(--teal); font-weight: 700; } .ws-table .n { color: #5f5f68; }
.ws-table-wrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: var(--r2); background: var(--raised); }

/* ---- sample report ---- */
.rp { max-width: 960px; margin: 0 auto; padding: 48px 24px 96px; display: flex; flex-direction: column; gap: 36px; }
.rp-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--hair); padding-bottom: 24px; }
.rp-head h1 { margin: 6px 0 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 600; }
.rp-meta { margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 20px; color: var(--muted); text-align: right; }
.rp-meta b { color: var(--ink); }
.rp h2 { margin: 0; font-size: 24px; line-height: 30px; font-weight: 600; }
.rp p { margin: 0; color: var(--muted); font-size: 15px; line-height: 24px; }
.rp section { display: flex; flex-direction: column; gap: 14px; }
.rp-sum { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: center; border: 1px solid var(--hair); border-radius: var(--r3); padding: 24px; background: var(--raised); }
@media (max-width: 640px) { .rp-sum { grid-template-columns: 1fr; } }
.rp-sum .res-grade { width: 150px; height: 150px; } .rp-sum .res-grade b { font-size: 72px; }
.rp-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .rp-kv { grid-template-columns: 1fr; } }
.rp-kv div { border: 1px solid var(--hair); border-radius: var(--r2); padding: 12px 14px; background: var(--ground); }
.rp-kv b { display: block; font-size: 22px; line-height: 26px; } .rp-kv span { font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.rp-evidence { font: 12px/18px var(--ws-mono); background: #020204; border: 1px solid var(--hair); border-radius: var(--r2); padding: 12px 14px; color: #c8c8cf; white-space: pre-wrap; overflow-x: auto; margin: 0; }
.rp-evidence .x { color: #ff8a8e; }
.rp-plan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rp-plan li { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 12px 14px; border: 1px solid var(--hair); border-radius: var(--r2); background: var(--raised); font-size: 15px; }
@media (max-width: 640px) { .rp-plan li { grid-template-columns: 1fr; } }
.rp-plan b { color: var(--teal); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.rp-plan span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.rp-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .rp-ba { grid-template-columns: 1fr; } }
.rp-ba div { border: 1px solid var(--hair); border-radius: var(--r2); padding: 18px; background: var(--raised); }
.rp-ba h3 { margin: 0 0 10px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.rp-ba .b h3 { color: var(--ws-red); } .rp-ba .a h3 { color: var(--teal); }
.rp-ba ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 22px; }
.rp-note { border: 1px dashed var(--hair); border-radius: var(--r2); padding: 14px 16px; font-size: 13px; color: var(--muted); }

/* ---- Feli-Scan brand ---- */
.fs-brand { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fs-word { font: 700 22px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); position: relative; }
.fs-word b { color: var(--teal); font-weight: 700; }
.fs-word::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: linear-gradient(90deg, transparent, var(--teal), transparent); animation: fs-sweep 2.6s ease-in-out infinite; }
@keyframes fs-sweep { 0%, 100% { transform: scaleX(.15); transform-origin: left; } 50% { transform: scaleX(1); } }
.fs-sub { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---- hero photo with a live-looking card ---- */
.fs-art { position: relative; min-width: 0; }
.fs-art { padding-bottom: 40px; }
.fs-art picture, .fs-art img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: var(--r3); border: 1px solid var(--hair); aspect-ratio: 4/5; object-fit: cover; object-position: 72% 50%; }
@media (max-width: 900px) { .fs-art picture, .fs-art img { aspect-ratio: 16/10; } }
.fs-art .scn { position: absolute; left: -36px; bottom: 0; width: min(360px, 82%); box-shadow: 0 30px 80px rgba(0,0,4,.75); }
.fs-art .scn-list { max-height: none; padding: 6px 0; }
.fs-art .scn-list li { font-size: 13px; padding: 6px 14px; }
@media (max-width: 900px) { .fs-art .scn { position: relative; left: 0; bottom: 0; width: 100%; margin-top: -40px; } }

/* ---- the scan modal ---- */
.fs-modal { position: fixed; inset: 0; z-index: 1200; display: none; justify-content: center; align-items: flex-start; padding: clamp(12px, 5vh, 64px) 12px 24px; background: rgba(0,0,4,.84); backdrop-filter: blur(6px); overflow-y: auto; }
.fs-modal.is-open { display: flex; }
.fs-dialog { position: relative; width: min(1040px, 100%); background: var(--ground); border: 1px solid var(--hair); border-radius: var(--r3); box-shadow: 0 40px 120px rgba(0,0,0,.7); display: flex; flex-direction: column; gap: 20px; padding: 22px; }
.fs-dialog header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-right: 48px; }
.fs-dialog h2 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; font-weight: 600; }
.fs-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hair); background: var(--raised); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.fs-x:hover { background: #1c1c23; }
.fs-dialog .scn { box-shadow: none; }
.fs-dialog .res { padding: 0; }
.fs-dialog .res-top { padding: 22px; }
.fs-phase { font-size: 13px; color: var(--muted); }
.scn-list li .scn-txt { min-width: 0; overflow-wrap: anywhere; }

/* locked findings */
.res-item.locked summary { cursor: default; }
.res-item.locked summary i { display: none; }
.fs-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.fs-lock::before { content: ""; width: 10px; height: 12px; border: 2px solid currentColor; border-radius: 3px 3px 2px 2px; box-shadow: inset 0 -5px 0 0 currentColor; }
.fs-blur { filter: blur(5px); user-select: none; pointer-events: none; opacity: .6; }
.fs-unlock { border: 1px solid var(--teal); border-radius: var(--r3); padding: 22px; background: linear-gradient(135deg, var(--ws-teal-soft), transparent 65%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 760px) { .fs-unlock { grid-template-columns: 1fr; } }
.fs-unlock h3 { margin: 0 0 8px; font-size: 22px; line-height: 28px; font-weight: 600; }
.fs-unlock p { margin: 0; color: var(--muted); font-size: 15px; line-height: 23px; }
.fs-form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fs-form input[type=text], .fs-form input[type=email], .fs-form input[type=tel], .fs-form input[type=url] { min-width: 0; width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r2); border: 1px solid var(--hair); background: var(--ground); color: var(--ink); font: 500 15px/22px var(--sans); }
.fs-form input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--ws-teal-soft); }
.fs-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 19px; color: var(--muted); align-items: start; }
.fs-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal); }
.fs-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fs-sent { border: 1px solid var(--teal); border-radius: var(--r2); padding: 16px; background: var(--ws-teal-soft); }
.fs-sent b { color: var(--ink); }
.fs-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- dashboard (security vault) ---- */
.fs-dash { padding-top: 40px; padding-bottom: 96px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .fs-dash { grid-template-columns: 1fr; } }
.fs-dash-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.fs-dash-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 88px; }
@media (max-width: 960px) { .fs-dash-side { position: static; } }
.fs-card { border: 1px solid var(--hair); border-radius: var(--r3); background: var(--raised); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.fs-card h2, .fs-card h3 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.fs-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 21px; }
.fs-card .ws-btn { width: 100%; }
.fs-card.is-alert { border-color: var(--ws-red); background: linear-gradient(135deg, var(--ws-red-soft), var(--raised) 60%); }
.fs-card.is-good { border-color: var(--teal); background: linear-gradient(135deg, var(--ws-teal-soft), var(--raised) 60%); }
.fs-hello { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; }
.fs-hello h1 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 600; }
.fs-hello p { margin: 0; color: var(--muted); font-size: 14px; }
.fs-rescan { display: flex; gap: 10px; flex-wrap: wrap; }
.fs-rescan input { flex: 1 1 240px; min-width: 0; min-height: 46px; padding: 11px 14px; border-radius: var(--r2); border: 1px solid var(--hair); background: var(--raised); color: var(--ink); font: 500 15px/22px var(--sans); }
.fs-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fs-history button { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border-radius: var(--r2); border: 1px solid var(--hair); background: var(--ground); color: var(--ink); font: 500 14px/20px var(--sans); cursor: pointer; }
.fs-history button[aria-current="true"] { border-color: var(--teal); }
.fs-history .g { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 2px solid currentColor; }
.fs-history small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.fs-login { max-width: 520px; margin: 56px auto 96px; padding: 0 16px; display: flex; flex-direction: column; gap: 18px; }
.fs-login h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; font-weight: 600; }
.fs-login p { margin: 0; color: var(--muted); }
.fs-opt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fs-opt button { text-align: left; padding: 14px; border-radius: var(--r2); border: 1px solid var(--hair); background: var(--ground); color: var(--ink); font: 500 14px/20px var(--sans); cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.fs-opt button b { font-size: 18px; }
.fs-opt button small { color: var(--muted); font-size: 12px; }
.fs-opt button[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.fs-due { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--hair); padding-top: 12px; font-size: 14px; color: var(--muted); }
.fs-due b { font-size: 26px; color: var(--ink); }
.fs-empty { border: 1px dashed var(--hair); border-radius: var(--r3); padding: 28px; text-align: center; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .fs-word::after, .ws-alert .dot, .scn-status.is-live::before, .is-run .scn-ico { animation: none; } }
.fs-card a:not(.ws-btn), .fs-form a, .fs-unlock a, .fs-login a, .ws-note a, .fs-sent a { color: var(--teal); }
.fs-card a:not(.ws-btn):hover, .fs-form a:hover, .fs-unlock a:hover, .fs-login a:hover, .ws-note a:hover { color: var(--mint); }
.ws-err:empty { display: none; }
