:root {
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* тема «Сапфир» по умолчанию; остальные темы ниже переопределяют эти переменные */
  --accent: #4566ff;
  --accent-2: #8a5cff;
  --accent-rgb: 69, 102, 255;
  --accent2-rgb: 138, 92, 255;
  --accent-soft: #eceffe;
  --accent-ink: #3448b8;
  --accent-grad: linear-gradient(135deg, #3a7bff 0%, #8a5cff 100%);
  --head-grad: linear-gradient(135deg, #2d3fae 0%, #5a4be0 55%, #8a5cff 100%);

  --ink: #131c3a;
  --ink-2: #5d6a92;
  --ink-3: #9aa5c6;
  --line: #e6e9f3;
  --line-soft: #f0f2f8;

  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --shell-bg: linear-gradient(160deg, #f7f8fe 0%, #eef1fd 55%, #ece9fd 100%);

  --side: #0b1431;
  --side-ink: #c6cee6;
  --side-ink-2: #7d89ad;
  --side-active: linear-gradient(150deg, rgba(110, 128, 190, .42) 0%, rgba(43, 57, 98, .05) 95%);
  --side-glow: radial-gradient(160px 520px at 110% 55%, rgba(var(--accent-rgb), .28), transparent 70%),
               radial-gradient(120px 120px at 30% 8%, rgba(var(--accent2-rgb), .18), transparent 70%);

  --ok: #12a877;     --ok-soft: #e3f7ef;
  --warn: #e08a00;   --warn-soft: #fff3df;
  --bad: #e5484d;    --bad-soft: #ffeded;

  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px;
  --shadow-1: 0 1px 2px rgba(19, 28, 58, .04), 0 2px 8px rgba(19, 28, 58, .04);
  --shadow-2: 0 10px 30px rgba(19, 28, 58, .08);
  --ease: cubic-bezier(.32, .72, 0, 1);
}

:root[data-theme="amethyst"] {
  --accent: #8a4dff; --accent-2: #d05cff; --accent-rgb: 138, 77, 255; --accent2-rgb: 208, 92, 255;
  --accent-soft: #f2ebff; --accent-ink: #6a2fd6;
  --accent-grad: linear-gradient(135deg, #7a4dff 0%, #d05cff 100%);
  --head-grad: linear-gradient(135deg, #4b23a8 0%, #8a3ee0 55%, #d05cff 100%);
  --side: #170d34; --shell-bg: linear-gradient(160deg, #faf7ff 0%, #f3edfe 55%, #f6ebfd 100%);
}
:root[data-theme="emerald"] {
  --accent: #0f9f7a; --accent-2: #2ec4a6; --accent-rgb: 15, 159, 122; --accent2-rgb: 46, 196, 166;
  --accent-soft: #e3f6ef; --accent-ink: #0b7559;
  --accent-grad: linear-gradient(135deg, #10a37f 0%, #3fd3b0 100%);
  --head-grad: linear-gradient(135deg, #0b5e4b 0%, #0f9f7a 55%, #3fd3b0 100%);
  --side: #062420; --shell-bg: linear-gradient(160deg, #f6fcfa 0%, #ebf7f2 55%, #e9f6f3 100%);
}
:root[data-theme="ocean"] {
  --accent: #0a84d6; --accent-2: #22c1ee; --accent-rgb: 10, 132, 214; --accent2-rgb: 34, 193, 238;
  --accent-soft: #e4f3fc; --accent-ink: #075f9c;
  --accent-grad: linear-gradient(135deg, #1474e6 0%, #22c1ee 100%);
  --head-grad: linear-gradient(135deg, #0b3f86 0%, #1474e6 55%, #22c1ee 100%);
  --side: #061a30; --shell-bg: linear-gradient(160deg, #f5faff 0%, #eaf4fd 55%, #e7f6fb 100%);
}
:root[data-theme="coral"] {
  --accent: #ec4f5a; --accent-2: #ff8f5c; --accent-rgb: 236, 79, 90; --accent2-rgb: 255, 143, 92;
  --accent-soft: #ffeded; --accent-ink: #b8323c;
  --accent-grad: linear-gradient(135deg, #ec4f5a 0%, #ff9a5c 100%);
  --head-grad: linear-gradient(135deg, #8e2440 0%, #ec4f5a 55%, #ff9a5c 100%);
  --side: #25101a; --shell-bg: linear-gradient(160deg, #fffaf8 0%, #fdf0ee 55%, #fdf1ea 100%);
}
:root[data-theme="graphite"] {
  --accent: #2f3d5c; --accent-2: #64748b; --accent-rgb: 47, 61, 92; --accent2-rgb: 100, 116, 139;
  --accent-soft: #eceff4; --accent-ink: #2f3d5c;
  --accent-grad: linear-gradient(135deg, #1f2a44 0%, #5b6b88 100%);
  --head-grad: linear-gradient(135deg, #141a2b 0%, #2f3d5c 55%, #5b6b88 100%);
  --side: #101319; --shell-bg: linear-gradient(160deg, #f8f9fb 0%, #f0f2f6 55%, #eeeff4 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); color: var(--ink); background: var(--side);
  -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.45;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- каркас ---------- */
.layout { display: grid; grid-template-columns: 232px 1fr; height: 100dvh; }
.side {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 12px 16px;
  background: var(--side-glow), var(--side); color: var(--side-ink); overflow: hidden;
}
.brand { display: flex; flex-direction: column; gap: 4px; padding: 2px 12px 24px; color: #fff; }
.wordmark { font-weight: 600; font-size: 27px; line-height: 1.1; letter-spacing: -.035em; white-space: pre; }
/* кольца вместо «o»: размер и посадка как у настоящей «o» Manrope (от -0,02em до 0,56em над строкой) */
.wm-o { display: inline-block; width: .61em; height: .61em; vertical-align: -.035em; margin: 0 -.01em 0 .005em; fill: none; stroke: #3fd3b0; stroke-width: 3.4; }
.wm-o .r1 { stroke-width: 4.8; }
.wm-o .c { fill: #3fd3b0; stroke: none; }
.brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--side-ink-2); letter-spacing: .01em; padding-left: 1px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  font-weight: 600; font-size: 14px; color: var(--side-ink); transition: background .2s var(--ease), color .2s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.nav a.on { color: #fff; background: var(--side-active); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.side .spacer { flex: 1; }
.side .me {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); cursor: pointer;
}
.side .me b { display: block; color: #fff; font-size: 13px; }
.side .me span { font-size: 11px; color: var(--side-ink-2); }

.shell {
  margin: 10px 10px 10px 0; border-radius: var(--r-xl); background: var(--shell-bg);
  overflow: auto; position: relative; display: flex; flex-direction: column;
}
.topbar { display: flex; align-items: center; gap: 12px; padding: 22px 28px 0; min-height: 64px; }
.topbar h1 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; flex: 1; }
.page { padding: 18px 28px 40px; flex: 1; }

/* ---------- кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 12px; border: 0; cursor: pointer; font-weight: 700; font-size: 14px; white-space: nowrap;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  transition: transform .16s var(--ease), box-shadow .2s, background .2s, opacity .2s;
}
.btn:hover { box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { color: #fff; background: var(--accent-grad); box-shadow: 0 6px 18px rgba(var(--accent-rgb), .28); }
.btn.primary:hover { box-shadow: 0 10px 26px rgba(var(--accent-rgb), .36); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: rgba(19, 28, 58, .05); }
.btn.danger { color: #fff; background: var(--bad); box-shadow: 0 6px 18px rgba(229, 72, 77, .28); }
.btn.lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 14px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input {
  height: 46px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); outline: none; transition: box-shadow .2s; width: 100%;
}
.input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search .input { padding-left: 42px; }

.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-soft); }
.muted { color: var(--ink-2); }
.tiny { font-size: 12px; color: var(--ink-3); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px;
  font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent);
}
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.gray { background: var(--surface-2); color: var(--ink-2); }

/* ---------- аватары ---------- */
.ava {
  --c1: #6d8bff; --c2: #9b7bff;
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 13px; background: linear-gradient(135deg, var(--c1), var(--c2));
}
.ava.c0 { --c1: #5b8cff; --c2: #8a6bff; } .ava.c1 { --c1: #ff8a7a; --c2: #ff5f9e; }
.ava.c2 { --c1: #2ec4a6; --c2: #34a0ff; } .ava.c3 { --c1: #ffb547; --c2: #ff7a59; }
.ava.c4 { --c1: #a46bff; --c2: #e05cff; } .ava.c5 { --c1: #3fc1ff; --c2: #4f6bff; }
.ava.c6 { --c1: #63d471; --c2: #22a39f; } .ava.c7 { --c1: #ff6b6b; --c2: #c25cff; }
.stack { display: flex; } .stack .ava { width: 28px; height: 28px; font-size: 11px; box-shadow: 0 0 0 2px var(--surface); }
.stack .ava + .ava { margin-left: -8px; }

/* ---------- главная ---------- */
.hero { text-align: center; padding: 36px 0 30px; }
.hero .hello { color: var(--ink-2); font-weight: 600; margin-bottom: 8px; }
.hero h2 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.tile {
  position: relative; height: 210px; border-radius: 22px; border: 0; cursor: pointer; padding: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px;
  font-weight: 700; font-size: 16px; color: var(--ink); text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), var(--shadow-1);
  transition: transform .26s var(--ease), box-shadow .26s;
}
.tile:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), var(--shadow-2); }
.tile small { font-weight: 500; font-size: 12px; color: var(--ink-2); }
.tile .lbl { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tile.t1 { background: linear-gradient(135deg, #d9d4ff 0%, #eeecfe 50%, #e6d8ff 100%); }
.tile.t2 { background: linear-gradient(135deg, #c8dcfb 0%, #eef4ff 50%, #cfe3ff 100%); }
.tile.t3 { background: linear-gradient(135deg, #d3f5ef 0%, #ecf8f6 50%, #bfeadf 100%); }
.tile .art { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); width: 92px; height: 92px; }

.section-h { display: flex; align-items: center; justify-content: space-between; margin: 40px auto 12px; max-width: 900px; }
.section-h h3 { font-size: 16px; font-weight: 700; }
.list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }

.call-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.call-row:hover { transform: translateY(-1px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-soft); }
.call-row .when { text-align: center; }
.call-row .when b { display: block; font-size: 15px; }
.call-row .when span { font-size: 12px; color: var(--ink-3); }
.call-row h4 { margin: 0 0 3px; font-size: 15px; font-weight: 700; }
.call-row p { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.call-row .meta { display: flex; align-items: center; gap: 10px; }
.day-h { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin: 18px 4px 2px; }

/* ---------- пустые состояния ---------- */
.empty { text-align: center; max-width: 420px; margin: 60px auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--accent-grad); box-shadow: 0 10px 26px rgba(var(--accent-rgb), .3); margin-bottom: 8px; }
.empty .ic svg { width: 26px; height: 26px; }
.empty h3 { font-size: 20px; font-weight: 800; }
.empty p { color: var(--ink-2); margin-bottom: 8px; }

/* ---------- окно ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(11, 20, 49, .35); backdrop-filter: blur(6px);
  display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .2s var(--ease);
}
.modal { width: min(440px, 100%); background: #fbfcff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow-2); animation: pop .26s var(--ease); }
.modal h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.modal .row { display: flex; gap: 10px; margin-top: 18px; }
.modal .row .btn { flex: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #12a877; color: #fff; padding: 10px 16px; border-radius: 99px; font-weight: 700; font-size: 13px;
  transition: all .26s var(--ease); z-index: 60; box-shadow: 0 8px 24px rgba(18, 168, 119, .3);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--bad); box-shadow: 0 8px 24px rgba(229, 72, 77, .3); }

/* ---------- вход по приглашению ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 16px; background: var(--side-glow), var(--side); }
.auth .box { width: min(420px, 100%); background: #fbfcff; border-radius: 26px; padding: 30px 26px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.auth .box img { width: 56px; height: 56px; margin-bottom: 14px; }
.auth h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.auth p { color: var(--ink-2); margin-bottom: 20px; }
.auth form { display: flex; flex-direction: column; gap: 12px; text-align: left; }

/* ---------- звонок ---------- */
.call-wrap { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; grid-template-areas: "stage" "bar"; min-height: 100%; }
.call-wrap.tr-open { grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "stage tr" "bar tr"; column-gap: 18px; }
.call-bar { grid-area: bar; }
/* живая расшифровка */
.live-tr { grid-area: tr; display: none; flex-direction: column; min-height: 0; height: calc(100vh - 130px); position: sticky; top: 0;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-soft); overflow: hidden; }
.tr-open .live-tr { display: flex; }
.lt-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 12px 18px; border-bottom: 1px solid var(--line-soft); }
.lt-head b { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.lt-head b svg { width: 17px; height: 17px; color: var(--accent); }
.lt-live { display: inline-flex; align-items: center; gap: 6px; flex: 1; font-size: 11.5px; font-weight: 600; color: var(--ok); }
.lt-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blink 1.6s infinite; }
.lt-head .btn { width: 32px; padding: 0; justify-content: center; }
.lt-body { flex: 1; overflow-y: auto; padding: 12px 16px 18px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.lt-line { display: flex; gap: 10px; animation: lt-in .3s var(--ease); }
@keyframes lt-in { from { opacity: 0; transform: translateY(6px); } }
.lt-line .ava.xs { margin-top: 2px; }
.lt-meta { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; }
.lt-meta span { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lt-line p { font-size: 14px; line-height: 1.5; color: #2b3558; margin-top: 2px; }
.lt-line.typing-line p { color: var(--ink-3); font-style: italic; }
.lt-line.typing-line .lt-meta span { color: var(--accent); }
.lt-empty { margin: auto; text-align: center; color: var(--ink-3); font-size: 13px; max-width: 220px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lt-empty svg { width: 28px; height: 28px; color: #cfd5e8; }
.round.on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb), .35); }
@media (max-width: 1100px) {
  .call-wrap.tr-open { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "bar"; }
  .live-tr { position: fixed; left: 12px; right: 12px; bottom: 150px; height: 42vh; z-index: 20; box-shadow: 0 20px 50px rgba(30, 40, 110, .22), inset 0 0 0 1px var(--line-soft); }
}
@media (min-width: 1101px) { .live-tr { margin-top: 4px; } }
.call-stage { grid-area: stage; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px; }
.call-title { text-align: center; }
.call-title h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.call-title .tiny { display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: rgba(255, 255, 255, .7); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-soft); backdrop-filter: blur(10px); }
.call-title #timer { font-variant-numeric: tabular-nums; color: var(--ink); }
.rec-dot { width: 9px; height: 9px; box-shadow: 0 0 0 4px rgba(229, 72, 77, .15); border-radius: 50%; background: var(--bad); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.people-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 48px; max-width: 900px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 168px; text-align: center; }
.person .ava { width: 144px; height: 144px; font-size: 48px; font-weight: 800; position: relative; transition: box-shadow .25s var(--ease); box-shadow: 0 18px 40px rgba(69, 80, 220, .22), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.person.speaking .ava { box-shadow: 0 0 0 5px #fff, 0 0 0 9px #3fd39b, 0 0 48px rgba(63, 211, 155, .55); animation: talk 1s var(--ease) infinite alternate; }
@keyframes talk { to { box-shadow: 0 0 0 5px #fff, 0 0 0 13px #3fd39b, 0 0 60px rgba(63, 211, 155, .6); } }
.person .muted-badge { position: absolute; right: 4px; bottom: 4px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bad); color: #fff; box-shadow: 0 0 0 4px #fff; }
.person .muted-badge svg { width: 20px; height: 20px; }
.person b { font-size: 17px; font-weight: 700; }
.person span { font-size: 13px; color: var(--ink-3); }
.audio-gate {
  position: fixed; left: 50%; top: 24px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 16px; border: 0; border-radius: 22px; cursor: pointer; text-align: left; font: inherit; color: #fff;
  background: var(--accent-grad); box-shadow: 0 18px 40px rgba(var(--accent-rgb), .4); animation: gate-pulse 1.6s var(--ease) infinite alternate;
}
.audio-gate svg { width: 30px; height: 30px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.audio-gate span { display: flex; flex-direction: column; font-size: 13px; opacity: .92; }
.audio-gate b { font-size: 16px; font-weight: 800; opacity: 1; }
@keyframes gate-pulse { to { box-shadow: 0 18px 50px rgba(var(--accent-rgb), .6), 0 0 0 6px rgba(var(--accent-rgb), .18); } }
.waiting-note { color: var(--ink-2); font-size: 14px; text-align: center; max-width: 360px; }

.call-bar {
  position: sticky; bottom: 0; display: flex; justify-content: center; padding: 20px 18px 28px;
}
.call-dock {
  display: flex; align-items: flex-start; gap: 22px; padding: 16px 28px 12px; border-radius: 32px;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 20px 50px rgba(30, 40, 110, .16), inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 1px var(--line-soft);
}
.round {
  width: 72px; height: 72px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .18s var(--ease), background .2s, box-shadow .2s;
}
.round:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 10px 22px rgba(30, 40, 110, .14), inset 0 0 0 1px var(--line); }
.round:active { transform: scale(.94); }
.round svg { width: 30px; height: 30px; stroke-width: 1.9; }
.round.off { background: var(--ink); color: #fff; box-shadow: 0 10px 22px rgba(19, 28, 58, .3); }
.round.end { background: linear-gradient(135deg, #ff5f6d 0%, #e5484d 100%); color: #fff; box-shadow: 0 12px 28px rgba(229, 72, 77, .4); width: 104px; border-radius: 36px; }
.round.end:hover { background: linear-gradient(135deg, #ff6b78 0%, #ea4f54 100%); box-shadow: 0 16px 34px rgba(229, 72, 77, .5); }
.round.end svg { width: 34px; height: 34px; }
.round-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }

.prejoin { max-width: 440px; margin: 40px auto; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.prejoin h2 { font-size: 20px; font-weight: 800; }
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3fd39b, #34a0ff); transition: width .08s linear; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; }
.note svg { margin-top: 1px; }

/* ---------- итоги ---------- */
.sum { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.sum-head { padding: 26px 28px; color: #fff; border-radius: 22px; background: var(--head-grad); box-shadow: 0 16px 40px rgba(var(--accent-rgb), .28); }
.sum-head .kicker { font-size: 11px; font-weight: 800; letter-spacing: .1em; opacity: .75; text-transform: uppercase; }
.sum-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 14px; line-height: 1.25; }
.sum-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; opacity: .9; }
.sum-head .stack .ava { box-shadow: 0 0 0 2px #5a4be0; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1); align-self: flex-start; }
.tabs button { height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.tabs button.on { background: var(--accent-soft); color: var(--accent); }
.block { padding: 20px 22px; }
.block h3 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.block h3 .n { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.block h3 .bi { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.block h3 .bi svg { width: 16px; height: 16px; }
.block .para + .para { margin-top: 10px; }
.block .para { color: #2b3558; }
.item { padding: 12px 0; border-top: 1px solid var(--line-soft); display: flex; gap: 12px; }
.item:first-of-type { border-top: 0; padding-top: 2px; }
.item .tick { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); margin-top: 1px; }
.item .tick svg { width: 13px; height: 13px; stroke-width: 2.6; }
.item b { display: block; font-weight: 700; }
.item .why { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.item .who { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.agr { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.agr:first-of-type { border-top: 0; padding-top: 2px; }
.agr .who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.agr .who .ava { width: 22px; height: 22px; font-size: 9px; }
.agr .due { font-size: 13px; font-weight: 700; color: var(--ink); text-align: right; }
.agr .note2 { font-size: 13px; color: var(--ink-2); }
.signals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.signal { padding: 18px 20px; }
.signal .kind { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.signal.negative .kind { color: var(--bad); } .signal.positive .kind { color: var(--ok); }
.signal p { margin: 8px 0 12px; font-weight: 600; }
.signal .need { font-size: 13px; color: var(--ink-2); padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.signal .need b { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.brief { background: linear-gradient(135deg, #e9f1ff, #f3eeff); box-shadow: inset 0 0 0 1px #e1e6fb; }
.qs { margin: 0; padding-left: 18px; color: #2b3558; } .qs li + li { margin-top: 6px; }
.tr-line { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.tr-line:first-child { border-top: 0; }
.tr-line .t { font-size: 12px; color: var(--ink-3); padding-top: 2px; font-variant-numeric: tabular-nums; }
.tr-line b { font-size: 13px; }
.processing { text-align: center; max-width: 420px; margin: 70px auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 1s linear infinite; margin-bottom: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; text-align: left; }
.steps div { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: 14px; }

/* ---------- люди ---------- */
.people-list .p-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line-soft); }
.people-list .p-row:first-child { border-top: 0; }
.people-list .p-row .grow { flex: 1; min-width: 0; }
.people-list .p-row b { display: block; }
.invite-link { display: flex; gap: 8px; margin-top: 12px; }
.invite-link .input { font-size: 13px; }

/* ---------- телефон ---------- */
.mobile-nav { display: none; }
/* ---------- мои дела ---------- */
.ava.xs { width: 22px; height: 22px; font-size: 9px; }
.tasks-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: start; max-width: 1180px; }
.tasks-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tabs button .cnt { margin-left: 7px; padding: 1px 7px; border-radius: 99px; font-size: 11px; background: rgba(19, 28, 58, .06); }
.tabs button.on .cnt { background: rgba(var(--accent-rgb), .14); }
.tabs button.late .cnt { background: var(--bad-soft); color: var(--bad); }

.ask { position: sticky; top: 0; padding: 22px; display: flex; flex-direction: column; gap: 16px; overflow: hidden;
  background: radial-gradient(120% 80% at 100% 0%, rgba(var(--accent2-rgb), .1), transparent 60%), var(--surface); }
.ask-head { display: flex; gap: 14px; align-items: center; }
.ask-head h3 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.ask-head p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.ask-ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--accent-grad); box-shadow: 0 8px 20px rgba(var(--accent-rgb), .3); }
.ask-ic svg { width: 22px; height: 22px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; padding: 9px 13px; border-radius: 12px; color: var(--accent-ink); background: var(--accent-soft); transition: background .2s, transform .16s var(--ease); text-align: left; }
.chip-btn:hover { background: color-mix(in srgb, var(--accent) 16%, #fff); } .chip-btn:active { transform: scale(.97); }
.ask-log { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto; padding-right: 2px; }
.msg { max-width: 92%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg.me { align-self: flex-end; color: #fff; background: var(--accent-grad); border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); border-bottom-left-radius: 6px; color: #2b3558; }
.msg.bot p + p, .msg.bot p + ul, .msg.bot ul + p { margin-top: 8px; }
.msg.bot ul { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.msg .err { color: var(--bad); }
.msg.typing { display: flex; gap: 5px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: typing 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: 1; } 0%, 60%, 100% { opacity: .4; } }
.ask-form { display: flex; gap: 8px; }
.ask-form .input { flex: 1; }
.ask-form .btn { width: 46px; height: 46px; padding: 0; justify-content: center; }

.task-list { padding: 6px 0; }
.task-row { display: flex; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line-soft); transition: opacity .3s; }
.task-row:first-child { border-top: 0; }
.task-row.done .tk-title { text-decoration: line-through; color: var(--ink-3); }
.task-row.done { opacity: .75; }
.tk-title { font-weight: 700; font-size: 15px; line-height: 1.4; }
.tk-note { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.tk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.tk-meta .who { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.due-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); font-weight: 600; }
.due-chip svg { width: 12px; height: 12px; }
.due-chip.late { background: var(--bad-soft); color: var(--bad); }
.tk-meta .from { color: var(--ink-3); text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-meta .from:hover { color: var(--accent); }
.empty.sm { margin: 34px auto; }

.ck { position: relative; flex: none; width: 24px; height: 24px; cursor: pointer; margin-top: 1px; }
.ck input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.ck span { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: transparent; background: #fff; box-shadow: inset 0 0 0 2px #cfd5e8; transition: background .2s, box-shadow .2s, color .2s, transform .16s var(--ease); }
.ck span svg { width: 15px; height: 15px; stroke-width: 3; }
.ck:hover span { box-shadow: inset 0 0 0 2px var(--accent); }
.ck input:checked + span { color: #fff; background: linear-gradient(135deg, #2ec4a6, #12a877); box-shadow: 0 4px 10px rgba(18, 168, 119, .3); transform: scale(1.04); }
.ck input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.agr-t { display: flex; gap: 10px; align-items: flex-start; }
.agr.done .agr-t span:last-child { text-decoration: line-through; color: var(--ink-3); }

@media (max-width: 1060px) { .tasks-page { grid-template-columns: 1fr; } .ask { position: static; } }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }

/* ---------- новый звонок ---------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); margin-bottom: 16px; }
.seg button { height: 40px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, color .2s; }
.seg button.on { background: #fff; color: var(--accent); box-shadow: var(--shadow-1); }
.nc-form { display: flex; flex-direction: column; gap: 14px; }
.nc-form .plan-only { display: flex; flex-direction: column; gap: 14px; }
.nc-form .plan-only[hidden] { display: none; }
.nc-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.field .opt { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; font: inherit; line-height: 1.45; }

/* ---------- планирование ---------- */
.plan-page { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: start; max-width: 1180px; }
.plan-left { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; }
.cal { padding: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font-size: 15px; font-weight: 800; text-transform: capitalize; }
.cal-head .btn { width: 34px; padding: 0; justify-content: center; }
.cal-wd, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd span { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-3); padding: 4px 0; }
.cal-day { aspect-ratio: 1; border: 0; border-radius: 12px; background: transparent; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; transition: background .15s; }
.cal-day:hover { background: var(--surface-2); }
.cal-day.out { color: var(--ink-3); opacity: .55; }
.cal-day.today span { color: var(--accent); font-weight: 800; }
.cal-day.sel { background: var(--accent-grad); color: #fff; box-shadow: 0 6px 16px rgba(var(--accent-rgb), .3); }
.cal-day.sel span { color: #fff; }
.cal-day em { display: flex; gap: 3px; height: 5px; }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; }
.dot.plan { background: var(--accent); } .dot.past { background: #b9c1da; }
.cal-day.sel .dot { background: #fff; }
.cal-legend { display: flex; gap: 14px; justify-content: center; margin-top: 10px; font-size: 11.5px; color: var(--ink-3); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.load { padding: 16px 18px; }
.load h4 { font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.load-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.lb { border: 0; background: transparent; cursor: pointer; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; }
.lb .bar { width: 100%; height: 64px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: flex-end; overflow: hidden; }
.lb .bar i { display: block; width: 100%; border-radius: 10px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, #fff), var(--accent)); transition: height .3s var(--ease); }
.lb .bar i.zero { background: transparent; }
.lb b { font-size: 11px; height: 14px; color: var(--ink-2); }
.lb span { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.lb.sel span { color: var(--accent); } .lb.today span { text-decoration: underline; text-underline-offset: 3px; }
.day-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.day-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.part { margin-bottom: 14px; }
.part-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px 4px; }
.part-h b { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.part-h span { font-size: 12px; color: var(--ink-3); }
.part-empty { padding: 12px 16px; border-radius: 14px; border: 1.5px dashed var(--line); color: var(--ink-3); font-size: 13px; }
.day-item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; text-decoration: none; color: inherit; margin-bottom: 8px; transition: transform .16s var(--ease), box-shadow .2s; }
.day-item:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.day-item.planned { box-shadow: inset 3px 0 0 var(--accent), var(--shadow-1); }
.day-item .t { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 46px; }
.day-item h4 { font-size: 15px; font-weight: 700; }
.day-item p { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-item .grow { min-width: 0; flex: 1; }
.day-item .meta { display: flex; align-items: center; gap: 10px; }
.empty-day { display: flex; gap: 16px; align-items: center; padding: 22px; }
.empty-day .ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--accent-grad); flex: none; }
.empty-day p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.cal-badge { display: flex !important; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.cal-badge span { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.cal-badge b { font-size: 20px; font-weight: 800; line-height: 1; }
.cal-badge.big { width: 64px; height: 70px; border-radius: 18px; color: #fff; background: var(--accent-grad); box-shadow: 0 10px 24px rgba(var(--accent-rgb), .3); flex: none; }
.cal-badge.big b { font-size: 28px; }
.plan-row p { display: flex; align-items: center; gap: 6px; }
.plan-row p svg { width: 14px; height: 14px; }

.prejoin-wrap { max-width: 560px; margin: 24px auto; display: flex; flex-direction: column; gap: 16px; }
.prejoin-wrap .prejoin { margin: 0; max-width: none; }
.sched { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.sched-top { display: flex; gap: 16px; align-items: center; }
.sched .kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sched h2 { font-size: 19px; font-weight: 800; margin: 2px 0; }
.sched h2::first-letter { text-transform: uppercase; }
.agenda { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; color: #2b3558; white-space: pre-line; }
.agenda b { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.sched-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.brief-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.brief-card .bh { display: flex; align-items: center; gap: 12px; }
.brief-card h3 { font-size: 16px; font-weight: 800; }
.ask-ic.sm { width: 38px; height: 38px; border-radius: 12px; }
.ask-ic.sm svg { width: 18px; height: 18px; }
.brief-body { max-width: none; }

@media (max-width: 980px) { .plan-page { grid-template-columns: 1fr; } .plan-left { position: static; } }

/* ---------- правка итогов ---------- */
.sum-head .edited { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; opacity: .8; }
.sum-head .edited svg { width: 13px; height: 13px; }
.ed { padding-bottom: 90px; }
.ed .field label { font-size: 12.5px; }
.ed-rows { display: flex; flex-direction: column; gap: 10px; }
.ed-row { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
.ed-fields { flex: 1; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.ed-fields .input { height: 42px; background: #fff; }
.ed-fields textarea.input { height: auto; }
.ed-del { width: 38px; padding: 0; justify-content: center; color: var(--ink-3); flex: none; }
.ed-del:hover { color: var(--bad); }
.ed-add { margin-top: 10px; color: var(--accent); }
.ed-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); box-shadow: 0 14px 40px rgba(30, 40, 110, .16), inset 0 0 0 1px var(--line-soft); }
.ed-bar .tiny { flex: 1; }
@media (max-width: 820px) { .ed-fields { grid-template-columns: 1fr; } .ed-fields > * { grid-column: auto !important; } .ed-bar .tiny { display: none; } }

/* ---------- проекты ---------- */
.pchip { --pc: #4566ff; display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 3px 10px 3px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: color-mix(in srgb, var(--pc) 82%, #000); background: color-mix(in srgb, var(--pc) 12%, #fff); }
.pchip i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--pc); }
.pchip.none { --pc: #9aa5c6; }
.pchip.flat { padding: 0; background: none; color: inherit; font-size: inherit; }
.proj-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; max-width: 1180px; }
.proj-filter button { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px; border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-soft); transition: background .2s, box-shadow .2s; }
.proj-filter button.on { color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb), .35); }
.proj-filter button .cnt { margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 11px; background: rgba(19, 28, 58, .06); }
.ask-scope .scope-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.ask-scope .scope-note svg { width: 15px; height: 15px; color: var(--ink-3); }
.tk-group + .tk-group { border-top: 6px solid var(--surface-2); }
.tk-gh { display: flex; align-items: center; gap: 8px; padding: 12px 20px 4px; text-decoration: none; font-size: 12px; color: var(--ink-3); font-weight: 700; }
.tk-gh:hover .pchip { filter: brightness(.95); }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; max-width: 1180px; }
.proj-card { --pc: #4566ff; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; text-decoration: none; color: inherit; overflow: hidden; transition: transform .18s var(--ease), box-shadow .2s; }
.proj-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--pc); }
.proj-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.proj-card.arch { opacity: .7; }
.proj-card h4 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin-top: 6px; }
.proj-card p { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pc-top { display: flex; justify-content: space-between; align-items: center; }
.pc-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 75%, #fff), var(--pc)); box-shadow: 0 8px 18px color-mix(in srgb, var(--pc) 35%, transparent); }
.pc-ic.big { width: 60px; height: 60px; border-radius: 18px; font-size: 21px; flex: none; }
.pc-stats { display: flex; gap: 14px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.pc-stats b { color: var(--ink); font-weight: 800; }
.pc-stats .hot b { color: var(--accent); }
.pc-last { font-size: 12px; color: var(--ink-3); }
.proj-card.add { align-items: center; justify-content: center; text-align: center; border: 0; cursor: pointer; font: inherit; color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 2px var(--line); min-height: 190px; }
.proj-card.add::before { display: none; }
.proj-card.add svg { width: 26px; height: 26px; color: var(--accent); }
.proj-card.add b { color: var(--ink); font-size: 15px; }
.proj-card.add span { font-size: 12.5px; max-width: 200px; }
.proj-head { --pc: #4566ff; display: flex; align-items: center; gap: 18px; padding: 22px 24px; margin-bottom: 18px; max-width: 1180px; position: relative; overflow: hidden; }
.proj-head::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--pc); }
.proj-head .kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pc); }
.proj-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.proj-head p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.ph-stats { display: flex; gap: 22px; }
.ph-stats div { display: flex; flex-direction: column; align-items: flex-end; }
.ph-stats b { font-size: 24px; font-weight: 800; line-height: 1; }
.ph-stats span { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: var(--pc); box-shadow: 0 0 0 3px #fff, 0 0 0 4px transparent; transition: box-shadow .2s, transform .16s var(--ease); }
.swatches button.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--pc); transform: scale(1.06); }
.menu-list { display: flex; flex-direction: column; gap: 8px; }
.menu-list .btn { justify-content: flex-start; }
.btn.danger-ghost { color: var(--bad); }
.proj-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-soft); font-size: 14px; }
.proj-bar a { text-decoration: none; }
.proj-bar .pb-l { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.proj-bar .pb-t { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 200px; }
.proj-bar .input.sm { height: 38px; max-width: 280px; }
.ask-ic.xs { width: 30px; height: 30px; border-radius: 10px; }
.ask-ic.xs svg { width: 15px; height: 15px; }
.call-row .meta .pchip { max-width: 150px; }
.tasks-col .section-h { margin: 10px 0 0; max-width: none; }
.tasks-col .section-h:first-child { margin-top: 0; }
.tasks-col .list { max-width: none; margin: 0; }
@media (max-width: 820px) { .proj-head { flex-wrap: wrap; } .ph-stats { width: 100%; justify-content: flex-start; } .ph-stats div { align-items: flex-start; } }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .side { display: none; }
  .shell { margin: 0; border-radius: 0; }
  .topbar { padding: 16px 16px 0; min-height: 56px; }
  .page { padding: 14px 16px 28px; }
  .mobile-nav {
    display: flex; justify-content: space-between; gap: 2px; overflow-x: auto; scrollbar-width: none; background: var(--side); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-nav a { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--side-ink-2); padding: 6px 7px; border-radius: 12px; white-space: nowrap; }
  .mobile-nav a.on { color: #fff; background: var(--side-active); }
  .hero { padding: 18px 0 20px; } .hero h2 { font-size: 26px; }
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile { height: 96px; flex-direction: row; justify-content: flex-start; padding: 0 20px; gap: 14px; text-align: left; }
  .tile .art { position: static; transform: none; width: 56px; height: 56px; }
  .tile .lbl { align-items: flex-start; }
  .call-row { grid-template-columns: 48px 1fr; padding: 12px 14px; }
  .call-row .meta { grid-column: 2; }
  .signals { grid-template-columns: 1fr; }
  .sum-head { padding: 20px; } .sum-head h2 { font-size: 20px; }
  .block { padding: 16px; }
  .person { width: 120px; } .person .ava { width: 104px; height: 104px; font-size: 34px; }
  .call-dock { gap: 16px; padding: 14px 20px 10px; }
  .round { width: 64px; height: 64px; } .round svg { width: 26px; height: 26px; } .round.end { width: 88px; }
}

/* ---------- профиль ---------- */
.prof { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1000px; }
.prof-nav { padding: 8px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; }
.prof-nav button { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: left; transition: background .15s, color .15s; }
.prof-nav button:hover { background: var(--surface-2); color: var(--ink); }
.prof-nav button.on { background: var(--accent-soft); color: var(--accent); }
.prof-nav button.out { margin-top: 8px; border-top: 1px solid var(--line-soft); border-radius: 0 0 12px 12px; color: var(--bad); }
.prof-body .block h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.prof-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.prof-hero h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ava { position: relative; }
.ava > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ava .muted-badge { z-index: 1; }
/* профиль */
.pf-hero { padding: 0; overflow: hidden; }
.pf-cover { height: 120px; background: radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, .28), transparent 55%), linear-gradient(120deg, var(--accent), #8a6bff 55%, #2ec4a6); }
.pf-id { display: flex; align-items: flex-end; gap: 20px; padding: 14px 28px 22px; flex-wrap: wrap; }
.pf-ava { position: relative; flex: none; margin-top: -70px; }
.ava.pf { width: 112px; height: 112px; font-size: 38px; box-shadow: 0 0 0 5px var(--surface), 0 14px 30px rgba(19, 28, 58, .22); }
.pf-cam { position: absolute; right: 2px; bottom: 2px; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--surface); color: var(--ink); box-shadow: 0 4px 14px rgba(19, 28, 58, .2); transition: transform .16s var(--ease); }
.pf-cam:hover { transform: scale(1.08); color: var(--accent); }
.pf-cam svg { width: 18px; height: 18px; }
.pf-who { flex: 1; min-width: 200px; padding-bottom: 4px; }
.pf-who h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.01em; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-login { display: inline-flex; align-items: center; gap: 6px; }
.pf-login svg { width: 14px; height: 14px; }
.pf-photo-btns { display: flex; gap: 8px; padding-bottom: 6px; }
.pf-form { margin-top: 16px; padding: 8px 28px 20px; }
.pf-sec { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.pf-sec-h b { display: block; font-size: 15px; margin-bottom: 4px; }
.pf-sec-h p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.pf-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; }
@media (max-width: 760px) {
  .pf-cover { height: 90px; }
  .pf-id { flex-direction: column; align-items: center; text-align: center; padding: 0 18px 20px; gap: 12px; } .pf-ava { margin-top: -56px; }
  .pf-who { min-width: 0; } .pf-chips { justify-content: center; }
  .pf-form { padding: 4px 18px 18px; }
  .pf-sec { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
  .pf-foot { flex-direction: column-reverse; align-items: stretch; } .pf-foot .btn { justify-content: center; }
}
.ava.xl { width: 76px; height: 76px; font-size: 26px; box-shadow: 0 12px 28px rgba(19, 28, 58, .18); }
.ava-sw button.ava { width: 36px; height: 36px; padding: 0; border: 0; background: linear-gradient(135deg, var(--c1), var(--c2)); cursor: pointer; box-shadow: 0 0 0 3px #fff, 0 0 0 4px transparent; transition: box-shadow .2s, transform .16s var(--ease); }
.ava-sw button.ava.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c2); transform: scale(1.06); }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.theme { border: 0; padding: 8px; border-radius: 16px; cursor: pointer; font: inherit; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); display: flex; flex-direction: column; gap: 8px; transition: box-shadow .2s, transform .16s var(--ease); }
.theme:hover { transform: translateY(-2px); }
.theme.on { box-shadow: inset 0 0 0 2px var(--accent), 0 8px 20px rgba(var(--accent-rgb), .18); }
.th-prev { display: flex; height: 78px; border-radius: 11px; overflow: hidden; background: #f4f6fc; }
.th-side { width: 32%; display: flex; flex-direction: column; padding: 8px 6px; }
.th-side b { height: 8px; border-radius: 4px; width: 80%; }
.th-main { flex: 1; padding: 9px; display: flex; flex-direction: column; gap: 6px; }
.th-main b { height: 14px; width: 55%; border-radius: 6px; }
.th-main em { height: 7px; border-radius: 4px; background: #dfe3ef; }
.th-main em + em { width: 70%; }
.th-name { font-size: 13.5px; font-weight: 700; color: var(--ink); padding: 0 4px 2px; text-align: left; }
.dev-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.dev-row select { flex: 1; }
.sess { display: flex; flex-direction: column; }
.sess-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.sess-row:first-child { border-top: 0; }
.sess-row b { margin-right: 8px; }
.sess-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: none; }
.side .me { cursor: pointer; }
@media (max-width: 820px) {
  .prof { grid-template-columns: 1fr; }
  .live-tr { bottom: 196px; height: 36vh; }
  .prof-nav { position: static; flex-direction: row; overflow-x: auto; }
  .prof-nav button { white-space: nowrap; flex: none; }
  .prof-nav button.out { margin: 0; border: 0; border-radius: 12px; }
}

/* ---------- вход и пространства ---------- */
.auth-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.auth-form .field label { display: flex; justify-content: space-between; align-items: baseline; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--accent); cursor: pointer; }
.code-input { letter-spacing: .5em; font-size: 22px; font-weight: 800; text-align: center; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-3); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.or span { max-width: 260px; text-align: center; }
.ya-btn { width: 100%; justify-content: center; gap: 10px; color: #fff; background: #000; box-shadow: none; text-decoration: none; }
.ya-btn:hover { background: #1c1c1c; }
.ya-btn .ya, .sess-ic .ya { width: 22px; height: 22px; }
.auth-err { padding: 10px 12px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: 13px; margin-bottom: 14px; text-align: left; }
.email-alt { margin-top: 12px; text-align: left; }
.email-alt summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--accent); list-style: none; text-align: center; padding: 8px; }
.email-alt summary::-webkit-details-marker { display: none; }
.email-alt[open] summary { margin-bottom: 8px; }
.auth.login { background: var(--side-glow), var(--side); }
.login-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 420px); gap: 56px; align-items: center; max-width: 980px; width: 100%; }
.login-pitch { color: #fff; }
.login-pitch .auth-wm { font-size: 36px; margin-bottom: 30px; }
.login-pitch h1 { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 16px; }
.login-sub { color: var(--side-ink); font-size: 16px; line-height: 1.55; max-width: 470px; margin-bottom: 22px; }
.login-pitch ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--side-ink); font-size: 15px; }
.login-pitch li { display: flex; gap: 10px; align-items: flex-start; }
.login-pitch li svg { width: 18px; height: 18px; color: #3fd3b0; margin-top: 2px; flex: none; }
.login .box { max-width: 420px; text-align: left; }
.login .box h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.login .box > p { color: var(--ink-2); margin-bottom: 18px; font-size: 14px; }
@media (max-width: 820px) { .login-grid { grid-template-columns: 1fr; gap: 26px; } .login-pitch h1 { font-size: 28px; } .login-pitch ul { display: none; } .login-pitch .auth-wm { margin-bottom: 14px; } }

.ws-switch { display: flex; align-items: center; gap: 10px; margin: 0 6px 16px; padding: 9px 10px; border: 0; border-radius: 14px; cursor: pointer; text-align: left; font: inherit; color: #fff;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); transition: background .2s; }
.ws-switch:hover { background: rgba(255, 255, 255, .09); }
.ws-switch small { display: block; font-size: 10.5px; color: var(--side-ink-2); }
.ws-switch b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.ws-switch > svg { width: 15px; height: 15px; color: var(--side-ink-2); }
.ws-ic { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--accent-grad); }
.ws-ic.big { width: 48px; height: 48px; border-radius: 14px; font-size: 16px; }
.ws-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ws-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 14px; cursor: pointer; font: inherit; text-align: left; background: var(--surface-2); color: var(--ink); }
.ws-item.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb), .35); }
.ws-item small { display: block; font-size: 12px; color: var(--ink-3); }
.ws-item > svg { width: 18px; height: 18px; color: var(--accent); }
.ws-new { display: flex; gap: 8px; }
.ws-new .input { flex: 1; }
.ws-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 12px; }
.ws-card .kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ws-card h3 { font-size: 18px; font-weight: 800; }
.role-sel { height: 34px; width: auto; padding: 0 10px; font-size: 13px; }
.check-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; cursor: pointer; }
.em-form { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0 10px 54px; }
.em-form .input { flex: 1; min-width: 160px; height: 40px; }
.em-form .code-input { font-size: 16px; max-width: 130px; }

/* ---------- тариф ---------- */
.billing { max-width: 1000px; display: flex; flex-direction: column; gap: 18px; }
.bill-now { padding: 22px 24px; }
.bn-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.bill-now .kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bill-now h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.bn-left { text-align: right; }
.bn-left b { display: block; font-size: 20px; font-weight: 800; }
.bn-left span { font-size: 12.5px; color: var(--ink-3); }
.usage { height: 12px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; margin-bottom: 8px; }
.usage i { display: block; height: 100%; border-radius: 99px; background: var(--accent-grad); transition: width .4s var(--ease); }
.usage i.hot { background: linear-gradient(90deg, #ff9a5c, #e5484d); }
.renew-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.renew-row b { display: block; font-size: 14px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-card { position: relative; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.plan-card.pop { box-shadow: 0 0 0 2px var(--accent), 0 16px 40px rgba(var(--accent-rgb), .16); }
.plan-card.on { background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%); }
.plan-badge { position: absolute; top: -11px; left: 22px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; color: #fff; background: var(--accent-grad); }
.plan-card h3 { font-size: 18px; font-weight: 800; }
.plan-price b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.plan-price span { margin-left: 6px; font-size: 13px; color: var(--ink-3); }
.plan-min { font-size: 15px; font-weight: 700; color: var(--accent-ink); }
.plan-card ul { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan-card li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.plan-card li svg { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 1px; }
.plan-card .btn { width: 100%; justify-content: center; }
.save-login { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin: 0 auto 10px; max-width: 900px; text-decoration: none; color: inherit; background: var(--accent-soft, rgba(91, 108, 255, .08)); box-shadow: inset 0 0 0 1px rgba(91, 108, 255, .25); }
.save-login > svg { width: 22px; height: 22px; color: var(--accent, #5b6cff); flex: none; }
.save-login b { display: block; font-size: 14px; margin-bottom: 2px; }
.save-login .btn { flex: none; }
@media (max-width: 640px) { .save-login { flex-wrap: wrap; } .save-login .btn { width: 100%; justify-content: center; } }
.low-min { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin: 0 auto 6px; max-width: 900px; text-decoration: none; color: inherit; background: var(--warn-soft); box-shadow: inset 0 0 0 1px rgba(224, 138, 0, .25); }
.low-min > svg { width: 22px; height: 22px; color: var(--warn); flex: none; }
.low-min b { display: block; font-size: 14px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }

.login-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; font-size: 13px; }
.login-links a { color: var(--side-ink-2); text-decoration: none; }
.login-links a:hover { color: #fff; }
@media (max-width: 820px) { .login-links { margin-top: 14px; } }

/* ---------- доступ к проектам ---------- */
.proj-members { padding: 14px 18px; margin-bottom: 18px; max-width: 1180px; }
.pm-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pm-head b { font-size: 14px; font-weight: 800; }
.pm-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); font-size: 13px; font-weight: 600; }
.pm-chip em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.pm-chip button { border: 0; background: none; padding: 0 2px; cursor: pointer; color: var(--ink-3); display: grid; place-items: center; }
.pm-chip button svg { width: 13px; height: 13px; }
.pm-chip button:hover { color: var(--bad); }
.pm-add { height: 32px; width: auto; font-size: 13px; padding: 0 10px; }
.u-projects { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.proj-checks { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.proj-checks .check-row { margin-top: 4px; }

.resend { align-self: center; color: var(--accent); }
.resend:disabled { color: var(--ink-3); opacity: 1; cursor: default; }

/* ---------- страница проекта ---------- */
.pp { max-width: 1680px; display: flex; flex-direction: column; gap: 20px; }
.pp-hero { --pc: #4566ff; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 28px; align-items: center; padding: 24px 26px 24px 30px;
  background: radial-gradient(520px 220px at 0% 0%, color-mix(in srgb, var(--pc) 10%, transparent), transparent 70%), var(--surface); }
.pp-hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--pc); }
.pp-id { display: flex; gap: 18px; align-items: center; min-width: 0; }
.pp-id .kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pc); }
.pp-id h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.pp-id p { font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.pp-id .muted-note { color: var(--ink-3); }
.pp-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; }
.pp-stats .st { min-width: 96px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); display: flex; flex-direction: column; gap: 2px; }
.pp-stats .st b { font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.pp-stats .st.date b { font-size: 16px; line-height: 1.6; }
.pp-stats .st span { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.pp-stats .st.hot { background: var(--bad-soft); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .2); }
.pp-stats .st.hot b, .pp-stats .st.hot span { color: var(--bad); }
.pp-team { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-left: 24px; border-left: 1px solid var(--line-soft); }
.pp-team-top { display: flex; align-items: center; gap: 10px; }
.pp-team-top b { display: block; font-size: 14px; }
.pp-grid { display: grid; gap: 20px; align-items: start; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "ask tasks calls"; }
.pp-grid.is-empty { grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); grid-template-areas: "ask start"; }
.pp-ask { grid-area: ask; position: sticky; top: 0; }
.pp-ask .ask { position: static; }
.pp-tasks { grid-area: tasks; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pp-calls { grid-area: calls; min-width: 0; }
.pp-calls .list { max-width: none; margin: 0; }
.pp-start { grid-area: start; padding: 26px 28px; }
.pp-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-height: 30px; }
.pp-h h3 { font-size: 16px; font-weight: 800; }
.pp-h.gap { margin-top: 22px; }
.pp-start-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.pp-start-head h3 { font-size: 19px; font-weight: 800; }
.pp-start-head p { font-size: 14px; color: var(--ink-2); }
.pp-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pp-steps li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
.pp-steps .n { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; color: var(--accent); background: #fff; box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), .25); }
.pp-steps li.done .n { color: #fff; background: linear-gradient(135deg, #2ec4a6, #12a877); box-shadow: none; font-size: 0; }
.pp-steps li.done .n::after { content: "✓"; font-size: 16px; }
.pp-steps b { display: block; font-size: 15px; }
.pp-steps p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.pp-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-rows { display: flex; flex-direction: column; }
.pm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.pm-row:first-child { border-top: 0; }
.pm-row b { display: block; font-size: 14px; }
.pm-add-row { display: flex; gap: 8px; margin-top: 14px; }
.pm-add-row select { flex: 1; }
@media (max-width: 1500px) {
  .pp-grid { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); grid-template-areas: "ask tasks" "ask calls"; }
  .pp-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .pp-team { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 1100px) {
  .pp-hero { grid-template-columns: 1fr; gap: 18px; }
  .pp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-grid, .pp-grid.is-empty { grid-template-columns: 1fr; grid-template-areas: "start" "tasks" "calls" "ask"; }
  .pp-ask { position: static; }
  .pp-steps li { flex-wrap: wrap; }
}
.pp-steps .grow, .pp-id .grow, .pm-row .grow { flex: 1; min-width: 0; }

/* шапка проекта v2: контрастные плашки и блок команды */
.pp-stats { gap: 10px; }
.pp-stats .st { flex-direction: row; align-items: center; gap: 12px; min-width: 150px; padding: 12px 16px 12px 12px; border-radius: 16px;
  background: color-mix(in srgb, var(--pc) 7%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 22%, transparent); }
.pp-stats .st > div { display: flex; flex-direction: column; gap: 1px; }
.pp-stats .st-ic { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; color: var(--pc); background: #fff; box-shadow: 0 2px 6px color-mix(in srgb, var(--pc) 20%, transparent); }
.pp-stats .st-ic svg { width: 18px; height: 18px; }
.pp-stats .st b { color: var(--ink); }
.pp-stats .st span { color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.pp-stats .st.hot { background: var(--bad-soft); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .3); }
.pp-stats .st.hot .st-ic { color: var(--bad); }
.pp-team { align-items: stretch; gap: 10px; min-width: 250px; padding: 14px 16px; border-left: 0; border-radius: 16px;
  background: color-mix(in srgb, var(--pc) 7%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 22%, transparent); }
.pt-kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pc); }
.pp-team-top { gap: 12px; }
.pp-team-top .stack .ava { width: 34px; height: 34px; font-size: 12px; box-shadow: 0 0 0 2.5px #fff; }
.pp-team-top b { font-size: 15px; font-weight: 800; color: var(--ink); }
.pp-team-top span { display: block; font-size: 12.5px; color: var(--ink-2); }
.pt-btn { width: 100%; justify-content: center; background: #fff; color: var(--pc); font-weight: 700; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 30%, transparent); }
.pt-btn:hover { background: var(--pc); color: #fff; }
.pp-steps li { background: #f2f5fc; box-shadow: inset 0 0 0 1px #e1e6f2; }
.pp-steps li:hover { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .3); }
.pp-steps .n { background: var(--accent-soft); box-shadow: none; }
.pp-steps p { color: #4f5b80; }
.pp-start-head p { color: #4f5b80; }
@media (max-width: 1500px) { .pp-team { grid-column: 1 / -1; flex-direction: row; align-items: center; padding: 12px 16px; border-top: 0; flex-wrap: wrap; }
  .pp-team .pt-kicker { width: 100%; } .pp-team .pp-team-top { flex: 1; } .pt-btn { width: auto; } }

/* ---------- люди v2 ---------- */
.pe-hero { grid-template-columns: minmax(0, 1fr) auto; }
.pe-hero h2 { display: flex; align-items: center; gap: 6px; }
.btn.icon-only { width: 34px; padding: 0; justify-content: center; }
.pe-grid { display: grid; gap: 20px; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
.pe-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pe-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pe-search { position: relative; flex: 0 1 300px; }
.pe-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); }
.pe-search .input { height: 40px; padding-left: 36px; }
.pr-list { padding: 4px 0; }
.pr-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-top: 1px solid var(--line-soft); transition: background .15s; }
.pr-row:first-child { border-top: 0; }
.pr-row:hover { background: #fafbfe; }
.pr-row > .ava { width: 42px; height: 42px; font-size: 14px; }
.pr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pr-name { display: flex; align-items: center; gap: 8px; }
.pr-name b { font-size: 15.5px; font-weight: 800; }
.pr-name .you { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; color: var(--accent); background: var(--accent-soft); }
.pr-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-2); }
.pr-login { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ok); }
.pr-login svg { width: 13px; height: 13px; }
.pr-login.weak { color: var(--warn); }
.pr-projects { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pr-all { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 3px 10px; border-radius: 99px; background: var(--surface-2); }
.pr-all svg { width: 13px; height: 13px; }
.pr-none { font-size: 12.5px; color: var(--ink-3); }
.pr-side { display: flex; align-items: center; gap: 6px; flex: none; }
.role-badge { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.role-badge.r-owner { color: #fff; background: var(--accent-grad); }
.role-badge.r-admin { color: var(--accent-ink); background: var(--accent-soft); }
.role-badge.r-member { color: var(--ink-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.pe-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; }
.pe-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.pe-card-h { display: flex; align-items: center; gap: 8px; }
.pe-card-h h3 { font-size: 16px; font-weight: 800; }
.pe-card-h .count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--accent); }
.iv-list { display: flex; flex-direction: column; gap: 8px; }
.iv-row { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
.iv-row b { display: block; font-size: 14px; }
.iv-row .grow { flex: 1; min-width: 0; }
.iv-ic { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; color: var(--accent); background: #fff; }
.iv-ic svg { width: 15px; height: 15px; }
.pe-inv { width: 100%; justify-content: center; }
.pe-help .rh { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.pe-help .rh:nth-child(2) { border-top: 0; padding-top: 0; }
.pe-help .rh .role-badge { align-self: flex-start; }
.pe-help .rh p { font-size: 13px; color: #4f5b80; }
.pe-leave { text-align: center; }
@media (max-width: 1100px) { .pe-grid { grid-template-columns: 1fr; } .pe-side { position: static; } .pe-hero { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pr-row { flex-wrap: wrap; } .pr-side { width: 100%; justify-content: flex-end; } .pe-search { flex: 1 1 100%; } }

/* ---------- проекты: карточки v2 ---------- */
.ws-ic.big svg { width: 22px; height: 22px; }
.pcard-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.pcard { --pc: #4566ff; display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; transition: transform .18s var(--ease), box-shadow .2s; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px color-mix(in srgb, var(--pc) 18%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--pc) 25%, transparent); }
.pcard.arch { opacity: .72; }
.pcard-top { display: flex; gap: 14px; align-items: flex-start; padding: 20px 20px 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 14%, #fff), color-mix(in srgb, var(--pc) 4%, #fff)); border-bottom: 1px solid color-mix(in srgb, var(--pc) 14%, transparent); }
.pcard-top .pc-ic { width: 48px; height: 48px; border-radius: 15px; font-size: 16px; flex: none; }
.pcard-top .grow { flex: 1; min-width: 0; }
.pcard-top h4 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.pcard-top p { font-size: 13px; color: #4f5b80; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-go { width: 30px; height: 30px; border-radius: 10px; flex: none; display: grid; place-items: center; color: var(--pc); background: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--pc) 18%, transparent); transition: transform .18s var(--ease); }
.pcard-go svg { width: 16px; height: 16px; }
.pcard:hover .pcard-go { transform: translateX(3px); }
.pcard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px 20px 6px; }
.pcard-stats div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); display: flex; flex-direction: column; }
.pcard-stats b { font-size: 20px; font-weight: 800; line-height: 1.15; }
.pcard-stats span { font-size: 11.5px; font-weight: 600; color: var(--ink-2); line-height: 1.3; }
.pcard-stats .warm { background: color-mix(in srgb, var(--pc) 8%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 20%, transparent); }
.pcard-stats .hot { background: var(--bad-soft); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .25); }
.pcard-stats .hot b, .pcard-stats .hot span { color: var(--bad); }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px 18px; margin-top: auto; }
.pcard-foot .stack .ava { width: 28px; height: 28px; font-size: 10px; box-shadow: 0 0 0 2px #fff; }
.pcard-noteam, .pcard-last { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.pcard-noteam svg, .pcard-last svg { width: 14px; height: 14px; color: var(--ink-3); }
.pcard-add { border: 0; cursor: pointer; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 230px; padding: 20px;
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(var(--accent-rgb), .03) 12px 24px), var(--surface); box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), .22); color: var(--ink-2); transition: box-shadow .2s, transform .18s var(--ease); }
.pcard-add:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--accent); }
.pcard-add .add-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--accent-grad); box-shadow: 0 10px 24px rgba(var(--accent-rgb), .3); margin-bottom: 6px; }
.pcard-add .add-ic svg { width: 24px; height: 24px; }
.pcard-add b { font-size: 16px; color: var(--ink); }
.pcard-add span { font-size: 13px; }
.pcard-help { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; background: radial-gradient(400px 200px at 100% 0%, rgba(var(--accent2-rgb), .08), transparent 70%), var(--surface); }
.pcard-help h4 { font-size: 16px; font-weight: 800; }
.ph-item { display: flex; gap: 12px; align-items: flex-start; }
.ph-item .n { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--accent); background: var(--accent-soft); }
.ph-item p { font-size: 13.5px; color: #4f5b80; line-height: 1.5; }
.ph-item b { color: var(--ink); }

/* ---------- планирование v2 ---------- */
.plan-page { max-width: 1680px; grid-template-columns: 340px minmax(0, 1fr) minmax(300px, 360px); }
.plan-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; }
.plan-week, .plan-up { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.plan-week .pe-card-h { justify-content: space-between; }
.wk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wk-stats div { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 6%, #fff); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .15); display: flex; flex-direction: column; }
.wk-stats b { font-size: 20px; font-weight: 800; }
.wk-stats span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.up-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-soft); text-decoration: none; color: inherit; }
.up-row:first-child { border-top: 0; padding-top: 0; }
.up-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.up-row b { font-size: 14px; }
.up-row:hover b { color: var(--accent); }
.part-empty.slot { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed rgba(var(--accent-rgb), .3);
  background: color-mix(in srgb, var(--accent) 3%, transparent); color: var(--accent); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.part-empty.slot svg { width: 16px; height: 16px; }
.part-empty.slot:hover { background: var(--accent-soft); border-color: var(--accent); }
.part-h b { color: var(--ink-2); }
@media (max-width: 1400px) { .plan-page { grid-template-columns: 320px minmax(0, 1fr); } .plan-side { grid-column: 1 / -1; position: static; flex-direction: row; } .plan-side > * { flex: 1; } }
@media (max-width: 980px) { .plan-side { flex-direction: column; } }

/* ---------- главная и звонки: две колонки на широком экране ---------- */
.home-grid, .calls-grid { display: grid; gap: 24px; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); max-width: 1500px; margin: 0 auto; }
.home-main, .calls-main { min-width: 0; display: flex; flex-direction: column; }
.home-side, .calls-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; }
.home-main .tiles { max-width: none; }
.home-main .hero { padding-top: 6px; }
.home-h { margin-top: 30px; }
.list.wide { max-width: none; margin: 0; }
.calls-main .search { margin-bottom: 14px; }
.ht-list { display: flex; flex-direction: column; }
.ht-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-soft); text-decoration: none; color: inherit; }
.ht-row:first-child { border-top: 0; padding-top: 2px; }
.ht-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ht-row b { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.ht-row:hover b { color: var(--accent); }
.ht-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 5px; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ht-dot.late { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.home-min { text-decoration: none; color: inherit; }
.home-min .usage { margin: 0; }
.pf-list { display: flex; flex-direction: column; gap: 4px; }
.pf-list button { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-align: left; }
.pf-list button .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-list button .cnt { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.pf-list button:hover { background: var(--surface-2); }
.pf-list button.on { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 1100px) { .home-grid, .calls-grid { grid-template-columns: 1fr; } .home-side, .calls-side { position: static; } }

/* мои дела, тариф, профиль — по ширине экрана и по центру */
.tasks-page { max-width: 1500px; margin-left: auto; margin-right: auto; grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); }
.proj-filter { max-width: 1500px; margin-left: auto; margin-right: auto; }
.billing { max-width: 1200px; margin: 0 auto; }
.prof { max-width: 1100px; margin: 0 auto; }

/* итоги звонка: основная колонка + сводка справа */
.sum { max-width: 1240px; }
.sum-layout { display: grid; gap: 20px; align-items: start; grid-template-columns: minmax(0, 1fr) 320px; }
.sum-body { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sum-body > .sum { max-width: none; }
.sum-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; }
.sum-side .proj-bar { flex-direction: column; align-items: stretch; }
.sm-meta { display: flex; flex-direction: column; }
.sm-meta div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.sm-meta div:first-child { border-top: 0; padding-top: 0; }
.sm-meta span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.sm-meta span svg { width: 15px; height: 15px; color: var(--ink-3); }
.sm-person { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.sm-person b { flex: 1; min-width: 0; }
@media (max-width: 1100px) { .sum-layout { grid-template-columns: 1fr; } .sum-side { position: static; order: -1; } }

/* установка как приложение */
.side-install { display: flex; align-items: center; gap: 10px; width: calc(100% - 4px); margin: 0 2px 10px; padding: 10px 12px; border: 0; border-radius: 14px; cursor: pointer; text-align: left; color: var(--side-ink); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font: inherit; transition: background .2s; }
.side-install:hover { background: rgba(255, 255, 255, .12); }
.side-install svg { width: 20px; height: 20px; flex: none; color: #3fd3b0; }
.side-install b { display: block; font-size: 13px; } .side-install small { display: block; font-size: 11px; color: var(--side-ink-2); }
.inst-banner { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; margin: 0 auto 10px; max-width: 900px; }
.inst-banner img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.inst-banner b { display: block; font-size: 14px; }
.inst-x { border: 0; background: none; padding: 6px; cursor: pointer; color: var(--ink-3); border-radius: 8px; display: grid; place-items: center; }
.inst-x svg { width: 16px; height: 16px; }
.inst-hero { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface-2); margin-bottom: 14px; }
.inst-hero img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.inst-hero b { display: block; font-size: 16px; } .inst-hero span { font-size: 13px; color: var(--ink-3); }
.inst-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inst-steps li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-soft); font-size: 14px; }
.inst-steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 13px; color: #fff; background: var(--accent-grad, var(--accent)); }
.inst-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--accent); background: var(--accent-soft); }
.inst-ic svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .inst-banner .tiny { display: none; } }

/* ---------- телефон: последняя волна правок (идёт в конце файла, чтобы перекрыть широкие раскладки) ---------- */
@media (max-width: 980px) {
  .plan-page { grid-template-columns: minmax(0, 1fr); }
  .plan-side { grid-column: auto; flex-direction: column; }
  .tasks-page { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  /* шапка: заголовок в одну строку, второстепенные кнопки — круглыми значками */
  .topbar { gap: 8px; }
  .topbar h1 { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 19px; }
  .topbar .btn { flex: none; height: 40px; padding: 0 14px; font-size: 14px; }
  .topbar .btn:not(.primary) { width: 40px; padding: 0; font-size: 0; gap: 0; justify-content: center; }
  .topbar .btn svg { width: 18px; height: 18px; }
  .topbar > a, .topbar > button { flex: none; }
  /* главная: три плитки в ряд, компактно */
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: none; }
  .tile { height: 118px; flex-direction: column; justify-content: flex-end; align-items: center; padding: 12px 6px 14px; gap: 6px; text-align: center; border-radius: 18px; font-size: 13.5px; }
  .tile .art { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 54px; height: 54px; }
  .tile .lbl { align-items: center; line-height: 1.2; }
  .tile small { display: none; }
  .hero { padding: 10px 0 16px; } .hero h2 { font-size: 23px; } .hero .hello { font-size: 14px; margin-bottom: 4px; }
  .save-login { flex-wrap: nowrap; align-items: flex-start; padding: 14px; gap: 12px; }
  .save-login > svg { margin-top: 2px; }
  .save-login .grow { min-width: 0; }
  .save-login .btn { display: none; }
  .save-login b { color: var(--accent); }
  /* итоги звонка: сначала само содержание, сводка — после */
  .sum-side { order: 1; }
  /* цифры в карточках: подписи переносятся, а не обрезаются */
  .pp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-stats .st { min-width: 0; padding: 10px; gap: 10px; }
  .pp-stats .st span { white-space: normal; line-height: 1.25; }
  .pp-stats .st-ic { width: 32px; height: 32px; }
  /* «Мои задачи»: сначала список, помощник ниже */
  .tasks-page .ask { order: 2; }
  .mobile-nav a { padding: 6px 4px; font-size: 10px; }
}
@media (max-width: 380px) { .tile { font-size: 12.5px; } .topbar .btn.primary { padding: 0 12px; } }
@media (max-width: 820px) {
  .tabs { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .tabs::-webkit-scrollbar, .proj-filter::-webkit-scrollbar { display: none; }
  .tabs > * { flex: none; }
  .proj-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .proj-filter > * { flex: none; }
  .call-row .chip, .call-row .meta .chip { white-space: nowrap; }
}
/* «Люди» на телефоне: каждый человек — отдельная карточка в рамке */
@media (max-width: 640px) {
  .pr-list { background: none; box-shadow: none; padding: 0; display: flex; flex-direction: column; gap: 10px; border-radius: 0; }
  .pr-row { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 12px; padding: 14px 14px 12px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft), 0 4px 14px rgba(19, 28, 58, .05); }
  .pr-row:first-child { border-top: 0; }
  .pr-row:hover { background: var(--surface); }
  .pr-row > .ava { width: 46px; height: 46px; font-size: 15px; grid-row: 1; }
  .pr-main { gap: 5px; align-self: center; }
  .pr-name b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pr-meta { gap: 4px 10px; font-size: 12.5px; }
  .pr-projects { margin-top: 2px; }
  .pr-projects .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pr-side { grid-column: 1 / -1; width: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
  .pr-side .role-sel { width: auto; flex: none; min-width: 0; height: 34px; padding: 0 30px 0 12px; border: 0; border-radius: 10px; background-color: var(--surface-2); font-weight: 700; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
  .pr-side .role-badge { margin-right: auto; }
  .pr-side .icon-only { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 10px; color: var(--bad); background: var(--bad-soft); }
  .pr-side .icon-only svg { width: 16px; height: 16px; }
}
/* карточка проекта: значок и название — на одной оси, описание — строкой ниже */
.pcard-top { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; row-gap: 10px; }
.pcard-top h4 { margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pcard-top p { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) {
  .pcard-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pcard { border-radius: 20px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 22%, var(--line-soft)), 0 6px 18px rgba(19, 28, 58, .06); }
  .pcard-top { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 14px 14px 14px 16px; column-gap: 12px; }
  .pcard-top .pc-ic { width: 44px; height: 44px; border-radius: 14px; font-size: 15px; }
  .pcard-top h4 { font-size: 16px; }
  .pcard-stats { padding: 12px 14px 4px; gap: 6px; }
  .pcard-stats div { padding: 8px 10px; }
  .pcard-stats b { font-size: 18px; }
  .pcard-foot { padding: 10px 14px 14px; }
}
@media (max-width: 640px) {
  .pcard-add { min-height: 0; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 14px 16px; text-align: left; border-radius: 20px; display: grid; grid-template-columns: 44px 1fr; }
  .pcard-add .add-ic { width: 44px; height: 44px; border-radius: 14px; margin: 0; grid-row: span 2; }
  .pcard-add b { align-self: end; font-size: 15px; } .pcard-add span:not(.add-ic) { align-self: start; font-size: 12.5px; }
}

@media (max-width: 820px) {
  .call-dock { gap: 6px; padding: 12px 8px 10px; justify-content: center; }
  .call-dock .round-wrap { min-width: 0; flex: 0 1 62px; }
  .call-dock .round { width: 54px; height: 54px; } .call-dock .round svg { width: 22px; height: 22px; } .call-dock .round.end { width: 64px; }
  .call-dock .round-wrap span { font-size: 11px; white-space: nowrap; }
}
@media (max-width: 820px) {
  .call-dock { gap: 2px; padding: 10px 6px 8px; max-width: 100%; box-sizing: border-box; }
  .call-dock .round-wrap { flex: 1 1 0; gap: 6px; }
  .call-dock .round { width: 48px; height: 48px; } .call-dock .round svg { width: 21px; height: 21px; } .call-dock .round.end { width: 56px; }
  .call-dock .round-wrap span { font-size: 10.5px; }
}

/* ---------- звонок с телефона: полноэкранный, как обычный звонок ---------- */
.call-name { display: none; }
@media (max-width: 820px) {
  html.in-call, html.in-call body { overflow: hidden; height: 100%; overscroll-behavior: none; }
  .in-call .call-wrap {
    position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; overflow: hidden; touch-action: none; overscroll-behavior: none;
    padding: calc(env(safe-area-inset-top) + 14px) 16px calc(env(safe-area-inset-bottom) + 14px);
    background: radial-gradient(90% 55% at 50% 0%, rgba(110, 98, 255, .55), transparent 70%), radial-gradient(70% 45% at 85% 100%, rgba(63, 211, 176, .22), transparent 70%), linear-gradient(180deg, #121c4d 0%, #0b1431 55%, #060a1f 100%);
    color: #fff; -webkit-user-select: none; user-select: none;
  }
  .in-call .call-stage { flex: 1; min-height: 0; justify-content: flex-start; gap: 0; padding: 0; }
  .in-call .call-title { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 8px; }
  .in-call .call-name { display: block; max-width: 100%; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .in-call .call-title .tiny { padding: 6px 14px; font-size: 12.5px; color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); backdrop-filter: blur(12px); }
  .in-call .call-title #timer { color: #fff; }
  .in-call .rec-dot { box-shadow: 0 0 0 4px rgba(255, 95, 109, .25); background: #ff5f6d; }
  .in-call .people-grid { flex: 1; align-content: center; gap: 26px 22px; width: 100%; }
  .in-call .person { width: 132px; gap: 10px; }
  .in-call .person .ava { width: 112px; height: 112px; font-size: 38px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 0 0 14px rgba(255, 255, 255, .03), 0 20px 50px rgba(0, 0, 0, .35); }
  .in-call .people-grid:has(.person:only-child) .person { width: 200px; }
  .in-call .people-grid:has(.person:only-child) .ava { width: 150px; height: 150px; font-size: 52px; }
  .in-call .person.speaking .ava { box-shadow: 0 0 0 4px #0b1431, 0 0 0 8px #3fd3b0, 0 0 50px rgba(63, 211, 176, .6); }
  .in-call .person b { color: #fff; font-size: 16px; }
  .in-call .person span { color: rgba(255, 255, 255, .55); font-size: 12.5px; }
  .in-call .person .muted-badge { width: 34px; height: 34px; box-shadow: 0 0 0 3px #0b1431; }
  .in-call .waiting-note { color: rgba(255, 255, 255, .65); font-size: 14px; margin: 0 auto 18px; }
  .in-call .waiting-note .btn { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); border: 0; }
  /* кнопки — сетка 3×2, красная «Выйти» отдельной строкой, как в звонилке телефона */
  .in-call .call-bar { position: static; padding: 0; }
  .in-call .call-dock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px; width: 100%; max-width: 360px; margin: 0 auto; padding: 0; background: none; box-shadow: none; backdrop-filter: none; border-radius: 0; }
  .in-call .call-dock .round-wrap { flex: none; gap: 7px; color: rgba(255, 255, 255, .72); }
  .in-call .call-dock .round-wrap span { font-size: 12px; font-weight: 600; }
  .in-call .call-dock .round { width: 64px; height: 64px; color: #fff; background: rgba(255, 255, 255, .13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); backdrop-filter: blur(14px); }
  .in-call .call-dock .round svg { width: 26px; height: 26px; }
  .in-call .call-dock .round.on, .in-call .call-dock .round.off { background: #fff; color: #0b1431; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
  .in-call .call-dock .round-wrap:has(.end) { grid-column: 1 / -1; margin-top: 6px; }
  .in-call .call-dock .round.end { width: 76px; height: 76px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #ff6b78, #e5484d); box-shadow: 0 14px 34px rgba(229, 72, 77, .45); }
  .in-call .call-dock .round.end svg { width: 32px; height: 32px; }
  .in-call .round:hover { transform: none; }
  /* расшифровка — шторка снизу, её можно листать */
  .in-call .live-tr { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(env(safe-area-inset-bottom) + 8px); height: 62vh; z-index: 45; border-radius: 22px; touch-action: pan-y; }
  .in-call .lt-body { touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .in-call .audio-gate { top: calc(env(safe-area-inset-top) + 12px); width: calc(100% - 32px); }
}
@media (max-width: 820px) and (max-height: 700px) {
  .in-call .call-dock { gap: 10px; } .in-call .call-dock .round { width: 56px; height: 56px; } .in-call .call-dock .round.end { width: 66px; height: 66px; }
  .in-call .people-grid:has(.person:only-child) .ava { width: 120px; height: 120px; }
}
@media (max-width: 820px) {
  .in-call .call-dock { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 16px; column-gap: 0; }
  .in-call .call-dock .round-wrap { flex: 0 0 33.333%; }
  .in-call .call-dock .round-wrap:has(.end) { flex-basis: 100%; }
}

/* без увеличения страницы двойным касанием (на iPhone частые нажатия кнопок приближали сайт) */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* звонок с телефона: четыре кнопки в один ряд, место под нижнюю панель Safari */
@media (max-width: 820px) {
  .in-call .call-dock { flex-wrap: nowrap; justify-content: space-between; max-width: 340px; }
  .in-call .call-dock .round-wrap, .in-call .call-dock .round-wrap:has(.end) { flex: 0 0 auto; margin-top: 0; }
  .in-call .call-dock .round, .in-call .call-dock .round.end { width: 64px; height: 64px; }
  .in-call .call-dock .round.end svg { width: 28px; height: 28px; }
  .in-call .people-grid:has(.person:only-child) .ava { width: 132px; height: 132px; font-size: 46px; }
  .in-call .waiting-note { margin-bottom: 26px; }
}
@media (max-width: 820px) and (display-mode: browser) {
  .in-call .call-wrap { padding-bottom: calc(env(safe-area-inset-bottom) + 84px); }
}

/* iPhone приближает страницу при нажатии на поле со шрифтом мельче 16px — на телефоне все поля не мельче 16px */
@media (max-width: 820px) {
  input, select, textarea, .input { font-size: 16px !important; }
}

/* ответственный в задаче */
.tk-meta .who { display: inline-flex; align-items: center; gap: 6px; border: 0; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer; padding: 3px 8px 3px 3px; margin-left: -3px; border-radius: 99px; background: transparent; transition: background .15s; }
.tk-meta .who:hover { background: var(--surface-2); }
.tk-meta .who > svg:last-child { width: 13px; height: 13px; color: var(--ink-3); }
.tk-meta .who.none { color: var(--accent); padding-left: 8px; background: var(--accent-soft); }
.tk-meta .who.none > svg:first-child { width: 14px; height: 14px; }
.as-task { margin: -6px 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-search { margin-bottom: 10px; }
.as-list { display: flex; flex-direction: column; gap: 4px; max-height: 55vh; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.as-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; font: inherit; text-align: left; color: var(--ink); }
.as-row:hover { background: var(--surface-2); }
.as-row.on { background: var(--accent-soft); }
.as-row b { display: block; font-size: 14.5px; } .as-row small { font-size: 12px; color: var(--ink-3); }
.as-row > svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.as-none { margin-top: 4px; border-top: 1px solid var(--line-soft); border-radius: 0 0 12px 12px; padding-top: 12px; }
.as-x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); flex: none; }
.as-x svg { width: 16px; height: 16px; }
.as-row .grow { flex: 1; min-width: 0; }

/* дубли и ссылка для входа */
.pr-fix { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pr-fix .link-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }
.pr-fix .link-btn svg { width: 13px; height: 13px; }
.ll-who { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); margin-bottom: 12px; }
.ll-who b { display: block; }
.ll-box { display: flex; gap: 8px; } .ll-box .input { flex: 1; min-width: 0; font-size: 13px; }
.dup-hint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--ink-2); font-size: 13px; line-height: 1.45; margin-bottom: 4px; }
.dup-hint svg { width: 18px; height: 18px; flex: none; color: var(--warn); margin-top: 1px; }
.dup-hint b { color: var(--ink); }

/* показ экрана */
.screen-stage { width: 100%; max-width: 1280px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.scr-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.scr-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr-dot { width: 9px; height: 9px; border-radius: 50%; background: #3fd39b; box-shadow: 0 0 0 4px rgba(63, 211, 155, .2); flex: none; }
.scr-full svg { width: 16px; height: 16px; }
.scr-stop { color: var(--bad); }
.scr-video { position: relative; border-radius: 18px; overflow: hidden; background: #0b1431; box-shadow: 0 20px 50px rgba(11, 20, 49, .25); display: grid; place-items: center; }
.scr-video video { display: block; width: 100%; max-height: calc(100vh - 330px); max-height: calc(100dvh - 330px); object-fit: contain; }
.call-wrap.has-screen .call-stage { justify-content: flex-start; gap: 16px; }
.call-wrap.has-screen .people-grid { gap: 10px 18px; max-width: 100%; }
.call-wrap.has-screen .person { width: 84px; gap: 6px; }
.call-wrap.has-screen .person .ava { width: 52px; height: 52px; font-size: 19px; }
.call-wrap.has-screen .person.speaking .ava { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #3fd39b; animation: none; }
.call-wrap.has-screen .person .muted-badge { width: 20px; height: 20px; right: -2px; bottom: -2px; box-shadow: 0 0 0 2px #fff; }
.call-wrap.has-screen .person .muted-badge svg { width: 11px; height: 11px; }
.call-wrap.has-screen .person b { font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-wrap.has-screen .person span { font-size: 11px; }
@media (max-width: 820px) {
  .in-call .call-wrap.has-screen .call-stage { gap: 12px; }
  .in-call .screen-stage { flex: 1; min-height: 0; padding: 0 2px; }
  .in-call .scr-head { color: #fff; font-size: 13px; }
  .in-call .scr-full { color: #fff; }
  .in-call .scr-video { flex: 1; min-height: 0; border-radius: 14px; background: #000; }
  .in-call .scr-video video { width: 100%; height: 100%; max-height: none; }
  .in-call .call-wrap.has-screen .people-grid { flex: none; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 12px; padding: 4px 4px 2px; }
  .in-call .call-wrap.has-screen .person, .in-call .call-wrap.has-screen .people-grid:has(.person:only-child) .person { width: 64px; flex: none; gap: 5px; }
  .in-call .call-wrap.has-screen .person .ava, .in-call .call-wrap.has-screen .people-grid:has(.person:only-child) .ava { width: 44px; height: 44px; font-size: 16px; box-shadow: none; }
  .in-call .call-wrap.has-screen .person.speaking .ava { box-shadow: 0 0 0 2px #0b1431, 0 0 0 4px #3fd3b0; }
  .in-call .call-wrap.has-screen .person b { font-size: 11.5px; }
  .in-call .call-wrap.has-screen .person span { display: none; }
}

/* выйти / завершить для всех */
.leave-opts { display: flex; flex-direction: column; gap: 8px; }
.leave-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border: 0; border-radius: 16px; background: var(--surface-2); font: inherit; text-align: left; color: var(--ink); cursor: pointer; transition: background .15s; }
.leave-opt:hover { background: var(--line-soft); }
.leave-opt b { display: block; font-size: 15.5px; } .leave-opt small { font-size: 13px; color: var(--ink-3); }
.lo-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
.lo-ic svg { width: 20px; height: 20px; }
.leave-opt.danger b { color: var(--bad); }
.leave-opt.danger .lo-ic { background: linear-gradient(135deg, #ff6b78, #e5484d); color: #fff; box-shadow: 0 8px 20px rgba(229, 72, 77, .3); }
.leave-opt:disabled { opacity: .6; cursor: wait; }
