/* Полоска шагов — тонкая, в одну строку, закреплена сверху */
.stepbar { position: sticky; top: 0; z-index: 20; height: 44px; margin: 0; padding: 0 16px; list-style: none;
  background: var(--card,#fff); border-bottom: 1px solid var(--line,#e3dcd2); }
.stepbar-in { max-width: 1200px; justify-content: safe center; height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.stepbar-in::-webkit-scrollbar { height: 4px; } .stepbar-in::-webkit-scrollbar-thumb { background: var(--line,#e3dcd2); border-radius: 4px; }
.stepbar-in > * { flex: none; }
.step { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px;
  font-size: 14px; color: var(--muted,#7a7068); text-decoration: none; }
.step.active { background: #e9dfd2; color: var(--ink,#2b2622); font-weight: 700; }
.step.done { color: var(--ink,#2b2622); }
a.step:hover { background: var(--soft,#f1ebe3); }
.step-n { flex: none; width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; border: 1px solid var(--line,#e3dcd2); background: var(--bg,#f7f4ef); }
.step.active .step-n { background: var(--card,#fff); border-color: #d8cbbb; }
.step-sep { color: var(--line,#e3dcd2); font-size: 18px; }
.step .short { display: none; }
@media (max-width: 600px) {

  .step { padding: 4px 7px; font-size: 12.5px; gap: 5px; }

  .stepbar { padding: 0 8px; }
  .stepbar-in { gap: 2px; justify-content: flex-start; }
  .step-n { width: 18px; height: 18px; font-size: 11px; }
}
.stepbar.hidden { display: none; }

/* Боковые окна (промпт и «i») — справа, по одному. На широком экране текст сжимается и ничего не перекрывается */
.drawer { position: fixed; top: 44px; bottom: 0; z-index: 31; background: var(--card,#fff); padding: 16px;
  display: flex; flex-direction: column; box-shadow: 0 0 30px rgba(40,30,20,.12); }
.drawer.left { left: 0; width: var(--dl-w); border-right: 1px solid var(--line,#e3dcd2); }
.drawer.right { right: 0; width: var(--dr-w); border-left: 1px solid var(--line,#e3dcd2); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.drawer-x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted,#7a7068); }
.drawer-ta { flex: 1; min-height: 200px; margin-top: 4px; font-size: 14px; }
.drawer-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; color: var(--muted,#7a7068); }
.drawer .info-body { overflow-y: auto; font-size: 15px; line-height: 1.55; }
.drawer .info-body p { margin: 12px 0; }
.drawer .hint { color: var(--muted,#7a7068); font-size: 14px; }
.drawer-bg { position: fixed; inset: 44px 0 0 0; background: rgba(40,30,20,.18); z-index: 30; }
:root { --dr-w: clamp(340px, 30vw, 520px); }
@media (min-width: 1000px) {
  .drawer-bg { display: none; }
  body.dl { padding-left: var(--dl-w); }
  body.dr { padding-right: var(--dr-w); }
  body.dl .toc, body.dr .pick { display: none !important; }
  body.dl .stepbar { margin-left: calc(-1 * var(--dl-w)); }
  body.dr .stepbar { margin-right: calc(-1 * var(--dr-w)); }
}
@media (max-width: 999px) {
  .drawer.left, .drawer.right { width: 100vw; }
}

/* «Кто что делает» в окне «i» */
.who { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line,#e3dcd2); }
.who-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted,#7a7068); margin-bottom: 10px; }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.who-card { border: 1px solid var(--line,#e3dcd2); border-radius: 12px; padding: 10px 12px; background: var(--bg,#f7f4ef); }
.who-card.ai { background: #f1f4f8; border-color: #dfe5ee; }
.who-h { font-weight: 700; margin-bottom: 6px; }
.who-card ul { margin: 0; padding: 0 0 0 18px; list-style: disc; } .who-card li { margin: 3px 0; }
.who-none { margin: 0 !important; color: var(--muted,#7a7068); font-style: italic; }
