/* Каркас мини-приложения (МП-11) поверх app.css Дизайнера: в Telegram нет «телефона»-рамки прототипа,
   поэтому нижнее меню, лист и подложка закреплены к окну. */
body { min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }
.shell-main { display: block; padding-bottom: 104px; min-height: 60vh; }
.tabbar { position: fixed; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.scrim, .sheet { position: fixed; }
.open { overflow: hidden; }
.bar .role-pick { border: 0; background: var(--fill); color: var(--ink); font: inherit; font-size: 12px; font-weight: 600;
  border-radius: 10px; height: 30px; padding: 0 8px; }
/* поле чата закреплено над нижним меню */
.composer { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 6; }
.shell-main:has(.composer) { padding-bottom: 180px; }
.composer textarea { flex: 1; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500;
  resize: none; padding: 8px 0; max-height: 120px; outline: none; }
.composer .ctx { display: inline-flex; }
.msg.err { background: var(--red-soft); }
.boot { text-align: center; color: var(--hint); padding: 40vh 16px 0; }

.head.row.between { display: flex; align-items: center; justify-content: space-between; }
#dev-back { margin-right: 4px; }

/* v2: плашки «Вы в …» и «Такие больше не придут» не прилипают к заголовку (МП-12) */
.clinic-note .toast, .screen-body > .toast { margin-bottom: 8px; }

/* v2: чат с Claude (МП-12, chat.js) */
.swipe .cell { transform: none; transition: transform .25s cubic-bezier(.2,.8,.2,1); touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.swipe.open .cell { transform: translateX(-148px); }
.swipe + .swipe .cell { box-shadow: inset 0 1px 0 var(--rule); }
.search input { color: var(--ink); }
.search input::-webkit-search-cancel-button { display: none; }
.composer .pending { flex-direction: column; }
.composer .pending .att { flex: none; }
.composer .att .tile { flex: none; }
.composer .att .ib svg { width: 16px; height: 16px; }
.composer .send:disabled { cursor: default; }
.composer .clip:disabled { cursor: default; }
.composer .banner { margin: 0 0 8px; }
.composer .banner b { font-weight: 700; }
.msg .photo img { border-radius: 14px; }
.msg .att { cursor: default; }
.msg.cl.err { border-color: transparent; box-shadow: none; }
.chat + .chat:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .swipe .cell { transition: none; } }
.msg .md-list { padding-left: 20px; } .msg ol.md-list { padding-left: 22px; }
.msg .md-list + p, .msg p + .md-list, .msg .tbl-wrap + p, .msg p + .tbl-wrap { margin-top: 8px; }
.msg .tbl-wrap { overflow-x: auto; margin: 8px -4px 4px; }
.msg .tbl-wrap .tbl { margin: 0; min-width: 100%; }
.msg .md-list { padding-left: 20px; } .msg ol.md-list { padding-left: 22px; }
.msg .md-list + p, .msg p + .md-list, .msg .tbl-wrap + p, .msg p + .tbl-wrap, .msg .md-list + .tbl-wrap { margin-top: 8px; }
.msg .tbl-wrap { overflow-x: auto; margin: 8px -4px 4px; }
.msg .tbl-wrap .tbl { margin: 0; min-width: 100%; }
.composer textarea { scrollbar-width: none; } .composer textarea::-webkit-scrollbar { display: none; }

/* v2: доступ ступенями и тарифы (МП-12, решения 18.11) */
.soon { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 32px 24px calc(32px + env(safe-area-inset-bottom)); }
.soon .soon-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }
.soon .soon-ic svg { width: 30px; height: 30px; }
.soon h1 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; max-width: 300px; }
.soon .soon-name { margin: 8px 0 0; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink-2); }
.soon p { margin: 12px 0 0; max-width: 310px; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--hint); }
.soon .btn { margin-top: 28px; max-width: 320px; }
.mtile.locked .tile { opacity: .5; }
.mtile.locked .mt { color: var(--ink-2); }
.mtile .lk, .locked-card .lk { position: absolute; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--surface); box-shadow: 0 0 0 2px var(--surface); }
.mtile .lk { top: 24px; left: 24px; width: 16px; height: 16px; } .mtile .lk svg { width: 10px; height: 10px; }
.mtile .lk svg, .locked-card .lk svg { width: 11px; height: 11px; stroke-width: 2.4; }
.locked-card { text-align: center; padding: 4px 4px 0; }
.locked-card .lk-ic { position: relative; display: inline-block; }
.locked-card .lk-ic .tile { width: 52px; height: 52px; border-radius: 16px; }
.locked-card .lk-ic .tile svg { width: 26px; height: 26px; }
.locked-card .lk { right: -4px; bottom: -4px; width: 22px; height: 22px; }
.locked-card h3 { margin: 14px 0 0; font-size: 19px; line-height: 24px; font-weight: 700; }
.locked-card p { margin: 6px auto 0; max-width: 320px; font-size: 15px; line-height: 21px; font-weight: 500; color: var(--ink-2); }
.locked-card .lk-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: var(--r-el); background: var(--fill); text-align: left; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.locked-card .lk-note svg { flex: none; margin-top: 2px; color: var(--hint); }
