/* Мини-приложение Davra */
html, body { min-height: 100%; }
body { overscroll-behavior-y: none; }
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; }
.app.has-tabs { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 600px) { .app:not(.embed) { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: 0 16px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.top-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark svg { width: 26px; height: 26px; color: var(--ink); flex: none; }
.top-ev { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.top-ev b { font: 600 14.5px/1.2 var(--display); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-ev span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.brand { font: 600 18px/1 var(--display); letter-spacing: -0.03em; }
.demo-strip { padding: 8px 16px; font-size: 12px; line-height: 1.4; color: var(--warn); background: var(--warn-soft); border-bottom: 1px solid var(--line); }

.view { padding: 16px; }
.view > * + * { margin-top: 14px; }

/* Нижние вкладки */
.tabbar {
  position: fixed; left: 50%; bottom: 0; z-index: 30; transform: translateX(-50%); width: 100%; max-width: 560px;
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, .18);
}
.tabbar button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; height: 54px; border: 0; background: none;
  color: var(--faint); font-size: 11px; font-weight: 500; border-radius: 10px; -webkit-tap-highlight-color: transparent;
}
.tabbar button svg { width: 23px; height: 23px; }
.tabbar button[aria-current="page"] { color: var(--ink); }
.tabbar button[aria-current="page"]::after { content: ''; position: absolute; top: -7px; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
.tabbar .badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 600 10.5px/17px var(--mono); font-style: normal; }

/* Загрузка и ошибки */
.center-screen { min-height: calc(100vh - 140px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.spinner.sm { width: 20px; height: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.err-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--neg-soft); color: var(--neg); }
.err-ico svg { width: 22px; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* Приветствие */
.welcome { display: flex; flex-direction: column; gap: 22px; padding-top: 10px; }
.ev-block h1 { font-size: 30px; margin: 10px 0 8px; letter-spacing: -0.03em; }
.ev-meta { display: grid; grid-template-columns: 1.1fr 1.5fr .8fr; margin: 20px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ev-meta div { padding: 12px 10px 12px 0; min-width: 0; }
.ev-meta div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.ev-meta dt { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.ev-meta dd { margin: 0; font-weight: 500; font-size: 13.5px; line-height: 1.3; }
.value { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.value li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 14px; background: var(--surface); border: 1px solid var(--line); }
.value li:first-child { border-radius: 14px 14px 4px 4px; }
.value li:last-child { border-radius: 4px 4px 14px 14px; }
.value li > .mono { font-size: 12px; color: var(--accent); padding-top: 2px; }
.value li div { display: flex; flex-direction: column; gap: 2px; }
.value li b { font-weight: 600; font-size: 15px; }
.value li span:not(.mono) { color: var(--muted); font-size: 13.5px; }
.welcome-cta { display: flex; flex-direction: column; gap: 12px; }
.fine { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.demo-fine { color: var(--warn); }

/* Анкета */
.wizard { display: flex; flex-direction: column; min-height: calc(100vh - 88px); min-height: calc(100dvh - 88px); }
.wz-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 14px; }
.wz-progress i { height: 3px; border-radius: 2px; background: var(--line-2); transition: background .3s var(--ease); }
.wz-progress i.on { background: var(--ink); }
.wz-body { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 8px 0 20px; }
.wz-body h2 { font-size: 24px; letter-spacing: -0.025em; }
.sub-note { margin-top: -10px; font-size: 14px; }
.role-list { display: grid; gap: 8px; }
.role-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px 14px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.role-opt:hover { border-color: var(--line-2); }
.ro-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ro-text b { font-weight: 600; font-size: 15px; }
.ro-text span { font-size: 13px; color: var(--muted); }
.ro-check { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; }
.ro-check svg { width: 14px; }
.role-opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.role-opt[aria-pressed="true"] .ro-check { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.field { display: flex; flex-direction: column; gap: 8px; position: relative; min-width: 0; }
.field > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field > span em { font-style: normal; font-weight: 400; color: var(--faint); margin-left: 4px; }
.field input, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
  font-size: 16px; line-height: 1.4; transition: border-color .15s, box-shadow .15s; resize: none; -webkit-appearance: none; appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.counter { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: var(--faint); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 10px; background: var(--accent-soft); color: var(--ink-2); font-size: 13px; margin-top: -6px; }
.note svg { width: 16px; flex: none; color: var(--accent); margin-top: 1px; }
.wz-foot { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 70%, transparent); }
.wz-btns { display: flex; gap: 8px; }
.grow { flex: 1; }
.wz-err { color: var(--neg); font-size: 13px; margin-bottom: 8px; }

/* Анализ */
.analyzing h2 { font-size: 22px; }
.an-mark svg { width: 56px; height: 56px; color: var(--ink); animation: spin 2.4s cubic-bezier(.5, .1, .5, .9) infinite; }
.an-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.an-steps li { display: flex; gap: 10px; align-items: center; font-size: 14px; opacity: 0; transform: translateY(4px); animation: rise .4s var(--ease) var(--d) forwards; }
.an-tick { width: 20px; height: 20px; border-radius: 50%; background: var(--pos-soft); color: var(--pos); display: grid; place-items: center; flex: none; }
.an-tick svg { width: 12px; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Сегменты */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; padding: 0 6px; -webkit-tap-highlight-color: transparent;
}
.seg button svg { width: 16px; height: 16px; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px var(--line); }
.cnt { font: 500 11px/1 var(--mono); font-style: normal; padding: 3px 5px; border-radius: 5px; background: var(--line); color: var(--ink-2); }
.cnt.hot { background: var(--accent); color: var(--accent-ink); }

/* Подбор */
.m-summary { display: flex; gap: 22px; padding: 4px 2px 0; }
.m-summary div { display: flex; align-items: baseline; gap: 8px; }
.m-summary .mono { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.m-summary small { font-size: 12.5px; color: var(--muted); }
.filter-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px; }
.filter-row::-webkit-scrollbar { display: none; }
.chip.sm { min-height: 32px; padding: 5px 12px; font-size: 13px; white-space: nowrap; flex: none; }
.mlist { display: grid; gap: 12px; }
.mcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer;
  transition: border-color .15s var(--ease), box-shadow .2s var(--ease); -webkit-tap-highlight-color: transparent;
}
.mcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.mcard.compact, .mcard.contact { cursor: default; }
.mc-head { display: flex; align-items: center; gap: 12px; }
.mc-who { flex: 1; min-width: 0; }
.mc-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mc-name > span:first-child { font: 600 16px/1.25 var(--display); letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-name.big > span:first-child { font-size: 19px; white-space: normal; }
.mc-sub { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.mc-line { font-size: 14px; color: var(--ink-2); margin-top: 12px; line-height: 1.5; }
.ring {
  --s: 46px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; position: relative; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0);
}
.ring::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--surface); }
.ring span, .ring i { position: relative; }
.ring span { font-size: 14px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.ring i { position: absolute; top: 50%; right: 7px; transform: translateY(-80%); font: 500 8px/1 var(--mono); font-style: normal; color: var(--muted); display: none; }
.ring.big { --s: 58px; }
.ring.big span { font-size: 17px; }
.mc-why { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.reasons { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.reasons li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.reasons b { color: var(--ink); font-weight: 500; }
.ri { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--accent); }
.ri svg { width: 16px; height: 16px; }
.ice { margin-top: 12px; padding: 2px 0 2px 12px; border-left: 2px solid var(--accent); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.ice-l { display: flex; align-items: center; gap: 5px; font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.ice-l svg { width: 13px; height: 13px; }
.mc-foot { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.mc-foot .pill { margin-right: auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; line-height: 1.3; }
.pill svg { width: 14px; height: 14px; flex: none; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.pos { background: var(--pos-soft); color: var(--pos); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.pill.neg { background: var(--neg-soft); color: var(--neg); }
.hidden-block { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hidden-block .rows { width: 100%; }

/* Списки строк */
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.search svg { width: 18px; color: var(--faint); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; outline: none; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rows { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; text-align: left; border: 0; background: none; }
.row + .row { border-top: 1px solid var(--line); }
.row.tap { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.row.tap:hover { background: var(--surface-2); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-main b { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main .row-tags { color: var(--faint); font-size: 12px; }
.row-pct { font-size: 13px; font-weight: 500; color: var(--accent); }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; }
.empty { text-align: center; padding: 36px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty.small { padding: 28px 16px; }
.empty h3 { font-size: 17px; }
.empty p { font-size: 14px; max-width: 34ch; }
.empty .btn { margin-top: 6px; }
.empty-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.empty-ico svg { width: 22px; }
.empty-line { text-align: center; padding: 24px; }

/* Встречи */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.banner div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.banner b { font-weight: 600; font-size: 14.5px; }
.banner span { font-size: 12.5px; color: var(--muted); }
.banner.ok { justify-content: flex-start; background: var(--pos-soft); border-color: transparent; color: var(--pos); font-size: 13.5px; font-weight: 500; }
.banner.ok svg { width: 18px; }
.timeline { display: flex; flex-direction: column; }
.tl-group { padding: 14px 2px 8px; }
.tl-row {
  display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; -webkit-tap-highlight-color: transparent;
}
.tl-row:hover { border-color: var(--line-2); }
.tl-time { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.tl-main { display: flex; flex-direction: column; min-width: 0; }
.tl-main b { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-main span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-table { font-size: 12px; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.in-when { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); }
.in-when .eyebrow { color: var(--accent); }
.in-when b { font-size: 14px; font-weight: 500; }

/* Контакты */
.c-time { display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; font-weight: 500; }
.c-time small { font-size: 11px; color: var(--muted); font-weight: 400; }
.c-contact { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.c-contact .btn svg { width: 16px; }
.uname { font-size: 12.5px; color: var(--muted); }
.small { font-size: 13px; }
.c-rate { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.c-q { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.stars { display: flex; gap: 2px; }
.stars button { width: 34px; height: 34px; border: 0; background: none; padding: 5px; color: var(--line-2); -webkit-tap-highlight-color: transparent; }
.stars button svg { width: 24px; height: 24px; fill: currentColor; }
.stars button[aria-pressed="true"] { color: var(--ink); }
.yn { display: flex; gap: 6px; }

/* Профиль */
.pblock { display: flex; flex-direction: column; gap: 10px; }
.pblock + .pblock { padding-top: 10px; }
.block-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.pf-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.pf-head { display: flex; align-items: center; gap: 14px; }
.pf-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pf-line { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin-top: 14px; }
.pf-lists { margin: 16px 0 0; display: grid; gap: 12px; }
.pf-lists dt { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.pf-lists dd { margin: 0; }
.chips.ro { gap: 6px; }
.chip.ro { min-height: 28px; padding: 4px 10px; font-size: 13px; background: var(--surface-2); border-color: var(--line); cursor: default; }
.ev-mini { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ev-mini h3 { font-size: 17px; margin-bottom: 4px; }
.ev-mini p { font-size: 13.5px; }
.sub-eyebrow { margin-top: 6px; }
.agenda { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); margin-left: 4px; }
.agenda li { display: flex; gap: 14px; padding: 7px 0 7px 16px; position: relative; font-size: 14px; }
.agenda li::before { content: ''; position: absolute; left: -4px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink-2); }
.agenda .mono { font-size: 13px; color: var(--muted); width: 42px; flex: none; }
.org-promo { padding: 18px; border-radius: 16px; background: var(--ink); color: var(--paper); margin-top: 6px; }
.org-promo .muted { color: color-mix(in srgb, var(--paper) 70%, transparent); font-size: 13.5px; }
.org-promo .btn { align-self: flex-start; background: var(--paper); color: var(--ink); margin-top: 4px; }
.org-promo h3 { font-size: 17px; }
.foot-note { text-align: center; font-size: 11px; color: var(--faint); letter-spacing: .06em; padding: 8px 0 4px; }

/* Шторка */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(8, 9, 11, .42); opacity: 0; transition: opacity .25s var(--ease); }
.sheet-panel {
  position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 560px; max-height: 90vh; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
  transform: translate(-50%, 100%); transition: transform .3s var(--ease); background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .25);
}
.sheet.open .sheet-scrim { opacity: 1; }
.sheet.open .sheet-panel { transform: translate(-50%, 0); }
.sheet-grab { width: 38px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 14px; }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; }
.sheet-x svg { width: 18px; }
.sheet-body { padding-top: 6px; }
.sheet-body .pf-head { padding-right: 40px; }
.sheet-action { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.sheet-status .pill { width: 100%; justify-content: center; min-height: 40px; }
.slots { display: flex; flex-direction: column; gap: 12px; }
.slot-group small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slot {
  height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; font-weight: 500;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; -webkit-tap-highlight-color: transparent;
}
.slot:hover { border-color: var(--ink-2); }
.slot[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.slot[disabled] { border-style: dashed; color: var(--faint); background: transparent; cursor: not-allowed; }
.slot small { font: 400 10px/1 var(--font); margin-top: 3px; }
.slots-loading { display: grid; place-items: center; padding: 26px; }
.slots .btn[data-act="send"] { position: sticky; bottom: 0; box-shadow: 0 -14px 18px 4px var(--surface); }
.sheet-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 4px 4px; }
.sheet-done h3 { font-size: 21px; }
.sheet-done .btn { margin-top: 10px; }
.done-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--pos-soft); color: var(--pos); display: grid; place-items: center; animation: pop .35s var(--ease); }
.done-ico svg { width: 28px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* Уведомления */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 420px); padding: 11px 16px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 13.5px; font-weight: 500;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); transition: opacity .2s var(--ease), transform .25s var(--ease); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.pos { background: var(--pos); color: #fff; }
.toast.neg { background: var(--neg); color: #fff; }

@media (max-width: 360px) {
  .field-row { grid-template-columns: 1fr; }
  .ev-meta { grid-template-columns: 1fr 1fr; }
  .ev-meta div:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .seg button { font-size: 12.5px; }
}

/* Встроенное демо на сайте: место под «вырез» рамки телефона */
.app.embed .top { height: 84px; padding-top: 30px; }
