/* Админка в стиле YouGile: тёмная оболочка, светлые колонки и карточки. */
:root {
  --side: #1c1c1e;
  --side-hover: #2a2a2d;
  --side-active: #3a3a3d;
  --side-text: #ececef;
  --side-muted: #8e8e93;
  --bg: #0f0f11;
  --top-text: #f4f4f6;
  --line: #2e2e33;
  --chip: #2a2a2e;
  --col: #eff0f2;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #6b7280;
  --blue: #2f6fed;
  --red: #ef4444;
  --green: #16a34a;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--top-text); overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; stroke: none; }

#app { display: flex; height: 100%; }

/* ── Боковая панель ─────────────────────────────────────── */
.side { width: 276px; flex: none; background: var(--side); display: flex; flex-direction: column; padding: 14px 10px 12px; gap: 2px; border-right: 1px solid #000; }
.side-row { display: flex; align-items: center; gap: 4px; }
.side-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 8px; color: var(--side-text); font-size: 16px; text-align: left; }
.side-item:hover { background: var(--side-hover); }
.side-item.active { background: var(--side-active); }
.side-item .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item svg { color: var(--side-muted); }
.side-plus { color: var(--side-muted); padding: 6px; border-radius: 6px; }
.side-plus:hover { background: var(--side-hover); color: #fff; }
.projects { overflow-y: auto; flex: 1; min-height: 60px; padding-left: 8px; margin: 2px 0 8px; }
.proj { display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 22px; border-radius: 8px; color: #dcdce0; font-size: 15px; position: relative; }
.proj:hover { background: var(--side-hover); }
.proj.active { background: var(--side-active); color: #fff; }
.proj .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj .more { opacity: 0; color: var(--side-muted); padding: 2px; border-radius: 4px; }
.proj:hover .more { opacity: 1; }
.proj .cnt { font-style: normal; font-size: 12px; color: var(--side-muted); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.company-label { color: var(--side-muted); font-size: 14px; padding: 14px 10px 6px; }
.company-box { margin: 0 4px; padding: 10px 12px; border-radius: 10px; background: var(--side-hover); font-weight: 600; color: #fff; }
.side.collapsed { display: none; }
.side.collapsed ~ .main .burger { display: inline-flex; }

/* ── Аватары ────────────────────────────────────────────── */
.ava { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #fff; flex: none; letter-spacing: -0.2px; }
.ava.sm { width: 22px; height: 22px; font-size: 10px; }
.ava.lg { width: 34px; height: 34px; font-size: 13px; }
.members { display: flex; }
.members .ava { margin-left: -6px; border: 2px solid var(--bg); width: 30px; height: 30px; }
.members .ava:first-child { margin-left: 0; }
.members .more-ava { background: #3a3a3d; }

/* ── Верхняя панель ─────────────────────────────────────── */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; min-height: 60px; }
.top h1 { font-size: 18px; margin: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: #c7c7cc; position: relative; flex: none; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.icon-btn.on { color: #fbbf24; }
.icon-btn .badge { position: absolute; top: -4px; right: -6px; height: 18px; min-width: 18px; font-size: 11px; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; color: #e5e5ea; padding: 6px 8px; border-radius: 8px; white-space: nowrap; }
.link-btn:hover { background: rgba(255, 255, 255, 0.08); }
.search { position: relative; margin-left: auto; }
.search input { width: 280px; height: 38px; border-radius: 10px; border: 1px solid #3a3a3f; background: #18181b; color: #fff; padding: 0 12px 0 38px; outline: none; }
.search input:focus { border-color: var(--blue); }
.search > svg { position: absolute; left: 12px; top: 10px; color: #8e8e93; }
.search-results { position: absolute; right: 0; top: 44px; width: 420px; max-height: 60vh; overflow-y: auto; background: #fff; color: var(--text); border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); z-index: 30; }
.search-results button { display: block; width: 100%; text-align: left; padding: 10px 14px; border-bottom: 1px solid #eee; }
.search-results button:hover { background: #f3f4f6; }
.search-results .empty { padding: 14px; color: var(--muted); }
.burger { display: none; }

/* ── Вкладки и панель инструментов ──────────────────────── */
.tabs { display: flex; align-items: center; gap: 8px; padding: 0 18px 10px; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 14px; border-radius: 10px; background: #3a3a3d; color: #fff; font-weight: 600; }
.tab .badge { height: 20px; }
.tab .icon-btn { width: 26px; height: 26px; }
.toolbar { display: flex; align-items: center; gap: 12px; padding: 0 18px 14px; flex-wrap: wrap; }
.seg, .filters, .tools { display: flex; align-items: center; gap: 2px; background: #e9eaee; border-radius: 12px; padding: 3px; color: #3c3c43; }
.seg button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 9px; color: #6b6b72; font-weight: 500; }
.seg button.active { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.filters .icon-btn, .tools .icon-btn { color: #6b6b72; width: 32px; height: 32px; }
.filters .icon-btn:hover, .tools .icon-btn:hover { background: #fff; color: var(--text); }
.filter { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 9px; color: #55555c; white-space: nowrap; }
.filter:hover { background: #fff; }
.filter.active { background: var(--blue); color: #fff; }
.filter svg { width: 15px; height: 15px; }

/* ── Доска ──────────────────────────────────────────────── */
.board { flex: 1; min-height: 0; display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; padding: 0 18px 18px; }
.col { width: 312px; flex: none; max-height: 100%; display: flex; flex-direction: column; background: var(--col); border-radius: var(--radius); color: var(--text); position: relative; overflow: hidden; }
.col::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 55%, #fff)); }
.col-head { display: flex; align-items: center; gap: 6px; padding: 18px 10px 2px 16px; }
.col-title { flex: 1; font-size: 18px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-title small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.col .icon-btn { color: #8a8a92; }
.col .icon-btn:hover { background: rgba(0, 0, 0, 0.06); color: var(--text); }
.add-task { color: var(--blue); padding: 4px 16px 10px; text-align: left; font-size: 15px; }
.add-task:hover { text-decoration: underline; }
.col-body { flex: 1; min-height: 50px; overflow-y: auto; padding: 2px 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.new-card textarea { width: 100%; min-height: 80px; border: 2px solid var(--blue); border-radius: 10px; padding: 10px; resize: vertical; outline: none; color: var(--text); background: #fff; }
.new-card .row { display: flex; gap: 8px; margin-top: 6px; }
.card { background: var(--card); border-radius: 10px; padding: 11px 10px 11px 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); display: grid; grid-template-columns: 24px 1fr 24px; gap: 4px 8px; cursor: pointer; border: 1px solid transparent; }
.card:hover { border-color: #c9d6f5; }
.card.dragging { opacity: 0.4; }
.card .check { color: #a1a1aa; width: 22px; height: 22px; display: inline-flex; margin-top: -1px; }
.card .check:hover { color: var(--green); }
.card .check svg { width: 22px; height: 22px; }
.card-text { font-size: 15px; line-height: 1.38; overflow-wrap: anywhere; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 10; -webkit-box-orient: vertical; overflow: hidden; }
.card-text .num { font-weight: 600; }
.card-text .emp { color: var(--muted); }
.card .icon-btn { width: 24px; height: 24px; color: #a1a1aa; }
.card-foot { grid-column: 2 / 4; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; min-height: 0; }
.card-foot:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 7px; border-radius: 6px; background: #f1f2f4; color: #4b5563; white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }
.chip.late { background: #fee2e2; color: #b91c1c; }
.chip.unread { background: var(--red); color: #fff; }
.chip.p3 { color: #dc2626; }
.chip.p2 { color: #d97706; }
.chip.p1 { color: #2563eb; }
.card-ph { border: 2px dashed #a5b4fc; border-radius: 10px; background: rgba(99, 102, 241, 0.06); flex: none; }
.archive-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; color: #8a8a92; padding: 10px; font-size: 14px; border-top: 1px solid #e3e4e8; }
.archive-toggle:hover { color: var(--text); }
.archive-list { max-height: 40%; overflow-y: auto; padding: 0 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.archive-list .card { opacity: 0.75; }
.archive-list .card .check { color: var(--green); }
.add-col { width: 280px; flex: none; border: 2px dashed #3a3a3f; border-radius: var(--radius); color: #a1a1aa; padding: 16px; text-align: center; }
.add-col:hover { color: #fff; border-color: #5a5a60; }
.empty-board { padding: 40px; color: #a1a1aa; text-align: center; width: 100%; }

/* ── Гант и календарь ───────────────────────────────────── */
.view-wrap { flex: 1; min-height: 0; overflow: auto; margin: 0 18px 18px; background: #fff; color: var(--text); border-radius: var(--radius); }
.gantt { position: relative; min-width: max-content; }
.g-row { display: flex; border-bottom: 1px solid #eef0f3; height: 40px; }
.g-head { position: sticky; top: 0; z-index: 3; background: #fff; height: 48px; }
.g-name { position: sticky; left: 0; z-index: 2; width: 300px; flex: none; background: #fff; border-right: 1px solid #e5e7eb; padding: 0 12px; display: flex; align-items: center; gap: 8px; font-size: 14px; overflow: hidden; white-space: nowrap; cursor: pointer; }
.g-name span { overflow: hidden; text-overflow: ellipsis; }
.g-track { position: relative; flex: none; }
.g-day { position: absolute; top: 0; bottom: 0; border-left: 1px solid #f1f2f4; font-size: 11px; color: #6b7280; text-align: center; padding-top: 6px; }
.g-day.weekend { background: #fafafa; }
.g-day b { display: block; font-size: 13px; color: var(--text); }
.g-bar { position: absolute; top: 8px; height: 24px; border-radius: 6px; color: #fff; font-size: 12px; padding: 0 8px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.g-bar.late { box-shadow: inset 0 0 0 2px #dc2626; }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); z-index: 1; }
.cal-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #eef0f3; position: sticky; top: 0; background: #fff; z-index: 2; }
.cal-head h2 { margin: 0; font-size: 18px; min-width: 180px; text-align: center; }
.cal-head .icon-btn { color: #4b5563; }
.cal-head .icon-btn:hover { background: #f3f4f6; color: var(--text); }
.cal-head .muted { margin-left: auto; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); }
.cal-dow { padding: 8px 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid #eef0f3; }
.cal-day { min-height: 118px; border-right: 1px solid #f1f2f4; border-bottom: 1px solid #f1f2f4; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.cal-day.other { background: #fafafa; color: #a1a1aa; }
.cal-day .d { font-size: 13px; font-weight: 600; }
.cal-day.today .d { color: #fff; background: var(--blue); border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.cal-chip { font-size: 12px; padding: 3px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 18%, #fff); border-left: 3px solid var(--c); text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text); }

/* ── Страницы: мои задачи, мессенджер, сотрудники, лента, отчёты ── */
.page { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 18px 28px; }
.panel { background: #fff; color: var(--text); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.panel h2 { margin: 0 0 12px; font-size: 18px; }
.panel h3 { margin: 18px 0 8px; font-size: 15px; }
.muted { color: var(--muted); font-size: 14px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.grid-cards .card { border-color: #e5e7eb; }
.card .where { grid-column: 2 / 4; font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
table.t td { padding: 9px 10px; border-bottom: 1px solid #f1f2f4; vertical-align: middle; }
table.t tr.pending td { background: #fffbeb; }
table.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.status { font-size: 12px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.status.pending { background: #fef3c7; color: #92400e; }
.status.active { background: #dcfce7; color: #166534; }
.status.blocked { background: #f3f4f6; color: #6b7280; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 9px; background: #f1f2f4; color: var(--text); font-weight: 500; white-space: nowrap; }
.btn:hover { background: #e5e7eb; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #255ed1; }
.btn.danger { color: #dc2626; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: 0.45; cursor: default; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.form-row input[type="text"], .form-row input[type="password"], .form-row select { height: 36px; border: 1px solid #d1d5db; border-radius: 9px; padding: 0 10px; color: var(--text); background: #fff; }
.chat-row { display: flex; gap: 12px; padding: 12px 6px; border-bottom: 1px solid #f1f2f4; cursor: pointer; align-items: center; }
.chat-row:hover { background: #f9fafb; }
.chat-row .grow { flex: 1; min-width: 0; }
.chat-row .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row .last { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-day { font-weight: 700; margin: 18px 0 6px; color: var(--text); }
.feed-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f2f4; align-items: flex-start; font-size: 14px; }
.feed-item time { color: var(--muted); width: 44px; flex: none; }
.feed-item .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.feed-item a { color: var(--blue); cursor: pointer; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; color: var(--text); border-radius: var(--radius); padding: 16px; }
.kpi b { display: block; font-size: 28px; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 14px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; font-size: 11px; color: var(--muted); }
.bars i { display: block; width: 100%; background: var(--blue); border-radius: 4px 4px 0 0; min-height: 2px; }

/* ── Модальные окна, поповеры, тосты ────────────────────── */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; z-index: 50; overflow-y: auto; }
.modal { background: #fff; color: var(--text); border-radius: 16px; width: 100%; max-width: 1080px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); }
.modal.small { max-width: 480px; padding: 22px; }
.modal.small h2 { margin: 0 0 14px; font-size: 20px; }
.modal.req { display: grid; grid-template-columns: 1fr 400px; min-height: 76vh; }
.req-main { padding: 20px 24px; border-right: 1px solid #eef0f3; min-width: 0; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.req-head { display: flex; align-items: center; gap: 10px; }
.req-head h2 { margin: 0; flex: 1; font-size: 22px; }
.req-head .check { color: #a1a1aa; display: inline-flex; }
.req-head .check svg { width: 28px; height: 28px; }
.req-head .check.done { color: var(--green); }
.req-head .icon-btn { color: #6b7280; }
.req-head .icon-btn:hover { background: #f3f4f6; color: var(--text); }
.req-text { width: 100%; min-height: 150px; margin: 14px 0; padding: 12px; border: 1px solid #e5e7eb; border-radius: 10px; resize: vertical; color: var(--text); background: #fff; line-height: 1.45; outline: none; }
.req-text:focus { border-color: var(--blue); }
.fields { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; align-items: center; font-size: 14px; }
.fields label { color: var(--muted); }
.fields select, .fields input { height: 36px; border: 1px solid #e5e7eb; border-radius: 9px; padding: 0 10px; background: #fff; color: var(--text); max-width: 360px; width: 100%; }
.req-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 14px; line-height: 1.45; }
.req-chat { display: flex; flex-direction: column; min-height: 0; max-height: 92vh; }
.chat-title { padding: 16px 18px 10px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.chat-list { flex: 1; overflow-y: auto; padding: 4px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.msg { display: flex; gap: 8px; align-items: flex-start; }
.msg .bubble { background: #f1f2f4; border-radius: 12px; padding: 8px 11px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.msg.emp .bubble { background: #dcfce7; }
.msg .who { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.msg time { font-size: 11px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.sys { text-align: center; font-size: 12px; color: var(--muted); }
.chat-form { border-top: 1px solid #eef0f3; padding: 12px 16px 16px; }
.chat-form textarea { width: 100%; min-height: 70px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px; resize: vertical; color: var(--text); background: #fff; outline: none; }
.chat-form textarea:focus { border-color: var(--blue); }
.chat-form .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 13px; color: #4b5563; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; background: #fff; color: var(--text); z-index: 45; box-shadow: -12px 0 40px rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; }
.pop { position: fixed; z-index: 60; background: #fff; color: var(--text); border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); padding: 6px; min-width: 220px; max-height: 70vh; overflow-y: auto; }
.pop button, .pop label { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: left; font-size: 14px; cursor: pointer; }
.pop button:hover, .pop label:hover { background: #f3f4f6; }
.pop .sep { height: 1px; background: #eef0f3; margin: 4px 0; }
.pop .ttl { font-size: 12px; color: var(--muted); padding: 6px 10px 2px; }
.pop .danger { color: #dc2626; }
.pop .colors { display: flex; gap: 6px; padding: 6px 10px; flex-wrap: wrap; }
.pop .colors button { width: 22px; height: 22px; padding: 0; border-radius: 50%; }
.pop .colors .swatch { padding: 0; width: auto; }
.swatch input:checked + .ava { outline: 2px solid #111; outline-offset: 2px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.stack input:not([type="checkbox"]):not([type="radio"]), .stack select { height: 38px; border: 1px solid #d1d5db; border-radius: 9px; padding: 0 10px; color: var(--text); background: #fff; font-size: 15px; }
.stack .lbl { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.stack .colors { display: flex; gap: 8px; flex-wrap: wrap; }
.stack .swatch { display: inline-flex; cursor: pointer; }
.hint-sm { font-size: 12px; color: var(--muted); }
.checks { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow-y: auto; border: 1px solid #e5e7eb; border-radius: 10px; padding: 6px; margin-bottom: 6px; }
.checks label { flex-direction: row; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--text); cursor: pointer; font-size: 15px; }
.checks label:hover { background: #f3f4f6; }
.steps { line-height: 1.55; padding-left: 20px; margin: 0 0 12px; }
.steps a { color: var(--blue); }
button.members { padding: 2px; border-radius: 999px; align-items: center; }
button.members:hover { background: rgba(255, 255, 255, 0.08); }
button.members .muted { color: #a1a1aa; padding: 0 8px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #1f2937; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 80; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); max-width: 90vw; }
.toast.err { background: #b91c1c; }

/* ── Вход ───────────────────────────────────────────────── */
.login { margin: auto; width: 360px; max-width: calc(100% - 32px); background: #fff; color: var(--text); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.login h1 { margin: 0 0 6px; font-size: 22px; }
.login input { height: 42px; border: 1px solid #d1d5db; border-radius: 10px; padding: 0 12px; color: var(--text); background: #fff; }
.login .btn { height: 42px; }
.login .err { color: #dc2626; font-size: 14px; min-height: 18px; }

@media (max-width: 900px) {
  .side { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5); }
  .burger { display: inline-flex; }
  .top { flex-wrap: wrap; gap: 8px; }
  .top h1 { flex: 1; min-width: 0; font-size: 16px; }
  .search { order: 10; width: 100%; margin: 0; }
  .search input { width: 100%; }
  .search-results { width: 100%; }
  .filters { max-width: 100%; overflow-x: auto; }
  .members, .top .link-btn span { display: none; }
  .modal.req { grid-template-columns: 1fr; }
  .req-main { border-right: 0; }
  .fields { grid-template-columns: 110px 1fr; }
}
