/* extension/src/ui/fonts.css */
@font-face {
  font-family: "Geist";
  src: url("./fonts/Geist-Regular-IANQJJN5.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("./fonts/Geist-Medium-OXMNRHSS.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("./fonts/Geist-SemiBold-QUVKGTIF.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* extension/src/ui/ui.css */
:root,
:host {
  --ground: #f8f8f8;
  --surface: #ffffff;
  --raised: #eeeeee;
  --active: #ececec;
  --border: #e6e6e6;
  --rule: #f0f0f0;
  --control: #d4d4d4;
  --text: #0a0a0a;
  --muted: #5e5e5e;
  --primary: #141414;
  --focus: #1d5fbf;
  --likely: #c4242a;
  --likely-bg: #ffedea;
  --likely-ink: #831c1e;
  --possible: #b45309;
  --possible-bg: #fffbeb;
  --possible-line: #fde68a;
  --possible-ink: #92400e;
  --radius-card: 8px;
  --radius-control: 6px;
  --radius-chip: 4px;
  --font:
    "Geist",
    "SR Geist",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --on-primary: #ffffff;
  --primary-hover: #2b2b2b;
  --primary-done: #1f1f1f;
  --control-hover: #a3a3a3;
  --placeholder: #737373;
  --selection: #dbe6f7;
  --ok: #1a7f37;
  --photo-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.14);
  --shadow-soft: rgba(0, 0, 0, 0.06);
  --control-edge: #8a8a8a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e0e0f;
    --surface: #18181a;
    --raised: #252528;
    --active: #2c2c30;
    --border: #2e2e32;
    --rule: #222225;
    --control: #46464b;
    --text: #ededed;
    --muted: #a8a8ad;
    --primary: #ededed;
    --focus: #7eb0ff;
    --likely: #f0606a;
    --likely-bg: #3a1719;
    --likely-ink: #ffb8b2;
    --possible: #e8a04a;
    --possible-bg: #2e2411;
    --possible-line: #6a4f16;
    --possible-ink: #f6cd7a;
    --on-primary: #0e0e0f;
    --primary-hover: #d4d4d4;
    --primary-done: #d4d4d4;
    --control-hover: #6b6b70;
    --placeholder: #8e8e93;
    --selection: #2b4a7a;
    --ok: #5ccb7b;
    --photo-bg: #f4f4f4;
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-soft: rgba(0, 0, 0, 0.3);
    --control-edge: #7c7c82;
    color-scheme: dark;
  }
}
.num {
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .icon-btn,
  .link {
    transition: none;
  }
  .btn:active,
  .icon-btn:active {
    transform: none;
  }
}
.icon {
  flex: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  white-space: nowrap;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-chip);
  font: 500 12px/1 var(--font);
}
.pill.is-likely {
  background: var(--likely-bg);
  color: var(--likely-ink);
}
.pill.is-possible {
  background: var(--possible-bg);
  color: var(--possible-ink);
  box-shadow: inset 0 0 0 1px var(--possible-line);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
.dot.is-likely {
  background: var(--likely);
}
.dot.is-possible {
  background: var(--possible);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font: 500 14px/1 var(--font);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--control);
}
.btn[data-state=done] {
  background: var(--primary-done);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--primary-hover);
  }
  .btn-secondary:hover {
    background: var(--ground);
  }
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: 500 13px/20px var(--font);
  color: var(--text);
  cursor: pointer;
  min-height: 24px;
  text-decoration: underline;
  text-decoration-color: var(--control);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover {
    text-decoration-color: currentColor;
  }
}
:is(p, li) > .link {
  font-size: inherit;
  line-height: inherit;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 150ms ease,
    color 150ms ease;
}
.icon-btn:active {
  transform: scale(0.94);
}
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover {
    background: var(--raised);
    color: var(--text);
  }
}
:where(.btn, .link, .icon-btn, a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  font: 400 14px/20px var(--font);
  color: var(--text);
}
.detail p {
  margin: 0;
}
.verdict {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.verdict-line {
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  text-wrap: pretty;
}
.action-line {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text);
  padding-left: 10px;
  border-left: 3px solid var(--likely);
  text-wrap: pretty;
}
.action-line.is-possible {
  border-left-color: var(--possible);
}
.evidence {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
  text-wrap: pretty;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ph {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}
.ph img,
.ph-missing {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-control);
  background: var(--raised);
}
.ph-missing {
  font: 500 12px/16px var(--font);
  color: var(--muted);
  text-align: center;
  padding: 8px;
  box-sizing: border-box;
}
.ph-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-control);
  background: var(--raised);
  line-height: 0;
}
.ph-frame img {
  border-radius: 0;
}
.ph.has-outline .ph-frame img {
  object-fit: contain;
}
.ph.is-wide .ph-frame img {
  aspect-ratio: 4 / 3;
}
.ph-outline {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid var(--likely);
  border-radius: 6px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.92), 0 0 0 999px rgba(10, 10, 10, 0.22);
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.ph-outline.is-placed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .ph-outline {
    transition: none;
    transform: none;
  }
}
.spot {
  display: grid;
  gap: 12px;
}
.tell {
  font-size: 13px;
  line-height: 20px;
  text-wrap: pretty;
}
.tell b {
  font-weight: 600;
}
.label-check {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.label-out {
  justify-self: stretch;
}
.label-out:empty {
  display: none;
}
.label-result {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--ground);
  font-size: 13px;
  line-height: 20px;
}
.label-result.is-likely {
  background: var(--likely-bg);
}
.label-result.is-likely .label-title {
  color: var(--likely-ink);
}
.label-title {
  font-weight: 600;
}
.label-result .hint {
  margin-top: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ph-cap {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.pair.is-single {
  grid-template-columns: 104px 1fr;
  gap: 12px;
  align-items: start;
}
.risk {
  display: grid;
  gap: 6px;
}
.risk-name {
  font-weight: 600;
}
.risk-text {
  font-size: 13px;
  line-height: 20px;
  text-wrap: pretty;
}
.check,
.report,
.watch {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.check :is(h2, h3),
.report :is(h2, h3),
.watch :is(h2, h3) {
  margin: 0;
  font: 600 13px/20px var(--font);
}
.check > p,
.report > p,
.watch > p {
  text-wrap: pretty;
}
.report,
.watch {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.hint {
  margin-top: -4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.report-text {
  justify-self: stretch;
  font-size: 12px;
  line-height: 18px;
}
.report-text summary {
  cursor: pointer;
  color: var(--muted);
}
.report-text pre {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--ground);
  font: 12px/18px var(--font);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}
.question {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--ground);
  font-size: 13px;
  line-height: 20px;
  color: var(--text);
  justify-self: stretch;
  text-wrap: pretty;
  user-select: text;
}
.facts {
  display: grid;
  margin: 0;
}
.facts > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
}
.facts > div:last-child {
  border-bottom: 1px solid var(--rule);
}
.facts dt {
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
}
.facts dd {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  text-wrap: pretty;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.how {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
@media (max-width: 300px) {
  .pair,
  .pair.is-single {
    grid-template-columns: minmax(0, 1fr);
  }
  .btn {
    height: auto;
    min-height: 36px;
    padding-top: 8px;
    padding-bottom: 8px;
    white-space: normal;
    line-height: 18px;
    text-align: center;
  }
  .detail,
  .verdict-line,
  .evidence {
    overflow-wrap: anywhere;
  }
}

/* web/src/try.css */
html {
  background: var(--ground);
  color: var(--text);
  font: 400 15px/22px var(--font);
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
}
h1,
h2,
p {
  margin: 0;
}
a {
  color: inherit;
}
.muted {
  color: var(--muted);
}
code {
  font:
    500 13px/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--border);
}
.bar,
.wrap,
.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
}
.brand {
  font: 600 15px/1 var(--font);
  text-decoration: none;
}
.tag {
  font-size: 13px;
  line-height: 20px;
  color: var(--possible-ink);
  text-align: right;
}
.intro {
  padding: 24px 0 40px;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 16px;
}
.intro h1 {
  font: 600 clamp(28px, 4vw, 40px)/1.1 var(--font);
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 22ch;
}
.lede {
  font-size: 17px;
  line-height: 26px;
  max-width: 52ch;
  text-wrap: pretty;
}
.steps {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  max-width: 70ch;
}
.steps li {
  padding-left: 4px;
}
.steps .btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  margin-right: 4px;
  text-decoration: none;
}
.steps .copy {
  font: 500 12px/1 var(--font);
  height: 24px;
  padding: 0 8px;
  margin: 0 2px;
  border: 0;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.steps .copy:active {
  transform: scale(0.96);
}
@media (prefers-reduced-motion: reduce) {
  .steps .copy,
  .steps .btn {
    transition: none;
  }
  .steps .copy:active,
  .steps .btn:active {
    transform: none;
  }
}
.status {
  font-size: 14px;
  line-height: 21px;
  color: var(--muted);
  max-width: 70ch;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.status.is-on {
  color: var(--text);
  font-weight: 500;
  box-shadow: inset 3px 0 0 var(--likely), inset 0 0 0 1px var(--border);
}
.note {
  font-size: 14px;
  line-height: 21px;
  color: var(--muted);
  max-width: 60ch;
}
.note a {
  color: var(--text);
}
.preview {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.preview .btn {
  height: 44px;
}
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 32px 0 16px;
}
.results-head h2 {
  font: 600 20px/1.2 var(--font);
}
.grid {
  list-style: none;
  margin: 0;
  padding: 0 0 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
}
@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
  }
}
.item {
  display: grid;
  gap: 8px;
  align-content: start;
}
.photo {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--photo-bg);
}
.title {
  font-weight: 500;
  line-height: 21px;
  text-decoration: none;
}
.title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.meta {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}
.price {
  color: var(--text);
  font-weight: 600;
}
.detail {
  padding-top: 16px;
  padding-bottom: 56px;
}
.back {
  font-size: 14px;
  color: var(--muted);
}
.listing {
  display: grid;
  gap: 24px;
  margin-top: 16px;
}
@media (min-width: 860px) {
  .listing {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
}
.big {
  width: 100%;
  border-radius: 12px;
  background: var(--photo-bg);
  box-shadow: inset 0 0 0 1px var(--border);
}
.listing h1 {
  font: 600 clamp(24px, 3vw, 32px)/1.15 var(--font);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.big-price {
  font-size: 22px;
  line-height: 1.2;
  margin: 12px 0 4px;
}
.label-photo {
  margin: 24px 0 0;
  display: grid;
  gap: 8px;
  max-width: 420px;
}
.label-photo img {
  width: 100%;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--border);
}
.label-photo figcaption {
  font-size: 14px;
  line-height: 21px;
  color: var(--muted);
}
.label-photo a {
  color: var(--text);
}
.desc {
  margin-top: 20px;
  font-size: 16px;
  line-height: 25px;
  max-width: 52ch;
}
.foot {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}
.foot p {
  max-width: 64ch;
}
