/* «Автоматизация → Рекомендации» (29.11.2026): список слева, текст справа. */
.adv-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.adv-head h1 { margin-right: auto; }
.adv-layout { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 16px; align-items: start; margin-top: 12px; }
@media (max-width: 860px) { .adv-layout { grid-template-columns: 1fr; } }
.adv-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius, 10px);
  background: var(--surface); overflow: hidden; }
.adv-list li { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.adv-list li:last-child { border-bottom: 0; }
.adv-list li:hover { background: var(--surface-2); }
.adv-list li.active { background: var(--accent-soft); }
.adv-item { flex: 1; min-width: 0; }
.adv-date { font-size: 12px; color: var(--muted); }
.adv-title { font-weight: 600; overflow-wrap: anywhere; }
.adv-meta { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.adv-del { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.adv-del:hover { color: var(--bad); }
.adv-view { border: 1px solid var(--line); border-radius: var(--radius, 10px); background: var(--surface); padding: 16px 20px;
  min-width: 0; overflow-x: auto; line-height: 1.5; }
.adv-view-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; border-bottom: 1px solid var(--line);
  padding-bottom: 8px; margin-bottom: 12px; }
.adv-view-head .muted { margin-right: auto; }
.adv-view table { border-collapse: collapse; margin: 8px 0 14px; font-size: 13px; }
.adv-view th, .adv-view td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; vertical-align: top; }
.adv-view th { background: var(--surface-2); font-weight: 600; }
.adv-view code { background: var(--surface-2); padding: 0 4px; border-radius: 4px; font-size: 12.5px; }
.adv-view pre { background: var(--surface-2); padding: 10px; border-radius: 6px; overflow-x: auto; }
.adv-view h1 { font-size: 22px; } .adv-view h2 { font-size: 18px; margin-top: 22px; } .adv-view h3 { font-size: 15px; }
.adv-view iframe { width: 100%; min-height: 70vh; border: 0; background: #fff; }
.adv-view pre.adv-text { white-space: pre-wrap; background: none; padding: 0; }
/* Видимость (30.11.2026): скрытая — только владельцу */
.adv-private .adv-meta { color: var(--muted); font-style: italic; }
.adv-vis { font-size: 13px; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; cursor: pointer; }
