@font-face {
  font-family: Dana;
  src: url("../fonts/dana/dana-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Dana;
  src: url("../fonts/dana/dana-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Dana;
  src: url("../fonts/dana/dana-demibold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Dana;
  src: url("../fonts/dana/dana-bold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #140f11;
  --surface: #1d1719;
  --surface-2: #2a1f23;
  --surface-3: #171114;
  --text: #f7f1ee;
  --muted: #c1aba6;
  --line: rgba(255, 255, 255, .11);
  --brand: #de8b44;
  --brand-2: #5b21b6;
  --warn: #f2b84b;
  --danger: #ff7d7d;
  --ok: #61d49d;
  --shadow: 0 16px 44px rgba(0, 0, 0, .24);
  --shadow-hover: 0 24px 58px rgba(62, 10, 28, .36);
  --radius: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --section-gap: 16px;
}

[data-bs-theme="light"] {
  color-scheme: light;
  --bg: #f8f2ef;
  --surface: #ffffff;
  --surface-2: #f8ece8;
  --surface-3: #fcf6f3;
  --text: #221518;
  --muted: #7d6661;
  --line: rgba(57, 31, 36, .11);
  --shadow: 0 12px 36px rgba(76, 33, 25, .08);
  --shadow-hover: 0 22px 50px rgba(98, 17, 44, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-3) 45%, transparent), transparent 360px),
    var(--bg);
  color: var(--text);
  font-family: Inter, Dana, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  font-size: 1rem;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

body[dir="ltr"] {
  font-family: Inter, Dana, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 40px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease), transform .28s var(--ease), background-color .28s var(--ease);
}

.scroll-top-btn {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 40;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand-2) 18%, var(--line));
  border-radius: 16px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--brand-2) 10%, var(--surface-2)));
  color: var(--text);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.94);
  pointer-events: none;
  transition: opacity .28s var(--ease), visibility .28s var(--ease), transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease), background-color .28s var(--ease), color .28s var(--ease);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: color-mix(in srgb, var(--brand) 34%, var(--brand-2));
  box-shadow: 0 20px 36px color-mix(in srgb, var(--brand-2) 20%, transparent);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  direction: ltr;
  transition: transform .28s var(--ease), filter .28s var(--ease);
}

.brand-mark:hover {
  transform: translateY(-1px);
  filter: saturate(1.04);
}

.brand-icon,
.icon-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--brand);
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.brand-mark strong,
.brand-mark small {
  display: block;
  white-space: nowrap;
}

.brand-mark strong {
  font-size: .92rem;
  font-weight: 800;
}

.brand-mark small {
  color: var(--muted);
  font-size: .7rem;
  margin-top: 2px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.icon-btn,
.copy-btn {
  min-height: 36px;
  border-radius: var(--radius);
}
.icon-btn:hover,
.copy-btn:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--brand-2) 42%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-2) 20%, var(--surface-2)), color-mix(in srgb, var(--brand) 16%, var(--surface-2)));
  transform: translateY(-1px);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--brand-2) 16%, transparent);
}

.icon-btn,
.copy-btn {
  cursor: pointer;
}

main {
  padding-top: var(--section-gap);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: var(--section-gap);
  align-items: stretch;
}

.hero-copy,
.risk-card,
.info-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
  transition: transform .34s var(--ease), box-shadow .34s var(--ease), border-color .34s var(--ease), background-color .34s var(--ease), filter .34s var(--ease);
}

.hero-copy::before,
.risk-card::before,
.info-card::before,
.intro-card::before,
.method-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--brand) 12%, transparent), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 6%, transparent), transparent 42%, color-mix(in srgb, var(--brand-2) 8%, transparent));
  opacity: .72;
  pointer-events: none;
  transition: opacity .34s var(--ease), transform .42s var(--ease), filter .34s var(--ease);
}

.hero-copy {
  padding: clamp(16px, 3vw, 24px);
  min-width: 0;
}

.hero-copy:hover,
.risk-card:hover,
.info-card:hover {
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px) scale(1.005);
  filter: saturate(1.03);
}

.hero-copy:hover::before,
.risk-card:hover::before,
.info-card:hover::before,
.intro-card:hover::before,
.method-card:hover::before {
  opacity: 1;
  transform: translateY(-4px) scale(1.01);
}

.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-size: .8rem;
  font-weight: 800;
}

h1 {
  max-width: 900px;
  margin: 10px 0 10px;
  font-size: clamp(1.4rem, 2.7vw, 2.28rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
  font-size: .96rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: minmax(0, 360px);
  gap: 10px;
  margin-top: var(--section-gap);
}

.hero-meta-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-3) 88%, transparent);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease), background-color .28s var(--ease);
}

.hero-meta-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand-2) 34%, var(--line));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--brand-2) 12%, transparent);
}

.hero-meta-item i {
  color: var(--brand-2);
}

.hero-meta-item span {
  display: block;
  color: var(--muted);
  font-size: .74rem;
}

.hero-meta-item strong {
  display: block;
  margin-top: 2px;
  font-size: .82rem;
  line-height: 1.55;
}

.hero-meta-item strong,
.hero-meta-item span,
.metric-list dd,
.metric-list dt,
.lookup-row .form-control,
.copy-btn,
.mini-link,
.footer-copy,
.footer-grid p,
.footer-grid strong,
.webrtc-summary,
.result-box,
.json-box {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.lookup-box {
  margin-top: var(--section-gap);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-3) 86%, transparent);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}

.lookup-box:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand-2) 30%, var(--line));
  box-shadow: 0 16px 32px color-mix(in srgb, var(--brand-2) 10%, transparent);
}

.lookup-box label,
.select-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.lookup-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 8px;
}

.lookup-row .form-control,
.form-select {
  min-height: 40px;
  border-color: var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  color: var(--text);
  box-shadow: none;
  transition: transform .26s var(--ease), border-color .26s var(--ease), box-shadow .26s var(--ease), background-color .26s var(--ease);
}

.lookup-row .btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: .83rem;
  font-weight: 800;
  line-height: 1;
  border-width: 1px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease), filter .3s var(--ease);
}

.lookup-row .btn i {
  font-size: .82rem;
}

.lookup-row .btn-primary {
  border-color: color-mix(in srgb, var(--brand-2) 18%, var(--brand));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 90%, white 10%), color-mix(in srgb, var(--brand-2) 26%, var(--brand)));
  color: #fff8f2;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--brand) 18%, transparent);
}

.lookup-row .btn-primary:hover,
.lookup-row .btn-primary:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-2) 38%, var(--brand));
  box-shadow: 0 16px 34px color-mix(in srgb, var(--brand-2) 18%, transparent);
  filter: saturate(1.04);
}

.lookup-row .btn-outline-secondary {
  border-color: color-mix(in srgb, var(--brand-2) 18%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 86%, transparent), color-mix(in srgb, var(--brand-2) 10%, transparent));
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-2) 10%, transparent);
}

.lookup-row .btn-outline-secondary:hover,
.lookup-row .btn-outline-secondary:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-2) 36%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-2) 16%, var(--surface-2)), color-mix(in srgb, var(--brand) 8%, var(--surface-2)));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--brand-2) 14%, transparent);
}

.lookup-row .form-control {
  direction: ltr;
  text-align: left;
  font-weight: 700;
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif !important;
  unicode-bidi: plaintext;
}

.lookup-row .form-control:focus,
.form-select:focus {
  border-color: color-mix(in srgb, var(--brand) 62%, var(--line));
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 18%, transparent);
  transform: translateY(-1px);
}

.ip-panel {
  margin-top: var(--section-gap);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}

.ip-panel:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  box-shadow: 0 16px 30px color-mix(in srgb, var(--brand) 10%, transparent);
}

.ip-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 10px;
}

.ip-line strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.55rem, 3.4vw, 2.55rem);
  line-height: 1.12;
  font-weight: 800;
  direction: ltr;
  text-align: start;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
  font-size: .76rem;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.quick-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
  direction: ltr;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 27px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1;
  font-family: Inter, Dana, "Segoe UI", Arial, Helvetica, sans-serif;
  transition: transform .28s var(--ease), border-color .28s var(--ease), color .28s var(--ease), background-color .28s var(--ease), box-shadow .28s var(--ease);
}

.tag:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-2) 42%, var(--line));
  color: var(--text);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-2) 16%, transparent);
}

.tag.ipv6-tag {
  border-color: color-mix(in srgb, var(--brand) 52%, var(--line));
  background: color-mix(in srgb, var(--brand) 14%, var(--surface-2));
  color: var(--text);
  font-weight: 800;
}

.risk-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 16px;
}

.risk-controls-inline {
  display: grid;
  gap: 7px;
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  transition: transform .28s var(--ease), border-color .28s var(--ease), background-color .28s var(--ease);
}

.risk-controls-inline .form-select {
  min-height: 34px;
  border-color: var(--line);
  background-color: var(--surface-2);
  color: var(--text);
  font-size: .8rem;
}

.risk-ring {
  --ring: var(--ok);
  width: min(176px, 48vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle, var(--surface) 58%, transparent 60%),
    conic-gradient(var(--ring) calc(var(--score) * 1%), color-mix(in srgb, var(--muted) 20%, transparent) 0);
  transition: background .35s var(--ease), transform .25s var(--ease);
}

.risk-card:hover .risk-ring {
  transform: scale(1.025);
}

.risk-ring span {
  font-size: clamp(2.25rem, 6vw, 3.8rem);
  font-weight: 800;
}

.risk-card.is-watch .risk-ring {
  --ring: var(--warn);
}

.risk-card.is-risky .risk-ring {
  --ring: var(--danger);
}

.risk-copy {
  text-align: center;
}

.risk-copy strong {
  display: block;
  font-size: 1.2rem;
  margin: 4px 0;
}

.risk-copy p,
.muted-text {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  font-size: .9rem;
}

.hero-meta .status-datetime {
  display: grid;
  gap: 2px;
  line-height: 1.55;
}

.hero-meta .status-datetime b {
  color: var(--text);
  font-size: .8rem;
  font-weight: 800;
}

.hero-meta .status-datetime small {
  color: var(--muted);
  font-size: .72rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--section-gap);
  margin-top: var(--section-gap);
  margin-bottom: var(--section-gap);
}

.intro-card,
.method-card,
.site-footer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
}

.intro-card {
  padding: 14px 16px;
  transition: transform .34s var(--ease), box-shadow .34s var(--ease), border-color .34s var(--ease), background-color .34s var(--ease);
}

.intro-card:hover,
.method-card:hover,
.site-footer:hover {
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.intro-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: .89rem;
}

.methodology-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--section-gap);
  margin-top: calc(var(--section-gap) + 4px);
  margin-bottom: var(--section-gap);
}

.method-card {
  padding: 14px 16px;
}

.method-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
  font-size: .87rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--section-gap);
  align-items: stretch;
}

.info-card {
  grid-column: span 4;
  min-width: 0;
  padding: 16px;
  height: 100%;
  align-self: stretch;
}

.primary-card,
.map-card,
.third-card {
  grid-column: span 4;
}

.wide-card {
  grid-column: span 6;
}

.findings-card {
  grid-column: span 4;
}

.full-card {
  grid-column: 1 / -1;
}

.map-card {
  display: flex;
  flex-direction: column;
}

.map-card .map-frame {
  flex: 1;
}

.identity-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  transition: transform .28s var(--ease), opacity .28s var(--ease), filter .28s var(--ease);
}

.identity-copy {
  min-width: 0;
}

.isp-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface-2));
  color: var(--text);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: color-mix(in srgb, var(--brand) 52%, var(--brand-2));
  font-weight: 800;
  font-size: .94rem;
  transition: color .34s var(--ease), transform .34s var(--ease), text-shadow .34s var(--ease);
}

.info-card:hover .card-title,
.intro-card:hover .card-title,
.method-card:hover .card-title,
.risk-card:hover .panel-label {
  color: color-mix(in srgb, var(--brand-2) 72%, white);
  text-shadow: 0 0 18px color-mix(in srgb, var(--brand-2) 18%, transparent);
}

.info-card:hover .identity-head {
  transform: translateY(-1px);
}

.card-title.with-action {
  justify-content: space-between;
  gap: 12px;
}

.card-title.with-action > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.webrtc-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease), background-color .28s var(--ease);
}

.segmented-control:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand-2) 30%, var(--line));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-2) 12%, transparent);
}

.segmented-btn {
  min-width: 86px;
  min-height: 30px;
  padding: 5px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.segmented-btn:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.segmented-btn.active {
  background: color-mix(in srgb, var(--brand) 18%, var(--surface));
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 42%, transparent);
}

.info-card > strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.15rem;
  margin-bottom: 3px;
}

.info-card > p {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: .9rem;
}

.metric-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.metric-list div {
  display: grid;
  grid-template-columns: minmax(84px, .8fr) minmax(0, 1.2fr);
  gap: 9px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  transition: transform .24s var(--ease), border-color .24s var(--ease), color .24s var(--ease);
}

.info-card:hover .metric-list div {
  border-top-color: color-mix(in srgb, var(--brand) 18%, var(--line));
}

.metric-list div:hover {
  transform: translateX(-2px);
}

.metric-list dt {
  color: var(--muted);
  font-weight: 500;
  font-size: .82rem;
}

.metric-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: end;
  font-weight: 800;
  font-size: .84rem;
}

body[dir="rtl"] .metric-list dd,
body[dir="rtl"] .ip-line strong {
  direction: rtl;
  text-align: end;
}

body[dir="ltr"] .metric-list dd,
body[dir="ltr"] .ip-line strong {
  direction: ltr;
}

body[dir="rtl"] .tag {
  direction: ltr;
}

.findings-list {
  display: grid;
  gap: 8px;
}

.findings-note {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
  font-size: .86rem;
}

.finding-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}

.finding-item:hover {
  transform: translateX(-4px) translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-2) 38%, var(--line));
  box-shadow: 0 16px 32px rgba(0, 0, 0, .18);
}

.finding-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.finding-item-title {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.finding-item i {
  margin-top: 2px;
  font-size: .92rem;
}

.finding-item-copy {
  min-width: 0;
}

.finding-item.good i {
  color: var(--ok);
}

.finding-item.warn i {
  color: #f4d2a0;
}

.finding-item.bad i {
  color: var(--danger);
}

.finding-item.warn {
  border-color: color-mix(in srgb, var(--brand-2) 42%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-2) 20%, var(--surface-3)), color-mix(in srgb, var(--brand) 8%, var(--surface-3)));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--brand-2) 12%, transparent),
    0 10px 22px rgba(70, 34, 120, .14);
}

.finding-item.warn strong {
  color: #f4ebff;
}

.finding-item.warn p {
  color: #d6caee;
}

.finding-item.warn .finding-impact {
  color: #efe4ff;
}

.finding-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: .95rem;
  line-height: 1.5;
}

.finding-item p {
  color: var(--muted);
  margin: 0;
  font-size: .86rem;
  line-height: 1.82;
}

.finding-item .finding-impact {
  color: var(--text);
  font-weight: 700;
  margin-top: 6px;
}

.finding-item code {
  color: var(--muted);
  font-size: .74rem;
  white-space: nowrap;
}

[data-bs-theme="light"] .finding-item.warn {
  border-color: color-mix(in srgb, var(--brand-2) 26%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-2) 9%, white), color-mix(in srgb, var(--brand) 10%, white));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--brand-2) 8%, transparent),
    0 10px 22px rgba(91, 33, 182, .08);
}

[data-bs-theme="light"] .finding-item.warn strong {
  color: #4c1d95;
}

[data-bs-theme="light"] .finding-item.warn p {
  color: #6b5a88;
}

[data-bs-theme="light"] .finding-item.warn .finding-impact {
  color: #5b21b6;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  transition: transform .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease), background-color .28s var(--ease), box-shadow .28s var(--ease);
}

.mini-link:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--brand-2) 44%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--brand-2) 18%, transparent);
}

.as-button {
  cursor: pointer;
}

.map-frame {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--brand) 10%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--brand-2) 10%, transparent) 1px, transparent 1px),
    var(--surface-3);
  background-size: 42px 42px;
  transition: transform .32s var(--ease), border-color .32s var(--ease), box-shadow .32s var(--ease), filter .32s var(--ease);
}

.map-card:hover .map-frame {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-2) 34%, var(--line));
  box-shadow: 0 18px 32px color-mix(in srgb, var(--brand-2) 12%, transparent);
  filter: saturate(.96);
}

.map-frame iframe,
.map-frame img,
.map-tile {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: cover;
  border: 0;
  filter: saturate(.88) contrast(1.02);
}

.map-embed {
  width: 100%;
  height: 250px;
  display: block;
  border: 0;
  filter: saturate(.92) contrast(1.03);
}

.map-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ff5a67;
  border: 2px solid rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 5px rgba(255, 90, 103, .16);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.map-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 12px;
  background: rgba(255, 255, 255, .8);
  transform: translateX(-50%);
}

.map-marker-green {
  left: 50%;
  top: 50%;
  background: #3ccf7a;
  border-color: rgba(240, 255, 246, .96);
  box-shadow:
    0 0 0 6px rgba(60, 207, 122, .18),
    0 10px 24px rgba(27, 118, 63, .28);
}

.map-marker-green::after {
  width: 3px;
  height: 14px;
  background: rgba(235, 255, 243, .92);
}

.map-empty {
  min-height: 250px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
  padding: 18px;
}

.map-empty i {
  font-size: 1.6rem;
  color: var(--brand-2);
}

.setting-note {
  margin-top: 10px;
}

.json-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(9, 13, 18, .56);
  backdrop-filter: blur(12px);
}

.loading-panel {
  width: min(420px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-hover);
  text-align: center;
}

.loading-orb {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-top-color: var(--brand);
  animation: spin 1s linear infinite;
}

.loading-panel strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

.loading-panel p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.75;
}

.loading-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 12px;
  font-weight: 800;
  color: var(--brand);
}

.loading-meta span {
  min-width: 28px;
  font-size: 1.4rem;
  line-height: 1;
}

.loading-meta small {
  color: var(--muted);
  font-size: .78rem;
}

.loading-track {
  height: 6px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.loading-bar {
  display: block;
  width: var(--loading-progress, 100%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand-2) 82%, black));
  transition: width .3s linear;
}

.webrtc-summary {
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface-2));
  color: var(--text);
  font-size: .88rem;
  font-weight: 700;
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease), background-color .28s var(--ease);
}

.site-footer {
  margin-top: 18px;
  padding: 18px 18px 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.footer-grid strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--text);
  font-size: .92rem;
}

.footer-grid strong i {
  color: var(--brand);
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: .86rem;
}

.footer-grid a {
  color: color-mix(in srgb, var(--brand-2) 76%, var(--brand));
  font-weight: 800;
}

.footer-copy {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}

.latin-digits {
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif !important;
  direction: ltr;
  unicode-bidi: isolate;
  letter-spacing: 0;
  line-height: 1.05;
  display: inline;
  vertical-align: baseline;
  position: relative;
  top: .02em;
}

.tag .latin-digits,
.hero-meta-item .latin-digits,
.metric-list dd .latin-digits {
  line-height: inherit;
  display: inline;
  vertical-align: baseline;
}

.result-box,
.json-box {
  width: 100%;
  max-height: 360px;
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #071017;
  color: #d8fff2;
  direction: ltr;
  text-align: left;
  overflow: auto;
  font-size: .76rem;
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease), background-color .28s var(--ease);
}

.info-card:hover .webrtc-summary,
.info-card:hover .result-box,
.info-card:hover .json-box {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand-2) 28%, var(--line));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--brand-2) 10%, transparent);
}

[data-bs-theme="light"] .result-box,
[data-bs-theme="light"] .json-box {
  background: #10202c;
  color: #d8fff2;
}

.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes softIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: opacity .62s var(--ease), transform .62s var(--ease), filter .62s var(--ease);
  filter: blur(10px);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal-item.is-visible.hero-copy,
.reveal-item.is-visible.risk-card,
.reveal-item.is-visible.info-card,
.reveal-item.is-visible.intro-card,
.reveal-item.is-visible.method-card,
.reveal-item.is-visible.site-footer {
  animation: softIn .58s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1100px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .methodology-strip {
    grid-template-columns: 1fr;
  }

  .info-card,
  .primary-card,
  .map-card,
  .third-card,
  .wide-card,
  .findings-card {
    grid-column: span 6;
  }
}

@media (max-width: 860px) {
  body[dir="rtl"] .topbar {
    direction: rtl;
  }

  body[dir="ltr"] .topbar {
    direction: ltr;
  }

  .app-shell {
    width: min(100% - 28px, 760px);
    padding-top: 72px;
  }

  .topbar {
    position: fixed;
    top: 8px;
    left: 14px;
    right: 14px;
    min-height: 56px;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 12px;
  }

  .top-actions {
    position: absolute;
    top: 8px;
    left: 8px;
    justify-content: flex-start;
  }

  body[dir="rtl"] .brand-mark {
    direction: rtl;
    flex-direction: row;
    justify-content: flex-end;
    padding-left: 92px;
    padding-right: 6px;
    text-align: right;
    margin-right: 0;
  }

  body[dir="ltr"] .brand-mark {
    direction: ltr;
    flex-direction: row;
    justify-content: flex-start;
    padding-left: 92px;
    padding-right: 6px;
    text-align: left;
    margin-left: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--section-gap) + 4px);
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .risk-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .risk-ring {
    width: 136px;
  }

  .risk-copy {
    text-align: start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .methodology-strip,
  .dashboard-grid {
    gap: calc(var(--section-gap) + 4px);
  }

  .site-footer {
    margin-top: 22px;
  }

}

@media (max-width: 560px) {
  .app-shell {
    width: calc(100% - 32px);
    padding-top: 72px;
  }

  .brand-mark small {
    white-space: normal;
  }

  .brand-mark strong {
    font-size: .86rem;
  }

  .brand-mark small {
    font-size: .66rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .info-card,
  .primary-card,
  .map-card,
  .third-card,
  .wide-card,
  .findings-card {
    grid-column: 1;
  }

  .icon-btn {
    width: auto;
    min-width: 36px;
  }

  .topbar {
    left: 16px;
    right: 16px;
    padding: 9px 12px;
  }

  .top-actions {
    top: 9px;
    left: 10px;
    gap: 5px;
  }

  body[dir="rtl"] .brand-mark,
  body[dir="ltr"] .brand-mark {
    padding-left: 88px;
  }

  .hero-copy,
  .risk-card,
  .info-card,
  .intro-card,
  .method-card,
  .site-footer,
  .lookup-box,
  .ip-panel {
    border-radius: 14px;
  }

  .intro-grid,
  .methodology-strip,
  .dashboard-grid,
  .footer-grid {
    gap: 20px;
  }

  .scroll-top-btn {
    left: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .ip-line {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-btn {
    justify-content: center;
  }

  .risk-card {
    grid-template-columns: 1fr;
  }

  .risk-copy {
    text-align: center;
  }

  .lookup-row {
    grid-template-columns: 1fr;
  }

  .metric-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .metric-list dd {
    text-align: start;
  }

  .finding-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .finding-item code {
    grid-column: 2;
  }

  .card-title.with-action {
    align-items: stretch;
    flex-direction: column;
  }

  .webrtc-toolbar,
  .json-actions {
    width: 100%;
    justify-content: stretch;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-btn {
    flex: 1 1 0;
    min-width: 0;
  }

}
