/* ArchiFlow — всплывающие подсказки, значок ⓘ и короткие пустые разделы (tips-v13.js, Claude 16.11.2026). */

/* Окошко подсказки: тёмное, компактное, клики не перехватывает */
.aftip {
  position: fixed; left: 0; top: 0; z-index: 2147483000;
  box-sizing: border-box; max-width: 220px; padding: 6px 10px 7px;
  background: #0e0e0f; color: #ECEAE5;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .4);
  font: 12.5px/1.38 "Helvetica Neue", Helvetica, Inter, Arial, sans-serif;
  text-align: left; white-space: normal; overflow-wrap: break-word;
  pointer-events: none; opacity: 0; transform: translateY(3px);
  transition: opacity .12s ease, transform .12s ease;
}
.aftip[hidden] { display: none; }
.aftip[data-side="top"] { transform: translateY(-3px); }
.aftip[data-side="right"] { transform: translateX(3px); }
.aftip[data-side="left"] { transform: translateX(-3px); }
.aftip.on { opacity: 1; transform: none; }
.aftip b { display: block; font-weight: 600; color: #fff; margin-bottom: 1px; }
.aftip span { display: block; }
.aftip em { display: block; margin-top: 3px; font-style: normal; font-size: 11.5px; color: var(--gold, #B8A77E); }
@media (prefers-reduced-motion: reduce) { .aftip, .aftip[data-side] { transition: none; transform: none; } }

/* Значок ⓘ — вместо поясняющего абзаца */
.af-i {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 18px; height: 18px; margin: 0 0 0 5px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--dim, #6f6d68);
  vertical-align: -3px; cursor: help; font: inherit; line-height: 1;
}
.af-i svg { width: 15px; height: 15px; display: block; }
.af-i:hover, .af-i:focus-visible, .af-i[aria-describedby~="af-tip"] { color: var(--gold, #B8A77E); }
.af-i:focus-visible { outline: 1px solid var(--gold-line, rgba(184,167,126,.55)); outline-offset: 1px; }
.afapp-th h3 .af-i, .afapp-card h4 .af-i, .afg-day h3 .af-i, .afplat h3 .af-i, .afplat h4 .af-i, .accbox h3 .af-i { vertical-align: -2px; }
.afg-day h3 .af-i { align-self: center; }

/* Короткий пустой раздел: значок, 2–4 слова, одна кнопка и, может быть, один пример */
.af-es { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 16px 30px; }
.af-es-ic {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 52px; padding: 0; border: 0; border-radius: 16px;
  background: var(--card, #2a2a2d); color: var(--muted, #9a978f); cursor: help;
  transition: color .15s, background .15s;
}
.af-es-ic svg { width: 26px; height: 26px; }
.af-es-ic:hover, .af-es-ic:focus-visible, .af-es-ic[aria-describedby~="af-tip"] { color: var(--text, #F2F0EC); background: #323236; }
.af-es-ic:focus-visible { outline: 1px solid var(--gold-line, rgba(184,167,126,.55)); outline-offset: 2px; }
.af-es-t { margin: 2px 0 0; font-size: 15px; font-weight: 500; color: var(--text, #F2F0EC); }
.af-es-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; max-width: 100%; }
.af-es-acts .afg-btn { padding: 8px 16px; }
.af-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 7px 13px; border: 1px solid var(--line2, #46464b); border-radius: 17px;
  background: transparent; color: var(--muted, #9a978f); font: inherit; font-size: 12.5px; line-height: 1.25;
  text-align: left; cursor: pointer; transition: color .15s, border-color .15s;
}
.af-chip:hover, .af-chip:focus-visible { color: var(--text, #F2F0EC); border-color: var(--gold-line, rgba(184,167,126,.55)); }
.af-chip-i { flex: none; font-size: 13px; }
/* внутри карточки (Документы → «Файлы проекта», «Журнал решений») — одной строкой */
.af-es.sm { flex-direction: row; align-items: center; text-align: left; gap: 10px; padding: 2px 0 0; }
.af-es.sm .af-es-ic { width: 34px; height: 34px; border-radius: 9px; background: #323236; }
.af-es.sm .af-es-ic svg { width: 18px; height: 18px; }
.af-es.sm .af-es-t { flex: 1; min-width: 0; margin: 0; font-size: 13.5px; font-weight: 400; color: var(--muted, #9a978f); }
.af-es.sm .af-es-acts { margin: 0; flex-wrap: nowrap; }
.afg-day .af-es:not(.sm) { padding: 18px 8px 10px; }
/* строка «Ещё без картинок: ＋ Гостиная …» и т.п. — без подписи-пояснения */
.af-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }

/* пример вставлен в поле помощника — короткая подсветка, чтобы глаз нашёл поле */
form.inputbar.af-filled { box-shadow: 0 0 0 2px var(--gold-line, rgba(184,167,126,.55)); transition: box-shadow .4s ease; }

/* «Как получить ключ» и другие длинные инструкции — свёрнуты */
details.af-more { margin-top: 8px; }
details.af-more > summary { cursor: pointer; color: var(--dim, #6f6d68); font-size: 12.5px; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
details.af-more > summary::-webkit-details-marker { display: none; }
details.af-more > summary::before { content: '›'; display: inline-block; transition: transform .15s; }
details.af-more[open] > summary::before { transform: rotate(90deg); }
details.af-more > summary:hover { color: var(--text, #F2F0EC); }
details.af-more > p { margin-top: 6px; }

/* укороченная строка собранного интерфейса (например, пустой общий чат) */
.af-short { cursor: default; }

/* Телефон: наведения нет — долгое нажатие; без меню ссылки и выделения текста, ⓘ крупнее для пальца */
@media (hover: none) {
  [data-tip] { -webkit-touch-callout: none; }
  button[data-tip], a[data-tip], [role="button"][data-tip] { -webkit-user-select: none; user-select: none; }
  .af-i { width: 28px; height: 28px; margin: -5px -6px -5px 0; }
  .af-i svg { width: 16px; height: 16px; }
}

/* Мини-ролик в подсказке (tips-v13.js, 17.11.2026): ролик сверху, текст под ним. Ширина — под ролик (320 + поля),
   но не шире экрана (задаёт place()); высота известна сразу по пропорциям — подсказка не прыгает, пока грузится ролик. */
.aftip.aftip-clip { max-width: none; padding: 6px 6px 7px; }
.aftip.aftip-clip > b, .aftip.aftip-clip > span:not(.aftip-v), .aftip.aftip-clip > em { padding: 0 4px; }
.aftip .aftip-v { position: relative; display: block; width: 100%; margin: 0 0 6px; border-radius: 5px; overflow: hidden; background: #1c1c1e; }
.aftip-v video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* меньше движения или автозапуск запрещён: постер и ▶ (подсказку тогда можно навести и нажать) */
.aftip-play {
  display: none; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; padding: 0;
  align-items: center; justify-content: center; border: 0; border-radius: 50%;
  background: rgba(14, 14, 15, .74); color: #ECEAE5; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); cursor: pointer;
}
.aftip-play svg { width: 16px; height: 16px; margin-left: 2px; display: block; }
.aftip-play:hover, .aftip-play:focus-visible { background: rgba(14, 14, 15, .92); color: var(--gold, #B8A77E); }
.aftip-v.still .aftip-play { display: flex; }
.aftip.aftip-act { pointer-events: auto; }
