/* «Как устроен трекер» (tech.js, W41): ночная схема-чертёж, разделы витрины. Общее с хроникой (герой, график) — в releases.css.
   Схема — «сцена»: тёмно-синяя в любой теме; остальное — токены style.css */
.tx { --tx-night: #0d1442; --tx-node: #172163; --tx-node-h: #1d2a78; --tx-edge: rgba(143,165,255,.4); }
.tx-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--sp-2); }
.tx-toc a { padding: 6px 14px; border-radius: var(--r-full); background: var(--panel); box-shadow: var(--shadow); color: var(--text); font-weight: 500; transition: box-shadow var(--t-fast), color var(--t-fast); }
.tx-toc a:hover { color: var(--primary); text-decoration: none; box-shadow: 0 0 0 1px var(--primary); }
.tx-sec { margin-top: 64px; scroll-margin-top: 76px; } .tx-sec:focus { outline: none; }
.tx-sec-h h2 { margin: 0 0 6px; font: 600 clamp(26px, 2.8vw, 36px)/1.12 var(--font-display); letter-spacing: -.022em; }
.tx-sec-h p { margin: 0 0 var(--sp-5); max-width: 66ch; font-size: var(--fs-l); line-height: 1.5; color: var(--muted); }
.tx-h3 { margin: 40px 0 var(--sp-3); font-size: 18px; }
.tx-note { margin: var(--sp-4) 0 0; max-width: 84ch; font-size: var(--fs-s); line-height: 1.5; color: var(--muted); }
.tx-more { display: inline-block; margin-top: var(--sp-3); font-weight: 500; }

/* ---------- схема ---------- */
.tx-map { margin: 0; }
.tx-stage, .tx-night { position: relative; border-radius: 16px; color: var(--rx-on);
  background: radial-gradient(circle at 1px 1px, rgba(143,165,255,.16) 1px, transparent 1.6px) 0 0 / 22px 22px, linear-gradient(180deg, #121c56, #0b123c);
  box-shadow: 0 26px 50px -28px rgba(13,20,66,.75); }
:root[data-theme="dark"] :is(.tx-stage, .tx-night) { box-shadow: 0 0 0 1px #2a3266, 0 26px 50px -28px rgba(0,0,0,.9); }
.tx-stage { padding: 18px 20px 18px; }
.tx-stage :focus-visible { outline: 2px solid var(--rx-amber); outline-offset: 2px; }
.tx-stage ::selection { background: rgba(255,176,32,.45); color: #fff; }
.tx-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; font-size: 12.5px; color: var(--rx-on-3); }
.tx-legend-n { color: var(--rx-on-3); }
.tx-grid { --tall: 0; position: relative; display: grid; gap: 22px 52px; padding: 40px 4px 4px;
  grid-template-columns: minmax(124px, 1fr) minmax(118px, .9fr) minmax(118px, .9fr) minmax(170px, 1.25fr) minmax(140px, 1fr);
  grid-template-areas: "br . . sv db" "ph px ng sv db" "ol px ng sv fs" "cl . . sv fs" "cd cd . bg jb" "cd cd . em md" "ex ex ex ex ex"; }   /* W67: 3.0 — модель смысла (em) на сервере */
.tx-n[data-id="bg"], .tx-n[data-id="jb"], .tx-n[data-id="em"], .tx-n[data-id="md"] { align-self: start; }
.tx-n[data-id="px"], .tx-n[data-id="ng"], .tx-n[data-id="db"], .tx-n[data-id="fs"] { align-self: center; }
.tx-wires { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.tx-n { position: relative; z-index: 1; min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; text-align: left;
  border: 1px solid rgba(143,165,255,.24); border-radius: 12px; background: var(--tx-node); color: #fff; font: inherit; cursor: pointer;
  transition: opacity var(--t-mid), transform var(--t-mid) var(--ease-out), border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-mid); }
.tx-n:hover { background: var(--tx-node-h); border-color: rgba(143,165,255,.6); transform: translateY(-1px); }
.tx-n.lit { border-color: rgba(255,176,32,.75); }
.tx-n.dim { opacity: .3; }
.tx-n[aria-pressed="true"], .tx-n.main[aria-pressed="true"] { border-color: var(--rx-amber); box-shadow: 0 0 0 1px var(--rx-amber), 0 12px 26px -12px rgba(255,176,32,.55); opacity: 1; }
.tx-n.main { flex-direction: column; justify-content: center; gap: 8px; min-height: 160px; align-self: center; padding: 18px;
  background: linear-gradient(160deg, #3152ec, #2346D5 55%, #1c39b8); border-color: #7189ff; box-shadow: 0 18px 38px -16px rgba(35,70,213,.9); }
.tx-n.main:hover { background: linear-gradient(160deg, #3a5af0, #2a4ce0 55%, #1f3dc4); }
.tx-n.main .tx-n-t { font: 600 22px/1.15 var(--font-display); letter-spacing: -.01em; }
.tx-n.main .tx-n-s { color: #dfe5ff; }
.tx-n-i { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(143,165,255,.16); color: #b3c1ff; }
.g-srv .tx-n-i, .tx-n-i.g-srv, .g-edge .tx-n-i, .tx-n-i.g-edge { background: rgba(103,199,219,.16); color: #8ee2f2; }
.g-data .tx-n-i, .tx-n-i.g-data { background: rgba(255,176,32,.16); color: #ffc75a; }
.g-ext .tx-n-i, .tx-n-i.g-ext { background: rgba(190,170,255,.16); color: #d2c6ff; }
.tx-n.main .tx-n-i { background: rgba(255,255,255,.18); color: #fff; }
.tx-n-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tx-n-t { font-size: var(--fs-m); font-weight: 600; line-height: 18px; overflow-wrap: anywhere; }
.tx-n-s { font-size: 12.5px; line-height: 16px; color: var(--rx-on-3); }
.tx-exts { grid-area: ex; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 30px; }
.tx-exts .tx-n { flex-direction: column; gap: 6px; padding: 10px 8px; }
.tx-exts .tx-st { margin-top: 2px; }
/* состояние: форма + слово (не только цвет): подключено — точка, готово и ждёт — кольцо с точкой, не подключено — пунктирное кольцо */
.tx-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--rx-on-3); }
.tx-st i { flex: none; box-sizing: border-box; width: 10px; height: 10px; border-radius: 50%; }
.tx-st.on { color: #b7f3cc; } .tx-st.on i { background: #4ade80; }
.tx-st.wait { color: #ffd98c; } .tx-st.wait i { border: 2px solid var(--rx-amber); background: radial-gradient(circle, var(--rx-amber) 0 1.6px, transparent 2px); }
.tx-st.off i { border: 1.5px dashed #95a0d4; }
.tx-st.info i { display: none; }
/* линии и пакеты */
.tx-w { fill: none; stroke: var(--tx-edge); stroke-width: 1.5; transition: stroke var(--t-mid), opacity var(--t-mid); }
.tx-w.dash { stroke-dasharray: 5 6; }
.tx-w.story { stroke: none; }
.tx-w.lit { stroke: var(--rx-amber); stroke-width: 2; opacity: 1; }
.tx-w.story.lit { stroke-dasharray: 2 6; stroke-linecap: round; }
.tx-w.dim { opacity: .22; }
.tx-region { fill: rgba(143,165,255,.05); stroke: rgba(143,165,255,.3); stroke-dasharray: 6 6; }
.tx-region-t, .tx-by { fill: var(--rx-on-3); font-size: 12px; font-family: var(--font); }
.tx-stage.focus :is(.tx-region, .tx-region-t, .tx-by) { opacity: .5; }
.tx-j { fill: #8fa5ff; }
.tx-pk circle { fill: var(--rx-amber); transition: opacity .2s; }
.tx-pk circle.big { fill: #fff; stroke: var(--rx-amber); stroke-width: 2.5; }
/* карточка блока и «Путь одного клика» */
.tx-card { position: relative; z-index: 1; align-self: start; min-height: 128px; padding: 16px 18px; border-radius: 12px; background: rgba(143,165,255,.09); border: 1px solid rgba(143,165,255,.2); }
.tx-c-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.tx-c-h h3, .tx-s h3 { margin: 0; font-size: 19px; line-height: 1.25; color: #fff; }
.tx-c-x { margin-left: auto; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: var(--r-m); background: none; color: var(--rx-on-3); cursor: pointer; }
.tx-c-x:hover { background: rgba(255,255,255,.1); color: #fff; }
.tx-c-dl { display: grid; grid-template-columns: 112px 1fr; gap: 10px 18px; margin: 14px 0 0; }
.tx-c-r { display: contents; }
.tx-c-dl dt { font-size: var(--fs-s); line-height: 22px; color: var(--rx-on-3); }
.tx-c-dl dd { margin: 0; max-width: 78ch; line-height: 1.55; color: #e9edff; }
.tx-jobs { list-style: none; margin: 0; padding: 0; }
.tx-jobs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 4px 0; border-bottom: 1px solid rgba(143,165,255,.14); }
.tx-jobs li:last-child { border-bottom: 0; }
.tx-jobs b { font-weight: 500; color: var(--rx-on-3); }
.tx-c-near { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: var(--fs-s); color: var(--rx-on-3); }
.tx-chip { padding: 4px 12px; border: 1px solid rgba(143,165,255,.32); border-radius: var(--r-full); background: none; color: #e1e6ff; font: inherit; font-size: var(--fs-s); cursor: pointer; transition: border-color var(--t-fast); }
.tx-chip:hover { border-color: var(--rx-amber); }
.tx-c-kid { margin: 10px 0 0; font-size: var(--fs-l); line-height: 1.45; color: #fff; }
/* W67: «Для технарей» — свёрнуто; на схеме — светлым по ночному, на страницах — приглушённо */
.tx-tech { margin-top: 10px; font-size: var(--fs-s); line-height: 1.5; }
.tx-tech > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: var(--r-m); cursor: pointer; list-style: none;
  color: var(--muted); font-weight: 500; box-shadow: inset 0 0 0 1px var(--border); }
.tx-tech > summary::-webkit-details-marker { display: none; }
.tx-tech > summary:hover { color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.tx-tech[open] > summary { color: var(--primary); }
.tx-tech-b { margin-top: 8px; max-width: 84ch; color: var(--muted); }
.tx-tech-b p { margin: 0; }
.tx-tech-l { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.tx-stage .tx-tech > summary { color: var(--rx-on-3); box-shadow: inset 0 0 0 1px rgba(143,165,255,.3); }
.tx-stage .tx-tech > summary:hover, .tx-stage .tx-tech[open] > summary { color: #fff; box-shadow: inset 0 0 0 1px var(--rx-amber); }
.tx-stage .tx-tech-b { color: #cfd7ff; }
.txs-arch > .tx-tech { margin-top: var(--sp-4); }
/* W67: главный блок — «было → стало»: слева монолит, справа части 3.0 (собираются, когда блок показался на экране) */
.tx-bs { display: grid; grid-template-columns: minmax(0, 4fr) auto minmax(0, 7fr); align-items: center; gap: 20px; margin: 0 0 var(--sp-5); padding: 28px; border-radius: 16px; color: #fff;
  background: radial-gradient(circle at 80% 0, rgba(35,70,213,.55), transparent 55%), radial-gradient(circle at 0 100%, rgba(255,176,32,.16), transparent 45%), linear-gradient(180deg, #121c56, #0b123c);
  box-shadow: 0 26px 50px -28px rgba(13,20,66,.75); }
.tx-bs h3 { margin: 0 0 12px; font: 600 18px/1.2 var(--font-display); color: #dfe5ff; }
.tx-bs ul { list-style: none; margin: 0; padding: 0; }
.tx-bs-i { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--tx-node); border: 1px solid rgba(143,165,255,.24); }
.tx-bs-i b { display: block; font-size: var(--fs-m); line-height: 18px; } .tx-bs-i small { display: block; font-size: 12.5px; line-height: 16px; color: var(--rx-on-3); }
.tx-bs-mono { display: grid; gap: 0; padding: 6px; border-radius: 14px; background: #0a0d2b; box-shadow: inset 0 0 0 1px #3a4170; }
.tx-bs-mono .tx-bs-i { border: 0; border-radius: 0; background: none; } .tx-bs-mono .tx-bs-i + .tx-bs-i { border-top: 1px dashed rgba(143,165,255,.2); }
.tx-bs-mono .tx-n-i { background: rgba(255,255,255,.08); color: #aab3d8; }
.tx-bs-ar { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--rx-amber); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.tx-bs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tx-bs-grid .g-main { grid-row: span 2; flex-direction: column; justify-content: center; background: linear-gradient(160deg, #3152ec, #2346D5 55%, #1c39b8); border-color: #7189ff; }
.tx-bs-grid .g-main b { font: 600 20px/1.2 var(--font-display); } .tx-bs-grid .g-main small { color: #dfe5ff; } .tx-bs-grid .g-main .tx-n-i { background: rgba(255,255,255,.18); color: #fff; }
.tx-bs-grid .tx-bs-i { opacity: 0; transform: translate3d(-24px, 0, 0) scale(.96); transition: opacity .6s var(--ease-out) calc(var(--k) * 90ms), transform .8s var(--ease-out) calc(var(--k) * 90ms); }
.tx-bs.in .tx-bs-grid .tx-bs-i { opacity: 1; transform: none; }
.tx-bs-mono { transition: opacity .6s, transform .8s var(--ease-out); } .tx-bs:not(.in) .tx-bs-mono { transform: scale(1.02); }
/* W67: «Что дала перестройка» — было → стало крупно */
.tx-v3 { list-style: none; margin: 0 0 var(--sp-2); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.tx-v3 li { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); }
.tx-v3 li:first-child { background: linear-gradient(150deg, #3152ec, #2346D5 60%, #1c39b8); color: #fff; box-shadow: 0 18px 38px -18px rgba(35,70,213,.8); }
.tx-v3-k { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); }
.tx-v3 li:first-child .tx-v3-k, .tx-v3 li:first-child .tx-v3-x, .tx-v3 li:first-child s { color: #dfe5ff; }
.tx-v3-n { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.tx-v3-n s { font: 600 24px/1 var(--font-display); color: var(--muted); text-decoration-thickness: 2px; }
.tx-v3-ar { align-self: center; color: var(--rx-amber); }
.tx-v3-n b { font: 700 clamp(40px, 4vw, 52px)/1 var(--font-display); letter-spacing: -.03em; }
.tx-v3-n small { font-size: var(--fs-l); font-weight: 600; }
.tx-v3-x { font-size: var(--fs-s); line-height: 1.45; color: var(--muted); }
.tx-c-idle { margin: 0 0 14px; max-width: 72ch; line-height: 1.55; color: var(--rx-on-2); }
.tx-play { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border: 0; border-radius: var(--r-full); background: var(--rx-amber); color: #1b1f3b;
  font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 10px 22px -10px rgba(255,176,32,.8); transition: background var(--t-fast), transform var(--t-fast); }
.tx-play:hover { background: #ffc24d; } .tx-play:active { transform: translateY(1px); }
.tx-s-top { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-right: 40px; }
.tx-s-top .tx-c-x { position: absolute; right: -8px; top: -8px; }
.tx-s-n { font-size: var(--fs-s); font-weight: 600; color: var(--rx-amber); font-variant-numeric: tabular-nums; }
.tx-s p { margin: 8px 0 14px; max-width: 74ch; font-size: 15px; line-height: 1.55; color: #e9edff; }
.tx-s-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tx-s-bar .btn { height: 36px; background: rgba(255,255,255,.1); color: #fff; }
.tx-s-bar .btn:hover:where(:not(:disabled)) { background: rgba(255,255,255,.18); color: #fff; }
.tx-s-bar .btn.primary { background: var(--rx-amber); color: #1b1f3b; } .tx-s-bar .btn.primary:hover:where(:not(:disabled)) { background: #ffc24d; color: #1b1f3b; }
.tx-s-dots { list-style: none; display: flex; flex: 1; justify-content: center; margin: 0; padding: 0; }
.tx-s-dots button { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.tx-s-dots button::before { content: ''; position: absolute; left: 7px; top: 8px; width: 8px; height: 8px; border-radius: var(--r-full); background: rgba(143,165,255,.35); transition: width var(--t-mid) var(--ease-out), left var(--t-mid); }
.tx-s-dots button.done::before { background: #8fa5ff; }
.tx-s-dots button.on::before { left: 2px; width: 20px; background: var(--rx-amber); }

/* ---------- W67: модели на нашем сервере, дизайн-код, доверие ---------- */
.tx-ai { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tx-ai li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-content: start; padding: 16px 18px; border-radius: var(--r-l); background: var(--panel); box-shadow: var(--shadow); }
.tx-ai li > :not(.tx-tile-i) { grid-column: 2; } .tx-ai .tx-tile-i { grid-row: span 4; }
.tx-ai h3 { margin: 0 0 4px; font-size: var(--fs-l); } .tx-ai p { margin: 0; line-height: 1.5; }
.tx-ai-n { margin-top: 8px; font-size: var(--fs-m); font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }
.tx-ai-llm { display: flex; gap: 10px; align-items: flex-start; margin: var(--sp-4) 0 0; padding: 14px 16px; border-radius: var(--r-l); background: var(--primary-soft); line-height: 1.5; max-width: 110ch; }
.tx-ai-llm .i-svg { margin-top: 2px; color: var(--primary); flex: none; }
.tx-dc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 24px; align-items: start; }
.tx-dc-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tx-dc-rules li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.5; }
.tx-dc-kit { display: grid; gap: 18px; padding: 20px; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); }
.tx-dc-scale { display: flex; flex-direction: column; gap: 4px; } .tx-dc-scale span { line-height: 1.2; } .tx-dc-scale b { display: inline-block; width: 2.4em; font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.tx-dc-sw { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: var(--fs-s); color: var(--muted); }
.tx-dc-sw span { display: inline-flex; align-items: center; gap: 6px; } .tx-dc-sw i { width: 18px; height: 18px; border-radius: 5px; }
.tx-trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.tx-trust li { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; color: #fff;
  background: radial-gradient(circle at 100% 0, rgba(255,176,32,.22), transparent 55%), linear-gradient(180deg, #121c56, #0b123c); box-shadow: 0 20px 40px -26px rgba(13,20,66,.8); }
.tx-trust .tx-tile-i { background: rgba(255,176,32,.16); color: #ffc75a; margin-bottom: 6px; }
.tx-trust-n { font: 700 clamp(26px, 2.4vw, 34px)/1.05 var(--font-display); letter-spacing: -.02em; } .tx-trust-c { font-size: var(--fs-s); color: var(--rx-on-2); }
.tx-trust p { margin: 6px 0 0; line-height: 1.5; color: #e9edff; font-size: var(--fs-s); }
.tx-trust .tx-tech > summary { color: var(--rx-on-3); box-shadow: inset 0 0 0 1px rgba(143,165,255,.3); } .tx-trust .tx-tech-b { color: #cfd7ff; }

/* ---------- интеграции: доска состояний ---------- */
.tx-ints { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 12px; }
.tx-itile { padding: 16px 18px; border-radius: var(--r-l); background: var(--panel); box-shadow: var(--shadow); }
.tx-itile-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 10px; }
.tx-itile-h h3 { flex: 1; margin: 0; font-size: var(--fs-l); }
.tx-itile-i { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.tx-itile-h .tx-st { flex-basis: 100%; padding-left: 46px; font-size: var(--fs-s); }
.tx-itile p { margin: 0 0 6px; line-height: 1.5; }
.tx-itile .tx-itile-how { margin: 0; font-size: var(--fs-s); color: var(--muted); }
.tx-itile .tx-st { color: var(--muted); }
.tx-itile .tx-st.on { color: var(--done); } .tx-itile .tx-st.on i { background: var(--done); }
.tx-itile .tx-st.wait { color: var(--warn-text); } .tx-itile .tx-st.wait i { border-color: var(--light-yellow); background: radial-gradient(circle, var(--light-yellow) 0 1.6px, transparent 2px); }
.tx-itile .tx-st.off i { border-color: var(--muted); }

/* ---------- клиент и эксплуатация: факты значками ---------- */
.tx-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px 28px; }
.tx-facts li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.55; }
.tx-facts b { font-weight: 600; }
.tx-f-i { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.tx-ops { margin-top: var(--sp-6); }

/* ---------- безопасность: щит слоями ---------- */
.tx-shield { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 36px; align-items: start; }
.tx-sh { position: sticky; top: 88px; width: 100%; height: auto; }
.tx-sh-l { fill: none; stroke: var(--primary); stroke-width: 1.6; opacity: .4; transition: opacity var(--t-mid), stroke var(--t-mid), fill var(--t-mid); }
.tx-sh-l:first-child { fill: var(--primary-soft); }
.tx-sh-l.on { opacity: 1; stroke: var(--rx-amber); stroke-width: 3; fill: rgba(255,176,32,.12); }
.tx-sh-core { fill: var(--primary); } .tx-sh-core path:last-child { fill: var(--rx-amber); }
.tx-sec-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tx-sec-l li { padding: 12px 16px; border-radius: var(--r-l); transition: background var(--t-fast); }
.tx-sec-l li:hover { background: var(--hover); }
.tx-sec-l h3 { margin: 0 0 4px; font-size: var(--fs-l); }
.tx-sec-l p { margin: 0; max-width: 74ch; line-height: 1.55; }

/* ---------- конвейер выкладки ---------- */
.tx-pipe { position: relative; list-style: none; margin: 0 0 var(--sp-2); padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }   /* W67: пять шагов — со сканером */
.tx-pipe::before { content: ''; position: absolute; left: 10%; right: 10%; top: 23px; height: 2px; border-radius: 2px; background: var(--border-h); }
.tx-pipe-run { position: absolute; z-index: 0; left: 10%; top: 18px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--rx-amber);
  box-shadow: 0 0 0 4px rgba(255,176,32,.28); animation: tx-run 7s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes tx-run { 0%, 5% { left: 10%; } 24%, 29% { left: 30%; } 48%, 53% { left: 50%; } 72%, 77% { left: 70%; } 95%, 100% { left: 90%; } }
.tx-pipe-s { position: relative; z-index: 1; text-align: center; }
.tx-pipe-i { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary), 0 8px 18px -10px rgba(35,70,213,.6); }
.tx-pipe-s h3 { margin: 0 0 4px; font-size: var(--fs-l); }
.tx-pipe-s p { margin: 0 auto; max-width: 30ch; font-size: var(--fs-s); line-height: 1.5; color: var(--muted); }

/* ---------- час из жизни сервера: насечки — как часто, янтарная черта — «сейчас» бежит по часу ---------- */
.tx-hour { position: relative; padding: 18px 20px 14px; border-radius: var(--r-l); background: var(--panel); box-shadow: var(--shadow); }
.tx-hr-rows { display: grid; gap: 12px; }
.tx-hr { display: grid; grid-template-columns: 270px 1fr; gap: 18px; align-items: center; }
.tx-hr-k { display: flex; flex-direction: column; font-weight: 500; line-height: 1.35; }
.tx-hr-k span { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.tx-hr-svg { display: block; width: 100%; height: 16px; stroke: var(--primary); stroke-width: 1.5; overflow: visible; }
.tx-hr-svg line { vector-effect: non-scaling-stroke; }
.tx-hr-svg .tx-hr-c { stroke-width: 3; stroke-linecap: round; }
.tx-hr-axis { display: flex; justify-content: space-between; margin: 8px 0 0 288px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tx-hr-head { position: absolute; top: 12px; bottom: 34px; left: 308px; width: 2px; border-radius: 2px; background: var(--rx-amber); box-shadow: 0 0 0 3px rgba(255,176,32,.18);
  animation: tx-head 16s linear infinite; pointer-events: none; }
@keyframes tx-head { from { left: 308px; } to { left: calc(100% - 22px); } }
.tx-hr-note { margin: var(--sp-3) 0 0; font-size: var(--fs-s); color: var(--muted); }

/* ---------- стек: плитки; код по языкам — полосой ---------- */
.tx-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tx-tiles li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-content: start; padding: 16px; border-radius: var(--r-l); background: var(--panel); box-shadow: var(--shadow); }
.tx-tile-i { grid-row: span 3; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.tx-tiles h3 { margin: 0; font-size: 15px; line-height: 20px; }
.tx-tile-v { font-size: var(--fs-s); color: var(--muted); font-variant-numeric: tabular-nums; }
.tx-tiles p { margin: 6px 0 0; font-size: var(--fs-s); line-height: 1.45; }
.tx-langbar { display: flex; gap: 2px; height: 14px; margin: 0 0 14px; border-radius: var(--r-full); overflow: hidden; }
.tx-langbar i { min-width: 3px; }
.tx-langs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; }
.tx-langs li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.tx-langs li > i { width: 10px; height: 10px; border-radius: 3px; align-self: center; }
.tx-langs span { font-size: var(--fs-s); color: var(--muted); font-variant-numeric: tabular-nums; }
.tx .l0 { background: #2346D5; } .tx .l1 { background: #FFB020; } .tx .l2 { background: #0E7490; } .tx .l3 { background: #8F7CF0; } .tx .l4 { background: #D9485F; } .tx .l5 { background: var(--todo); }
:root[data-theme="dark"] .tx .l0 { background: #6f88ff; } :root[data-theme="dark"] .tx .l2 { background: #67C7DB; }

/* ---------- рост: график на ночной сцене ---------- */
.tx-night { padding: 8px 20px 14px; }
.tx-night .rx-g { --g-ring: #101950; margin: 0; }

/* ---------- узко (телефон, окно в полэкрана): схема сверху вниз, две колонки ---------- */
@container page (max-width: 760px) {
  .tx-stage { padding: 14px 12px; }
  .tx-legend { justify-content: flex-start; }
  .tx-grid { --tall: 1; gap: 26px 12px; padding: 18px 10px 4px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "br ph" "ol cl" "px px" "ng ng" "sv db" "sv fs" "bg jb" "em md" "ex ex" "cd cd"; }
  .tx-n[data-id="px"], .tx-n[data-id="ng"] { justify-self: center; width: 76%; }
  .tx-n[data-id="ng"] { margin-top: 30px; }
  .tx-n.main { min-height: 0; align-self: stretch; padding: 14px; }
  .tx-n.main .tx-n-t { font-size: 19px; }
  .tx-exts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; }
  .tx-c-dl { grid-template-columns: 1fr; gap: 2px; } .tx-c-dl dd { margin-bottom: 10px; }
  .tx-stage.story .tx-card { position: sticky; z-index: 3; bottom: calc(var(--bar-h, 62px) + 14px + env(safe-area-inset-bottom)); background: #141d5c; box-shadow: 0 -14px 30px -12px rgba(0,0,0,.6); }
  .tx-s p { font-size: var(--fs-m); }
  .tx-shield { grid-template-columns: 1fr; gap: 12px; }
  .tx-sh { position: static; width: 140px; margin: 0 auto; }
  .tx-sec-l li { padding: 10px 4px; }
  .tx-bs { grid-template-columns: minmax(0, 1fr); padding: 18px 14px; } .tx-bs-ar { flex-direction: row; } .tx-bs-ar .i-svg { transform: rotate(90deg); }
  .tx-pipe { grid-template-columns: 1fr; gap: 14px; }
  .tx-pipe::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
  .tx-pipe-run { left: 18px; margin-left: 0; animation-name: tx-run-v; }
  .tx-pipe-s { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; text-align: left; }
  .tx-pipe-i { grid-row: span 2; margin: 0; }
  .tx-pipe-s p { margin: 0; max-width: none; }
  .tx-hr { grid-template-columns: 1fr; gap: 4px; }
  .tx-hr-axis { margin-left: 0; }
  .tx-hr-head { left: 20px; animation-name: tx-head-n; }
  .tx-facts { grid-template-columns: 1fr; }
  .tx-ints { grid-template-columns: 1fr; }
  .tx-dc { grid-template-columns: 1fr; } .tx-ai { grid-template-columns: 1fr; }
  .tx-night { padding: 4px 12px 12px; }
}
@keyframes tx-run-v { 0%, 6% { top: 18px; } 30%, 36% { top: 34%; } 60%, 66% { top: 64%; } 90%, 100% { top: calc(100% - 42px); } }
@keyframes tx-head-n { from { left: 20px; } to { left: calc(100% - 22px); } }
@media (prefers-reduced-motion: reduce) {
  .tx-pipe-run, .tx-hr-head { display: none; }
  .tx-n, .tx-w, .tx-s-dots button::before, .tx-bs * { transition: none !important; }
  .tx-n:hover { transform: none; }
}
