:root {
  color-scheme: light dark;
  --bg: #f2f6f8;
  --paper: #fff;
  --ink: #11273c;
  --muted: #4c6476;
  --line: #c7d6de;
  --teal: #007b7b;
  --soft: #e0f1f0;
  --input: #fff;
  --quiet-bg: #edf1f4;
  --quiet-ink: #465b68;
  --amber-bg: #fff2d6;
  --amber-ink: #784700;
  --red-bg: #fff0ee;
  --red-ink: #a32630;
  --mono: ui-monospace, Consolas, monospace;
  font-family: Tahoma, "Noto Sans Arabic", "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  --quiet-bg: #243848;
  --quiet-ink: #c4d4de;
  --amber-bg: #483718;
  --amber-ink: #ffda8d;
  --red-bg: #4c2630;
  --red-ink: #ffb4b7;
  --bg: #0e1c29;
  --paper: #152839;
  --ink: #eaf3f7;
  --muted: #a9becb;
  --line: #385063;
  --teal: #54d3c8;
  --soft: #183b40;
  --input: #172c3b;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --quiet-bg: #243848;
    --quiet-ink: #c4d4de;
    --amber-bg: #483718;
    --amber-ink: #ffda8d;
    --red-bg: #4c2630;
    --red-ink: #ffb4b7;
    --bg: #0e1c29;
    --paper: #152839;
    --ink: #eaf3f7;
    --muted: #a9becb;
    --line: #385063;
    --teal: #54d3c8;
    --soft: #183b40;
    --input: #172c3b;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button,
a {
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #37b6ac;
  outline-offset: 3px;
}
.wrap {
  width: min(100% - 36px, 840px);
  margin: auto;
}
header {
  background: var(--paper);
}
.bar,
.brand,
.help,
.row,
.tag,
.back,
.chip,
.copy,
.primary,
.link,
.note {
  display: flex;
  align-items: center;
}
.bar {
  height: 68px;
  justify-content: space-between;
}
.brand {
  font-size: 23px;
  gap: 10px;
  font-weight: 750;
}
.mark {
  width: 41px;
  height: 41px;
  border-radius: 11px;
  background: linear-gradient(145deg, #154b58, #102b40);
  display: grid;
  place-items: center;
  color: white;
}
.help {
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--muted);
}
svg {
  display: block;
  width: 23px;
  height: 23px;
  flex: none;
}
.help svg {
  width: 27px;
  height: 27px;
}
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(115deg, #0a3444, #102943 70%, #142c44);
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, #75e1d00d 1px, transparent 1px),
    linear-gradient(#75e1d00d 1px, transparent 1px),
    radial-gradient(ellipse at 15% 15%, #1b766a77, transparent 54%);
  background-size:
    28px 28px,
    28px 28px,
    100% 100%;
  mask-image: linear-gradient(90deg, #000, transparent 95%);
}
.hero .wrap {
  position: relative;
  padding-block: 32px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(27px, 4.5vw, 41px);
  line-height: 1.45;
}
.hero p {
  margin: 5px 0 0;
  color: #d8ebf2;
}
.hero form {
  display: flex;
  padding: 4px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 16px #0016282e;
}
.hero input {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 8px;
  background: white;
  color: #10283a;
  padding: 8px 12px;
}
.hero input:placeholder-shown {
  direction: rtl;
  text-align: right;
}
.searchbtn {
  border: 0;
  background: #007d7c;
  color: white;
  border-radius: 9px;
  width: 52px;
  display: grid;
  place-items: center;
}
.content {
  padding-top: 23px;
  padding-bottom: max(38px, env(safe-area-inset-bottom));
}
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 22px;
  margin-bottom: 14px;
}
h3 {
  font-size: 17px;
}
.list {
  display: grid;
  gap: 9px;
}
.row {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  padding: 15px 16px;
  width: 100%;
  text-align: start;
  gap: 13px;
  min-height: 64px;
  font-weight: 700;
  font-size: 17px;
}
.row > .symbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 43px;
  height: 43px;
  border: 1px solid color-mix(in srgb, var(--teal) 24%, transparent);
  border-radius: 12px;
  background: var(--soft);
  color: var(--teal);
}
.row .arrow {
  margin-inline-start: auto;
  color: var(--muted);
}
.row:hover,
.chip:hover,
.link:hover {
  border-color: var(--teal);
  background: var(--soft);
}
.section {
  margin-top: 23px;
}
.chips,
.actions,
.tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip,
.link,
.copy,
.back,
.primary {
  gap: 7px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  padding: 6px 12px;
}
.chip {
  font-family: var(--mono);
  font-size: 13px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.back,
.copy {
  background: transparent;
  color: var(--muted);
}
.back {
  margin-bottom: 13px;
}
.card,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 19px;
  margin: 10px 0;
}
.card h2 {
  margin: 7px 0 1px;
  font-size: 24px;
}
.tag {
  font-size: 13px;
  color: var(--teal);
  gap: 7px;
  font-weight: 700;
}
.tag svg,
.back svg,
.copy svg {
  width: 17px;
  height: 17px;
}
.technical {
  font: 14px/1.6 var(--mono);
  overflow-wrap: anywhere;
  unicode-bidi: isolate;
}
.tools {
  align-items: center;
  justify-content: space-between;
  margin: 5px 0 12px;
}
.copy {
  padding: 6px;
  min-width: 40px;
  justify-content: center;
}
.summary {
  color: var(--muted);
  margin: 9px 0;
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--teal);
  font-size: 13px;
}
.fields {
  margin: 14px 0;
  display: grid;
  grid-template-columns: minmax(85px, 1fr) minmax(0, 2.3fr);
  font-size: 14px;
}
.fields dt,
.fields dd {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.fields dt {
  color: var(--muted);
  padding-inline-end: 10px;
}
.fields dd {
  white-space: pre-line;
}
.fields a {
  text-decoration: underline;
  color: var(--teal);
}
.tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  margin-top: 15px;
}
.tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 9px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}
.tabs button[aria-pressed="true"] {
  color: var(--teal);
  border-color: var(--teal);
}
.actions {
  margin-top: 15px;
}
.link {
  color: var(--teal);
  font-size: 14px;
}
.primary {
  color: white;
  background: #007b78;
  border-color: #007b78;
  justify-content: center;
}
.formgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
  gap: 12px;
  margin: 12px 0;
}
.formgrid label {
  display: grid;
  color: var(--muted);
  gap: 3px;
  font-size: 13px;
}
.formgrid input,
.formgrid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  color: var(--ink);
  background: var(--input);
}
.source {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 8px;
}
.notice {
  padding: 14px 0;
  color: var(--muted);
}
.sr {
  position: absolute;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
@media (min-width: 750px) {
  .bar {
    height: 78px;
  }
  .hero .wrap {
    padding-block: 39px;
  }

  .content {
    padding-top: 31px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .row,
  .chip,
  .link {
    transition:
      background 0.16s,
      border-color 0.16s;
  }
  .card {
    animation: appear 0.18s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(3px);
    }
  }
}

.hero-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.hero-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 124px;
  height: 106px;
  flex: none;
  isolation: isolate;
}
.hero-symbol img {
  position: relative;
  width: 73px;
  height: auto;
  filter: drop-shadow(0 5px 12px #03182388);
}
.orbit,
.orbit::before,
.orbit::after {
  position: absolute;
  border: 1px solid #73dcce47;
  border-radius: 50%;
  inset: 0;
  margin: auto;
  aspect-ratio: 1;
}
.orbit {
  width: 103px;
  height: 103px;
  background: radial-gradient(circle, #7ce5c828, transparent 69%);
}
.orbit::before {
  content: "";
  inset: -12px;
  border-style: dashed;
  border-color: #73dcce35;
}
.orbit::after {
  content: "";
  width: 5px;
  height: 5px;
  inset: auto 8px 19px auto;
  background: #8eeccf;
  box-shadow: -80px -49px 0 #64c8b1;
}
.hero form {
  min-height: 54px;
  border: 1px solid #a1e9e366;
}
.hero form:focus-within {
  outline: 2px solid #8fe6d5;
  outline-offset: 3px;
}
.hero input:focus-visible {
  outline: 0;
}
.hero .searchbtn:focus-visible {
  outline-offset: -4px;
}
.detected {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: #d6eaed;
  font-size: 13px;
}
.type-choice,
.type-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #688e98;
  border-radius: 18px;
  background: #183f50;
  color: #e0f6f0;
}
.type-choice {
  min-height: 40px;
}
.type-choice:hover {
  background: #245667;
}
.detected svg,
.state svg,
.source svg,
.evidence-list summary svg {
  width: 16px;
  height: 16px;
}
.row-title {
  flex: 1;
  min-width: 0;
}
.row-title strong,
.row-title small {
  display: block;
}
.row-title small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}
.row {
  box-shadow: 0 1px 2px #12374806;
}
.row .arrow svg {
  width: 18px;
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.card-heading h2 {
  overflow-wrap: anywhere;
  margin: 0;
}
.source {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.source svg {
  width: 14px;
}
.state {
  font-weight: 650;
  line-height: 1.55;
}
.state[data-kind="unknown"],
.state[data-kind="missing"],
.state[data-kind="unavailable"],
.state[data-kind="local"] {
  background: var(--quiet-bg);
  color: var(--quiet-ink);
}
.state[data-kind="conflict"],
.state[data-kind="partial"] {
  background: var(--amber-bg);
  color: var(--amber-ink);
}
.state[data-kind="threat"] {
  background: var(--red-bg);
  color: var(--red-ink);
}
.tools {
  background: var(--bg);
  padding: 4px 10px;
  gap: 5px;
  border-radius: 8px;
  flex-wrap: nowrap;
}
.tools bdi {
  min-width: 0;
}
.copy {
  border: 0;
  min-height: 38px;
}
.highlights {
  margin: 14px 0;
  background: var(--bg);
  border-inline-start: 3px solid var(--teal);
  border-radius: 8px;
  padding: 3px 14px;
}
.highlights > div {
  padding: 9px 0;
}
.highlights > div + div {
  border-top: 1px solid var(--line);
}
.highlights dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.highlights dd {
  margin: 2px 0;
  font-size: 15px;
}
.device-context,
.evidence-list {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 650;
  padding: 8px 0;
  min-height: 44px;
}
summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.evidence-list {
  border-top: 1px solid var(--line);
  padding-top: 5px;
}
.evidence-list summary svg {
  display: inline;
  vertical-align: middle;
  margin-inline: 6px;
}
.evidence-count {
  font: 12px var(--mono);
  padding: 3px 7px;
  border-radius: 10px;
  background: var(--soft);
  margin-inline-start: 7px;
}
.evidence-entry {
  padding: 12px 0;
}
.evidence-entry h3 {
  font-size: 15px;
}
.evidence-entry + .evidence-entry {
  border-top: 1px solid var(--line);
}
.has-query .hero .wrap {
  padding-block: 16px;
}
.has-query .hero-intro {
  margin-bottom: 12px;
}
.has-query .hero-intro p,
.has-query .orbit {
  display: none;
}
.has-query .hero-symbol {
  width: 45px;
  height: 43px;
}
.has-query .hero-symbol img {
  height: 41px;
  width: auto;
}
.has-query .hero h1 {
  font-size: 23px;
}
@media (max-width: 480px) {
  .hero .wrap {
    padding-block: 23px;
  }
  .hero-intro {
    gap: 8px;
  }
  .hero-intro p {
    font-size: 13px;
  }
  .hero-symbol {
    height: 77px;
    width: 77px;
  }
  .hero-symbol img {
    width: 50px;
  }
  .orbit {
    width: 65px;
    height: 65px;
  }
  .orbit::before {
    inset: -7px;
  }
  .orbit::after {
    right: 3px;
    bottom: 13px;
    box-shadow: -52px -28px 0 #64c8b1;
  }
  .hero h1 {
    font-size: 26px;
  }
  .row {
    padding: 11px 12px;
  }
  .card {
    padding: 15px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .searching .hero-symbol::after {
    content: "";
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 85%;
    aspect-ratio: 1;
    border: 2px solid #98f8d6;
    border-radius: 50%;
    animation: query-pulse 0.8s ease-out both;
  }
  @keyframes query-pulse {
    from {
      transform: translate(-50%, -50%) scale(0.6);
      opacity: 0.85;
    }
    to {
      transform: translate(-50%, -50%) scale(1.38);
      opacity: 0;
    }
  }
  .row:active,
  .chip:active,
  .type-choice:active,
  .searchbtn:active,
  .primary:active {
    transform: translateY(1px);
  }
}
