/* ArchiFlow — раздел «Встречи» (meetings-v13.js, server/meetings.js), 18.11.2026. Тёмная серая поверхность, бежево-золотой акцент,
   компактно; на телефоне основные кнопки не ниже 44 px. Цвета — переменные приложения (--gold, --card, --line…). */
.afmt { padding-bottom: 28px; }
.afmt-head { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.afmt-head .afg-btn { flex: none; height: 38px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; white-space: nowrap; }
.afmt-box { padding: 4px 14px; }
.afmt-li { align-items: flex-start; }
.afmt-li .afe-li-t b { white-space: normal; }
.afmt-pv, .afmt-hit { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.4; font-style: normal; }
.afmt-hit { color: var(--gold); }
.afp-st.bad { background: rgba(200,110,100,.16); color: #d98f84; }
.afmt-msg { margin: 10px 0 0; padding: 9px 12px; border: 1px solid var(--gold-line); border-radius: 12px; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* новая встреча */
.afmt-f { display: grid; grid-template-columns: 1.4fr 1fr 150px; gap: 8px; margin-bottom: 12px; }
.afmt-f label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--dim); min-width: 0; }
.afmt-f input, .afmt-meta input, .afmt-title, .afmt-nts textarea {
  height: 38px; border: 1px solid var(--line2); border-radius: 10px; background: #242426; color: var(--text); padding: 0 10px; font: inherit; font-size: 14px; outline: none; color-scheme: dark; min-width: 0;
}
.afmt-f input:focus, .afmt-meta input:focus, .afmt-title:focus, .afmt-nts textarea:focus { border-color: var(--gold-line); }
.afmt-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.afmt-big {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 6px; border: 1px solid var(--line2); border-radius: 14px;
  background: transparent; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.afmt-big svg { width: 24px; height: 24px; color: var(--gold); }
.afmt-big:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.afmt-big.wide { width: 100%; min-height: 64px; flex-direction: row; gap: 10px; font-size: 15px; }
.afmt-big:focus-visible, .afmt-b:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }

/* загрузка */
.afmt-up b { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afmt-bar, .afmt-lv { height: 6px; border-radius: 3px; background: #2e2e32; overflow: hidden; }
.afmt-bar i, .afmt-lv i { display: block; height: 100%; background: var(--gold); border-radius: 3px; transition: width .2s; }
.afmt-up small { color: var(--dim); font-size: 12px; }

/* страница встречи */
.afmt-top { margin-top: 10px; }
.afmt-hd { margin-top: 6px; }
.afmt-title { width: 100%; box-sizing: border-box; height: 44px; font-size: 17px; font-weight: 600; background: transparent; border-color: transparent; padding: 0 2px; }
.afmt-title:hover { border-color: var(--line2); } .afmt-title:focus { background: #242426; padding: 0 10px; }
.afmt-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 2px; }
.afmt-meta input { height: 32px; font-size: 13px; }
.afmt-meta input[type="date"] { width: 140px; } .afmt-meta input[data-f="who"] { flex: 1 1 140px; max-width: 280px; }
.afmt-consent { margin: 10px 0 0; color: var(--dim); font-size: 11.5px; line-height: 1.4; }
.afmt-note { margin: 8px 0 0; color: var(--dim); font-size: 11.5px; line-height: 1.4; }
.afmt-off { margin: 8px 0 0; color: var(--check); font-size: 12.5px; }
.afmt-rec { text-align: center; }
.afmt-rt { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 6px 0 12px; }
.afmt-time { font-size: 38px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.afmt-rt small { color: var(--muted); font-size: 12.5px; }
.afmt-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #d2675c; animation: afmt-pulse 1.4s infinite; flex: none; }
.afmt-rec.paused .afmt-dot { animation: none; background: var(--dim); }
@keyframes afmt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .afmt-dot { animation: none; } .afmt-spin { animation-duration: 3s; } }
.afmt-ctl { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.afmt-b { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 22px; font-size: 14px; cursor: pointer; }
.afmt-b svg { width: 18px; height: 18px; }
.afmt-proc { display: flex; align-items: center; gap: 12px; }
.afmt-proc b { font-weight: 500; font-size: 14px; }
.afmt-spin { width: 18px; height: 18px; border: 2px solid var(--line2); border-top-color: var(--gold); border-radius: 50%; animation: afmt-rot 0.9s linear infinite; flex: none; }
@keyframes afmt-rot { to { transform: rotate(360deg); } }
.afmt-est { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.afmt-est-l { font-size: 13.5px; color: var(--text); min-width: 0; }
.afmt-est.blocked .afmt-est-l { color: var(--check); }
.afmt-est .afg-btn, .afmt-est .afp-btn { min-height: 40px; padding: 0 18px; border-radius: 12px; }
.afmt-est button[disabled] { opacity: .45; cursor: default; }

/* итоги */
.afmt-sum h3, .afmt-sec h3 { align-items: center; gap: 8px; }
.afmt-sec h3 .afp-btn { margin-left: 10px; }
.afmt-ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.afmt-ul li { margin: 3px 0; } .afmt-ul small { color: var(--dim); }
.afmt-it { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.afmt-sec h3 + .afmt-it { border-top: 0; padding-top: 2px; }
.afmt-it-t { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; }
.afmt-it-t b { display: block; font-weight: 500; }
.afmt-it-t small { color: var(--dim); font-size: 12px; }
.afmt-add { display: inline-flex; align-items: center; gap: 5px; flex: none; min-height: 32px; white-space: nowrap; }
.afmt-add svg, .afmt-ok svg { width: 14px; height: 14px; }
.afmt-ok { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12.5px; color: var(--ok); }
.afmt-it.done .afmt-it-t { color: var(--muted); }
.afmt-undo { margin: 10px 0 0; font-size: 13px; color: var(--ok); }
.afmt-link { padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-size: 12.5px; text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.afmt-link:hover { text-decoration-color: var(--gold); }
.afmt-link svg { width: 14px; height: 14px; }

/* заметки, расшифровка, звук */
.afmt-nts summary, .afmt-tr summary { cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; }
.afmt-nts summary::-webkit-details-marker, .afmt-tr summary::-webkit-details-marker { display: none; }
.afmt-nts summary::before, .afmt-tr summary::before { content: '▸'; display: inline-block; width: 14px; color: var(--dim); }
.afmt-nts[open] summary::before, .afmt-tr[open] summary::before { content: '▾'; }
.afmt-nts textarea { width: 100%; box-sizing: border-box; height: auto; min-height: 110px; margin-top: 10px; padding: 10px; resize: vertical; line-height: 1.45; }
.afmt-trt { margin: 10px 0 8px; font-size: 13.5px; line-height: 1.55; color: var(--muted); max-height: 420px; overflow: auto; }
/* говорящие (Soniox): имена над расшифровкой и реплики */
.afmt-spks { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.afmt-spk { display: inline-flex; align-items: center; line-height: 1; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--line2); background: transparent; color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.afmt-spk:hover:not([disabled]) { border-color: var(--gold-line); }
.afmt-spk[disabled] { cursor: default; }
.afmt-spk small { color: var(--dim); font-size: 11px; }
.afmt .afmt-spk-in { width: 150px; max-width: 100%; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 13px; }
.afmt-turn { margin: 0 0 10px; }
.afmt-turn b { color: var(--gold); font-weight: 600; margin-right: 2px; }
.afmt-au h3 small { margin-left: auto; color: var(--dim); font-weight: 400; font-size: 12px; }
.afmt-aur { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.afmt-aur audio { flex: 1 1 240px; max-width: 100%; height: 36px; color-scheme: dark; }
.afmt-aur .afp-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; }
.afmt-aur .afp-btn svg { width: 14px; height: 14px; }
.afmt-del { margin: 18px 0 0; text-align: right; }
.afmt-again { margin: 14px 0 0; font-size: 12.5px; color: var(--dim); } .afmt-again small { margin-left: 6px; }
.afmt-conf { font-size: 12.5px; color: var(--muted); display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.afmt-danger { border-color: #8a4b45; color: #e0958b; }

/* плашка записи вне раздела */
.afmt-pill {
  position: fixed; left: 14px; bottom: 14px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 20px;
  border: 1px solid var(--gold-line); background: #2a2a2d; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; box-shadow: 0 6px 20px #0006; font-variant-numeric: tabular-nums;
}
.app.phone .afmt-pill { bottom: 74px; }

@media (max-width: 640px) {
  .afmt-f { grid-template-columns: 1fr 1fr; } .afmt-f label:first-child { grid-column: 1 / -1; }
  .afmt-big { min-height: 84px; }
  .afmt-add { min-height: 40px; padding: 0 12px; }
  .afmt-it { align-items: flex-start; }
  .afmt-time { font-size: 44px; }
  .afmt-ctl .afmt-b { flex: 1; justify-content: center; }
  .afmt-head .afg-btn { height: 40px; }
}
/* «График» → «Встречи» (18.11.2026): строка «что это» и большая «Записать» */
.afmt-intro { margin: 12px 0 4px; padding: 16px; background: var(--card); border-radius: 14px; }
.afmt-intro p { margin: 0 0 12px; color: var(--text); font-size: 13.5px; line-height: 1.45; }
.afmt-intro-b { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.afmt-rec { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 180px; height: 52px; padding: 0 26px; border-radius: 26px; background: var(--gold); color: #1c1c1e; font-size: 16px; font-weight: 600; }
.afmt-rec svg { width: 22px; height: 22px; }
.afmt-rec:hover { filter: brightness(1.06); }
.afmt-rec:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
@media (max-width: 700px) { .afmt-rec { flex: 1; } }
