/* AIYO site styles. Tokens first; components below. No external fonts (Google Fonts is unreachable in mainland China). */
:root {
  --ink: #15182e;
  --ink-2: #464b65;
  --ink-3: #737891;
  --paper: #ffffff;
  --surface: #f5f6f9;
  --surface-2: #eceef4;
  --line: #e6e8ef;
  --line-strong: #cdd0dc;
  /* Brand: 朱砂, the red of a seal (the logo is a seal). Text in brand colour uses --brand-ink for contrast. */
  --brand: #e5452b;
  --brand-ink: #c2341d;
  --brand-soft: #fdeeea;
  --jade: #0e7c66;
  --jade-soft: #e2f2ee;
  --indigo: #4b4acf;
  --indigo-soft: #ebebfb;
  --vermilion: #d7372f;
  --vermilion-soft: #fbe8e7;
  --amber: #9a6410;
  --amber-soft: #fbf0dc;
  --focus: #4b4acf;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --shadow-s: 0 1px 2px rgb(21 24 46 / 0.06);
  --shadow-m: 0 6px 24px -8px rgb(21 24 46 / 0.16);
  --font:
    'PingFang SC', 'HarmonyOS Sans SC', 'MiSans', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', system-ui, -apple-system,
    'Segoe UI', Roboto, sans-serif;
  /* Figures (scores, ranks, counts): the DIN cut that ships with Apple and Windows devices, else the text face. */
  --font-num: 'DIN Alternate', 'Bahnschrift', 'DIN', 'Roboto Condensed', var(--font);
  --fs-xs: 12px;
  --fs-s: 14px;
  --fs-m: 16px;
  --fs-l: 19px;
  --fs-xl: 23px;
  --fs-2xl: 28px;
  --fs-3xl: 34px;
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --brand: #f2694f;
    --brand-ink: #f58a74;
    --brand-soft: #3a1d19;
    --ink: #e8eaf6;
    --ink-2: #b7bbd3;
    --ink-3: #8a8eab;
    --paper: #0f1222;
    --surface: #171a30;
    --surface-2: #1e2240;
    --line: #262a46;
    --line-strong: #363b60;
    --jade: #3cbc9e;
    --jade-soft: #11312b;
    --indigo: #9493f7;
    --indigo-soft: #23244d;
    --vermilion: #f2685f;
    --vermilion-soft: #3a1b1f;
    --amber: #e3ad55;
    --amber-soft: #352914;
    --focus: #9493f7;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --brand: #f2694f;
  --brand-ink: #f58a74;
  --brand-soft: #3a1d19;
  --ink: #e8eaf6;
  --ink-2: #b7bbd3;
  --ink-3: #8a8eab;
  --paper: #0f1222;
  --surface: #171a30;
  --surface-2: #1e2240;
  --line: #262a46;
  --line-strong: #363b60;
  --jade: #3cbc9e;
  --jade-soft: #11312b;
  --indigo: #9493f7;
  --indigo-soft: #23244d;
  --vermilion: #f2685f;
  --vermilion-soft: #3a1b1f;
  --amber: #e3ad55;
  --amber-soft: #352914;
  --focus: #9493f7;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-m);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'palt' 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--indigo);
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}
h1,
h2,
h3,
h4 {
  line-height: 1.3;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 {
  font-size: var(--fs-3xl);
}
h2 {
  font-size: var(--fs-xl);
}
h3 {
  font-size: var(--fs-l);
}
p {
  margin: 0 0 1em;
}
.num {
  font-variant-numeric: tabular-nums;
}
.score .v,
.prow .rank,
.big,
.stat .v {
  font-family: var(--font-num);
}
.muted {
  color: var(--ink-3);
}
.small {
  font-size: var(--fs-s);
}
.xsmall {
  font-size: var(--fs-xs);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
/* Pages that are one long list (rankings, search results): a readable measure, centred. */
.wrap.list-page {
  max-width: 960px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 12px;
  border-radius: var(--radius-s);
  z-index: 10;
}
.skip:focus {
  left: 8px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Header ------------------------------------------------------------------------------------------------------------ */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover {
  color: var(--ink);
}
.brand-lockup {
  display: block;
  height: 32px;
  width: auto;
}
.header-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}
/* The home page has its own big search box. */
.header-search.on-home {
  visibility: hidden;
}
.site-header .header-search input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 40px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: var(--surface-2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23737891' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E")
    no-repeat 15px center;
  font: inherit;
  font-size: var(--fs-s);
  color: var(--ink);
}
.site-header .header-search input:hover {
  border-color: var(--line-strong);
}
.site-header .header-search input:focus {
  background-color: var(--paper);
  border-color: var(--ink-3);
  outline: none;
  box-shadow: 0 0 0 3px var(--surface-2);
}
.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  padding: 6px 0;
  list-style: none;
  margin: 0;
  display: none;
}
.suggest.open {
  display: block;
}
.suggest a {
  display: block;
  padding: 6px 14px;
  text-decoration: none;
  font-size: var(--fs-s);
}
.suggest .label {
  color: var(--brand-ink);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.suggest a.type {
  font-weight: 600;
}
.suggest .kind {
  display: inline-block;
  padding: 0 6px;
  margin-right: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-weight: 400;
}
.suggest a:hover,
.suggest a[aria-selected='true'] {
  background: var(--surface);
  color: var(--ink);
}
.main-nav {
  display: flex;
  gap: 4px;
  font-size: 15px;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 18px;
  white-space: nowrap;
  flex-shrink: 0;
}
.main-nav a:hover {
  color: var(--ink);
  background: var(--surface);
}
.main-nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 700;
  background: var(--surface-2);
}
.user-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-s);
  white-space: nowrap;
}
.user-nav > a:not(.btn) {
  font-weight: 500;
}
.btn.login {
  height: 36px;
  padding: 0 18px;
  border-radius: 18px;
}
.user-nav .bell {
  position: relative;
  text-decoration: none;
}
.user-nav .bell .dot {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--vermilion);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  padding: 0 4px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  object-fit: cover;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-2);
  overflow: hidden;
  flex: none;
}
.avatar.lg {
  width: 72px;
  height: 72px;
  font-size: 28px;
}
/* Placeholder logos and avatars (an initial): one of eight tints, picked from the name. */
.logo[data-tint],
.avatar[data-tint] {
  color: var(--tint, #4a48c8);
  background: color-mix(in srgb, var(--tint, #4a48c8) 11%, var(--paper));
  border-color: color-mix(in srgb, var(--tint, #4a48c8) 18%, var(--paper));
}
[data-tint='0'] {
  --tint: #4a48c8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .logo[data-tint],
  :root:not([data-theme='light']) .avatar[data-tint] {
    color: color-mix(in srgb, var(--tint, #4a48c8) 55%, #fff);
  }
}
:root[data-theme='dark'] .logo[data-tint],
:root[data-theme='dark'] .avatar[data-tint] {
  color: color-mix(in srgb, var(--tint, #4a48c8) 55%, #fff);
}
[data-tint='1'] {
  --tint: #0f7b63;
}
[data-tint='2'] {
  --tint: #c2341d;
}
[data-tint='3'] {
  --tint: #a0640c;
}
[data-tint='4'] {
  --tint: #2b6cb0;
}
[data-tint='5'] {
  --tint: #8a3fb0;
}
[data-tint='6'] {
  --tint: #0e7490;
}
[data-tint='7'] {
  --tint: #b4365f;
}
@media (max-width: 1080px) {
  .site-header .wrap {
    gap: 16px;
  }
  .main-nav a {
    padding: 6px 8px;
  }
}
@media (max-width: 860px) {
  .site-header .wrap {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 0;
    gap: 10px 12px;
  }
  .brand-lockup {
    height: 28px;
  }
  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .header-search.on-home {
    display: none;
  }
  .main-nav {
    order: 4;
    flex-basis: calc(100% + 40px);
    margin: 0 -20px;
    padding: 0 14px 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }
  .main-nav a {
    padding: 6px 10px;
  }
}

/* Buttons and forms ---------------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-s);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: var(--fs-s);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  color: var(--paper);
  filter: brightness(1.25);
}
.btn.brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn.brand:hover {
  color: #fff;
  filter: brightness(1.06);
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn.secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
  filter: none;
}
.btn.danger {
  background: var(--vermilion);
  border-color: var(--vermilion);
}
.btn.small {
  height: 32px;
  padding: 0 12px;
  font-size: var(--fs-xs);
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn.on {
  background: var(--indigo-soft);
  color: var(--indigo);
  border-color: var(--indigo);
}
.field {
  margin-bottom: 18px;
}
.field label,
.field .label-text {
  display: block;
  font-size: var(--fs-s);
  font-weight: 600;
  margin-bottom: 6px;
}
.field .hint {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  margin-top: 4px;
}
.field .error-text {
  font-size: var(--fs-xs);
  color: var(--vermilion);
  margin-top: 4px;
}
input[type='text'],
input[type='tel'],
input[type='url'],
input[type='email'],
input[type='search'],
input[type='number'],
input[type='datetime-local'],
input[type='date'],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-m);
}
textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--indigo);
  outline: none;
  box-shadow: 0 0 0 3px var(--indigo-soft);
}
.field[aria-invalid='true'] input,
.field[aria-invalid='true'] textarea {
  border-color: var(--vermilion);
}
.inline-input {
  display: flex;
  gap: 8px;
}
.inline-input input {
  flex: 1;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}
legend {
  font-size: var(--fs-s);
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}
.choice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 4px 0;
  font-size: var(--fs-s);
}
.choice input {
  margin-top: 5px;
}
.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 2px;
}
.star-input input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.star-input label {
  font-size: 30px;
  line-height: 1;
  color: var(--line-strong);
  cursor: pointer;
  padding: 0 2px;
}
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
  color: var(--amber);
}
.star-input input:focus-visible + label {
  outline: 3px solid var(--focus);
  border-radius: 4px;
}

/* Flash and notices -------------------------------------------------------------------------------------------------------- */
/* Preview deployments (PREVIEW=1): one line above everything, on every page. */
.preview-banner {
  margin: 0;
  padding: 6px 16px;
  background: var(--amber-soft);
  color: var(--ink);
  border-bottom: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  font-size: var(--fs-s);
  text-align: center;
}
.flash {
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--indigo);
  background: var(--surface);
  padding: 10px 14px;
  border-radius: var(--radius-s);
  margin: 16px 0;
  font-size: var(--fs-s);
}
.flash.error {
  border-left-color: var(--vermilion);
  background: var(--vermilion-soft);
}
.flash.success {
  border-left-color: var(--jade);
  background: var(--jade-soft);
}
.notice {
  background: var(--amber-soft);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  border-radius: var(--radius-s);
  padding: 8px 12px;
  font-size: var(--fs-s);
}

/* Labels that disclose (AI, editor pick, commissioned, ad, machine translation) — always the same shape. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  font-size: var(--fs-xs);
  font-weight: 500;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  white-space: nowrap;
  vertical-align: middle;
}
.tag.ai {
  border-color: color-mix(in srgb, var(--amber) 60%, transparent);
  color: var(--amber);
}
.tag.scout {
  border-color: color-mix(in srgb, var(--jade) 55%, transparent);
  color: var(--jade);
}
.tag.verified {
  border-color: color-mix(in srgb, var(--indigo) 55%, transparent);
  color: var(--indigo);
}
.tag.warn {
  border-color: color-mix(in srgb, var(--vermilion) 55%, transparent);
  color: var(--vermilion);
}
.tag.ad {
  border-color: var(--ink-3);
  color: var(--ink-3);
}

/* Dual score — the signature element --------------------------------------------------------------------------------------- */
.scores {
  display: inline-flex;
  gap: 6px;
  align-items: stretch;
}
.score {
  min-width: 64px;
  padding: 7px 10px 6px;
  border-radius: var(--radius-s);
  text-align: left;
  line-height: 1.1;
}
.score .v {
  display: block;
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.score .k {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-top: 3px;
  white-space: nowrap;
}
.score.scout {
  background: var(--jade-soft);
  color: var(--jade);
}
.score.public {
  background: var(--indigo-soft);
  color: var(--indigo);
}
.score.pending {
  background: var(--surface);
  color: var(--ink-3);
}
.score.pending .v {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 5px 0 3px;
}
.scores.none {
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  white-space: nowrap;
}
.scores.lg .score {
  min-width: 112px;
  padding: 10px 14px 8px;
}
.scores.lg .score .v {
  font-size: 44px;
}
.scores.lg .score .k {
  font-size: var(--fs-xs);
}
/* No score yet: a quiet tile with the reason, not the reason at the size of a score. */
.scores.lg .score.pending {
  min-width: 96px;
}
.scores.lg .score.pending .v {
  font-family: var(--font);
  font-size: var(--fs-s);
  font-weight: 600;
  padding: 10px 0 6px;
}
.scores.sm .score {
  min-width: 50px;
  padding: 5px 8px 4px;
}
.scores.sm .score .v {
  font-size: 19px;
}
.scores.sm .score .k {
  font-size: 10px;
  margin-top: 2px;
}
/* Preliminary score in a list: same size as the others, marked by a dotted edge (the tooltip says why). */
.scores.sm .score.prelim {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent);
  background-image: none;
}

/* Verdict stamp: a seal pressed onto the review. */
.stamp {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid currentColor;
  outline: 1px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.05;
  letter-spacing: 0.05em;
  transform: rotate(-6deg);
  flex: none;
  writing-mode: horizontal-tb;
}
.stamp.must {
  color: var(--jade);
}
.stamp.recommend {
  color: var(--indigo);
}
.stamp.okay {
  color: var(--ink-3);
}
.stamp.avoid {
  color: var(--vermilion);
}
.stars {
  color: var(--amber);
  letter-spacing: 1px;
  font-size: var(--fs-s);
}
.stars .off {
  color: var(--line-strong);
}

/* Layout -------------------------------------------------------------------------------------------------------------------- */
main {
  min-height: 60vh;
  padding-bottom: 64px;
}
.page-head {
  padding: 32px 0 16px;
}
.page-head p {
  color: var(--ink-2);
  max-width: 64ch;
}
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.cols.wide-side {
  grid-template-columns: minmax(0, 1fr) 360px;
}
@media (max-width: 900px) {
  .cols,
  .cols.wide-side {
    /* minmax: a row of chips that scrolls sideways must not widen the column (and the page). */
    grid-template-columns: minmax(0, 1fr);
  }
}
.section {
  margin: 40px 0;
}
@media (max-width: 640px) {
  .section {
    margin: 28px 0;
  }
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 4px;
}
.section-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}
.section-head a {
  font-size: var(--fs-s);
  color: var(--ink-3);
  text-decoration: none;
}
.section-head a:hover {
  color: var(--ink);
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 20px;
  background: var(--paper);
}
.panel + .panel {
  margin-top: 16px;
}
.panel h3 {
  font-size: var(--fs-m);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 860px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Home hero: what do you want AI to do today? ----------------------------------------------------------------------------- */
.hero {
  padding: 56px 0 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .wrap {
  position: relative;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.hero .lead {
  font-size: var(--fs-l);
  color: var(--ink-2);
  margin: 0;
}
/* The seal, pressed at an angle: the one decorative element of the site. */
.hero-seal {
  position: absolute;
  right: 36px;
  top: 14px;
  height: 150px;
  transform: rotate(-9deg);
  opacity: 0.95;
}
.hero-seal .brand-seal {
  display: block;
  height: 100%;
  width: auto;
}
@media (max-width: 1000px) {
  .hero-seal {
    height: 120px;
    opacity: 0.18;
    right: -10px;
  }
}
@media (max-width: 640px) {
  .hero {
    padding: 32px 0 28px;
  }
  .hero .lead {
    font-size: var(--fs-m);
  }
  .hero-seal {
    display: none;
  }
}
.hero form {
  display: flex;
  gap: 0;
  max-width: 640px;
  margin: 28px 0 20px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-m);
}
.hero form:focus-within {
  border-color: var(--ink-3);
}
.hero form {
  position: relative;
}
.hero .suggest {
  top: calc(100% + 6px);
  box-shadow: var(--shadow-m);
}
.hero input[type='search'] {
  height: 48px;
  border: 0;
  background: transparent;
  font-size: var(--fs-l);
  padding: 0 12px;
  min-width: 0;
}
.hero input[type='search']:focus {
  outline: none;
  box-shadow: none;
}
.hero .btn {
  height: 48px;
  padding: 0 26px;
  font-size: var(--fs-m);
  border-radius: 11px;
}
.scene-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 760px;
}
.scene-chips a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  font-size: var(--fs-s);
  font-weight: 500;
  color: var(--ink);
}
.scene-chips a:hover {
  border-color: var(--brand);
  color: var(--brand-ink);
}
@media (max-width: 640px) {
  /* One row that scrolls sideways, instead of four rows of chips above the fold. */
  .scene-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -20px;
    padding: 2px 20px 4px;
    scrollbar-width: none;
  }
  .scene-chips::-webkit-scrollbar {
    display: none;
  }
  .scene-chips a {
    white-space: nowrap;
  }
}
.scene-chips .count {
  color: var(--ink-3);
  font-family: var(--font-num);
  font-size: var(--fs-xs);
  font-weight: 400;
}
/* "按类型找" / "按场景找": a short label, then its row of chips. Types lead; uses are quieter. */
.browse-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
}
.browse-label {
  flex: none;
  min-width: 4.5em;
  color: var(--ink-3);
  font-size: var(--fs-s);
}
.scene-chips.types a {
  padding: 7px 16px;
  font-size: var(--fs-m);
  font-weight: 600;
  border-color: var(--line-strong);
}
.scene-chips.uses a {
  padding: 4px 12px;
  background: transparent;
  color: var(--ink-2);
}
@media (max-width: 640px) {
  .browse-row {
    display: block;
  }
  .browse-label {
    display: block;
    margin-bottom: 6px;
  }
}

/* Product rows ---------------------------------------------------------------------------------------------------------------- */
.prows {
  list-style: none;
  margin: 0;
  padding: 0;
  container-type: inline-size;
}
.prow {
  display: grid;
  grid-template-columns: auto 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.prow:last-child {
  border-bottom: 0;
}
.prow .rank {
  width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.prow:nth-child(-n + 3) .rank {
  color: var(--brand-ink);
}
.prows:not(.ranked) .rank {
  display: none;
}
.prows:not(.ranked) .prow {
  grid-template-columns: 48px minmax(0, 1fr) auto;
}
.logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  object-fit: cover;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ink-2);
  font-size: 20px;
  overflow: hidden;
  flex: none;
}
.logo.lg {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  font-size: 36px;
}
.prow .title {
  line-height: 1.45;
}
.prow .name {
  font-weight: 700;
  font-size: var(--fs-m);
  text-decoration: none;
}
/* What it does, beside the name: moves to the next line as a whole rather than splitting. */
.prow .label {
  display: inline-block;
  font-weight: 600;
  font-size: var(--fs-s);
  color: var(--brand-ink);
}
.prow .title .tag {
  vertical-align: 2px;
}
.prow .tagline {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--fs-s);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* A product's intro is shown in full (at most 40 characters), wrapping as needed: it is what tells a reader what an
   unfamiliar name does. */
.prow .tagline.full {
  margin-top: 2px;
  white-space: normal;
  overflow: visible;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.prow .tagline .tag {
  height: 20px;
  padding: 0 6px;
  margin-right: 6px;
  vertical-align: 1px;
}
.prow .meta {
  color: var(--ink-3);
  font-size: var(--fs-xs);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Narrow lists (side columns, phones): smaller logo, one line of text under the name, compact scores. */
@container (max-width: 440px) {
  .prow,
  .prows:not(.ranked) .prow {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 0;
  }
  .prows.ranked .prow {
    grid-template-columns: 18px 40px minmax(0, 1fr) auto;
  }
  .prow .rank {
    width: 18px;
    font-size: 17px;
  }
  .prow .logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 17px;
  }
  .prow .name {
    font-size: 15px;
  }
  .prow .label,
  .prow .tagline {
    font-size: 13px;
  }
  .prow .meta {
    display: none;
  }
  .prow .scores.sm {
    gap: 4px;
  }
  .prow .scores.sm .score {
    min-width: 42px;
    padding: 4px 6px 3px;
  }
  .prow .scores.sm .score .v {
    font-size: 17px;
  }
}
@container (max-width: 280px) {
  .prows .prow,
  .prows.ranked .prow {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .prow .rank {
    display: none;
  }
  .prow .scores {
    grid-column: 2;
    justify-self: start;
  }
}

/* Product page ------------------------------------------------------------------------------------------------------------------- */
.product-head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 20px;
  padding: 32px 0 20px;
  align-items: start;
}
@media (max-width: 760px) {
  .product-head {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .product-head .logo.lg {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }
  .product-scores {
    grid-column: 1 / -1;
  }
}
.product-scores {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.product-head h1 {
  margin: 0 0 4px;
}
.product-head h1 .label {
  display: inline-block;
  font-size: 0.55em;
  font-weight: 600;
  color: var(--brand-ink);
  vertical-align: 0.15em;
}
.product-head .tagline {
  font-size: var(--fs-l);
  color: var(--ink-2);
  margin: 0 0 12px;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.score-block {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.score-explain {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  max-width: 36ch;
}
.bars {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  font-size: var(--fs-xs);
  min-width: 220px;
}
.bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  background: var(--ink-2);
  border-radius: 3px;
}
.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 14px;
  font-size: var(--fs-s);
  margin: 0;
}
.facts dt {
  color: var(--ink-3);
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.media-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 16px 0;
  scroll-snap-type: x mandatory;
}
.media-strip img {
  height: 220px;
  width: auto;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  scroll-snap-align: start;
}
.embed {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--surface);
}
.prose {
  max-width: 70ch;
}
.prose h2 {
  font-size: var(--fs-l);
  margin-top: 1.4em;
}
.prose h3 {
  font-size: var(--fs-m);
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose blockquote {
  margin: 0 0 1em;
  padding-left: 14px;
  border-left: 3px solid var(--line-strong);
  color: var(--ink-2);
}
.prose pre {
  background: var(--surface);
  padding: 12px;
  border-radius: var(--radius-s);
  overflow-x: auto;
  font-size: var(--fs-s);
}
.prose code {
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Tabs ------------------------------------------------------------------------------------------------------------------------------ */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin: 20px 0 0;
  overflow-x: auto;
}
.tabs a {
  padding: 10px 14px;
  text-decoration: none;
  font-size: var(--fs-s);
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tabs a[aria-current='true'],
.tabs a[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 600;
}

/* Reviews ------------------------------------------------------------------------------------------------------------------------- */
.reviews {
  list-style: none;
  margin: 0;
  padding: 0;
}
.review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-s);
}
.review-author .who {
  font-weight: 600;
  text-decoration: none;
}
.review-author .where {
  color: var(--ink-3);
  font-size: var(--fs-xs);
}
.review .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.review h3 {
  font-size: var(--fs-l);
  margin: 6px 0;
}
.review .body {
  grid-column: 1 / -1;
}
.review p > a {
  text-decoration: none;
}
.review p > a:hover {
  text-decoration: underline;
}
.review .body p:last-child {
  margin-bottom: 0;
}
.review-template {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 14px;
  font-size: var(--fs-s);
  margin: 10px 0;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--radius-s);
}
.review-template dt {
  color: var(--ink-3);
}
.review-template dd {
  margin: 0;
  white-space: pre-line;
}
.review-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.review-foot form {
  display: inline;
}
.vote {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  height: 28px;
  padding: 0 10px;
  font: inherit;
  font-size: var(--fs-xs);
  color: var(--ink-2);
  cursor: pointer;
}
.vote[aria-pressed='true'] {
  border-color: var(--indigo);
  color: var(--indigo);
  background: var(--indigo-soft);
}
.reply {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 10px 14px;
  border-left: 3px solid var(--indigo);
  background: var(--surface);
  font-size: var(--fs-s);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.review-images {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}
.review-images img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
}
.link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  text-decoration: none;
  font-size: var(--fs-s);
  max-width: 420px;
}
.comments {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comments li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-s);
}
.comments li.child {
  margin-left: 28px;
}

/* Misc ------------------------------------------------------------------------------------------------------------------------- */
.empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--ink-3);
  background: var(--surface);
  border-radius: var(--radius-m);
}
.empty .btn {
  margin-top: 12px;
}
.pager {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}
.kv {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: var(--fs-s);
  color: var(--ink-2);
}
.kv b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}
.rank-tabs a {
  padding: 6px 14px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-size: var(--fs-s);
}
.rank-tabs a[aria-current='page'] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
/* Categories: one card per top-level category, its subcategories as links inside. */
.cat-tree {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.cat-tree > li {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 18px 14px;
  background: var(--paper);
}
.cat-tree > li:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-s);
}
.cat-tree > li > a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.cat-tree ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: var(--fs-s);
}
.cat-tree ul a {
  color: var(--ink-2);
  text-decoration: none;
}
.cat-tree ul a:hover {
  color: var(--brand-ink);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-s);
}
.table th,
.table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th {
  color: var(--ink-3);
  font-weight: 600;
  font-size: var(--fs-xs);
}
.table td.num,
.table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.stack > * + * {
  margin-top: 12px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.spacer {
  flex: 1;
}
.code-box {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: var(--fs-s);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.chart {
  width: 100%;
  height: 160px;
}
.chart .line-scout {
  stroke: var(--jade);
}
.chart .line-public {
  stroke: var(--indigo);
}
.chart .axis {
  stroke: var(--line);
}
.chart text {
  fill: var(--ink-3);
  font-size: 11px;
}

/* Footer ----------------------------------------------------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 32px 0 44px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.site-footer .footer-brand {
  display: inline-flex;
  color: var(--ink);
  flex-basis: 100%;
  margin-bottom: 6px;
}
.footer-brand .brand-lockup {
  height: 26px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer a {
  color: var(--ink-3);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--ink);
}
.theme-toggle {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  height: 28px;
  padding: 0 10px;
  font: inherit;
  font-size: var(--fs-xs);
  color: var(--ink-2);
  cursor: pointer;
}
/* Language menu (E-LANG): sized like the theme toggle next to it. */
.lang-menu select {
  height: 28px;
  padding: 0 26px 0 10px;
  border-radius: 14px;
  font-size: var(--fs-xs);
  color: var(--ink-2);
  width: auto;
  min-height: 0;
}

/* Admin --------------------------------------------------------------------------------------------------------------------------- */
.admin-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 100vh;
}
.admin-nav {
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  background: var(--surface);
  font-size: var(--fs-s);
}
.admin-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-s);
  text-decoration: none;
  color: var(--ink-2);
}
.admin-nav a[aria-current='page'] {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}
.admin-main {
  padding: 24px 32px;
}
@media (max-width: 760px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-nav {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
.risk {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.risk.high {
  color: var(--vermilion);
}
.risk.mid {
  color: var(--amber);
}
.risk.low {
  color: var(--jade);
}
.minw0 {
  min-width: 0;
}
.m0 {
  margin: 0;
}
.mt0 {
  margin-top: 0;
}
.mb0 {
  margin-bottom: 0;
}
.mt16 {
  margin-top: 16px;
}
.mt24 {
  margin-top: 24px;
}
.hidden {
  display: none !important;
}
.inline {
  display: inline;
}

/* Web app additions ------------------------------------------------------------------------------------------------------------ */
.wrap.narrow,
.narrow {
  max-width: 760px;
}
.admin-main .narrow {
  max-width: 520px;
}
.center {
  text-align: center;
}
.right {
  text-align: right;
}
.w-auto {
  width: auto !important;
}
.prewrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.big {
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.1;
}
.btn.ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: transparent;
}
.btn.ghost:hover {
  color: var(--ink);
  background: var(--surface);
  filter: none;
}
.btn.ghost[aria-pressed='true'] {
  color: var(--indigo);
  border-color: var(--indigo);
  background: var(--indigo-soft);
}
.btn.block {
  display: flex;
  width: 100%;
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink-3);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linkish:hover {
  color: var(--indigo);
}
.radio,
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 6px 0;
  font-size: var(--fs-s);
  line-height: 1.5;
  cursor: pointer;
}
.radio input,
.check input {
  margin-top: 3px;
  flex: none;
  accent-color: var(--ink);
}
/* Consent: the key point stands out (the law asks for terms that limit liability to be brought to attention). */
.check.consent strong {
  color: var(--ink);
  font-weight: 700;
}
.out-notice .notice-text {
  margin-top: 8px;
  padding: 4px 22px 14px;
}
.out-notice .notice-text h2 {
  font-size: var(--fs-m);
  margin: 18px 0 6px;
}
.out-notice .check.consent {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--paper);
  font-size: var(--fs-m);
}
.out-notice .err {
  color: var(--vermilion);
  font-size: var(--fs-s);
}
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0 16px;
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
@media (max-width: 600px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}
details > summary {
  cursor: pointer;
  font-size: var(--fs-s);
  font-weight: 600;
  margin-bottom: 8px;
}
.code,
textarea.code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: var(--fs-xs);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 0;
}
pre.code {
  margin: 8px 0;
  max-height: 360px;
  overflow: auto;
}
.flash.info {
  border-left-color: var(--indigo);
}

/* Auth */
.wrap.auth {
  max-width: 480px;
}
.auth .page-head {
  text-align: center;
  padding-top: 40px;
}
.auth .card-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
  background: var(--paper);
  box-shadow: var(--shadow-m);
}
.auth .card-form .row {
  margin-bottom: 18px;
}
/* Phone login: the "get code" button sits beside the phone number. */
.auth .card-form[data-login] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
}
.auth .card-form[data-login] > * {
  grid-column: 1 / -1;
}
.auth .card-form[data-login] > .field:first-child {
  grid-column: 1;
}
.auth .card-form[data-login] > .row {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.auth .card-form[data-login] > .row .btn {
  height: 47px;
  padding: 0 16px;
  font-size: var(--fs-s);
}
.auth .card-form[data-login] > .row .small {
  order: -1;
}
.oauth {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.captcha {
  min-height: 48px;
  margin-bottom: 18px;
}
.quiz fieldset {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.quiz legend {
  float: left;
  width: 100%;
  margin-bottom: 4px;
  line-height: 1.55;
}
.quiz legend + * {
  clear: left;
}
.exam-bar {
  position: sticky;
  top: 64px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-size: var(--fs-s);
}
.exam-bar strong {
  font-size: var(--fs-l);
  letter-spacing: 0.02em;
}
.exam legend .tag {
  margin-left: 6px;
  vertical-align: middle;
}
.scout-status {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px;
}
.scout-status h2 {
  margin-top: 0;
}
.sample-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 16px;
}
.rubric-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.rubric-form label {
  display: grid;
  gap: 4px;
  font-size: var(--fs-xs);
  color: var(--ink-2);
}
.q-options {
  margin: 6px 0 0;
  padding-left: 1.2em;
  font-size: var(--fs-s);
}
.q-options .answer {
  font-weight: 700;
  color: var(--jade);
}
.blockers {
  list-style: none;
  padding: 0;
}
.blockers li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-s);
}

/* Product page details */
.launch-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--jade);
  background: var(--jade-soft);
  border-radius: var(--radius-m);
  margin: 8px 0 24px;
}
.score-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.score-detail h2 {
  margin-bottom: 8px;
  color: var(--ink-3);
  font-weight: 600;
}
.dims,
.dist {
  display: grid;
  gap: 6px;
}
.dim-row,
.dist-row {
  display: grid;
  grid-template-columns: 96px minmax(80px, 1fr) 36px;
  gap: 10px;
  align-items: center;
}
.dist-row {
  grid-template-columns: 64px minmax(80px, 1fr) 36px;
}
.dist-row .small {
  color: var(--amber);
  letter-spacing: 1px;
}
meter {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 4px;
  background: var(--surface-2);
  appearance: none;
  -webkit-appearance: none;
}
meter::-webkit-meter-bar {
  background: var(--surface-2);
  border: 0;
  border-radius: 4px;
  height: 8px;
}
meter::-webkit-meter-optimum-value,
meter::-webkit-meter-suboptimum-value,
meter::-webkit-meter-even-less-good-value {
  background: var(--ink-2);
  border-radius: 4px;
}
meter::-moz-meter-bar {
  background: var(--ink-2);
  border-radius: 4px;
}
.shots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 12px 0 20px;
  scroll-snap-type: x mandatory;
}
.shots img {
  height: 220px;
  width: auto;
  max-width: none;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  scroll-snap-align: start;
}
.changelog {
  list-style: none;
  padding: 0;
  margin: 0;
}
.changelog li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

/* Reviews */
.reviews.single .review {
  border-bottom: 0;
}
.review-title {
  font-size: var(--fs-l);
  margin: 8px 0 4px;
}
.review-title a {
  text-decoration: none;
}
.review-body {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.review-media {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.review-media img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
}
.video {
  aspect-ratio: 16 / 9;
  max-width: 640px;
  margin: 12px 0;
}
.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--surface);
}
.link-card .host {
  font-weight: 600;
  white-space: nowrap;
}
.link-card .url {
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dev-reply {
  margin-top: 10px;
  padding: 10px 14px;
  border-left: 3px solid var(--indigo);
  background: var(--surface);
  font-size: var(--fs-s);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.review-actions a {
  color: var(--ink-3);
}
.vote.on {
  border-color: var(--indigo);
  color: var(--indigo);
  background: var(--indigo-soft);
}
.vote[disabled] {
  opacity: 0.5;
  cursor: default;
}
.comment {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-s);
}
.comment.child {
  margin-left: 28px;
}
.comment .review-actions {
  margin-top: 4px;
}

/* Review form */
.review-form .stars-input {
  margin-bottom: 18px;
}
.star-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.star-pick {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 12px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  cursor: pointer;
  min-width: 92px;
}
.star-pick input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.star-pick .stars-label {
  color: var(--amber);
  letter-spacing: 1px;
  font-size: var(--fs-s);
}
.star-pick:has(input:checked) {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.star-pick:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.star-pick .stamp {
  width: 40px;
  height: 40px;
  font-size: 13px;
}
.dims-input {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 20px;
}
.dim-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-s);
}
.uploads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.upload-item {
  position: relative;
  display: inline-grid;
  gap: 4px;
  justify-items: center;
  font-size: var(--fs-xs);
}
.upload-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
}
.field .count {
  float: right;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  font-weight: 400;
}
.field .count.over {
  color: var(--vermilion);
}

/* Lists, notifications, profile */
.notes {
  list-style: none;
  padding: 0;
  margin: 0;
}
.note {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-s);
}
.note.block {
  display: block;
}
.note.unread {
  font-weight: 600;
}
.note.unread::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vermilion);
  margin-top: 8px;
}
.profile-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 32px 0 8px;
  align-items: start;
}
.profile-head h1 {
  margin-bottom: 6px;
}
.profile-head .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.product-head .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.prefs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0 16px;
}
.prefs .btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 12px;
}
.legal .prose {
  max-width: none;
}
.legal .prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--fs-s);
  margin: 0 0 1em;
  display: block;
  overflow-x: auto;
}
.legal .prose th,
.legal .prose td {
  border: 1px solid var(--line);
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Developer center and admin */
.product-form fieldset {
  margin-bottom: 22px;
}
.disclosure-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.disclosure-row input {
  font-size: var(--fs-s);
  padding: 6px 8px;
}
@media (max-width: 600px) {
  .disclosure-row {
    grid-template-columns: 1fr;
  }
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.stats > * {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  text-decoration: none;
}
.stats a:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.spark {
  display: block;
  color: var(--indigo);
  max-width: 100%;
  height: auto;
}
.qr svg {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-s);
}
.table tr.overdue td {
  background: var(--vermilion-soft);
}
.admin-nav .brand {
  display: block;
  font-size: var(--fs-m);
  margin-bottom: 14px;
  padding: 0 10px;
}
.admin-nav form {
  margin-top: 16px;
  padding: 0 10px;
}
.admin-main h1 {
  font-size: var(--fs-2xl);
  margin-bottom: 16px;
}
.admin-main .row input:not([type='checkbox']):not([type='number']) {
  width: auto;
  flex: 1 1 160px;
}
.prow > a,
.product-head > a {
  text-decoration: none;
}
.user-nav a:not(.btn) {
  text-decoration: none;
  color: var(--ink-2);
}
.user-nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}
.field .radio,
.field .check {
  display: flex;
  font-weight: 400;
  margin-bottom: 0;
}
.field .star-pick {
  display: grid;
  font-weight: 400;
  margin: 0;
}
.field .dim-input {
  display: flex;
  font-weight: 400;
  margin: 0;
}
input[type='file'] {
  font: inherit;
  font-size: var(--fs-s);
  color: var(--ink-3);
}
input[type='file']::file-selector-button {
  font: inherit;
  font-size: var(--fs-s);
  font-weight: 600;
  height: 36px;
  padding: 0 14px;
  margin-right: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
input[type='file']::file-selector-button:hover {
  border-color: var(--ink);
}

/* Exam timer: pinned to the bottom edge on small screens, where the header wraps to an unknown height. */
@media (max-width: 860px) {
  .exam-bar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    border-width: 1px 0 0;
  }
  form.exam {
    padding-bottom: 64px;
  }
}

/* Admin: scout samples, exam bank */
.sample-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.sample-card.overdue {
  border-color: var(--vermilion);
}
.sample-card h3 {
  margin-top: 0;
  font-size: var(--fs-m);
}
.sample-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 14px;
}
.sample-card dt {
  color: var(--ink-3);
}
.sample-card dd {
  margin: 0;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}
.row-actions form.inline {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.row-actions select,
.row-actions input {
  height: 32px;
  padding: 0 8px;
  font-size: var(--fs-xs);
  width: auto;
}
.sample-card h4 {
  margin: 18px 0 6px;
}
.table form.inline input,
.table form.inline select {
  height: 32px;
  padding: 0 8px;
  font-size: var(--fs-xs);
}

/* Gateway console */
.gw-summary {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(0, 2.2fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  margin: 8px 0 10px;
}
.gw-summary .stat {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  min-width: 0;
}
.gw-summary .stat + .stat {
  border-left: 1px solid var(--line);
}
.gw-summary .label {
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.gw-summary strong {
  font-size: var(--fs-xl);
  line-height: 1.1;
}
.gw-summary code {
  font-size: var(--fs-s);
  overflow-wrap: anywhere;
  cursor: copy;
}
.row-links {
  display: inline-flex;
  gap: 14px;
}
.table-wrap {
  overflow-x: auto;
}
.filters {
  margin: 10px 0 12px;
}
.filters input[type='date'] {
  height: 32px;
  padding: 0 8px;
  font-size: var(--fs-xs);
}
.filters select {
  height: 32px;
  font-size: var(--fs-xs);
}
details.card-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 12px 16px;
  margin-top: 14px;
}
details.card-form > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-s);
}
details.card-form[open] > summary {
  margin-bottom: 12px;
}
details.card-form .grid-2 {
  gap: 0 20px;
}
textarea.key-once {
  font-size: var(--fs-m);
  border-color: var(--jade);
  background: var(--jade-soft);
}
.narrow-form {
  max-width: 520px;
}
@media (max-width: 720px) {
  .gw-summary {
    grid-template-columns: 1fr 1fr;
  }
  .gw-summary .stat:last-child {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  details.card-form .grid-2 {
    grid-template-columns: 1fr;
  }
}
.admin-form label:not(.check):not(.radio) {
  display: grid;
  gap: 4px;
  font-size: var(--fs-xs);
  color: var(--ink-2);
  margin-bottom: 10px;
}
.admin-form .grid-3 {
  gap: 0 16px;
}
.table-wrap > .table {
  min-width: 640px;
}
.filters select {
  min-width: 96px;
}
.tabs + .hint,
.tabs + p {
  margin-top: 12px;
}
form.inline .linkish + .linkish {
  margin-left: 10px;
}
td .tag + form.inline {
  margin-left: 8px;
}
.admin-form input:not([type='checkbox']):not([type='radio']),
.admin-form select {
  height: 36px;
  font-size: var(--fs-s);
}

/* Events */
.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.event-link {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  text-decoration: none;
  color: var(--ink);
}
.event-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.event-link strong {
  font-size: var(--fs-l);
}
.event-kind {
  font-size: var(--fs-xs);
  color: var(--indigo);
  font-weight: 600;
}
.event-head {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.event-head h1 {
  margin: 6px 0 8px;
}
.event-head .lead {
  font-size: var(--fs-l);
  color: var(--ink-2);
  max-width: 60ch;
}
.event-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 16px 0 0;
  font-size: var(--fs-s);
}
.event-facts dt {
  color: var(--ink-3);
}
.event-facts dd {
  margin: 0;
}
.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.event-side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 84px;
}
.event-side .panel h3 {
  margin-top: 0;
}
.works,
.results,
.partners {
  list-style: none;
  padding: 0;
}
.works li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.works p {
  margin: 6px 0;
}
.results li {
  padding: 6px 0;
}
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
@media (max-width: 860px) {
  .event-layout {
    grid-template-columns: 1fr;
  }
  .event-side {
    position: static;
  }
}

/* Bench (T2-14) ------------------------------------------------------------------------------------------------------------- */
.bench-prompt {
  margin: 4px 0 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--indigo);
  background: var(--indigo-soft);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  white-space: pre-line;
}
.bench-fixture {
  margin: 4px 0 12px;
  padding: 10px 12px;
  max-height: 280px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: var(--fs-s);
  line-height: 1.5;
}
.bench-rubric {
  display: grid;
  grid-template-columns: minmax(72px, max-content) 1fr;
  gap: 6px 14px;
  margin: 8px 0 0;
}
.bench-rubric dt {
  font-weight: 600;
}
.bench-rubric dd {
  margin: 0;
  color: var(--ink-2);
}
.bench-task-list {
  padding-left: 1.4em;
}
.bench-task-list > li {
  margin-bottom: 28px;
}
.bench-task-list > li > h2 {
  font-size: var(--fs-l);
}
.bench-task-form form {
  margin-top: 12px;
}
.bench-score-inputs {
  display: grid;
  gap: 4px;
  margin: 8px 0;
}
.score-row {
  border: 0;
  padding: 0;
  margin: 0 0 8px;
}
.score-row legend {
  font-weight: 600;
  padding: 0;
}
.score-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.bench-evidence {
  margin: 8px 0;
}
.bench-notes {
  white-space: pre-line;
  margin: 6px 0;
}
.bench-scores {
  max-width: 420px;
  margin: 8px 0;
}
.bench-scores tr.gap td {
  background: var(--amber-soft);
}
.bench-sets {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.bench-sets > li {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 12px 16px;
}
.bench-sets > li > a {
  font-weight: 600;
}
.bench-sets p {
  margin: 2px 0 0;
}
.bench-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 14px 18px;
  margin-bottom: 16px;
}
.bench-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 10px 0 12px;
}
.bench-summary > div {
  display: grid;
}
.bench-summary strong {
  font-size: var(--fs-xl);
  line-height: 1.2;
}
.bench-results {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.bench-results > li {
  border-bottom: 1px solid var(--line);
}
.bench-results summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  cursor: pointer;
}
.bench-results summary .minw0 {
  flex: 1;
}
.bench-avg {
  font-weight: 700;
  min-width: 2.5em;
  text-align: right;
}
.bench-results details[open] > summary {
  color: var(--indigo);
}
.bench-results .dims {
  margin: 4px 0 8px;
}

/* AIYO Pass consent (E-PASS-ID). One decision per screen: who is asking, what they get, two buttons. */
.wrap.consent {
  max-width: 560px;
  padding-top: 32px;
  padding-bottom: 48px;
}
.consent-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.consent-head h1 {
  font-size: var(--fs-xl);
  line-height: 1.35;
  margin: 0 0 6px;
}
.consent-head p {
  margin: 2px 0;
  color: var(--ink-2);
}
.consent-scopes {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  border-top: 1px solid var(--line);
}
.consent-scopes > li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.consent-scopes .hint {
  margin: 2px 0 0 26px;
}
.consent-scopes > li:first-child .hint {
  margin-left: 0;
}
.consent .form-actions .btn {
  min-width: 120px;
}
@media (max-width: 560px) {
  .consent-head {
    flex-direction: column;
  }
  .consent .form-actions .btn {
    flex: 1 1 auto;
  }
}

/* Proof of use (REV-08). */
.proof-rules {
  padding-left: 1.2em;
  color: var(--ink-2);
  margin: 0 0 20px;
}
.proof-rules li {
  margin: 4px 0;
}

/* Small helpers used by newer pages. */
.mt8 {
  margin-top: 8px;
}
.row-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.page-head.row-wrap {
  justify-content: space-between;
  align-items: flex-end;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 20px;
  background: var(--paper);
}

/* Request radar (E-DEMAND). The count of people who want something leads each row, like a show of hands. */
.demand-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.demand-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.demand-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 6px 0;
  background: var(--surface);
}
.demand-count strong {
  font-size: var(--fs-l);
  line-height: 1.1;
  color: var(--ink);
}
.demand-title {
  font-weight: 600;
  font-size: var(--fs-m);
  color: var(--ink);
  text-decoration: none;
}
.demand-title:hover {
  text-decoration: underline;
}
.demand-meta {
  margin-top: 4px;
}
.demand-body {
  white-space: pre-line;
  font-size: var(--fs-m);
  line-height: 1.7;
  margin: 0 0 8px;
}
.demand-vote .btn {
  min-width: 120px;
}
.bounty-box {
  border-left: 4px solid var(--amber);
  background: var(--amber-soft);
}
.bounty-box h2 {
  font-size: var(--fs-l);
  margin: 0 0 4px;
}
@media (max-width: 560px) {
  .demand-row {
    grid-template-columns: 52px 1fr;
    gap: 10px;
  }
}

/* 问呦 (E-ASK). The question sits above the answer like a note being answered; picks are numbered because they are ranked. */
.ask-form textarea {
  font-size: var(--fs-m);
}
.ask-question {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--line-strong);
  background: var(--surface);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: var(--fs-l);
  line-height: 1.5;
}
.ask-answer {
  margin: 8px 0 20px;
  font-size: var(--fs-m);
  line-height: 1.75;
}
.ask-label {
  margin: 0 0 6px;
}
.ask-picks {
  padding-left: 1.4em;
  margin: 12px 0 0;
}
.ask-picks > li {
  margin: 0 0 16px;
  padding-left: 4px;
}
.ask-pick-name {
  font-weight: 700;
  font-size: var(--fs-l);
}
.ask-feedback {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

/* Comparison table (PROD-10): first column sticks while the products scroll sideways on a phone. */
.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 8px 0 0;
}
.compare {
  border-collapse: collapse;
  min-width: 560px;
  width: 100%;
  font-size: var(--fs-s);
}
.compare th,
.compare td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.compare thead th {
  vertical-align: bottom;
}
.compare tbody th {
  position: sticky;
  left: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
}
.compare-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  color: var(--ink);
  text-decoration: none;
}
.compare-head .label {
  margin-top: -4px;
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--brand-ink);
}
.compare-bench {
  list-style: none;
  padding: 0;
  margin: 0;
}
.compare-bench li {
  margin: 0 0 4px;
}
.chips-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: var(--fs-s);
  text-decoration: none;
  color: var(--ink);
}
.chip:hover {
  border-color: var(--ink-2);
}

/* “大家怎么说” (REV-10). */
.summary-points {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.summary-points li {
  margin: 0 0 8px;
  line-height: 1.6;
}
.summary-cites a {
  text-decoration: none;
  color: var(--indigo);
}
.kv-table {
  border-collapse: collapse;
  width: 100%;
}
.kv-table th,
.kv-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.kv-table th {
  font-weight: 600;
  white-space: nowrap;
}

/* Data export list (settings · account) */
.export-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}
.export-list li {
  gap: 10px;
  flex-wrap: wrap;
}

/* Help center and support (E-OPS) */
.help-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px 24px;
}
.help-list li {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.help-list a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.help-list a:hover {
  color: var(--indigo);
  text-decoration: underline;
}
.help-ask {
  margin-top: 32px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
}
.help-ask h2 {
  margin-top: 0;
  font-size: var(--fs-l);
}
.help-reply {
  margin: 16px 0 20px;
  padding: 14px 18px;
  border-left: 3px solid var(--jade);
  background: var(--jade-soft);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.help-reply h2 {
  margin: 0 0 6px;
  font-size: var(--fs-m);
  color: var(--jade);
}

/* 呦豆 points (SOC-04) */
.points-balance {
  margin: 4px 0;
  font-size: var(--fs-l);
  color: var(--ink-2);
}
.points-balance .num {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--ink);
  margin-right: 4px;
}
.earn-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
}
.rewards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.reward {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.reward h3 {
  margin: 0 0 4px;
  font-size: var(--fs-m);
}
.reward p {
  margin: 2px 0;
}
.reward-form {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 140px;
}
.reward-form details {
  justify-self: stretch;
}
.reward-form details[open] {
  min-width: min(320px, 70vw);
}
.num.plus {
  color: var(--jade);
  font-weight: 600;
}
.num.minus {
  color: var(--vermilion);
  font-weight: 600;
}
@media (max-width: 640px) {
  .reward {
    flex-direction: column;
  }
  .reward-form {
    justify-items: start;
    width: 100%;
  }
}

/* 出海桥 (E-BRIDGE-BETA) */
.bridge-source {
  margin: 8px 0 14px;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: var(--radius-s);
}

/* Gateway: top-ups and the public usage board (E-PAID-GW) */
.topup-amount {
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin: 8px 0 16px;
}
.topup-qr {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.topup-qr svg {
  display: block;
  width: 216px;
  height: 216px;
}
.usage-bars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.usage-bars li {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr auto;
  gap: 12px;
  align-items: center;
}
.usage-bars .bar {
  width: 100%;
  height: 10px;
}
.usage-bars .bar rect {
  fill: var(--indigo);
}
@media (max-width: 640px) {
  .usage-bars li {
    grid-template-columns: 1fr auto;
  }
  .usage-bars .bar {
    grid-column: 1 / -1;
    order: 3;
  }
}

/* Ads (ADS-01): a separate, plainly labelled block — never styled like editor picks or ranking rows. */
.ad-slot {
  margin: 24px 0;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--surface-2);
}
.ad-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ad-head .minw0 {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-body {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.ad-body strong {
  display: block;
}
.ad-line {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Open-source projects (CAT-01) ---------------------------------------------------------------------------------------- */
.star-count {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: var(--fs-s);
  font-weight: 600;
  white-space: nowrap;
}
.star-count .num {
  font-family: var(--font-num);
  font-size: 16px;
}
/* Narrow lists: a smaller badge leaves the intro more room. */
@container (max-width: 440px) {
  .prow .star-count {
    padding: 3px 7px;
    gap: 2px;
    font-size: 12px;
  }
  .prow .star-count .num {
    font-size: 14px;
  }
}
.repo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 8px 0 24px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.repo-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 0 0 16px;
}
.repo-stats div {
  min-width: 0;
}
.repo-stats dt {
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.repo-stats dd {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.repo-stats dd.num {
  font-family: var(--font-num);
  font-size: 22px;
}
.repo-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.repo-intro {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.repo-intro h2 {
  font-size: var(--fs-l);
  margin-bottom: 8px;
}
.repo-intro .prose {
  max-width: 72ch;
}

/* Install prompt for AI coding tools (CAT-03) ------------------------------------------------------------------------ */
.install-panel {
  margin: 4px 0 14px;
  padding: 14px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-m);
  background: var(--brand-soft);
}
.install-panel .install-copy {
  display: block;
  width: 100%;
  text-align: center;
  font-size: var(--fs-m);
  padding: 12px 16px;
  margin-bottom: 8px;
}
.install-panel .install-text {
  margin-top: 8px;
}
.install-panel .install-text summary {
  cursor: pointer;
  color: var(--ink-2);
}
.install-panel textarea {
  width: 100%;
  margin-top: 8px;
  font-size: var(--fs-xs);
  line-height: 1.6;
  resize: vertical;
}

/* Weekly open-source ranking at the top of the home page (CAT-02) --------------------------------------------------- */
.weekly-tabs {
  display: flex;
  gap: 4px;
  margin: 4px 0 10px;
  border-bottom: 1px solid var(--line);
}
.weekly-tabs a {
  padding: 8px 12px;
  margin-bottom: -1px;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.weekly-tabs a.on {
  color: var(--ink);
  border-bottom-color: var(--brand);
}
.scene-chips.weekly-types {
  margin-bottom: 10px;
  max-width: none;
}
.scene-chips.weekly-types a.on {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.weekly-figure {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}
.weekly-figure .gained {
  font-size: var(--fs-xs);
  color: var(--jade);
  font-weight: 600;
}
.weekly-figure .downloads {
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

/* Contact ---------------------------------------------------------------------------------------------------------------------- */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 28px;
}
.contact-list li {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.contact-list h2 {
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--ink-2);
  margin: 0;
}
.contact-list .mail {
  font-size: var(--fs-l);
  overflow-wrap: anywhere;
}
.contact-list p {
  margin: 0;
}

/* Ease of use and display mode (INSTALL-01/02, docs/12 §2) ---------------------------------------------------------------- */
.tag.ready {
  border-color: color-mix(in srgb, var(--jade) 55%, transparent);
  color: var(--jade);
}
.tag.install {
  border-color: color-mix(in srgb, var(--indigo) 55%, transparent);
  color: var(--indigo);
}
.tag.tech {
  border-color: var(--line-strong);
  color: var(--ink-3);
}
.ease-ready {
  color: var(--jade);
}
.ease-install {
  color: var(--indigo);
}
.ease-tech {
  color: var(--ink-3);
}
.linklike {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.linklike:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}
.mode-bar {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  background: var(--surface);
  font-size: var(--fs-s);
  color: var(--ink-2);
}
.mode-bar.mode-simple {
  background: var(--jade-soft);
}
.hidden-note {
  margin: 12px 0 0;
  font-size: var(--fs-s);
  color: var(--ink-3);
}
.easy-alt {
  margin: 16px 0 0;
  padding: 14px 16px 6px;
  border: 1px solid color-mix(in srgb, var(--jade) 35%, transparent);
  border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--jade-soft) 55%, var(--paper));
}
.easy-alt h2 {
  margin: 0 0 4px;
  font-size: var(--fs-m);
}
.easy-alt > p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--fs-s);
}
/* OPC zone (/opc) */
.opc-hero .hero-inner {
  max-width: 900px;
}
.opc-preview {
  margin: 0;
  border-radius: 0;
  border-width: 0 0 1px;
  text-align: center;
}
.opc-cards h3,
.opc-offers h3 {
  margin: 0 0 6px;
  font-size: var(--fs-m);
}
.opc-offers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 8px;
}
@media (max-width: 860px) {
  .opc-offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .opc-offers {
    grid-template-columns: minmax(0, 1fr);
  }
}
.opc-price {
  margin: 0 0 8px;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}
.opc-coaching {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: color-mix(in srgb, var(--brand-soft) 45%, var(--paper));
}
/* Home: the OPC banner under the search (T4-03). Its own dark art in both themes, like a poster; the seal echoes the logo. */
.opc-banner-wrap {
  margin: 24px 0 4px;
}
.opc-banner {
  --ob-ink: #ffffff;
  --ob-ink-2: rgb(255 255 255 / 0.78);
  --ob-seal: #e5452b;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: 40px 56px 40px 48px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: var(--radius-l);
  overflow: hidden;
  color: var(--ob-ink);
  text-decoration: none;
  background:
    radial-gradient(560px 300px at 86% 40%, rgb(229 69 43 / 0.5), transparent 70%),
    radial-gradient(460px 320px at 0% 120%, rgb(75 74 207 / 0.5), transparent 70%), linear-gradient(120deg, #15182e 0%, #1c1f4d 58%, #2b1a3b 100%);
  box-shadow: var(--shadow-m);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
/* A faint grid on the text side. */
.opc-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  pointer-events: none;
}
.opc-banner:hover {
  color: var(--ob-ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -14px rgb(21 24 46 / 0.5);
}
.opc-banner:focus-visible {
  outline-offset: 3px;
  border-radius: var(--radius-l);
}
.opc-banner-text {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.opc-banner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.opc-banner-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}
.opc-banner-tag.preview {
  background: #fbf0dc;
  color: #7a4d08;
}
.opc-banner h2 {
  margin: 0 0 10px;
  color: var(--ob-ink);
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.opc-banner-lead {
  margin: 0 0 18px;
  color: var(--ob-ink-2);
  font-size: var(--fs-l);
}
.opc-banner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.opc-banner-chips li {
  padding: 5px 12px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--radius-s);
  background: rgb(255 255 255 / 0.05);
  font-size: var(--fs-s);
}
.opc-banner-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.opc-banner-cta .btn {
  height: 46px;
  padding: 0 24px;
  font-size: var(--fs-m);
}
.opc-banner:hover .opc-banner-cta .btn {
  filter: brightness(1.08);
}
.opc-banner-cta .small {
  color: var(--ob-ink-2);
}
.opc-banner-seal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 210px;
  margin-right: 8px;
  padding: 0 20px;
  border-radius: 24px;
  background: var(--ob-seal);
  text-align: center;
  transform: rotate(-8deg);
  box-shadow:
    inset 0 0 0 7px var(--ob-seal),
    inset 0 0 0 10px rgb(255 255 255 / 0.88),
    0 24px 48px -16px rgb(229 69 43 / 0.7);
}
.opc-seal-mark {
  font-family: var(--font-num);
  font-size: 68px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
}
.opc-seal-sub {
  margin-top: 10px;
  font-size: var(--fs-m);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
}
@media (max-width: 860px) {
  .opc-banner {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 24px;
  }
  /* The seal stays as a watermark behind the text. */
  .opc-banner-seal {
    position: absolute;
    top: -18px;
    right: -26px;
    width: 150px;
    height: 150px;
    margin: 0;
    opacity: 0.25;
  }
  .opc-seal-mark {
    font-size: 48px;
  }
  .opc-seal-sub {
    display: none;
  }
}
@media (max-width: 640px) {
  .opc-banner-wrap {
    margin-top: 16px;
  }
  .opc-banner {
    padding: 24px 20px;
  }
  .opc-banner-lead {
    font-size: var(--fs-m);
  }
  .opc-banner-chips {
    gap: 6px;
    margin-bottom: 20px;
  }
  .opc-banner-chips li {
    padding: 3px 9px;
    font-size: var(--fs-xs);
  }
  .opc-banner-cta .btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .opc-banner {
    transition: none;
  }
  .opc-banner:hover {
    transform: none;
  }
}
