/* Страница материала */
.art__head { padding: 6px 2px 0; }
.art__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.art__title { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; margin-top: 8px; }
.art__lead { font-size: 17px; color: var(--muted); margin-top: 10px; }
.art__cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); margin-top: 18px; }
.art__links { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.art__ask {
  display: flex; align-items: center; gap: 10px; margin-top: 32px; padding: 14px 16px;
  border-radius: var(--radius-m); background: var(--surface); color: var(--muted); font-size: 14px;
}
.toc__title { font-size: 13px; color: var(--muted); margin: 20px 2px 8px; }

/* Текст */
.prose { margin-top: 18px; font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: 21px; font-weight: 700; line-height: 1.25; margin-top: 30px; scroll-margin-top: 12px; }
.prose h3 { font-size: 18px; font-weight: 600; margin-top: 22px; }
.prose strong { font-weight: 600; }
.prose img { border-radius: var(--radius-m); }
.prose p:has(> img + img) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prose p:has(> img + img) img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.prose blockquote { margin: 0; padding: 12px 16px; background: var(--surface); border-radius: var(--radius-m); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.prose code { font: 0.88em var(--font-mono); background: var(--surface); padding: 1px 5px; border-radius: 6px; }
.prose ul, .prose ol { list-style: none; padding: 0; margin-bottom: 0; }

/* Галочки */
.checklist > li { position: relative; padding-left: 32px; }
.checklist > li + li { margin-top: 8px; }
.checklist > li::before {
  content: ""; position: absolute; left: 0; top: 0.2em;
  width: 20px; height: 20px; border-radius: 50%; background: var(--primary);
}
.checklist > li::after {
  content: ""; position: absolute; left: 7px; top: calc(0.2em + 4px);
  width: 5px; height: 9px; border: solid var(--on-primary); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Нумерация */
.prose ol:not(.linklist) { counter-reset: n; }
.prose ol:not(.linklist) > li { counter-increment: n; position: relative; padding-left: 32px; }
.prose ol:not(.linklist) > li + li { margin-top: 8px; }
.prose ol:not(.linklist) > li::before {
  content: counter(n); position: absolute; left: 0; top: 0.15em;
  width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2);
  font-size: 13px; font-weight: 600; line-height: 22px; text-align: center;
}

/* Списки ссылок и строки-промпты */
.linklist, .cmdlist { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.linkrow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text); }
.linklist > li + li > .linkrow { box-shadow: inset 0 1px 0 var(--line); }
.linkrow:active { background: var(--surface-2); }
.linkrow__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.linkrow__title { font-size: 16px; line-height: 1.3; }
.linkrow__src { font-size: 13px; color: var(--muted); }
.linkrow__ico { color: var(--muted); }

.cmdrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; text-align: left; }
.cmdlist > li + li > .cmdrow { box-shadow: inset 0 1px 0 var(--line); }
.cmdrow:active { background: var(--surface-2); }
.cmdrow__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prose .cmdrow__cmd { font: 600 15px/1.3 var(--font-mono); background: none; padding: 0; color: var(--text); }
.cmdrow__note { font-size: 14px; line-height: 1.35; color: var(--muted); }
.cmdrow__ico { color: var(--muted); }
.cmdrow__ico svg { width: 18px; height: 18px; }

/* Промпты */
.prompt { background: var(--surface); border-radius: var(--radius-m); overflow: hidden; }
.prompt__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line);
}
.prompt__label { font-size: 13px; font-weight: 500; color: var(--muted); }
.prompt__copy {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border-radius: 10px; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 600;
}
.prompt__copy svg { width: 16px; height: 16px; }
.prompt pre {
  margin: 0; padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 14px/1.5 var(--font-mono);
}
.prompt pre code { background: none; padding: 0; font: inherit; }
.prompt.is-collapsed pre {
  max-height: 300px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 65%, transparent);
  mask-image: linear-gradient(#000 65%, transparent);
}
.prompt__more { width: 100%; padding: 12px; font-size: 15px; font-weight: 600; color: var(--accent); border-top: 1px solid var(--line); }
