:root {
  --bg: #0b0d10; --panel: #12161b; --line: #222a33; --text: #e8edf2; --muted: #8d99a6;
  --accent: #f2c14e; --accent-ink: #1a1405; --ok: #3ecf8e; --warn: #f5a524; --fail: #ff5d5d;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #fbfaf7; --panel: #fff; --line: #e6e2d9; --text: #15181c; --muted: #5d6670; --accent: #a8740a; --accent-ink: #fff; --ok: #12814f; --warn: #b4610a; --fail: #c62828; color-scheme: light; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { font-size: .9em; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: .05em .35em; }
pre { font-size: .86em; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; overflow-x: auto; white-space: pre; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
main { max-width: 820px; margin: 0 auto; padding: 0 16px 3rem; }
.top { max-width: 820px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--accent); }
.mark { width: 26px; height: 26px; color: var(--accent); }
.top nav { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .92rem; }
.top nav a { color: var(--muted); }
.hero { padding: 3.5rem 0 1.5rem; }
.hero h1 { font-size: clamp(2rem, 6.5vw, 3.1rem); line-height: 1.08; margin: 0 0 .9rem; letter-spacing: -.03em; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 40rem; }
.ask { margin: 1.6rem 0 0; }
.ask-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.ask-row input { flex: 1 1 18rem; min-width: 0; }
input, select, textarea { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { width: 100%; resize: vertical; }
button { font: inherit; font-weight: 700; padding: .75rem 1.2rem; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
button:hover { filter: brightness(1.08); }
button[disabled] { opacity: .6; cursor: progress; }
.ask-opts { display: flex; flex-direction: column; gap: .6rem; margin-top: .8rem; color: var(--muted); font-size: .95rem; }
.ask-opts label { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.ask-opts select { padding: .45rem .6rem; }
details summary { cursor: pointer; }
details > summary h2 { display: inline; }
.byo { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.byo input { flex: 1 1 12rem; min-width: 0; }
.hint { font-size: .85rem; margin: .4rem 0 0; }
label.inline { display: inline-flex !important; gap: .3rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.card h3 { margin: 0 0 .4rem; font-size: 1rem; }
.card pre { margin: 0; white-space: pre-wrap; word-break: break-all; }
.recent { list-style: none; padding: 0; margin: 0; }
.recent li { border-bottom: 1px solid var(--line); }
.recent a { display: block; padding: .7rem 0; color: var(--text); }
.recent a:hover { text-decoration: none; background: var(--panel); }
.verdict { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .1rem .5rem; border-radius: 99px; border: 1px solid currentColor; margin-right: .3rem; }
.v-fine { color: var(--ok); } .v-sign_with_care { color: var(--accent); } .v-negotiate { color: var(--warn); } .v-avoid { color: var(--fail); }
.verdict-head { display: flex; gap: 1.2rem; align-items: center; margin: 2rem 0 1rem; }
.verdict-head h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.15; color: var(--text); }
.kicker { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.oneline { margin: .4rem 0 0; color: var(--text); font-weight: 600; }
.score { flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(currentColor calc(var(--score) * 1%), var(--line) 0); position: relative; }
.score::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg); }
.score b, .score span { position: relative; color: var(--text); }
.score b { font-size: 1.6rem; line-height: 1; }
.score span { font-size: .7rem; color: var(--muted); text-transform: uppercase; }
.summary { font-size: 1.07rem; }
.report h2 { font-size: 1.2rem; margin: 2rem 0 .7rem; }
.report h3 { font-size: 1rem; margin: 0 0 .3rem; }
.flag, .term, .ask-item { border-left: 3px solid var(--line); padding: .3rem 0 .3rem 1rem; margin: 0 0 1.1rem; }
.sev-high, .risk-high { border-color: var(--fail); } .sev-medium, .risk-medium { border-color: var(--warn); } .sev-low, .risk-low { border-color: var(--ok); }
.flag p, .term p, .ask-item p { margin: .2rem 0; }
blockquote { margin: .4rem 0 0; padding: .4rem .8rem; background: var(--panel); border-radius: 6px; color: var(--muted); font-size: .9rem; font-style: italic; }
dl.data { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1rem; }
dl.data dt { font-weight: 700; color: var(--muted); }
dl.data dd { margin: 0; }
@media (max-width: 560px) { dl.data { grid-template-columns: 1fr; } dl.data dd { margin-bottom: .5rem; } .verdict-head { flex-direction: column; align-items: flex-start; gap: .8rem; } .score { width: 68px; height: 68px; } }
.sources ul { padding-left: 1.2rem; font-size: .92rem; word-break: break-word; }
.disclaimer { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .8rem; }
.actions { margin-top: 1.5rem; }
.running { padding: 3rem 0; }
.step { color: var(--muted); font-family: ui-monospace, monospace; font-size: .9rem; word-break: break-all; }
.bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 30%; background: var(--accent); animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) { .bar span { animation: none; width: 100%; opacity: .5; } }
.error { color: var(--fail); }
.ring-bar { display: flex; align-items: center; gap: 4px 16px; padding: 6px 16px; border-bottom: 1px solid var(--line); background: var(--panel); font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.ring-bar::-webkit-scrollbar { display: none; }
.ring-bar a { color: var(--muted); }
.ring-bar a:hover, .ring-bar a:focus-visible { color: var(--accent); text-decoration: underline; }
.ring-bar .ring-home { color: var(--accent); font-weight: 700; }
.ring-bar .ring-sites { display: inline-flex; gap: 12px; padding: 0 12px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.ring-bar [aria-current='page'] { color: var(--text); }
.ring-bar .ring-start { margin-left: auto; color: var(--accent); font-weight: 700; }
@media (max-width: 640px) { .ring-bar .ring-home span { display: none; } }
footer.pfs-footer { max-width: 820px; margin: 2rem auto 0; color: var(--muted); border-top-color: var(--line); --pfs-footer-muted: var(--muted); --pfs-footer-size: .88rem; }
