:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --line: #e3e5ea;
  --text: #1d2330;
  --muted: #6b7280;
  --accent: #4b5bdc;
  --accent-soft: #eef0fd;
  --red: #d64545;
  --red-soft: #fdeeee;
  --amber: #c98a12;
  --amber-soft: #fdf5e4;
  --green: #2f9e6b;
  --green-soft: #e8f6ef;
  --radius: 10px;
  --st-new: #8a93a6;
  --st-progress: #4b5bdc;
  --st-review: #c98a12;
  --st-done: #2f9e6b;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: var(--bg);
}
a { color: inherit; text-decoration: none; }
h1 { font-size: 22px; margin: 0 0 4px; font-weight: 650; }
h2 { font-size: 15px; margin: 18px 0 10px; font-weight: 650; }
code { background: #f0f1f4; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* layout */
.layout { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar {
  background: #1f2433; color: #d7dbe6; padding: 18px 14px; display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; color: #fff; }
.brand.big { font-size: 20px; color: var(--text); justify-content: center; }
.logo { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 14px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar nav a { padding: 8px 10px; border-radius: 8px; display: flex; align-items: center; gap: 6px; }
.sidebar nav a:hover { background: #2b3144; }
.sidebar nav a.active { background: #343b52; color: #fff; }
.count { margin-left: auto; background: var(--accent); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; }
.count.muted { background: #3c4358; color: #cfd4e2; }
.nav-sep { margin: 14px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8b93a8; }
.me { display: flex; align-items: center; gap: 9px; border-top: 1px solid #2f3547; padding-top: 12px; }
.me-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.me-text b { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text span { font-size: 12px; color: #9aa2b7; }
.icon-btn { background: none; border: 0; color: #9aa2b7; font-size: 18px; cursor: pointer; padding: 4px; border-radius: 6px; }
.icon-btn:hover { color: #fff; background: #2b3144; }
.content { padding: 24px 28px 40px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.page-head p { margin: 0; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 10px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px;
  border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text);
  font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: #c9cdd6; background: #fafbfc; }
.btn:focus-visible, .pill:focus-visible, .tg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #3f4ec9; border-color: #3f4ec9; }
.btn-block { width: 100%; }
.btn.small { padding: 4px 10px; font-size: 12.5px; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); border-color: #f0c7c7; }
.btn.danger:hover { background: var(--red-soft); }

/* avatars & tags */
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font-size: 12px; font-weight: 700; color: #fff; background: #8a93a6;
}
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; margin-right: 6px; vertical-align: middle; }
.role-GKAM { background: #7c3aed; }
.role-SKAM { background: #0e7490; }
.role-KAM { background: #4b5bdc; }
.role-RM { background: #2f9e6b; }
.avatar.bot { background: #2aabee; font-size: 16px; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: #eef0f3; color: #4b5260; }
.tag-high { background: var(--red-soft); color: var(--red); }
.role-tag { color: #fff; }
.who { display: inline-flex; align-items: center; }

/* board */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; align-items: start; }
.col { background: #eceef2; border-radius: var(--radius); padding: 10px; min-height: 200px; }
.col.drop { background: var(--accent-soft); outline: 2px dashed var(--accent); outline-offset: -2px; }
.col-head { display: flex; align-items: center; gap: 8px; font-weight: 650; padding: 2px 4px 10px; }
.col-count { margin-left: auto; color: var(--muted); font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; margin-right: 6px; }
.col-head .dot { margin-right: 0; }
.st-new { --c: var(--st-new); } .st-progress { --c: var(--st-progress); } .st-review { --c: var(--st-review); } .st-done { --c: var(--st-done); }
.dot.st-new, .dot.st-progress, .dot.st-review, .dot.st-done { background: var(--c); }
.col-body { display: flex; flex-direction: column; gap: 8px; }
.empty { color: #a0a6b3; text-align: center; padding: 18px 0; font-size: 13px; }
.card {
  display: block; background: var(--panel); border-radius: 8px; padding: 10px 12px; border: 1px solid var(--line);
  border-left: 3px solid transparent; box-shadow: 0 1px 2px rgba(20, 25, 40, .04); cursor: grab;
}
.card:hover { border-color: #c9cdd6; box-shadow: 0 3px 10px rgba(20, 25, 40, .08); }
.card.prio-high { border-left-color: var(--red); }
.card.dragging { opacity: .45; }
.card-top { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 4px; }
.num { color: var(--muted); font-weight: 600; font-size: 12px; }
.due { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.due.overdue { color: var(--red); font-weight: 650; }
.due.today { color: var(--amber); font-weight: 650; }
.due.soon { color: var(--amber); }
.card-title { font-weight: 550; margin-bottom: 6px; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.card-meta .icons { margin-left: auto; white-space: nowrap; }

/* panels & forms */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-weight: 550; margin-bottom: 14px; }
input, select, textarea {
  font: inherit; color: var(--text); padding: 8px 10px; border: 1px solid #d3d7df; border-radius: 8px; background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; }
.form.panel { max-width: 860px; }
.row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.actions { display: flex; gap: 8px; }
.seg { display: inline-flex; background: #eef0f3; border-radius: 9px; padding: 3px; margin-bottom: 16px; }
.seg a { padding: 6px 14px; border-radius: 7px; font-weight: 550; color: var(--muted); }
.seg a.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.row-form { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 10px; align-items: end; margin-top: 14px; }
.row-form label { margin: 0; }
details summary { cursor: pointer; }
.alert { background: var(--red-soft); color: var(--red); padding: 9px 12px; border-radius: 8px; margin-bottom: 14px; }
.alert.info { background: var(--accent-soft); color: #2e3a9e; }

/* task page */
.back { color: var(--muted); display: inline-block; margin-bottom: 12px; }
.back:hover { color: var(--text); }
.task-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.task-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.desc { white-space: pre-wrap; margin: 10px 0 4px; }
.status-bar { display: flex; gap: 6px; margin: 18px 0 6px; flex-wrap: wrap; }
.status-bar form { margin: 0; }
.pill {
  display: inline-block; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 13px; font-weight: 550; color: var(--muted); cursor: pointer;
}
button.pill:hover { border-color: var(--c); color: var(--c); }
.pill.on { background: var(--c); border-color: var(--c); color: #fff; }
.task-side dl { margin: 0; display: grid; grid-template-columns: 1fr; }
.task-side dt { font-size: 12px; color: var(--muted); margin-top: 10px; }
.task-side dt:first-child { margin-top: 0; }
.task-side dd { margin: 3px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.task-side dd.due { margin-left: 0; font-size: 14px; }
.edit { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.edit summary { font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.del-form { margin-top: 8px; }
.comments { display: flex; flex-direction: column; gap: 14px; }
.comment { display: flex; gap: 10px; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { font-size: 13px; }
.comment-text { white-space: pre-wrap; margin-top: 2px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 132px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.comment-form { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.comment-box { display: flex; gap: 8px; align-items: flex-end; }
.comment-box textarea { flex: 1; }
.plus {
  width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--accent-soft); color: var(--accent); font-size: 22px; font-weight: 500; line-height: 1;
  border: 1px solid transparent;
}
.plus:hover { border-color: var(--accent); }
.preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.preview img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

/* team */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 8px 8px; border-bottom: 1px solid #f0f1f4; vertical-align: middle; }
.table .n { text-align: center; width: 90px; }
.table tr.sel td { background: var(--accent-soft); }
.table tr.sub td { background: #fafbfd; padding: 6px 16px 12px; }
.table a:hover { color: var(--accent); }
.line { display: flex; align-items: center; gap: 4px; padding: 4px 0; }
.alert-panel { border-color: #f0c7c7; }
.alert-panel h2 { margin-top: 0; color: var(--red); }

/* bot */
.bot-layout { display: grid; grid-template-columns: minmax(360px, 460px) 1fr; gap: 16px; align-items: start; }
.tg { background: #c9d9e8; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.tg-head { background: #fff; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tg-head span { display: block; font-size: 12px; color: var(--muted); }
.tg-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; max-height: 70vh; overflow-y: auto; }
.tg-msg { background: #fff; border-radius: 12px 12px 12px 4px; padding: 8px 11px 6px; max-width: 92%; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.tg-text { white-space: pre-line; }
.tg-time { font-size: 11px; color: #9aa3ad; text-align: right; }
.tg-buttons { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.tg-buttons form { margin: 0; flex: 1; display: flex; }
.tg-btn {
  flex: 1; text-align: center; background: #eef4fa; color: #2481cc; border: 0; border-radius: 8px; padding: 7px 10px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.tg-btn:hover { background: #dfeaf5; }
.bot-info h2:first-child { margin-top: 0; }
.link { display: block; padding: 8px 10px; margin: 8px 0; word-break: break-all; }
.compact { margin: 0; padding-left: 18px; }
.compact li { margin: 3px 0; }
.ok { color: var(--green); }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-wrap > .login-card { max-width: 100%; min-width: 0; }
.login-wrap > .legal-card { width: min(40rem, 100%); }
.legal-card h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 1rem; }
.legal-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.legal-link { display: block; margin: 1rem 0; }
.login-card label.legal-choice { flex-direction: row; align-items: flex-start; gap: .7rem; }
.legal-choice input[type=checkbox] { flex: none; width: 1.1rem; height: 1.1rem; margin: .15rem 0; }
.legal-exit { margin-top: .8rem; }
.login-card { width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: 0 10px 30px rgba(20,25,40,.07); }
.login-card > p { text-align: center; margin: 6px 0 20px; }
.login-card label { display: flex; flex-direction: column; gap: 5px; font-weight: 550; margin-bottom: 12px; }
.demo-hint { margin-top: 18px; font-size: 12.5px; background: #f6f7f9; border-radius: 8px; padding: 10px 12px; }
.demo-hint ul { margin: 6px 0 0; padding-left: 18px; }

/* toolbar */
.toolbar { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.views { display: inline-flex; background: #e6e8ed; border-radius: 9px; padding: 3px; align-self: flex-end; }
.views a { padding: 6px 12px; border-radius: 7px; font-weight: 550; color: var(--muted); white-space: nowrap; }
.views a:hover { color: var(--text); }
.views a.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tb-field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); font-weight: 550; }
.tb-field select { width: auto; min-width: 150px; padding: 6px 8px; font-size: 13.5px; }
.link-reset { color: var(--accent); }
.small { font-size: 12px; }

/* cards */
.card-people { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #3b4252; }
.card-people .lbl { width: 30px; color: var(--muted); font-size: 11px; }
.card-meta:empty { display: none; }
.card .card-meta { margin-top: 6px; }

/* list */
.panel.flush { padding: 0; overflow: hidden; }
.tasks-table td, .tasks-table th { padding: 10px 12px; }
.tasks-table tr:hover td { background: #fafbfd; }
.who-cell { white-space: nowrap; }
.tasks-table .dot { margin-right: 6px; }

/* gantt */
.gantt-wrap { overflow-x: auto; }
.gantt { display: grid; grid-template-columns: 320px minmax(calc(var(--days) * 26px), 1fr); }
.g-head { position: sticky; top: 0; background: #f7f8fa; z-index: 2; border-bottom: 1px solid var(--line); }
.g-label { padding: 0 12px; border-right: 1px solid var(--line); position: sticky; left: 0; background: #fff; z-index: 1; }
.g-head.g-label { background: #f7f8fa; z-index: 3; font-size: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; }
.g-months, .g-days { display: grid; grid-template-columns: repeat(var(--days), 1fr); font-size: 11.5px; color: var(--muted); }
.g-months span { padding: 6px 6px 2px; font-weight: 600; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.g-days span { text-align: center; padding: 3px 0 5px; }
.g-days span.we { color: #b3b8c3; background: #f0f1f4; }
.g-days span.td { background: var(--accent); color: #fff; border-radius: 6px; font-weight: 700; }
.g-group { grid-column: 1 / -1; background: #f3f4f8; padding: 6px 12px; font-weight: 650; font-size: 13px; border-bottom: 1px solid var(--line); position: sticky; left: 0; }
.g-task { display: flex; flex-direction: column; justify-content: center; height: 44px; border-bottom: 1px solid #f0f1f4; min-width: 0; }
.g-task:hover .g-title { color: var(--accent); }
.g-title { font-weight: 550; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }
.g-task .dot { display: none; }
.g-who { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-track { position: relative; height: 44px; border-bottom: 1px solid #f0f1f4;
  background-image: linear-gradient(to right, #f3f4f7 1px, transparent 1px); background-size: calc(100% / var(--days)) 100%; }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); opacity: .5; }
.g-bar { position: absolute; top: 10px; height: 24px; border-radius: 6px; background: var(--c); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; padding: 0 6px; margin-left: 2px; min-width: 22px; overflow: hidden; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(20,25,40,.18); transition: filter .15s, transform .15s; }
.g-bar:hover { filter: brightness(1.08); transform: translateY(-1px); }
.g-bar.overdue { background: repeating-linear-gradient(45deg, var(--red), var(--red) 6px, #e36060 6px, #e36060 12px); }
.g-bar.no-due { opacity: .55; }
.g-bar.cl { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.g-bar.cr { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 12.5px; margin-top: 10px; color: #3b4252; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; }
.overdue-sw { background: var(--red); }
.today-sw { width: 2px; height: 14px; background: var(--accent); display: inline-block; }
.pad { padding: 30px; }

/* files */
.task-files { margin-top: 14px; background: #f7f8fa; border-radius: 10px; padding: 12px 14px; }
.files-title { font-weight: 600; margin-bottom: 8px; font-size: 13px; }
.files { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.file-chip { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 12px; max-width: 460px; }
.file-chip:hover { border-color: var(--accent); }
.ficon { font-size: 20px; }
.fname { display: flex; flex-direction: column; min-width: 0; flex: 1; font-weight: 550; font-size: 13px; }
.fname small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.fdl { color: var(--accent); font-size: 12.5px; font-weight: 600; }
.file-pick { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; font-size: 13px; }
.preview .pfile { display: inline-flex; align-items: center; gap: 6px; background: #f3f4f7; border-radius: 6px; padding: 4px 8px; font-size: 12px; }

/* login quick */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
.demo-btn { display: flex; align-items: center; gap: 6px; text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 8px; cursor: pointer; font: inherit; }
.demo-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.demo-btn small { display: block; color: var(--muted); font-size: 11.5px; }
.demo-hint p { margin: 6px 0 0; }

/* правки после проверки в браузере 29.09 */
.ni { display: inline-block; width: 22px; margin-right: 6px; text-align: center; flex: none; }
.logout-btn { background: none; border: 1px solid #3c4358; color: #cfd4e2; border-radius: 7px; padding: 4px 9px;
  font: inherit; font-size: 12px; cursor: pointer; }
.logout-btn:hover { background: #2b3144; color: #fff; }
.tag.role-tag.role-GKAM { background: #7c3aed; } .tag.role-tag.role-SKAM { background: #0e7490; }
.tag.role-tag.role-KAM { background: #4b5bdc; } .tag.role-tag.role-RM { background: #2f9e6b; }
.alert-panel h2 { display: flex; align-items: center; }

/* ===== версия 2 (26.10.2026): статусы, клиенты, чаты, уведомления, телефон ===== */
:root { --st-clarify: #9b4dca; }
.st-clarify { --c: var(--st-clarify); }
.dot.st-clarify { background: var(--c); }
.board.cols-5 { grid-template-columns: repeat(5, minmax(200px, 1fr)); }
.board.cols-3 { grid-template-columns: repeat(3, minmax(240px, 1fr)); }
.col.can-drop { outline: 2px dashed #b9c0ee; outline-offset: -2px; }
.col.no-drop { opacity: .55; }
.nowrap { white-space: nowrap; }
.inline { display: inline; margin: 0; }
.scroll-x { overflow-x: auto; }
.field-note { font-weight: 400; font-size: 12px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid2 .panel { margin: 0; }
h2.first { margin-top: 0; }

/* клиент на карточке и в задаче */
.card-client { font-size: 11.5px; color: #4a55a8; background: var(--accent-soft); display: inline-block; padding: 1px 7px;
  border-radius: 5px; margin-bottom: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-client.internal, .client-tag.internal { color: #5b6372; background: #eef0f3; }
.client-tag { background: var(--accent-soft); color: #3a46a8; }

/* задача: шаги и действия */
.steps { display: flex; gap: 0; margin: 18px 0 12px; flex-wrap: wrap; }
.step { padding: 5px 12px; font-size: 12.5px; color: var(--muted); background: #f1f2f5; border: 1px solid var(--line);
  margin-right: -1px; font-weight: 550; }
.step:first-child { border-radius: 16px 0 0 16px; }
.step:last-child { border-radius: 0 16px 16px 0; }
.step.on { background: var(--c); border-color: var(--c); color: #fff; }
.action-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.action-row form { margin: 0; }
.act-review { border-color: var(--st-review); color: #8a5e09; }
.act-clarify { border-color: #d9c2ea; color: var(--st-clarify); }
.waiting { font-size: 13px; }
.move-form, .chat-panel { background: #f7f8fb; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 6px 0 14px; }
.move-form label, .chat-panel label { display: flex; flex-direction: column; gap: 4px; font-weight: 550; margin-bottom: 10px; }
.move-form .muted { font-weight: 400; font-size: 12.5px; }
.meet-steps { margin: 0 0 10px; font-size: 13px; line-height: 1.6; }
.meet-steps a { color: var(--accent); font-weight: 600; }
.move-badge { font-size: 11.5px; font-weight: 650; color: var(--c); margin-left: 6px; }
.comment.moved .comment-text { border-left: 3px solid #e3e5ea; padding-left: 8px; }
.meet-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #eef7f2;
  border: 1px solid #cfe9db; border-radius: 9px; padding: 8px 12px; margin-top: 4px; }
.comment-text a, .desc a, .msg-text a { color: var(--accent); text-decoration: underline; word-break: break-all; }

/* диалог при перетаскивании */
.move-dialog { border: 0; border-radius: 14px; padding: 20px 22px; width: min(520px, 94vw); box-shadow: 0 20px 60px rgba(20,25,40,.25); }
.move-dialog::backdrop { background: rgba(20, 25, 40, .35); }
.move-dialog h2 { margin-top: 0; }
.md-hint { font-weight: 400; color: var(--muted); }

/* уведомления */
.feed { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.feed-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.feed-item.unread { border-left: 3px solid var(--accent); background: #fbfbff; }
.feed-text { white-space: pre-line; }
.feed-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.feed-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.push-banner { display: flex; align-items: center; gap: 12px; background: #1f2433; color: #e4e7f0; border-radius: 12px;
  padding: 12px 16px; margin-bottom: 18px; }
.push-banner[hidden] { display: none; }
.pb-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.pb-text b { color: #fff; font-size: 14px; }
.pb-close { background: none; border: 0; color: #9aa2b7; font-size: 22px; cursor: pointer; padding: 0 4px; }
.howto { margin-top: 14px; }
.howto summary { color: var(--accent); font-weight: 600; }
.howto p { font-size: 13px; }

/* команда: только счётчики */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; border-top: 3px solid var(--c, #cfd3dc); }
.kpi b { display: block; font-size: 24px; font-weight: 700; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi.bad { --c: var(--red); } .kpi.bad b { color: var(--red); }
.counters td.n, .counters th.n { width: 96px; }
.counters th a.on { color: var(--text); }
.c-clarify { color: var(--st-clarify); }

/* клиенты */
.contracts-form { grid-template-columns: 2fr 1.4fr auto; }
.table tr.off td { opacity: .5; }
.table select { width: auto; min-width: 200px; padding: 4px 8px; }

/* ===== чаты ===== */
.chat-layout { display: grid; grid-template-columns: 320px 1fr; gap: 14px; height: calc(100vh - 64px); }
.chat-layout .panel { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.cl-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.cl-head h1 { margin: 0; font-size: 19px; }
.new-chat { padding: 0 14px 12px; border-bottom: 1px solid var(--line); }
.new-chat .form label { margin-bottom: 10px; }
.small-seg { margin-bottom: 10px; }
.pick-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; margin-bottom: 10px; }
.pick-group { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 6px 0 2px; }
.pick { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 2px 0; font-weight: 400; cursor: pointer; }
.pick input { width: auto; }
.cl-items { overflow-y: auto; flex: 1; }
.cl-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #f2f3f6; }
.cl-item:hover { background: #f8f9fb; }
.cl-item.on { background: var(--accent-soft); }
.cl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-text .muted { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar.group { background: #5b6372; font-size: 15px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ch-title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-back { display: none; font-size: 20px; padding: 0 6px; }
.chat-main .chat-panel { margin: 10px 14px 0; }
.members { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; font-size: 13px; }
.add-members { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 10px; }
.add-members select { max-width: 320px; }
.messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #f6f7fa; }
.msg { display: flex; gap: 6px; align-items: flex-end; max-width: 78%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg .avatar.sm { margin: 0 0 2px; }
.bubble { background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 7px 11px 5px; min-width: 90px; }
.msg.mine .bubble { background: #e9ecfd; border-color: #d5daf8; border-radius: 14px 14px 4px 14px; }
.msg-author { font-size: 12px; font-weight: 650; color: #4a55a8; margin-bottom: 1px; }
.msg-text { white-space: pre-wrap; word-wrap: break-word; }
.msg-foot { display: flex; justify-content: flex-end; gap: 10px; font-size: 11px; color: #9aa3ad; margin-top: 2px; }
.to-task { color: var(--accent); opacity: 0; font-weight: 600; }
.msg:hover .to-task, .to-task:focus { opacity: 1; }
.msg-system { align-self: center; font-size: 12px; color: var(--muted); background: #eceef3; border-radius: 10px; padding: 3px 10px; }
.msg-files { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.msg-img img { max-width: 260px; max-height: 220px; border-radius: 8px; display: block; }
.composer { border-top: 1px solid var(--line); padding: 10px 14px; background: #fff; border-radius: 0 0 var(--radius) var(--radius); }
.composer .preview { margin: 0 0 6px; }
.composer textarea { resize: none; max-height: 160px; }
.chat-empty { flex: 1; display: grid; place-content: center; text-align: center; color: var(--muted); padding: 30px; }
.chat-empty div { font-size: 40px; }

/* ===== нагрузка ===== */
.load-table th, .load-table td { white-space: nowrap; }
.load-table .who-col { width: 212px; min-width: 212px; max-width: 212px; position: sticky; left: 0; background: #fff; z-index: 1;
  white-space: normal; box-shadow: 1px 0 0 var(--line); }
.load-table .who-cell { display: flex; align-items: center; gap: 8px; }
.load-table .who-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.load-table .who-text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.load-table .who-text small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.load-table .n { width: 56px; padding-left: 4px; padding-right: 4px; }
.load-table th.n { font-size: 11px; white-space: normal; line-height: 1.2; }
.load-table .tot { border-right: 1px solid var(--line); }
.load-table td.b-overdue .num { color: var(--red); font-weight: 700; }
.load-table td.b-today .num { color: var(--amber); font-weight: 700; }
.load-table td.b-tomorrow .num { color: #8a5e09; font-weight: 600; }
.load-table td.b-no_due { color: var(--muted); }
.load-table th.b-no_due { border-right: 1px solid var(--line); }
.load-table td.b-no_due { border-right: 1px solid var(--line); }
.load-table .day { width: 34px; padding: 6px 1px; text-align: center; }
.load-table th.day { font-size: 10.5px; font-weight: 500; line-height: 1.2; }
.load-table th.day b { font-size: 11px; color: var(--text); }
.load-table .day.we { background: #f7f8fa; }
.load-table th.day.td { color: var(--accent); }
.load-table th.day.td b { color: var(--accent); }
.load-table tr.me-row td { background: var(--accent-soft); }
.load-table tr.me-row td.who-col { background: var(--accent-soft); }
.heat { display: inline-block; min-width: 24px; padding: 3px 0; border-radius: 6px; font-weight: 600; font-size: 12px; }
.heat.h1 { background: #e3e7fb; color: #3b47a8; }
.heat.h2 { background: #b9c1f3; color: #27318a; }
.heat.h3 { background: #7d8ae6; color: #fff; }
.heat.h4 { background: #3d49b8; color: #fff; }
.load-kpis .kpi.st-clarify b { color: var(--st-clarify); }
.load-hint { margin: -4px 0 12px; padding: 9px 12px; border-radius: 8px; background: var(--accent-soft); color: #2e3a9e; font-size: 13px; }
.load-hint.busy { background: var(--amber-soft); color: #7a5208; }

/* ===== телефон и узкие экраны ===== */
@media (max-width: 1100px) {
  .board.cols-5 { grid-template-columns: repeat(5, 230px); overflow-x: auto; padding-bottom: 8px; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .task-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; z-index: 20; flex-direction: row;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); gap: 0; }
  .sidebar .brand, .sidebar .new-btn, .sidebar .nav-sep, .sidebar .me-text, .sidebar .logout-btn { display: none; }
  .sidebar nav { flex-direction: row; gap: 0; overflow-x: auto; }
  .sidebar nav a { flex-direction: column; gap: 1px; padding: 4px 8px; font-size: 10.5px; min-width: 62px; position: relative; text-align: center; }
  .sidebar nav a .ni { margin: 0; font-size: 18px; width: auto; }
  .sidebar nav a .nt { white-space: nowrap; }
  .sidebar nav a .count { position: absolute; top: 0; right: 6px; font-size: 10px; padding: 0 5px; }
  .sidebar .me { border: 0; padding: 0 4px; }
  .sidebar .avatar { width: 28px; height: 28px; font-size: 11px; }
  .content { padding: 14px 12px 86px; }
  .page-head { flex-direction: column; gap: 8px; }
  .toolbar { gap: 8px; }
  .tb-field select { min-width: 0; max-width: 46vw; }
  .board.cols-5, .board.cols-3 { grid-template-columns: repeat(var(--n, 5), 82vw); overflow-x: auto; scroll-snap-type: x mandatory; }
  .board.cols-3 { --n: 3; }
  .board .col { scroll-snap-align: start; }
  .grid2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .row-form, .contracts-form { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; height: calc(100vh - 100px); }
  .chat-layout.has-current .chat-list { display: none; }
  .chat-layout:not(.has-current) .chat-main { display: none; }
  .chat-back { display: block; }
  .msg { max-width: 92%; }
  .to-task { opacity: 1; }
  .push-banner { flex-wrap: wrap; }
  .move-form .row3, .chat-panel .row3 { grid-template-columns: 1fr; }
}
.card-top { flex-wrap: wrap; row-gap: 3px; }
.card-top .due { margin-left: auto; }
@media (max-width: 760px) {
  .sidebar nav { scrollbar-width: none; }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .sidebar nav a { flex: 1 1 0; min-width: 0; padding: 4px 0; }
  .sidebar nav a .nt { font-size: 0; }
  .sidebar nav a .nt { display: block; max-width: 100%; overflow: hidden; }
  .sidebar nav a .nt::after { content: attr(data-short); font-size: 9.5px; letter-spacing: -.2px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar nav .admin-link { display: none; }
}

/* ===== задача на нескольких, группы, поиск, упоминания (02.11.2026) ===== */
.m-only { display: none; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.side-search { margin: 0 0 10px; }
.side-search input { background: #2b3144; border-color: #3a4157; color: #fff; padding: 7px 10px; font-size: 13px; }
.side-search input::placeholder { color: #9aa1b5; }
.side-search input:focus { border-color: var(--accent); box-shadow: none; }
/* кому: выбор нескольких */
.assignees { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; margin: 0 0 14px; min-width: 0; }
.assignees legend { font-weight: 600; padding: 0 4px; font-size: 13px; }
.as-groups { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 16px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--text); }
.chip-btn:hover { border-color: var(--accent); }
.chip-btn.on { background: var(--accent-soft); border-color: var(--accent); color: #2e3a9e; }
.ghost-chip { border-style: dashed; color: var(--muted); }
.as-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.as-tools input { flex: 1; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--accent); cursor: pointer; white-space: nowrap; }
.danger-link { color: var(--red); }
.as-list { max-height: 280px; margin-bottom: 0; }
.as-list .pick { padding: 3px 4px; border-radius: 6px; gap: 7px; }
.as-list .pick.on { background: var(--accent-soft); }
.as-list .pick .avatar.sm { margin: 0; }
.as-list .pick .muted { font-size: 12px; }
.form .pick, .chat-panel .pick { flex-direction: row; align-items: center; gap: 7px; margin-bottom: 0; font-weight: 400; }
.form .pick input[type=checkbox], .chat-panel .pick input[type=checkbox] { width: auto; margin: 0; flex: none; }
.multi-box label:not(.pick) { margin-bottom: 8px; }
.multi-box { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.multi-box > p { margin: 0 0 10px; }
.check-line { margin-top: 4px; }
/* отметка на карточке и в задаче */
.tag-batch { background: var(--accent-soft); color: #2e3a9e; }
.batch-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: var(--accent-soft); color: #2e3a9e; border-radius: 9px; padding: 9px 12px; margin: -4px 0 14px; font-size: 13.5px; }
.batch-note.in-chat { margin: 10px 14px 0; }
/* полоса задач на нескольких над доской */
.batch-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -6px 0 14px; }
.batch-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 6px 10px; font-size: 13px; max-width: 360px; }
.batch-chip:hover { border-color: var(--accent); }
.bc-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bc-bar { width: 54px; height: 6px; border-radius: 3px; background: #e6e8ee; flex: none; overflow: hidden; }
.bc-bar i { display: block; height: 100%; background: var(--green); }
.bc-num { font-weight: 650; font-size: 12px; color: #3b4252; flex: none; }
/* сводка «кто ответил» */
.batch-top { display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.bt-progress { flex: 1 1 320px; }
.bt-num { font-size: 14px; margin-bottom: 6px; }
.bt-num b { font-size: 22px; }
.bar { height: 8px; border-radius: 4px; background: #e6e8ee; overflow: hidden; }
.bar { display: flex; }
.bar i { display: block; height: 100%; background: var(--green); }
.bar i.ans { background: var(--amber); }
.batch-table td.who-col { min-width: 210px; }
.bt-legend { margin-top: 8px; }
.waiting-sw { background: #d5d9e1; }
.bt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-actions form { margin: 0; }
.batch-table td { vertical-align: top; }
.batch-table .who-cell { display: flex; align-items: center; gap: 8px; white-space: normal; }
.batch-table .who-text { display: flex; flex-direction: column; line-height: 1.2; }
.batch-table .who-text small { font-size: 11px; color: var(--muted); }
.batch-table .answer { min-width: 260px; max-width: 460px; white-space: pre-wrap; font-size: 13px; }
.batch-table tr td:first-child { box-shadow: inset 4px 0 0 var(--bs, #d5d9e1); }
.bstate { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: #eef0f3; color: #4b5260; }
.bs-done { --bs: var(--green); } .bs-done .bstate { background: var(--green-soft); color: #1f7a50; }
.bs-answered { --bs: var(--amber); } .bs-answered .bstate { background: var(--amber-soft); color: #7a5208; }
.bs-question { --bs: var(--st-clarify); } .bs-question .bstate { background: #f3eafa; color: #7a3aa6; }
.bs-overdue { --bs: var(--red); } .bs-overdue .bstate { background: var(--red-soft); color: var(--red); }
.bs-waiting td, .bs-overdue td { background: #fbfbfc; }
.file-chip.mini { display: inline-flex; padding: 3px 8px; font-size: 12px; margin: 0 4px 4px 0; gap: 4px; border-radius: 7px; }
.batch-edit { margin-top: 0; }
.batch-edit .del-form { margin-top: 10px; }
/* группы */
.groups-layout { display: grid; grid-template-columns: 1fr 380px; gap: 16px; align-items: start; }
.group-card .gc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.group-card .gc-head .muted { flex: 1; font-size: 13px; }
.group-card .chat-panel { margin: 6px 0 10px; }
.gc-del { margin: 0; }
.group-new h2 { margin-top: 0; font-size: 17px; }
.pick-list.tall { max-height: 380px; }
/* поиск */
.search-page { display: flex; gap: 8px; margin-bottom: 14px; max-width: 760px; }
.search-page input { flex: 1; font-size: 15px; }
.search-page select { width: auto; }
.search-results { display: flex; flex-direction: column; gap: 8px; max-width: 900px; }
.sr-item { display: block; padding: 12px 16px; margin: 0; }
.sr-item:hover { border-color: var(--accent); }
.sr-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; margin-bottom: 3px; }
.sr-top .due { margin-left: auto; }
.sr-title { font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.sr-text { font-size: 13px; color: #3b4252; margin-bottom: 3px; }
mark { background: #fff1b8; color: inherit; border-radius: 3px; padding: 0 1px; }
/* упоминания в чате */
.mention { color: #2e3a9e; font-weight: 600; background: var(--accent-soft); border-radius: 4px; padding: 0 2px; }
.mention.mention-me { background: #fff1b8; color: #6b4a00; }
.msg.mentioned .bubble { box-shadow: inset 3px 0 0 #e7b923; }
.mention-count { background: #e7b923; color: #3a2a00; font-weight: 700; margin-left: 6px; }
.cl-item .mention-count + .count { margin-left: 4px; }
.chat-main { position: relative; }
.mention-pop { position: absolute; left: 14px; bottom: 66px; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20,25,40,.14); padding: 4px; min-width: 240px; max-width: calc(100% - 28px); max-height: 280px; overflow-y: auto; }
.mp-item { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 6px 8px; border-radius: 7px;
  font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; color: var(--text); }
.mp-item .avatar.sm { background: #8a93a6; margin: 0; }
.mp-item.on, .mp-item:hover { background: var(--accent-soft); }
@media (max-width: 1100px) {
  .groups-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .m-only { display: inline-flex; }
  .head-actions { align-self: stretch; }
  .head-actions .btn-primary { flex: 1; }
  .side-search { display: none; }
  .batch-chip { max-width: 100%; }
  .search-page { flex-wrap: wrap; }
  .search-page select { flex: 1; }
}

/* одна карточка на задачу для нескольких (02.11.2026) */
.batch-card { border-left: 3px solid var(--accent); cursor: pointer; }
.bc-progress { display: flex; align-items: center; gap: 6px; font-size: 12px; margin: 6px 0 4px; }
.bc-progress .bar { flex: 1; height: 6px; }
.batch-people { font-size: 12px; color: #3b4252; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.batch-desc { padding: 12px 16px; }
.batch-desc .desc { white-space: pre-wrap; margin-top: 3px; }

[hidden] { display: none !important; }

/* ---------- голосовой ввод ---------- */
.mic {
  width: 38px; height: 38px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer;
  background: var(--accent-soft); color: var(--accent); border: 1px solid transparent; padding: 0; font: inherit;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.mic:hover { border-color: var(--accent); }
.mic:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mic .mic-ico { font-size: 17px; line-height: 1; filter: grayscale(1) contrast(1.4); }
.mic.rec { background: var(--red); border-color: var(--red); animation: mic-pulse 1.4s ease-out infinite; }
.mic.rec .mic-ico { filter: grayscale(1) brightness(5); }
.mic.busy { opacity: .7; cursor: progress; }
.mic.busy .mic-ico { animation: mic-spin 1s linear infinite; display: inline-block; }
@keyframes mic-pulse { 0% { box-shadow: 0 0 0 0 rgba(214,69,69,.45); } 100% { box-shadow: 0 0 0 10px rgba(214,69,69,0); } }
@keyframes mic-spin { to { transform: rotate(360deg); } }
.voice-field { position: relative; display: block; }
.voice-field > textarea, .voice-field > input { width: 100%; padding-right: 48px; box-sizing: border-box; }
.voice-field > .mic { position: absolute; right: 6px; bottom: 8px; width: 34px; height: 34px; }
.voice-task { display: flex; align-items: center; gap: 12px; flex-wrap: wrap-reverse; justify-content: space-between; }
.mic.mic-wide { width: auto; height: 38px; border-radius: 19px; padding: 0 16px 0 12px; display: inline-flex; gap: 8px;
  font-size: 14px; font-weight: 500; }
.mic.mic-wide.rec { color: #fff; }
.voice-status { font-size: 13px; color: var(--muted); margin: 6px 2px 0; }
.voice-status.rec { color: var(--red); font-weight: 500; }
.voice-status.err { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .mic.rec, .mic.busy .mic-ico { animation: none; } }
@media (max-width: 760px) {
  /* Комментарий в задаче: поле — на всю ширину, кнопки строкой ниже */
  .comment-form .comment-box { flex-wrap: wrap; }
  .comment-form .comment-box textarea { flex: 1 0 100%; order: -1; min-height: 64px; }
  .comment-form .comment-box .btn-primary { margin-left: auto; }
}
