:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20242b;
  background: #f6f7f9;
  font-synthesis: none;
  --muted: #6d7582;
  --line: #e3e6eb;
  --green: #c2f580;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; text-decoration: none; }
a:hover { color: #587d32; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #83b44b; outline-offset: 4px;
}
[hidden] { display: none !important; }
.header {
  width: 100%; max-width: 1120px; margin: 0 auto; height: 96px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark { display: inline-flex; align-items: center; font-size: 28px; font-weight: 750; letter-spacing: -1.4px; }
.wordmark-dot { color: #88ab66; }
.brand-mark {
  position: relative; display: grid; place-items: center; width: 31px; height: 33px;
  margin-right: 10px; padding-bottom: 4px; font-size: 27px; letter-spacing: -2px;
  color: #f6f7f9; background: #20242b; border-radius: 9px;
}
.brand-mark i { position: absolute; right: 5px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
nav { display: flex; gap: 27px; font-size: 13px; }
nav span { color: var(--muted); margin-left: 4px; }
.lookup-page { display: flex; flex-direction: column; }
.navbar-lookup { min-width: 0; }
.lookup-page .header { position: sticky; top: 0; z-index: 10; flex-shrink: 0; background: #f6f7f9; }
.lookup-page.has-lookup .header { display: grid; grid-template-columns: auto minmax(0, 460px) auto; gap: 28px; }
.navbar-lookup form { position: relative; transform-origin: top left; }
.navbar-lookup .search-box { padding: 5px 6px 5px 14px; border-radius: 10px; gap: 10px; }
.navbar-lookup .lookup-button { padding: 0 13px; gap: 12px; }
.navbar-lookup .error { position: absolute; top: 100%; left: 0; right: 0; margin: 8px 0 0; padding: 10px 13px; border: 1px solid #ebcccc; border-radius: 8px; background: #fff7f7; box-shadow: 0 5px 16px #18202b09; }
.lookup-page.has-lookup .lookup-main { justify-content: flex-start; padding-top: 64px; padding-bottom: 80px; }
.lookup-state { text-align: center; color: var(--muted); font-size: 14px; padding: 50px 0; }
.lookup-state.pending::before { content: ""; display: block; width: 24px; height: 24px; border: 2px solid #dce3d5; border-top-color: #83a85f; border-radius: 50%; margin: 0 auto 18px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lookup-main {
  width: min(620px, calc(100% - 40px)); margin: 0 auto; flex: 1;
  display: flex; flex-direction: column; justify-content: center; padding: 55px 0 150px;
}
.lookup-view { text-align: center; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 2px; color: var(--muted); }
.lookup-view h1 { font-size: clamp(48px, 9vw, 76px); font-weight: 650; letter-spacing: -3.5px; line-height: 1.1; margin: 19px 0 38px; }
.accent { color: #8daa71; }
.search-box {
  display: flex; align-items: center; gap: 14px; padding: 9px 9px 9px 20px;
  background: white; border: 1px solid #dce1e7; border-radius: 13px;
  box-shadow: 0 7px 24px #162a3c05; transition: border-color .15s;
}
.search-box:focus-within { border-color: #92ad76; }
.search-box svg { width: 21px; height: 21px; flex-shrink: 0; stroke: #929ba6; stroke-width: 1.5; }
.search-box input { width: 100%; min-width: 0; height: 44px; padding: 0; border: 0; background: transparent; color: #20242b; font-family: var(--mono); font-size: 14px; }
.search-box input::placeholder { color: #9098a5; font-family: inherit; }
.search-box input:focus-visible { outline: none; }
.lookup-button { display: flex; align-items: center; gap: 18px; flex-shrink: 0; min-height: 44px; padding: 0 17px; border: 1px solid #b7e973; background: var(--green); border-radius: 7px; font-size: 13px; font-weight: 600; }
.lookup-button:hover:not(:disabled) { background: #b4ec6d; }
.lookup-button span:last-child { font-size: 20px; font-weight: 400; }
.error { font-size: 12px; line-height: 1.7; color: #a94242; text-align: left; margin: 12px 5px 0; }
.result-view { width: 100%; text-align: center; }
.result-view[aria-busy="true"] { opacity: .5; }
.result-ip { font-family: var(--mono); font-size: clamp(19px, 4vw, 29px); font-weight: 450; letter-spacing: -.8px; overflow-wrap: anywhere; margin: 16px 0 30px; }
.result-ip:focus { outline: none; }
.findings { display: grid; gap: 12px; text-align: left; }
.finding { background: #161d25; color: #edf1f7; padding: 29px 32px; border: 1px solid #27323d; border-radius: 14px; }
.finding-verdict { font-size: 14px; color: #c2f580; margin: 0 0 20px; }
.provider-brand { display: flex; align-items: center; gap: 17px; }
.provider-brand + .provider-brand { margin-top: 19px; }
.provider-logo { display: grid; place-items: center; width: 58px; height: 58px; min-width: 58px; background: #26313e; border: 1px solid #3a4654; border-radius: 13px; font-size: 25px; font-weight: 600; }
.provider-logo img { width: 34px; height: 34px; object-fit: contain; }
.finding h2 { font-size: 28px; font-weight: 550; letter-spacing: -.7px; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.tor-finding .finding-verdict { color: #c397ee; }
.no-match { background: white; border-color: var(--line); color: #20242b; }
.no-match .finding-verdict { color: var(--muted); }
.no-match h2 { font-size: 24px; }
.provider-match + .provider-match { border-top: 1px solid #35404b; margin-top: 28px; padding-top: 25px; }
.finding-details { border-top: 1px solid #303b47; margin-top: 25px; padding-top: 20px; }
.finding-details h3 { color: #939fae; font-size: 10px; font-weight: 550; text-transform: uppercase; letter-spacing: 1.2px; margin: 0 0 12px; }
.network-list { display: flex; flex-wrap: wrap; gap: 7px; }
.network-list code { font-family: var(--mono); font-size: 12px; color: #cbd5df; background: #222c37; border: 1px solid #34414e; border-radius: 5px; padding: 5px 8px; overflow-wrap: anywhere; min-width: 0; }
.source-details { margin-top: 23px; }
.evidence-list { list-style: none; padding: 0; margin: 0; }
.evidence-list li + li { margin-top: 15px; }
.evidence-list a { color: #d1d9e3; font-size: 12px; line-height: 1.7; text-decoration: underline; text-decoration-color: #526171; text-underline-offset: 3px; }
.evidence-list a:hover { color: var(--green); }
.evidence-meta { color: #8f9cab; font-size: 11px; line-height: 1.8; margin-top: 3px; }
.evidence-warning { display: inline-block; color: #e2bd82; margin-left: 9px; }
.tor-roles { display: grid; grid-template-columns: 1fr auto; gap: 12px; font-size: 12px; margin: 25px 0 0; padding-top: 20px; border-top: 1px solid #303b47; }
.tor-roles dt { color: #aab5c4; }
.tor-roles dd { margin: 0; color: #d7c1ef; }
.about-main { width: min(800px, calc(100% - 48px)); margin: 58px auto 70px; }
.about-main h1 { font-size: clamp(34px, 6vw, 48px); letter-spacing: -1.8px; font-weight: 600; margin: 15px 0 24px; }
.about-main p { font-size: 14px; line-height: 1.9; color: #68717e; }
.about-main h2 { font-size: 21px; font-weight: 600; letter-spacing: -.5px; margin: 38px 0 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: white; border: 1px solid var(--line); border-radius: 12px; margin: 28px 0 12px; padding: 25px 0; }
.stat { padding: 0 25px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--mono); font-size: 26px; font-weight: 450; letter-spacing: -1px; margin-bottom: 9px; }
.stat span { color: var(--muted); font-size: 12px; }
.stats-status { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.stats-status p { font-size: 12px; margin: 0; }
.stats-status button { border: 0; background: none; padding: 5px 0; color: #55773c; font-size: 12px; }
.source-row { display: flex; align-items: start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 18px 0; }
.source-info { min-width: 0; }
.source-info a { font-size: 13px; font-weight: 550; }
.source-info p { font-size: 11px; line-height: 1.8; margin: 5px 0 0; overflow-wrap: anywhere; }
.source-info .source-error { color: #927243; }
.source-badge { border: 1px solid #dde7d3; border-radius: 30px; padding: 4px 8px; font-size: 10px; color: #607d46; background: #eaf0e4; white-space: nowrap; }
.source-badge.error, .source-badge.stale { border-color: #ecdfc5; background: #f7efdf; color: #90703a; }
.source-badge.pending, .source-badge.disabled { border-color: var(--line); background: #e9ecf0; color: var(--muted); }
.about-main code { font-family: var(--mono); font-size: 12px; background: #e9ecf0; padding: 3px 5px; border-radius: 4px; }
.about-main .about-footnote { font-size: 11px; margin-top: 28px; }
.about-main p a { text-decoration: underline; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 800px) {
  .lookup-page.has-lookup .header { grid-template-columns: 1fr auto; gap: 14px 20px; height: auto; padding-top: 20px; padding-bottom: 15px; }
  .has-lookup .navbar-lookup { grid-column: 1 / -1; grid-row: 2; }
  .lookup-page.has-lookup .lookup-main { padding-top: 40px; }
}
@media (max-width: 600px) {
  .header { height: 80px; padding: 0 20px; }
  .wordmark { font-size: 25px; }
  nav { gap: 20px; font-size: 12px; }
  .lookup-main { padding: 50px 0 120px; }
  .lookup-view h1 { letter-spacing: -2.5px; margin-bottom: 30px; }
  .search-box { gap: 10px; padding-left: 13px; }
  .search-box input { font-size: 16px; }
  .search-box input::placeholder { font-size: 12px; }
  .lookup-button { padding: 0 12px; gap: 8px; font-size: 12px; }
  .finding { padding: 25px; }
  .finding h2 { font-size: 24px; }
  .finding-verdict { font-size: 13px; }
  .provider-logo { width: 50px; height: 50px; min-width: 50px; }
  .provider-logo img { width: 30px; height: 30px; }
  .about-main { margin-top: 34px; }
  .stat { padding: 0 12px; }
  .stat strong { font-size: 21px; }
  .stat span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
