/* ArchiFlow — корзина: выбор нескольких, полоса действий, окно подтверждения (trash-v13.js, 18.11.2026). */
.afts-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; flex: none; box-sizing: border-box; padding: 8px 10px; border-top: 1px solid var(--line, #3a3a3e); color: var(--text, #F2F0EC); font-size: 12.5px; }
.afts-bar[hidden] { display: none; }
.afts-n { color: var(--muted, #a9a49b); font-size: 13px; }
.afts-n b { color: var(--text, #F2F0EC); font-weight: 600; }
.afts-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.afts-a { border: 1px solid var(--line2, #4a4a50); border-radius: 12px; padding: 6px 11px; font-size: 12.5px; color: var(--text, #F2F0EC); white-space: nowrap; background: transparent; cursor: pointer; }
.afts-a:hover:not(:disabled) { border-color: var(--gold-line, #8a7a55); color: var(--gold, #c8b58a); }
.afts-a.dz { color: var(--conf, #e0796b); border-color: color-mix(in srgb, var(--conf, #e0796b) 45%, transparent); }
.afts-a:disabled { opacity: .4; cursor: default; }
.afts-b { font-size: 12.5px; color: var(--muted, #a9a49b); padding: 6px 4px; background: transparent; border: 0; cursor: pointer; }
.afts-b:hover { color: var(--text, #F2F0EC); }
.afts-x { margin-left: auto; }
@media (max-width: 760px) { .afts-a { padding: 9px 12px; font-size: 13px; } .afts-b { padding: 9px 6px; font-size: 13px; } }

/* строки в режиме выбора */
.afts-mode [data-pid], .afts-mode .afd-row { position: relative; padding-left: 32px; cursor: pointer; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.afts-mode .afd-more, .afts-mode .cmenu { display: none; }
.afts-chk { position: absolute; left: 6px; top: 50%; margin-top: -10px; width: 20px; height: 20px; border-radius: 10px; border: 1.5px solid var(--line2, #4a4a50); box-sizing: border-box; pointer-events: none; }
.afts-picked { background: var(--gold-soft, #c8b58a1f); }
.afts-picked .afts-chk { background: var(--gold, #c8b58a); border-color: var(--gold, #c8b58a); }
.afts-picked .afts-chk::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 9px; border: solid #1b1b1d; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.afts-marq { position: fixed; z-index: 90; pointer-events: none; background: rgba(200,181,138,.15); border: 1px solid rgba(200,181,138,.8); border-radius: 4px; }

/* окно подтверждения: поверх левой панели диалогов (z-index 30) и разделов проекта */
.afts-modal { z-index: 95; }
.afts-modal .dialog { width: min(420px, 100%); }
.afts-modal .dialog h2 { margin: 0 0 8px; }
.afts-modal .dialog p { margin: 0 0 8px; }
.afts-modal .afts-note { color: var(--muted, #a9a49b); font-size: 12.5px; }

.afts-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 96; max-width: min(92vw, 460px); padding: 10px 14px; border-radius: 12px; background: #323237; border: 1px solid var(--line2, #4a4a50); color: var(--text, #F2F0EC); font-size: 13px; transition: opacity .4s; }
.afts-toast.bad { border-color: var(--conf, #e0796b); }
.afts-toast.out { opacity: 0; }
/* в основном стиле «.danger{color:var(--conf)!important}» перекрашивает текст красной кнопки окна в цвет её фона — читаем тёмным */
.modal .sheetacts button.danger { color: #1a120f !important; }
