/* «Правила і FAQ» (Mark 2026-12-02). Uses Agrotool tokens from styles.css and .crm-* from crm.css. */
.help-page { max-width: 920px; }
.help-lead { margin: 4px 0 0; }
.help-search { position: sticky; top: 0; z-index: 2; margin: 0 0 12px; padding: 8px 0; background: var(--cream); }
.help-search input { width: 100%; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; }
.help-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.help-chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--forest); font-size: 13px; font-weight: 700; text-decoration: none; }
.help-chip:hover { border-color: var(--forest); }
.help-found { margin: 0 0 14px; }
.help-section { margin-bottom: 22px; scroll-margin-top: 70px; }
.help-section h3 { margin-bottom: 8px; }
.help-item { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.help-item.custom { border-left: 4px solid var(--lime); }
.help-item summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 13px 16px; cursor: pointer; list-style: none; font-weight: 750; color: var(--forest); }
.help-item summary::-webkit-details-marker { display: none; }
.help-item summary::before { content: "›"; display: inline-block; width: 12px; color: var(--muted); font-size: 18px; line-height: 1; transition: transform .15s; }
.help-item[open] summary::before { transform: rotate(90deg); }
.help-q { flex: 1 1 260px; min-width: 0; }
.help-roles { padding: 2px 8px; border-radius: 99px; background: #eef1ea; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.help-a { padding: 0 16px 14px 38px; color: var(--ink); line-height: 1.55; }
.help-a p { margin: 0 0 10px; }
.help-a ul { margin: 0 0 10px; padding-left: 18px; }
.help-a li { margin-bottom: 4px; }
.help-a mark, .help-q mark { padding: 0; border-radius: 2px; background: #eaf7a8; color: inherit; }
.help-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.help-meta { margin-left: auto; color: var(--muted); font-size: 12px; }
.help-del { color: var(--danger); }
.help-empty { padding: 12px 16px; border: 1px dashed var(--line); border-radius: 10px; }
.help-form { margin-bottom: 16px; }
.help-form label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; color: var(--forest); }
.help-form input, .help-form textarea, .help-form select { width: 100%; padding: 10px 12px; font: inherit; font-weight: 400; }
.help-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help-form-roles { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.help-form-roles legend { padding: 0 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.help-form .help-role { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.help-form .help-role input { width: auto; }
.help-form-act { display: flex; gap: 10px; }
@media (max-width: 650px) {
  .help-a { padding-left: 16px; }
  .help-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-bottom: 4px; scrollbar-width: none; }
  .help-chip { flex: none; }
  .help-form-row { grid-template-columns: 1fr; }
  .help-meta { margin-left: 0; width: 100%; }
}
