/* ---------- каркас ---------- */
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); height: 100%; }
.side { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 12px 16px; gap: 20px; min-height: 0; }
.logo { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.logo img { width: 36px; height: 36px; border-radius: 4px; }
.logo b { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border: 0; background: none; border-radius: var(--radius-sm); font-weight: 500; text-align: left; color: var(--ink); white-space: nowrap; }
.nav-item:hover { background: var(--surface-2); }
.nav-item.on { background: var(--accent-soft); color: var(--accent-ink); }
.nav-item .count { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.nav-item .soon { margin-left: auto; font-size: 11px; color: var(--ink-3); font-weight: 500; }
.nav-sep { height: 1px; background: var(--line); margin: 8px 12px; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.me-name { font-weight: 600; }
.me-role { color: var(--ink-3); font-size: 12px; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mirror { display: flex; align-items: center; gap: 10px; padding: 9px 24px; background: var(--cream); border-bottom: 1px solid var(--cream-line); font-size: 13px; color: var(--ink); }
.mirror .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; box-shadow: 0 0 0 4px rgba(255, 183, 15, 0.25); }
.mirror b { font-weight: 600; }
.mirror .sync { margin-left: auto; color: var(--ink-2); white-space: nowrap; }
.top { display: flex; align-items: center; gap: 16px; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.search { flex: 1; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); max-width: 640px; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { flex: 1; border: 0; outline: 0; background: none; min-width: 0; }
.search input::placeholder { color: var(--ink-3); }
.search .icon { color: var(--ink-3); }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; margin-left: auto; flex: none; }
.seg button { border: 0; background: none; height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 500; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 21, 26, 0.12); }
.content { flex: 1; min-height: 0; overflow: auto; padding: 28px 24px 40px; }
.content.flush { padding: 0; overflow: hidden; }
