/* Роботы Шэньчжэня — стили стенда v1. Цвета — токены на :root; тёмная тема — по системной настройке. */
:root {
  --bg: #fbfaf7; --surface: #ffffff; --surface-2: #f1efe9; --text: #1d2124; --muted: #5b6268; --line: #dedad1;
  --accent: #0f5c6e; --accent-2: #b4621a; --ok-bg: #e3f1e6; --ok-fg: #1f5e2c; --ann-bg: #fdf0dc; --ann-fg: #7a4a0b;
  --off-bg: #ece9e4; --off-fg: #55514b; --na-bg: #eef0f3; --na-fg: #4a5260; --focus: #f2a93b;
  --radius: 10px; --gutter: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121516; --surface: #1a1e20; --surface-2: #22282b; --text: #e7e9ea; --muted: #a3acb1; --line: #333b3f;
    --accent: #6fc2d4; --accent-2: #f0a35f; --ok-bg: #173523; --ok-fg: #9fdcae; --ann-bg: #3a2a10; --ann-fg: #f3c98a;
    --off-bg: #2b2b29; --off-fg: #c4beb5; --na-bg: #262b33; --na-fg: #b9c2cf;
  }
}
:root[data-theme="dark"] {
  --bg: #121516; --surface: #1a1e20; --surface-2: #22282b; --text: #e7e9ea; --muted: #a3acb1; --line: #333b3f;
  --accent: #6fc2d4; --accent-2: #f0a35f; --ok-bg: #173523; --ok-fg: #9fdcae; --ann-bg: #3a2a10; --ann-fg: #f3c98a;
  --off-bg: #2b2b29; --off-fg: #c4beb5; --na-bg: #262b33; --na-fg: #b9c2cf;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; overflow-wrap: break-word; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--surface); padding: 6px 10px; z-index: 10; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.logo .tagline { font-weight: 400; font-size: .85rem; color: var(--muted); }
.menu { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .95rem; }
.menu a { text-decoration: none; color: var(--muted); }
.menu a:hover { color: var(--accent); }

main { padding-top: 18px; padding-bottom: 32px; }
h1 { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.2rem); line-height: 1.2; margin: .3em 0 .5em; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 1.6em 0 .5em; }
h3 { font-size: 1.05rem; margin: .8em 0 .3em; }
section { min-width: 0; }
.crumbs { font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.lead p { font-size: 1.08rem; max-width: 46rem; }
.stats { color: var(--muted); }
.note { color: var(--muted); font-size: .92rem; max-width: 52rem; }

.dl { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.dl > div { display: contents; }
.dl dt, .dl dd { padding: 10px 14px; border-top: 1px solid var(--line); margin: 0; min-width: 0; }
.dl > div:first-child dt, .dl > div:first-child dd { border-top: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 640px) {
  .dl { grid-template-columns: 1fr; }
  .dl dd { border-top: 0; padding-top: 0; }
}

.facts { padding-left: 1.2em; }
.facts li { margin: .35em 0; }
.srcs { font-size: .82rem; white-space: normal; }
.srcs::before { content: "— "; color: var(--muted); }
a.src { color: var(--muted); }
.kind { color: var(--muted); font-size: .88rem; }
.glavnoe li { margin: .6em 0; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: 100%; }
table { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: .95rem; }
caption { text-align: left; padding: 10px 14px; color: var(--muted); font-size: .9rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-top: 1px solid var(--line); }
thead th { background: var(--surface-2); font-weight: 600; }
tbody th { font-weight: 600; }
.st { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .82rem; white-space: nowrap; }
.st-ok { background: var(--ok-bg); color: var(--ok-fg); }
.st-ann { background: var(--ann-bg); color: var(--ann-fg); }
.st-off { background: var(--off-bg); color: var(--off-fg); }
.st-na { background: var(--na-bg); color: var(--na-fg); }

.cc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cc > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 10px; min-width: 0; }
.cc-cannot { border-left: 4px solid var(--accent-2) !important; }
@media (max-width: 760px) { .cc { grid-template-columns: 1fr; } }

.sng .dl { margin-top: 10px; }
details { margin-top: 10px; color: var(--muted); }
summary { cursor: pointer; }

.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--muted); min-width: 0; flex: 1 1 14rem; }
.field input, .field select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.chip { font: inherit; font-size: .9rem; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.count { margin: 0; color: var(--muted); font-size: .9rem; flex: 1 1 100%; }

.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; min-width: 0; }
.card h3 { margin: .2em 0; }
.card h3 a { text-decoration: none; }
.card .zh { color: var(--muted); font-weight: 400; font-size: .9rem; }
.card p { margin: .25em 0; font-size: .92rem; }
.card-what { color: var(--text); }
.card-meta, .card-new { color: var(--muted); }
.card[hidden] { display: none; }

.segs li, .also li { margin: .3em 0; }
.sources ol { padding-left: 1.4em; font-size: .9rem; }
.sources li { margin: .3em 0; overflow-wrap: anywhere; }
.sources .url { color: var(--muted); font-size: .8rem; display: block; overflow-wrap: anywhere; }
.nesay { background: var(--surface-2); border-radius: var(--radius); padding: 2px 16px 8px; margin-top: 24px; }

.foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .9rem; }
.foot .wrap { padding-top: 16px; padding-bottom: 24px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.foot-nav a { color: var(--muted); }

/* ── образцы оформления 15.11: счётчики, плитки, фильтры, штампы, колонки, пиктограммы ── */
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 8px 0 4px; }
.ctr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ctr-n { font-size: 1.7rem; font-weight: 700; line-height: 1.1; color: var(--accent); }
.ctr-l { color: var(--muted); font-size: .9rem; }
.ctr-how { justify-content: center; }
@media (max-width: 760px) { .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile a { display: grid; grid-template-columns: 2.6rem 1fr; grid-template-rows: auto auto auto; column-gap: 10px; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--text); }
.tile a:hover { border-color: var(--accent); }
.tile .ico { grid-row: 1 / span 4; width: 2.6rem; height: 2.6rem; color: var(--accent); }
.tile-h { font-weight: 700; }
.tile-n { color: var(--accent); font-size: .9rem; }
.tile-d { color: var(--muted); font-size: .88rem; }

.fgroup { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; flex: 1 1 100%; min-width: 0; }
.flabel { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); min-width: 9.5rem; }
.fgroup .chips { flex: 1 1 0; min-width: 0; }
.chip .n { color: var(--muted); font-size: .8rem; margin-left: 2px; }
.chip[aria-pressed="true"] .n { color: inherit; opacity: .85; }
.more-f { flex: 1 1 100%; color: var(--text); margin-top: 2px; }
.more-f summary { color: var(--accent); font-size: .92rem; margin-bottom: 6px; }
.more-f .fgroup { margin: 6px 0; }
.reset { font: inherit; font-size: .9rem; background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 0; }
@media (max-width: 640px) { .flabel { min-width: 100%; } }

.stamp { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; padding: 1px 8px; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok-fg); text-decoration: none; white-space: nowrap; }
.tag { display: inline-block; font-size: .8rem; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag-cap { color: var(--text); }
.card-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px !important; }

.co-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: -4px 0 14px; color: var(--muted); font-size: .92rem; }
.legal [lang="zh"] { color: var(--text); }
.co-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.co-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 16px 12px; min-width: 0; }
.co-panel h2 { margin-top: .7em; }
.co-new { font-size: .95rem; }
.co-tags { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 900px) { .co-top { grid-template-columns: minmax(0, 1fr); } }

.pict { list-style: none; padding-left: 0; }
.pict li { position: relative; padding-left: 1.9em; }
.pict li::before { position: absolute; left: 0; top: .1em; width: 1.35em; height: 1.35em; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: .85em; font-weight: 700; }
.pict-on li::before { content: "✓"; background: var(--accent); color: var(--bg); }
.pict-off li::before { content: "✕"; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pict-off li { color: var(--text); }

.minis { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 8px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; display: flex; flex-direction: column; min-width: 0; }
.mini span { color: var(--muted); font-size: .88rem; }

/* круг правок по дизайнам GIST, 15.11.2026: вид основания, пометки статусов, итог «В России и СНГ», пустой поиск, подписи источников */
.stamp-weak { background: var(--ann-bg); color: var(--ann-fg); white-space: normal; }
.st-note { color: var(--muted); font-size: .85rem; }
.co-sng, .co-st { font-size: .95rem; }
.card-sng { color: var(--muted); font-size: .9rem; }
.empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.ask { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 14px 6px; margin-top: 12px; }
.npd { font-size: .95rem; }
.sources .what { color: var(--text); }
.sources h3 { font-size: .98rem; margin-top: 1em; }

/* второй круг правок по дизайнам GIST, 15.11.2026: пометка у штампа, просроченная перепроверка, основание на плитках */
.stamp-note { font-size: .85rem; color: var(--muted); }
.overdue { background: var(--ann-bg); color: var(--ann-fg); border-radius: var(--radius); padding: 6px 12px; font-size: .92rem; }
.tile-b { color: var(--muted); font-size: .85rem; }
/* правка 3 (эфир, Pilot fix_plan 1): подсказка у подписи фильтра — что значит фильтр */
.fhint { flex: 1 1 100%; order: 3; font-size: .82rem; color: var(--muted); }

/* подбор под задачу (01.12.2026): вывод, схема размеров в одном масштабе, карточки моделей */
.podbor-answer { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 2px 18px 10px; margin-top: 20px; max-width: 52rem; }
.podbor-answer h2 { margin-top: .7em; }
.podbor-robot { margin-top: 28px; }
.podbor-robot h3 { font-size: 1.18rem; margin-bottom: 0; }
.podbor-role { margin: .25em 0 .5em; font-weight: 600; color: var(--accent); }
.scale { display: block; width: 100%; max-width: 440px; height: auto; margin: 10px 0; }
.scale text { fill: var(--text); font-size: 14px; }
.scale .dim { fill: var(--muted); font-size: 13px; }
.scale .bay { fill: var(--surface); stroke: var(--accent-2); stroke-width: 4; }
.scale .bot { fill: var(--muted); }
.scale .first { fill: var(--accent); }

/* подбор под задачу, вторая редакция (01.12.2026): фото из архива данных, оглавление, блоки по вопросам читателя */
.foto { margin: 12px 0 14px; max-width: 30rem; }
.foto img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.foto figcaption { margin-top: 6px; color: var(--muted); font-size: .86rem; }
.foto figcaption a { color: var(--muted); }
.foto-note { display: block; margin-top: 2px; }
.podbor-answer .foto { max-width: 24rem; }
.toc { margin: 18px 0 6px; padding: 10px 16px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: 52rem; }
.toc-h { margin: 0 0 4px; font-weight: 600; color: var(--muted); }
.toc ul { margin: 0; padding-left: 1.1em; columns: 2; column-gap: 28px; }
.toc li { margin: .2em 0; break-inside: avoid; }
@media (max-width: 640px) { .toc ul { columns: 1; } }
.podbor-block h3 { font-size: 1.05rem; margin: 1.1em 0 .2em; }
.podbor-block .facts { margin-top: .2em; max-width: 52rem; }
.facts li.nf { color: var(--muted); }
.podbor-block > p { max-width: 52rem; }
