/* ZvonZilla — личный кабинет. Палитра взята из логотипа: малиново-розовый + глубокий тёмно-синий. */
:root {
  --brand: #ff1f6e;
  --brand-d: #e0004f;
  --grad: linear-gradient(90deg, #ff3d8f 0%, #f20a63 55%, #e60058 100%);
  --ink: #141a2e;
  --muted: #5d6379;
  --faint: #8b90a5;
  --line: #eceef5;
  --line-2: #dfe2ee;
  --tint: #fff0f6;
  --tint-2: #ffe1ed;
  --bg: #fafbfe;
  --card: #fff;
  --ok: #0c8f62;      --ok-bg: #e5f7ef;
  --warn: #a96300;    --warn-bg: #fff3dd;
  --bad: #c9304a;     --bad-bg: #fde9ed;
  --info: #3a55c8;    --info-bg: #eaeefd;
  --mute-bg: #eff1f7;
  --r: 20px;
  --shadow: 0 10px 40px rgba(20, 26, 46, .06);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.45; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid rgba(255, 31, 110, .35); outline-offset: 2px; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.fill { fill: currentColor; }

/* ---------- Каркас ---------- */
.app > * { min-width: 0; }
.app { display: grid; grid-template-columns: 296px 1fr; min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 26px 22px 24px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; }
.brand img { width: 100%; max-width: 232px; display: block; margin: 0 auto 0 -4px; }
.nav { display: flex; flex-direction: column; gap: 8px; }
.nav a { display: flex; align-items: center; gap: 13px; height: 52px; padding: 0 16px; border-radius: 16px; font-weight: 600; font-size: 16px; white-space: nowrap; color: var(--ink); transition: background .15s, color .15s; }
.nav a .ic { width: 25px; height: 25px; color: #3a4160; }
.nav a:hover { background: var(--tint); }
.nav a.on { background: var(--grad); color: #fff; box-shadow: 0 12px 26px rgba(242, 10, 99, .30); }
.nav a.on .ic { color: #fff; }

.balance { margin-top: auto; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; background: #fff; box-shadow: var(--shadow); }
.balance .b-top { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.balance .b-top .ic { color: var(--brand); width: 26px; height: 26px; }
.balance .b-min { margin-top: 6px; font-weight: 700; font-size: 17px; }
.balance .b-min small { font-weight: 500; color: var(--muted); font-size: 14px; }
.balance .b-sub { margin-top: 2px; color: var(--muted); font-size: 13px; }
.balance .bar { height: 7px; border-radius: 99px; background: var(--tint-2); margin-top: 12px; overflow: hidden; }
.balance .bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.balance.low { border-color: #ffc2d6; background: var(--tint); }
.balance.low .b-min { color: var(--brand-d); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { height: 80px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 44px; position: sticky; top: 0; z-index: 20; }
.top h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.top-r { display: flex; align-items: center; gap: 18px; }
.vr { width: 1px; height: 38px; background: var(--line); }
.icon-btn { position: relative; width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; display: grid; place-items: center; color: #2b3150; }
.icon-btn:hover { background: var(--tint); }
.icon-btn .dot { position: absolute; top: 9px; right: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.user-btn { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px; border-radius: 99px; }
.user-btn:hover { background: var(--tint); }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: #eceef5; display: grid; place-items: center; color: #4a5070; }
.avatar .ic { width: 26px; height: 26px; }
.chev { width: 20px; height: 20px; color: #4a5070; }
.pop-wrap { position: relative; }
.pop { position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(20, 26, 46, .14); padding: 10px; z-index: 40; }
.pop.right { left: auto; right: 0; min-width: 260px; }
.pop h4 { margin: 8px 10px 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.pop .item { display: flex; gap: 12px; padding: 10px; border-radius: 12px; font-size: 14.5px; align-items: flex-start; }
.pop .item .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--brand); }
.pop .item.warn .ic { color: var(--warn); }
.pop .empty { padding: 14px 10px; color: var(--muted); font-size: 14.5px; }
.pop button.row, .pop a.row { display: flex; width: 100%; gap: 12px; align-items: center; padding: 11px 12px; border: 0; background: none; border-radius: 12px; text-align: left; font-weight: 600; }
.pop button.row:hover, .pop a.row:hover { background: var(--tint); }
.pop .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 14px; color: var(--muted); word-break: break-all; }

.view { padding: 26px 44px 56px; max-width: 1480px; width: 100%; }

/* ---------- Заголовок страницы ---------- */
.page-head { display: flex; align-items: center; gap: 22px; margin-bottom: 20px; }
.page-head .tile { width: 84px; height: 84px; border-radius: 26px; background: var(--tint-2); display: grid; place-items: center; color: var(--brand); flex: none; }
.page-head .tile .ic { width: 40px; height: 40px; stroke-width: 1.7; }
.page-head h1 { margin: 0; font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.page-head p { margin: 6px 0 0; font-size: 18px; color: var(--muted); }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Карточки ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.card.pad { padding: 28px; }
.cols { display: grid; grid-template-columns: 1fr 1px 1.18fr; gap: 0 38px; padding: 26px 34px 24px; }
.cols .sep { background: var(--line); }
.step { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.num { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 21px; display: grid; place-items: center; flex: none; box-shadow: 0 8px 18px rgba(242, 10, 99, .28); }
.step h3 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.step p { margin: 4px 0 0; color: var(--muted); font-size: 16.5px; }

.drop { border: 2px dashed #f6a6c3; background: #fff9fc; border-radius: 22px; padding: 26px 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transition: background .15s, border-color .15s; }
.drop.over { background: var(--tint); border-color: var(--brand); }
.drop .drop-ic { width: 66px; height: 66px; color: var(--brand); stroke-width: 1.5; margin-bottom: 6px; }
.drop strong { font-size: 21px; font-weight: 800; }
.drop span { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.or { display: flex; align-items: center; gap: 14px; margin: 12px 0; color: var(--muted); font-size: 15px; }
.or::before, .or::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.summary { margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; background: var(--ok-bg); color: #0a6b49; font-weight: 700; }
.summary small { font-weight: 500; color: #3d7f67; }
.summary .link { margin-left: auto; }

.area { position: relative; }
.area textarea { width: 100%; min-height: 232px; resize: vertical; border: 1.5px solid #d6daea; border-radius: 20px; padding: 22px 22px 46px; font-size: 17px; line-height: 1.5; background: #fff; transition: border-color .15s, box-shadow .15s; }
.area textarea::placeholder { color: #7b8097; }
.area textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 31, 110, .12); }
.counter { position: absolute; right: 22px; bottom: 14px; color: var(--muted); font-size: 15px; font-weight: 600; pointer-events: none; }
.hint { margin-top: 14px; display: flex; gap: 14px; align-items: flex-start; background: var(--tint); border-radius: 18px; padding: 18px 20px; color: #2c3250; font-size: 15.5px; }
.hint .ic { color: var(--brand); width: 28px; height: 28px; fill: none; margin-top: 1px; }
.hint p { margin: 0; }
.cta { border-top: 1px solid var(--line); padding: 20px 34px 22px; background: #fff; border-radius: 0 0 26px 26px; }
.cta .note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 14.5px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 14px; border: 1.5px solid transparent; font-weight: 700; font-size: 15.5px; transition: transform .08s, box-shadow .15s, background .15s, opacity .15s; white-space: nowrap; }
.btn .ic { width: 21px; height: 21px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 14px 30px rgba(242, 10, 99, .30); }
.btn.primary:hover:not(:disabled) { box-shadow: 0 16px 36px rgba(242, 10, 99, .42); }
.btn.primary .ic.fill { fill: #fff; stroke: #fff; }
.btn.xl { width: 100%; height: 70px; border-radius: 22px; font-size: 27px; font-weight: 800; letter-spacing: -.01em; }
.btn.xl .ic { width: 32px; height: 32px; }
.btn.lg { height: 54px; font-size: 17px; border-radius: 16px; }
.btn.soft { background: var(--tint); color: var(--brand-d); border-color: #ffc6da; }
.btn.soft:hover { background: var(--tint-2); }
.btn.outline { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn.outline:hover { border-color: #f6a6c3; background: #fffafc; }
.btn.danger { background: #fff; color: var(--bad); border-color: #f6c5cd; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.block { width: 100%; height: 56px; font-size: 17px; border-radius: 16px; }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.sm .ic { width: 18px; height: 18px; }
.link { border: 0; background: none; color: var(--brand-d); font-weight: 700; padding: 4px 0; }
.link:hover { text-decoration: underline; }

/* ---------- Бейджи, прогресс ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-lead { background: var(--ok-bg); color: var(--ok); }
.b-not_lead { background: var(--mute-bg); color: #4b5272; }
.b-failed { background: var(--bad-bg); color: var(--bad); }
.b-pending { background: var(--mute-bg); color: var(--muted); }
.b-calling { background: var(--info-bg); color: var(--info); }
.b-running { background: var(--info-bg); color: var(--info); }
.b-running::before, .b-calling::before { animation: pulse 1.2s infinite; }
.b-completed { background: var(--ok-bg); color: var(--ok); }
.b-stopped { background: var(--warn-bg); color: var(--warn); }
@keyframes pulse { 50% { opacity: .25; } }
.progress { height: 10px; border-radius: 99px; background: var(--tint-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .4s; }

/* ---------- Таблицы ---------- */
.table-card { overflow: hidden; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 720px; }
.tbl th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; padding: 14px 20px; background: #fcfcfe; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 15px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 15px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: #fffafc; }
.tbl .num-c { font-variant-numeric: tabular-nums; }
.tbl .phone { font-weight: 700; font-variant-numeric: tabular-nums; }
.tbl .cmt { color: var(--muted); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.mini .progress { flex: 1; height: 8px; }
.mini small { color: var(--muted); font-variant-numeric: tabular-nums; }
.toolbar { display: flex; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--faint); }
.search input { width: 100%; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); padding: 0 14px 0 42px; background: #fff; }
.toolbar select { height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); padding: 0 14px; background: #fff; }
.search input:focus, .toolbar select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 31, 110, .12); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.empty-state { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty-state .ic { width: 52px; height: 52px; color: #f3a1bf; margin-bottom: 10px; }
.empty-state h3 { margin: 0 0 6px; color: var(--ink); font-size: 21px; }

/* ---------- Кампания ---------- */
.run { padding: 22px 26px; display: grid; gap: 14px; margin-top: 22px; }
.run-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.run-top h3 { margin: 0; font-size: 20px; font-weight: 800; }
.run-top .grow { margin-left: auto; display: flex; gap: 10px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.kpi { border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; background: #fff; box-shadow: var(--shadow); }
.kpi .k-l { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.kpi .k-v { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .k-v small { font-size: 17px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.kpi .k-s { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.kpi.accent { background: var(--tint); border-color: #ffd0e1; }
.kpi.accent .k-v { color: var(--brand-d); }
.prompt-box { white-space: pre-wrap; background: #fafbfe; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; color: #2c3250; font-size: 15px; max-height: 220px; overflow: auto; }
details.fold summary { cursor: pointer; font-weight: 700; color: var(--brand-d); padding: 4px 0; }

/* ---------- Воронка (статистика) ---------- */
.funnel { display: grid; gap: 18px; padding: 28px; }
.funnel h3 { margin: 0; font-size: 20px; font-weight: 800; }
.f-row { display: grid; grid-template-columns: 210px 1fr 190px; gap: 16px; align-items: center; }
.f-row .f-name { font-weight: 600; }
.f-track { height: 16px; border-radius: 8px; background: var(--mute-bg); overflow: hidden; }
.f-track i { display: block; height: 100%; background: var(--brand); border-radius: 8px; transition: width .5s; min-width: 3px; }
.f-val { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.f-val small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }

/* ---------- Шаблоны ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.tpl { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.tpl h3 { margin: 0; font-size: 19px; font-weight: 800; }
.tpl p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; flex: 1; }
.tpl .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Формы, модалки ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { font-weight: 700; font-size: 14.5px; }
.field input, .field textarea { width: 100%; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 13px 16px; background: #fff; }
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.form-err { color: var(--bad); font-weight: 600; min-height: 22px; margin: 0 0 8px; font-size: 14.5px; }
.modal { position: fixed; inset: 0; background: rgba(20, 26, 46, .45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; z-index: 100; }
.m-card { background: #fff; border-radius: 26px; width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 28px; box-shadow: 0 30px 80px rgba(20, 26, 46, .3); }
.m-card.wide { width: min(780px, 100%); }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.m-head h3 { margin: 0; font-size: 24px; font-weight: 800; }
.m-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.fact { background: #fafbfe; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.fact small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-bottom: 3px; }
.fact b { font-size: 17px; }
.summary-ai { background: var(--tint); border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; font-size: 15px; }
.summary-ai b { display: block; margin-bottom: 4px; color: var(--brand-d); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.chat { display: grid; gap: 8px; margin-top: 6px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.msg.bot { background: var(--tint); border-bottom-left-radius: 5px; justify-self: start; }
.msg.cli { background: var(--mute-bg); border-bottom-right-radius: 5px; justify-self: end; }
.msg small { display: block; font-size: 11.5px; font-weight: 700; color: var(--faint); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .05em; }
audio { width: 100%; margin: 4px 0 16px; }
.tpl-pick { display: grid; gap: 10px; max-height: 50vh; overflow: auto; }
.tpl-pick button { text-align: left; border: 1.5px solid var(--line-2); background: #fff; border-radius: 16px; padding: 14px 16px; }
.tpl-pick button:hover { border-color: #f6a6c3; background: #fffafc; }
.tpl-pick b { display: block; }
.tpl-pick span { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.parse-info { color: var(--muted); font-size: 14.5px; margin: -6px 0 14px; }
.parse-info b { color: var(--ink); }

.toasts { position: fixed; right: 22px; bottom: 22px; display: grid; gap: 10px; z-index: 200; }
.toast { background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: 0 14px 40px rgba(20, 26, 46, .3); font-weight: 600; max-width: 420px; animation: in .2s ease-out; }
.toast.err { background: #b3213c; }
.toast.ok { background: #0a7a54; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Вход ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 80% -10%, #ffd6e6 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #ffe9f1 0%, transparent 55%), var(--bg); }
.auth-card { width: min(460px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 30px; box-shadow: 0 30px 80px rgba(20, 26, 46, .10); padding: 34px 34px 30px; }
.auth-logo { width: 100%; max-width: 330px; display: block; margin: 0 auto 8px; }
.auth-sub { text-align: center; color: var(--muted); margin: 0 0 22px; font-size: 15.5px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--mute-bg); border-radius: 14px; padding: 4px; margin-bottom: 22px; }
.tab { border: 0; background: none; height: 42px; border-radius: 11px; font-weight: 700; color: var(--muted); }
.tab.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(20, 26, 46, .08); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; gap: 28px; }
  .cols .sep { display: none; }
  .view { padding: 28px 24px 48px; }
  .top { padding: 0 24px; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: column; gap: 14px; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand img { max-width: 190px; margin: 0; }
  .nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .nav a { height: 46px; padding: 0 14px; font-size: 15px; white-space: nowrap; }
  .nav a .ic { width: 21px; height: 21px; }
  .balance { margin-top: 0; }
  .top { position: static; height: 70px; padding: 0 16px; }
  .view { padding: 20px 16px 40px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .cta .note { font-size: 13px; }
  .top h2 { font-size: 22px; }
  .page-head .tile { width: 68px; height: 68px; border-radius: 20px; }
  .page-head .tile .ic { width: 34px; height: 34px; }
  .page-head h1 { font-size: 30px; }
  .page-head p { font-size: 16px; }
  .page-head { flex-wrap: wrap; gap: 16px; }
  .f-row { grid-template-columns: 1fr; gap: 6px; }
  .f-val { text-align: left; }
  .btn.xl { height: 66px; font-size: 21px; }
  .cols { padding: 24px 20px; }
  .cta { padding: 20px; }
}

.chat { height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg, #f4f6fb); border-radius: 12px; }
.bub { max-width: 80%; padding: 9px 13px; border-radius: 14px; line-height: 1.4; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.bub.bot { background: #fff; align-self: flex-start; border: 1px solid #e3e7f1; }
.bub.me { background: var(--brand, #5b5bf0); color: #fff; align-self: flex-end; }
.bub.sys { align-self: center; color: #7a839c; font-size: 12px; }
.bub.err { color: #c0392b; }
.chat-in { display: flex; gap: 8px; margin-top: 10px; }
.chat-in input { flex: 1; padding: 10px 12px; border: 1px solid #d5dbea; border-radius: 10px; font: inherit; }
.m-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
