/* Живой телефон первого экрана. Внутри 320 логических точек, как у снимка, масштаб — --pl-s. Геометрия и цвета — Lobby на телефоне. */
.phone__glass { position: relative; }
.pl { position: absolute; left: 0; top: 0; width: 320px; height: 100%; overflow: hidden; background: #fff; color: #1E1E1E; font: 400 14px/1.3 var(--sans); text-align: start; transform: scale(var(--pl-s, 1)); transform-origin: 0 0; height: calc(100% / var(--pl-s, 1)); }
.pl button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; }
.pl p { margin: 0; }
.pl-status { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 6px 26px 0 33px; background: #fff; font-size: 14px; font-weight: 600; letter-spacing: .03em; }
.pl-status i { display: flex; gap: 3px; }
.pl-status i::before, .pl-status i::after { content: ''; width: 14px; height: 9px; border-radius: 3px; background: #1E1E1E; }
.pl-status i::after { width: 21px; }
.pl-scroll { position: absolute; inset: 44px 0 max(66px, var(--pl-cut, 0px)); overflow: hidden; }
.pl-edit { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px 0; font-size: 14px; }
.pl-h { padding: 6px 13px 0; font-size: 23px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.pl .pl-search { display: flex; align-items: center; gap: 6px; margin: 8px 13px 0; height: 32px; padding: 0 12px; border-radius: 10px; background: #F4F4F3; font-size: 14px; color: #8A8A8A; }
.pl-day { margin: 9px 10px 0; border-radius: 14px; background: #F4F4F3; }
.pl-day__top { display: flex; align-items: center; gap: 7px; padding: 10px 11px 0; }
.pl-day__top b { font-size: 14px; font-weight: 600; }
.pl-day__top small { margin-inline-start: auto; font-size: 13px; color: #737373; }
.pl-day__sun { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1E1E1E; color: #bbb; }
.pl-lead { display: flex; align-items: center; gap: 9px; padding: 8px 3px 4px 11px; }
.pl-lead__ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.pl-lead__t { flex: 1; min-width: 0; }
.pl-lead__t b { display: block; overflow: hidden; font-size: 13.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.pl-lead__t span { display: block; overflow: hidden; font-size: 13px; color: #737373; white-space: nowrap; text-overflow: ellipsis; }
.pl-lead__t strong { font-weight: 600; color: #1E1E1E; }
.pl-go { flex: none; padding: 16px 8px !important; margin-block: -8px; margin-inline-start: -8px; }
.pl-go span { display: block; padding: 9px 13px; border-radius: 19px; background: #333; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .2s; }
.pl button:disabled span { background: #C9C9C7; }
.pl-go.is-wait span { background: var(--red); animation: pl-pulse 1.4s ease-out infinite; }
@keyframes pl-pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, .45); } 80%, 100% { box-shadow: 0 0 0 10px rgba(200, 16, 46, 0); } }
.pl-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #E2E2E0; text-align: center; }
.pl-stats div { padding: 6px 2px 7px; }
.pl-stats div + div { border-inline-start: 1px solid #E2E2E0; }
.pl-stats b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.pl-stats div:first-child b { color: var(--red); }
.pl-stats span { font-size: 13px; line-height: 1.2; color: #737373; }
.pl-rows { padding-top: 6px; }
.pl .pl-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 59px; padding: 6px 13px; }
.pl-row:hover { background: #F7F7F6; }
.pl-av { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-size: 15px; font-weight: 600; }
.pl-av--ink { background: #1A1A1A; } .pl-av--blue { background: #2C6A9E; } .pl-av--brown { background: #8A5A3C; } .pl-av--violet { background: #6B4FA8; } .pl-av--green { background: #4F7F62; } .pl-av--teal { background: #2F7D76; }
.pl-row__main { flex: 1; min-width: 0; display: grid; gap: 1px; padding-block: 2px; }
.pl-row__top, .pl-row__low { display: flex; align-items: center; gap: 5px; min-width: 0; }
.pl-row__top b { overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.pl-row__top em { flex: none; padding: 0 4px; border: 1px solid #E2E2E0; border-radius: 4px; font-style: normal; font-size: 13px; line-height: 15px; color: #6b6b6b; transform: scale(.76); transform-origin: 0 50%; margin-inline-end: -12px; }
.pl-row__top small { flex: none; margin-inline-start: auto; font-size: 13px; color: #8A8A8A; }
.pl-row__text { flex: 1; overflow: hidden; font-size: 14px; color: #737373; white-space: nowrap; text-overflow: ellipsis; }
.pl-badge { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 600 13px/18px var(--sans); text-align: center; }
.pl-badge.is-muted { background: #B5B5B3; }
.pl-pill { flex: none; padding: 2px 8px; border-radius: 10px; background: #333; color: #fff; font: 600 13px/15px var(--sans); }
.pl-tabs { position: absolute; inset: auto 0 0; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); height: 66px; padding-top: 7px; border-top: 1px solid #ECECEB; background: #fff; text-align: center; font-size: 13px; color: #8A8A8A; }
.pl-tabs span { position: relative; display: grid; justify-items: center; align-content: start; gap: 0; font-size: 13px; line-height: 1.2; }
.pl-tabs .on { color: #1E1E1E; font-weight: 500; }
.pl-tabs i { position: absolute; left: calc(50% + 4px); top: -3px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--red); color: #fff; font: 600 13px/15px var(--sans); }
.pl-home { position: absolute; left: 50%; bottom: 5px; z-index: 4; width: 110px; height: 4px; border-radius: 2px; background: #1E1E1E; transform: translateX(-50%); }

/* Разговор */
.pl-chat { position: absolute; inset: 44px 0 var(--pl-cut, 0px); z-index: 2; display: flex; flex-direction: column; background: #ECECEC url('demo/wall.svg') repeat; transform: translateX(102%); transition: transform .32s cubic-bezier(.2,.7,.2,1); visibility: hidden; transition-property: transform, visibility; }
.pl-chat.is-open { transform: none; visibility: visible; }
.pl-chat__head { display: flex; align-items: center; gap: 6px; padding: 0 12px 6px 2px; background: #fff; }
.pl-back { flex: none; display: grid; place-items: center; width: 44px; height: 56px; }
.pl-chat__head .pl-av { width: 36px; height: 36px; font-size: 13px; }
.pl-chat__who { min-width: 0; }
.pl-chat__who b { display: block; overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.pl-chat__who small { display: block; overflow: hidden; font-size: 13px; color: #737373; white-space: nowrap; text-overflow: ellipsis; }
.pl-stream { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow: hidden auto; padding: 10px 10px 8px; scrollbar-width: none; }
.pl-stream::-webkit-scrollbar { display: none; }
.pl-stream > :first-child { margin-top: auto; }
.pl-b { flex: none; max-width: 84%; padding: 7px 10px; border-radius: 14px; font-size: 14px; line-height: 1.32; }
.pl-b small { display: block; margin-top: 1px; font-size: 13px; text-align: end; opacity: .6; }
.pl-b--in { align-self: flex-start; background: #fff; }
.pl-b--out { align-self: flex-end; background: #1E1E1E; color: #fff; }
.pl-b--ai { align-self: flex-start; background: #fff; }
.pl-typing { display: inline-flex; gap: 4px; padding: 11px 12px; }
.pl-typing i { width: 6px; height: 6px; background: #A3A3A3; animation: think 1.05s steps(1) infinite; }
.pl-typing i:nth-child(2) { animation-delay: .35s; }
.pl-typing i:nth-child(3) { animation-delay: .7s; }
.pl-dock { padding: 0 8px max(8px, calc(26px - var(--pl-cut, 0px))); }
.pl-input { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 5px 0 14px; border-radius: 19px; background: #fff; font-size: 14px; color: #8A8A8A; }
.pl-input i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #1E1E1E; color: #fff; }
.pl-draft { padding: 8px 10px 2px; border: 2px solid var(--amber); border-radius: 14px; background: var(--amber-bg); }
.pl-draft__k { font-size: 13px; font-weight: 600; color: var(--amber-ink); }
.pl-draft__t { margin-top: 2px !important; font-size: 14px; line-height: 1.32; }
.pl-draft .pl-go, .pl-deal .pl-go { display: block; margin-inline-start: auto; }
.pl-deal { flex: none; padding: 9px 10px 2px; border: 2px solid var(--amber); border-radius: 14px; background: var(--amber-bg); }
.pl-deal__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pl-deal__head b { font-weight: 600; }
.pl-deal__tag { font-size: 13px; color: var(--amber-ink); white-space: nowrap; }
.pl-deal__rows { margin: 6px 0 0; }
.pl-deal__rows div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid #F1E3C4; }
.pl-deal__rows dt { color: #737373; }
.pl-deal__rows dd { margin: 0; font-weight: 600; text-align: end; }
.pl-deal.is-done { padding-bottom: 8px; border-color: #E2E2E0; background: #fff; }
.pl-deal.is-done .pl-deal__tag { color: #1E1E1E; }
.pl-deal.is-done .pl-deal__rows div { border-color: #ECECEB; }
.pl-tap { position: absolute; z-index: 9; width: 44px; height: 44px; border-radius: 50%; background: rgba(30, 30, 30, .4); pointer-events: none; }
/* Телефонная страница: снимок мельче, цель нажатия всё равно не меньше 44. */
@media (max-width: 700px) { .pl .pl-row { min-height: 68px; } }
@media (prefers-reduced-motion: reduce) { .pl { display: none; } }
