/* cases.css — страница сценариев поверх site.css и journal.css. Токены лендинга; телефон — геометрия и цвета Lobby
   (phone.css): белый экран, графитовые пузыри, янтарь — только то, что подготовил ИИ, красный — сигнал и главная кнопка.
   Экран телефона — 360 логических точек, масштаб --s считает cases.js. */
.cases { background: var(--graphite); }

/* ── Шапка страницы ── */
.cs-hero { background: var(--graphite) var(--dots-dark); color: #F1F1F1; padding: clamp(40px, 5vw, 88px) 0 clamp(32px, 3.4vw, 56px); border-bottom: 1px solid var(--g80); }
.cs-hero .mono { color: var(--red-hi); margin-bottom: 14px; }
.cs-hero h1 { max-width: 1100px; font-size: clamp(40px, 6.4vw, 104px); line-height: .98; }
.cs-hero__sub { max-width: 720px; margin-top: 22px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; color: var(--on-dark); }
.cs-index ol { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px; margin-top: clamp(32px, 4vw, 56px); background: var(--g80); border: 1px solid var(--g80); }
.cs-index a { display: flex; flex-direction: column; gap: 18px; min-height: 96px; padding: 14px 16px; background: var(--graphite); color: #fff; font-weight: 600; font-size: 16px; transition: background-color .15s; }
.cs-index a:hover { background: #242424; }
.cs-index b { font: 500 13px var(--mono); letter-spacing: .08em; color: var(--red-hi); }

/* ── Раздел сценария ── */
.cs { padding: clamp(64px, 8vw, 136px) 0; background: var(--graphite) var(--dots-dark); color: #F1F1F1; border-bottom: 1px solid var(--g80); }
.cs:nth-of-type(even) { background-color: var(--ink); }
.cs .chap { color: var(--red-hi); }
.cs .chap span { color: #A8A8A8; }
.cs h2 { font-size: clamp(32px, 3.6vw, 58px); line-height: 1.02; }
.cs__lead { margin-top: 20px; max-width: 560px; font-size: 18px; line-height: 1.5; color: var(--on-dark); }
.cs__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.cs__text { position: sticky; top: calc(var(--top-h) + 32px); }
.cs__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 96px); align-items: end; margin-bottom: clamp(24px, 3vw, 48px); }
.cs__head .chap { grid-column: 1 / -1; }
.cs__head .cs__lead { margin-top: 0; }
.cs--wide .cs__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
.cs--wide .cs-steps { margin-top: 34px; }
.cs__stage { display: flex; justify-content: center; gap: clamp(20px, 2.4vw, 40px); align-items: flex-start; min-width: 0; }

/* Шаги: номер, название, полоска хода. Подпись видна у текущего шага. */
.cs-steps { margin-top: 32px; border-top: 1px solid var(--g60); }
.cs-steps li { border-bottom: 1px solid var(--g60); }
.cs-steps button { position: relative; display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 13px 0 12px; border: 0; background: none; color: #9A9A9A; font-size: 17px; font-weight: 500; text-align: start; transition: color .15s; }
.cs-steps button:hover, .cs-steps button.is-past { color: #DADADA; }
.cs-steps button.is-on { color: #fff; }
.cs-steps button b { font: 500 13px var(--mono); letter-spacing: .08em; color: #6E6E6E; }
.cs-steps button.is-on b { color: var(--red-hi); }
.cs-steps button i { position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--red); }
.cs-steps button.is-past i { background: #6E6E6E; }
.cs-step__cap { display: none; padding: 0 0 14px 38px; font-size: 15px; line-height: 1.45; color: var(--on-dark); }
.js .cs-steps li:has(.is-on) .cs-step__cap { display: block; }
html:not(.js) .cs-step__cap { display: block; }
.cs__cap { display: none; }
.cs__ctl { display: flex; align-items: center; gap: 20px; margin-top: 20px; font-size: 14px; color: #8A8A8A; }
.cs__ctl button { padding: 0; border: 0; background: none; color: #fff; font-weight: 600; font-size: 14px; }
.cs__ctl button:hover { color: var(--red-hi); }
.cs__ctl span { margin-inline-start: auto; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
html:not(.js) .cs__ctl, html:not(.js) .cs__stage { display: none; }
.cs.is-done [data-again] { color: var(--red-hi); }

/* ══ Телефон ══ */
.ph { --s: 1; position: relative; flex: none; width: min(100%, 376px); height: calc(780px * var(--s)); margin-top: 34px; }
.ph__who { position: absolute; left: 0; right: 0; top: -32px; min-height: 18px; text-align: center; font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.ph__dev { position: absolute; left: 0; top: 0; width: 376px; height: 780px; padding: 8px; border-radius: 56px; background: #0A0A0A; box-shadow: 0 0 0 1.5px #3C3C3C, 0 50px 90px -40px rgba(0, 0, 0, .8); transform: scale(var(--s)); transform-origin: 0 0; }
.ph__scr { position: relative; width: 360px; height: 764px; overflow: hidden; border-radius: 48px; background: #fff; color: #1E1E1E; font: 400 14px/1.32 var(--sans); text-align: start; isolation: isolate; user-select: none; -webkit-user-select: none; }
.ph__scr :is(h3, h4, p, dl, dd) { margin: 0; }
.ph__scr button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; }
.ph__status { position: absolute; inset: 0 0 auto; z-index: 6; display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 8px 30px 0 38px; background: #fff; font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.ph__status i { display: flex; gap: 4px; }
.ph__status i::before, .ph__status i::after { content: ''; width: 16px; height: 10px; border-radius: 3px; background: #1E1E1E; }
.ph__status i::after { width: 24px; }
.ph__views { position: absolute; inset: 46px 0 0; overflow: hidden; }
.is-tabs .ph__views { bottom: 70px; }
.ph__tabs { position: absolute; inset: auto 0 0; z-index: 5; display: none; grid-template-columns: repeat(3, 1fr); height: 70px; padding-top: 8px; border-top: 1px solid #ECECEB; background: #fff; text-align: center; color: #8A8A8A; }
.is-tabs .ph__tabs { display: grid; }
.ph__tabs span { display: grid; justify-items: center; align-content: start; gap: 2px; font-size: 12px; }
.ph__tabs .ic { width: 22px; height: 22px; }
.ph__tabs .on { color: #1E1E1E; font-weight: 500; }
.ph__home { position: absolute; left: 50%; bottom: 7px; z-index: 12; width: 120px; height: 5px; border-radius: 3px; background: #1E1E1E; transform: translateX(-50%); }
.ph__dim { position: absolute; inset: 0; z-index: 7; background: rgba(0, 0, 0, .38); opacity: 0; pointer-events: none; transition: opacity .3s; }
.ph__dim.is-on { opacity: 1; }
.ph__sheet { position: absolute; inset: auto 0 0; z-index: 8; display: flex; flex-direction: column; height: 64%; overflow: hidden; border-radius: 18px 18px 0 0; background: #fff; transform: translateY(102%); transition: transform .36s cubic-bezier(.2, .8, .2, 1); }
.ph__sheet.is-tall { height: 91%; }
.ph__sheet.is-open { transform: none; }
.ph__grab { flex: none; align-self: center; width: 38px; height: 5px; margin: 7px 0 3px; border-radius: 3px; background: #D0D0CE; }
.ph__ban { position: absolute; inset: 52px 8px auto; z-index: 10; }
.ban { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 20px; background: rgba(246, 246, 245, .94); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); backdrop-filter: blur(14px); }
.ban__ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #1A1A1A; color: #fff; }
.ban__ic svg { width: 20px; height: 20px; }
.ban__body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ban__top { display: flex; justify-content: space-between; font-size: 12px; color: #6B6B6B; text-transform: uppercase; letter-spacing: .03em; }
.ban__body b { font-size: 14px; font-weight: 600; }
.ban__body > span:last-child { font-size: 14px; line-height: 1.3; color: #333; }
.ban.is-wait { animation: ph-pulse 1.4s ease-out infinite; }
.ph__tap { position: absolute; left: -22px; top: -22px; z-index: 20; width: 44px; height: 44px; border-radius: 50%; background: rgba(30, 30, 30, .35); box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); opacity: 0; pointer-events: none; }
.ph-toast { position: absolute; left: 50%; top: 60px; z-index: 11; width: max-content; max-width: 300px; padding: 9px 14px; border-radius: 20px; background: #1E1E1E; color: #fff; font-size: 13px; line-height: 1.35; text-align: center; transform: translateX(-50%); }
.ph-toast--ok { background: #1E1E1E; }
.ph-toast--ok::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; background: #3DBE6E; }

.ic { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; }
.ic svg { width: 100%; height: 100%; }
.ic--ok { width: 14px; height: 14px; color: #2E9B5A; }
.ic--ticks { width: 16px; height: 10px; vertical-align: -1px; margin-inline-end: 3px; color: #5B9BD5; }
.ic--chev { width: 14px; height: 14px; color: #8A8A8A; }
.ic--file { width: 30px; height: 30px; color: #C8102E; }

/* Аватары и метки каналов. */
.av { position: relative; flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #8A8A8A; color: #fff; font-size: 16px; font-weight: 600; }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av--sm { width: 36px; height: 36px; font-size: 13px; }
.av--xs { width: 24px; height: 24px; font-size: 10px; }
.av--lg { width: 78px; height: 78px; }
.av--ai { background: #1A1A1A; color: #fff; }
.av--ai .ic { width: 22px; height: 22px; }
.av--sm.av--ai .ic { width: 18px; height: 18px; }
.av--ring { padding: 2px; background: linear-gradient(45deg, #F5B13D, #E2483A, #B23AA8); }
.av--ring img { border: 2px solid #fff; }
.av--ink { background: #1A1A1A; } .av--blue { background: #2C6A9E; } .av--brown { background: #8A5A3C; } .av--violet { background: #6B4FA8; } .av--green { background: #4F7F62; } .av--teal { background: #2F7D76; }
.chb { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; padding: 3px; border: 2px solid #fff; border-radius: 50%; color: #fff; }
.av--sm .chb { width: 17px; height: 17px; padding: 2px; }
.chb--wa { background: #25A85A; } .chb--ig { background: linear-gradient(45deg, #F5B13D, #E2483A 50%, #B23AA8); } .chb--th { background: #111; } .chb--web { background: #6B6B6B; }

/* ── Список чатов ── */
.pv { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }
.pv__scroll { flex: 1; min-height: 0; overflow: hidden auto; scrollbar-width: none; }
.pv__scroll::-webkit-scrollbar { display: none; }
.pl-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 0; font-size: 15px; }
.pl-bar .ic { width: 20px; height: 20px; }
.pl-h { padding: 4px 16px 0; font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.pl-search { margin: 10px 14px 0; height: 36px; padding: 0 12px; border-radius: 10px; background: #F2F2F1; color: #8A8A8A; font-size: 15px; line-height: 36px; }
.pl-day { display: block; width: calc(100% - 24px) !important; margin: 12px 12px 0; padding: 0 !important; border-radius: 16px; background: #F4F4F3 !important; }
.pl-day__top { display: flex; align-items: center; gap: 8px; padding: 12px 13px 0; }
.pl-day__top b { font-size: 15px; 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: 24px; height: 24px; padding: 4px; border-radius: 50%; background: #1E1E1E; color: #ddd; }
.pl-day__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; border-top: 1px solid #E2E2E0; text-align: center; }
.pl-day__stats > span { display: grid; padding: 8px 2px 9px; }
.pl-day__stats > span + span { border-inline-start: 1px solid #E2E2E0; }
.pl-day__stats b { font-size: 16px; font-weight: 600; }
.pl-day__stats > span:first-child b { color: var(--red); }
.pl-day__stats small { font-size: 12px; color: #737373; }
.pl-chips { display: flex; gap: 6px; padding: 12px 14px 2px; }
.pl-chips > span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: #F2F2F1; font-size: 14px; font-weight: 500; color: #4A4A4A; }
.pl-chips > span.on { background: #1E1E1E; color: #fff; }
.pl-chips i { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 600 12px/18px var(--sans); font-style: normal; text-align: center; }
.pl-strip { margin: 10px 14px 0; padding: 9px 12px; border-radius: 12px; background: #1E1E1E; color: #fff; font: 500 12px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.pl-rows { padding: 6px 0 12px; }
.pl-row { display: flex !important; align-items: center; gap: 11px; width: 100%; min-height: 72px; padding: 8px 14px !important; }
.pl-row.is-new { background: #FFFAF0 !important; }
.pl-row.is-wait { animation: row-pulse 1.4s ease-out infinite; }
.pl-row__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pl-row__top, .pl-row__low { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pl-row__top b { overflow: hidden; font-size: 15px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.pl-row__top em { flex: none; padding: 0 5px; border: 1px solid #E2E2E0; border-radius: 4px; font-style: normal; font-size: 10px; line-height: 15px; color: #6B6B6B; text-transform: uppercase; letter-spacing: .03em; }
.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: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font: 600 12px/20px var(--sans); font-style: normal; text-align: center; }
.pl-pill { flex: none; padding: 2px 8px; border-radius: 10px; background: var(--amber); color: #1E1E1E; font: 600 11px/16px var(--sans); font-style: normal; }
.chtag { flex: none; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; line-height: 15px; color: #fff; text-transform: uppercase; letter-spacing: .03em; }
.chtag--wa { background: #25A85A; } .chtag--ig { background: linear-gradient(45deg, #F5B13D, #E2483A 50%, #B23AA8); } .chtag--th { background: #111; } .chtag--web { background: #6B6B6B; }
.pl-stats { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #E2E2E0; background: #fff; text-align: center; }
.pl-stats div { display: grid; padding: 10px 4px; }
.pl-stats div + div { border-inline-start: 1px solid #E2E2E0; }
.pl-stats b { font-size: 18px; font-weight: 700; }
.pl-stats div:last-child b { color: #2E9B5A; }
.pl-stats small { font-size: 12px; color: #737373; }

/* ── Разговор ── */
.pv--thread.is-wall { background: #ECECEC url('demo/wall.svg') repeat; }
.th-head { flex: none; display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 0 14px 6px 2px; background: #fff; border-bottom: 1px solid #ECECEB; }
.th-back { flex: none; display: grid !important; place-items: center; width: 40px; height: 48px; color: #1E1E1E; }
.th-back .ic { width: 22px; height: 22px; }
.th-who { flex: 1; min-width: 0; }
.th-who b { display: block; overflow: hidden; font-size: 15px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.th-who small { display: block; overflow: hidden; font-size: 13px; color: #737373; white-space: nowrap; text-overflow: ellipsis; }
.th-head--plain { padding-inline-start: 2px; }
.th-end { flex: none; }
.th-tasks { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #F2F2F1; }
.th-tasks i { position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #1E1E1E; color: #fff; font: 600 12px/20px var(--sans); font-style: normal; text-align: center; }
.th-stream { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 7px; overflow: hidden auto; padding: 12px 10px 10px; scrollbar-width: none; }
.th-stream::-webkit-scrollbar { display: none; }
.th-stream > :first-child { margin-top: auto; }
.th-dock { flex: none; padding: 6px 8px 26px; }
.th-chips { display: none; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.th-chips.is-on { display: flex; }
.th-chips__k { padding-inline-start: 4px; font-size: 12px; font-weight: 600; color: var(--amber-ink); text-transform: uppercase; letter-spacing: .04em; }
.vchip { display: block; width: 100%; padding: 9px 12px !important; border: 1.5px solid var(--amber) !important; border-radius: 14px; background: var(--amber-bg) !important; font-size: 14px !important; line-height: 1.32; }
.vchip:hover { background: #FFF1D6 !important; }
.vchip.is-wait:first-of-type { animation: ph-pulse-amber 1.4s ease-out infinite; }
.vchip:disabled { opacity: .5; }
.vchip.is-picked { opacity: 1; border-color: #1E1E1E !important; }
.th-input { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 5px 5px 5px 15px; border-radius: 21px; background: #fff; font-size: 15px; color: #8A8A8A; }
.th-text { flex: 1; min-width: 0; }
.th-input.is-typing, .th-input.is-rec { color: #1E1E1E; }
.th-input.is-typing .th-text::after { content: ''; display: inline-block; width: 2px; height: 16px; margin-inline-start: 1px; vertical-align: -3px; background: var(--red); animation: think 1s steps(1) infinite; }
.th-mic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #1E1E1E; color: #fff; }
.th-mic .ic { width: 16px; height: 16px; }
.th-input.is-rec .th-mic { background: var(--red); animation: ph-pulse 1.2s ease-out infinite; }

.b { flex: none; max-width: 86%; padding: 8px 11px; border-radius: 16px; font-size: 14.5px; line-height: 1.34; overflow-wrap: anywhere; }
.b small { display: block; margin-top: 2px; font-size: 12px; text-align: end; opacity: .6; }
.b--in { align-self: flex-start; background: #fff; }
.b--out { align-self: flex-end; background: #1E1E1E; color: #fff; }
.b--ai { align-self: flex-start; background: #fff; }
.b__who { display: block; font-size: 13px; font-weight: 600; color: #2C6A9E; }
.b--voice { width: 86%; }
.wave { display: flex; align-items: center; gap: 2px; height: 26px; }
.wave i { flex: 1; min-height: 3px; border-radius: 1px; background: #9A9A9A; }
.wave b { margin-inline-start: 8px; font-size: 12px; font-weight: 500; opacity: .7; }
.b--voice p { margin-top: 6px !important; font-size: 13.5px; opacity: .85; }
.b--album { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; width: 72%; padding: 3px; }
.b--album img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.b--album img:first-child { grid-row: span 2; aspect-ratio: auto; }
.b-typing { display: inline-flex; gap: 4px; padding: 12px 13px; }
.b-typing i { width: 6px; height: 6px; background: #A3A3A3; animation: think 1.05s steps(1) infinite; }
.b-typing i:nth-child(2) { animation-delay: .35s; }
.b-typing i:nth-child(3) { animation-delay: .7s; }
.b-pill { align-self: center; max-width: 92%; padding: 4px 11px; border-radius: 12px; background: rgba(255, 255, 255, .9); font-size: 12.5px; color: #555; text-align: center; }
.b-pill--ok { background: #1E1E1E; color: #fff; }
.b-pill--ok::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px; background: #3DBE6E; }
.b-pill--deal { background: #1E1E1E; color: #fff; font-weight: 500; }
.b-tool { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 2px 6px; font-size: 13px; color: #555; }
.b-tool .think i { width: 6px; height: 6px; }
.b-deals, .b-team, .b-tasks { align-self: flex-start; width: 92%; padding: 6px; border-radius: 16px; background: #fff; }
.b-deal { display: flex; align-items: center; gap: 9px; padding: 7px 6px; }
.b-deal + .b-deal { border-top: 1px solid #F0F0EF; }
.b-deal div { flex: 1; min-width: 0; }
.b-deal b, .b-team__r b { display: block; font-size: 14px; font-weight: 600; }
.b-deal small, .b-team__r small { display: block; overflow: hidden; font-size: 12.5px; color: #737373; white-space: nowrap; text-overflow: ellipsis; }
.b-deal em { flex: none; padding: 2px 7px; border-radius: 9px; background: #F2F2F1; font-size: 11.5px; font-style: normal; font-weight: 500; }
.b-hint, .b-lead { align-self: flex-start; width: 92%; padding: 10px 12px; border: 2px solid var(--amber); border-radius: 16px; background: var(--amber-bg); }
.b-hint p { font-size: 14px; }
.b-hint .pbtn { margin-top: 8px; }
.b-lead { display: grid; gap: 2px; border-style: dashed; }
.b-lead small { font-size: 11.5px; font-weight: 600; color: var(--amber-ink); text-transform: uppercase; letter-spacing: .04em; }
.b-lead b { font-size: 13.5px; font-weight: 500; }
.b-ask { width: 88%; }
.b-ask__acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.b-file { display: flex; align-items: center; gap: 10px; }
.b-file b { display: block; font-size: 14px; font-weight: 600; }
.b-file small { margin: 0; text-align: start; }
.b-tasks { border: 2px solid var(--amber); background: var(--amber-bg); }
.b-tasks__h { display: flex; align-items: center; gap: 6px; padding: 3px 6px 6px; font-size: 12px; font-weight: 600; color: var(--amber-ink); text-transform: uppercase; letter-spacing: .04em; }
.b-tasks__h .ic { width: 15px; height: 15px; }
.b-tasks__r { display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-top: 1px solid #F1E3C4; }
.b-tasks__r b { flex: 1; font-size: 14px; font-weight: 500; }
.b-tasks__r em { flex: none; padding: 2px 7px; border-radius: 9px; background: #fff; font-size: 12px; font-style: normal; font-weight: 600; }
.b-tasks__r.is-done b { color: #737373; text-decoration: line-through; }
.b-tasks__r.is-done .ic { color: #2E9B5A; }
.b-team__h { padding: 4px 6px 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #555; }
.b-team__r { display: flex; align-items: center; gap: 9px; padding: 7px 6px; border-top: 1px solid #F0F0EF; }
.b-team__r div { flex: 1; min-width: 0; }

/* Кнопки внутри телефона: таблетки, как в Lobby. */
.pbtn { display: inline-flex !important; align-items: center; justify-content: center; min-height: 36px; padding: 0 16px !important; border-radius: 18px; font-size: 14px !important; font-weight: 600 !important; white-space: nowrap; transition: background-color .2s; }
.pbtn--go { background: #1E1E1E !important; color: #fff !important; }
.pbtn--ghost { background: #F2F2F1 !important; color: #1E1E1E !important; }
.pbtn.is-wait.pbtn--go { background: var(--red) !important; animation: ph-pulse 1.4s ease-out infinite; }
.pbtn:disabled { opacity: .45; }
.pbtn.is-picked { opacity: 1; }
@keyframes ph-pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, .45); } 80%, 100% { box-shadow: 0 0 0 12px rgba(200, 16, 46, 0); } }
@keyframes ph-pulse-amber { 0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255, 176, 32, 0); } }
@keyframes row-pulse { 0%, 100% { background: #FFFAF0; } 50% { background: #FFE9B8; } }

/* Черновик. */
.dc { align-self: flex-start; width: 92%; padding: 11px 12px 6px; border: 2px solid var(--amber); border-radius: 16px; background: var(--amber-bg); }
.dc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.dc__head b { display: block; font-size: 14.5px; font-weight: 600; }
.dc__head small { display: block; font-size: 12.5px; color: #737373; }
.dc__tag { flex: none; padding: 2px 8px; border-radius: 9px; background: var(--amber); color: #1E1E1E; font-size: 11.5px; font-weight: 600; }
.dc__tag--ok { background: #1E1E1E; color: #fff; }
.dc__f { margin-top: 6px !important; }
.dc__f div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid #F1E3C4; font-size: 13.5px; }
.dc__f dt { color: #737373; }
.dc__f dt em { margin-inline-start: 6px; padding: 0 5px; border-radius: 4px; background: #fff; font-size: 10.5px; font-style: normal; color: var(--amber-ink); }
.dc__f dd { font-weight: 600; text-align: end; }
.dc__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0 4px; border-top: 1px solid #F1E3C4; font-size: 12.5px; color: var(--amber-ink); }
.dc.is-done { border-color: #E2E2E0; background: #fff; }
.dc.is-done .dc__tag { background: #1E1E1E; color: #fff; }
.dc.is-done .dc__f div { border-color: #F0F0EF; }
.dc.is-done .dc__f dt em { background: #F2F2F1; color: #6B6B6B; }

/* Ссылка на запись INSIS: превью, по нажатию — окно. */
.lnk { display: block !important; width: 100%; margin: 6px 0 2px; overflow: hidden; border-inline-start: 3px solid var(--red) !important; border-radius: 8px; background: #F4F4F3 !important; text-align: start; }
.b--out .lnk, .lnk--out { background: #2B2B2B !important; color: #fff !important; }
.lnk--out { align-self: flex-end; width: 78%; }
.lnk.is-wait { animation: ph-pulse 1.4s ease-out infinite; }
.lnk__url { display: block; padding: 6px 10px 0; font-size: 12.5px; color: #2C6A9E; text-decoration: underline; }
.lnk--out .lnk__url { color: #9CC3E6; }
.lnk__pic { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 6px; }
.lnk__body { display: grid; gap: 1px; padding: 7px 10px 9px; }
.lnk__body small { font-size: 11.5px; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: .04em; }
.lnk__body b { font-size: 14px; font-weight: 600; }
.lnk__p { font-size: 14px; font-weight: 600; }
.lnk__body em { justify-self: start; margin-top: 3px; padding: 1px 7px; border-radius: 8px; background: #2E9B5A; color: #fff; font-size: 11.5px; font-style: normal; font-weight: 600; }

/* ── Окна внутри приложения ── */
.sh-listing, .sh-pdf { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden auto; scrollbar-width: none; }
.gal__wrap { position: relative; flex: none; }
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal::-webkit-scrollbar { display: none; }
.gal img { flex: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; }
.gal__dots { display: flex; justify-content: center; gap: 5px; position: absolute; left: 0; right: 0; bottom: 10px; }
.gal__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: background-color .2s, transform .2s; }
.gal__dots i.on { background: #fff; transform: scale(1.25); }
.gal__dots--dark { position: static; padding: 9px 0 2px; }
.gal__dots--dark i { background: #CFCFCD; }
.gal__dots--dark i.on { background: #1E1E1E; }
.sh-body { padding: 12px 16px 24px; }
.sh-body h4 { font-size: 20px; font-weight: 700; }
.sh-loc { display: block; font-size: 13px; color: #737373; }
.sh-price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px !important; }
.sh-price b { font-size: 20px; font-weight: 700; }
.sh-price s { font-size: 13px; color: #8A8A8A; }
.sh-facts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px !important; }
.sh-facts span { padding: 4px 9px; border-radius: 12px; background: #F2F2F1; font-size: 12.5px; font-weight: 500; }
.sh-k { margin-top: 14px !important; font-size: 11.5px; font-weight: 600; color: #6B6B6B; text-transform: uppercase; letter-spacing: .05em; }
.sh-note { font-size: 12.5px; color: #555; }
.sh-acts { display: flex; gap: 8px; margin-top: 14px; }
.sh-acts .pbtn { flex: 1; }
.dld { display: block; width: 100%; height: auto; margin: 4px 0; }
.dld__dot { fill: #9A9A9A; transform-box: fill-box; transform-origin: center; }
.dld__avg { stroke: #1E1E1E; stroke-width: 1.5; stroke-dasharray: 5 4; }
.dld__me { fill: var(--red); }
.dld__t { font: 600 11px var(--sans); fill: #1E1E1E; }
.dld__t--me { fill: var(--red); }
.sh-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 12px 10px 16px; border-bottom: 1px solid #ECECEB; }
.sh-bar div { flex: 1; min-width: 0; }
.sh-bar b { display: block; overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.sh-bar small { font-size: 12px; color: #737373; }
.sh-x { display: grid !important; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #F2F2F1 !important; }
.sh-x .ic { width: 16px; height: 16px; }
.pdf { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow: hidden auto; padding: 10px 22px 28px; background: #E9E9E7; scrollbar-width: none; }
.pdf__p { flex: none; display: flex; flex-direction: column; gap: 6px; aspect-ratio: 210 / 297; padding: 18px 16px; background: #fff; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .4); }
.pdf__p b { font-size: 17px; font-weight: 700; }
.pdf__p b::after { content: ''; display: block; width: 26px; height: 3px; margin-top: 6px; background: var(--red); }
.pdf__p span { font-size: 12px; color: #555; }
.pdf__p--cover img { width: calc(100% + 32px); margin: -18px -16px 8px; aspect-ratio: 1; object-fit: cover; }
.pdf__bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; padding-top: 16px; border-bottom: 1px solid #D6D6D6; }
.pdf__bars i { flex: 1; background: #CFCFCD; }
.pdf__bars i.me { background: var(--red); }
.pdf__plan { flex: 1; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; margin-top: 10px; padding: 3px; border: 2px solid #1E1E1E; }
.pdf__plan i { border: 1px solid #9A9A9A; }
.pdf__plan i:first-child { grid-row: span 2; }
.sh-report { padding: 8px 16px 20px; }
.sh-report h4 { font-size: 18px; font-weight: 700; }
.rp-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.rp-kpi div { display: grid; gap: 1px; padding: 10px; border-radius: 12px; background: #F4F4F3; }
.rp-kpi small { font-size: 12px; color: #737373; }
.rp-kpi b { font-size: 22px; font-weight: 700; }
.rp-kpi em { font-size: 12px; font-style: normal; font-weight: 600; color: #2E9B5A; }
.rp-bars { display: grid; gap: 8px; margin-top: 8px; }
.rp-bars div { display: grid; grid-template-columns: 76px 1fr 32px; align-items: center; gap: 8px; font-size: 13px; }
.rp-bars div > i { height: 10px; border-radius: 5px; background: #F2F2F1; overflow: hidden; }
.rp-bars div > i > i { display: block; width: 0; height: 100%; background: #1E1E1E; }
.rp-bars div:first-child > i > i { background: var(--red); }
.rp-bars b { text-align: end; }
.sh-deal { padding: 6px 16px 22px; }
.sh-deal__top { display: flex; justify-content: space-between; align-items: center; }
.sh-deal__who { display: flex; }
.sh-deal__who .av + .av { margin-inline-start: -10px; box-shadow: 0 0 0 2px #fff; }
.sh-deal__pic { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; margin-top: 10px; border-radius: 12px; }
.sh-deal h4 { margin-top: 10px !important; font-size: 18px; font-weight: 700; }
.sh-deal__v { display: block; font-size: 24px; font-weight: 700; }
.sh-deal p { margin-top: 6px !important; font-size: 13.5px; color: #555; }
.sh-deal__end { margin-top: 12px !important; padding-top: 10px; border-top: 1px solid #ECECEB; font-size: 11px !important; color: var(--red) !important; }

/* «Мой день». */
.day { padding: 0 14px 20px; }
.day__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; border-radius: 14px; background: #F4F4F3; text-align: center; }
.day__stats div { display: grid; padding: 11px 4px; }
.day__stats div + div { border-inline-start: 1px solid #E2E2E0; }
.day__stats b { font-size: 20px; font-weight: 700; }
.day__stats div:first-child b { color: var(--red); }
.day__stats small { font-size: 12px; color: #737373; }
.day__h { margin-top: 18px !important; margin-bottom: 4px !important; font-size: 12px; font-weight: 600; color: #6B6B6B; text-transform: uppercase; letter-spacing: .05em; }
.day-deal { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; row-gap: 6px; padding: 10px 0; border-bottom: 1px solid #F0F0EF; }
.day-deal .av { grid-row: span 2; width: 40px; height: 40px; font-size: 14px; }
.day-deal__t { min-width: 0; }
.day-deal__t b { display: block; font-size: 14.5px; font-weight: 600; }
.day-deal__t small { display: block; overflow: hidden; font-size: 12.5px; color: #737373; white-space: nowrap; text-overflow: ellipsis; }
.day-deal__next { padding: 3px 8px; border-radius: 10px; background: #F2F2F1; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.day-deal__bar { grid-column: 2 / 4; height: 4px; border-radius: 2px; background: #F0F0EF; overflow: hidden; }
.day-deal__bar i { display: block; width: 0; height: 100%; background: #1E1E1E; }
.day-rem { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #F0F0EF; }
.day-rem__dot { flex: none; width: 8px; height: 8px; margin-top: 6px; background: var(--amber); }
.day-rem b { display: block; font-size: 14px; font-weight: 600; }
.day-rem small { font-size: 12.5px; color: #737373; }
.task { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F0F0EF; transition: opacity .3s; }
.task__c { flex: none; display: grid !important; place-items: center; width: 24px; height: 24px; margin-top: 1px; border: 2px solid #BDBDBB !important; border-radius: 50%; color: #fff; }
.task__c.is-wait { border-color: var(--red) !important; animation: ph-pulse 1.4s ease-out infinite; }
.task__c .ic { width: 13px; height: 13px; }
.task b { display: block; font-size: 14.5px; font-weight: 500; }
.task small { font-size: 12.5px; color: #737373; }
.task.is-done { opacity: .55; }
.task.is-done b { text-decoration: line-through; }
.task.is-done .task__c { border-color: #2E9B5A !important; background: #2E9B5A !important; }
.day__end { margin: 18px auto 0 !important; width: max-content; }

/* Карусель, расписание, профиль. */
.car { padding: 8px 0 12px; }
.car__top { display: flex; align-items: center; gap: 8px; padding: 0 14px 8px; font-size: 14px; }
.car__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.car__strip::-webkit-scrollbar { display: none; }
.car__cap { padding: 8px 14px 0; font-size: 13.5px; line-height: 1.4; transition: opacity .3s, filter .3s; }
.car__cap.is-regen { opacity: .25; filter: blur(3px); }
.car__acts, .sch__foot { flex: none; display: flex; gap: 6px; padding: 10px 10px 28px; border-top: 1px solid #ECECEB; background: #fff; }
.car__acts .pbtn { flex: 1; padding: 0 8px !important; font-size: 13px !important; }
.sch__foot { flex-direction: column; }
.sch__hint { font-size: 13px; color: #555; text-align: center; }
.sch { position: relative; margin: 6px 10px 12px; }
.sch__h { height: 46px; border-top: 1px solid #ECECEB; }
.sch__h small { display: block; width: 44px; padding-top: 3px; font-size: 11.5px; color: #8A8A8A; }
.sch__ev { position: absolute; left: 48px; right: 2px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: 10px; font-size: 13px; }
.sch__ev b { font-size: 12.5px; font-weight: 700; }
.sch__ev span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sch__ev--done { background: #F2F2F1; color: #737373; }
.sch__ev--done::after { content: '✓'; color: #2E9B5A; font-weight: 700; }
.sch__ev--plan { background: #EAF2F9; color: #1E1E1E; }
.sch__ev--new { z-index: 2; padding-inline-start: 4px; border: 2px solid var(--amber); background: var(--amber-bg); cursor: grab; touch-action: none; transition: box-shadow .2s, transform .2s; }
.sch__ev--new em { flex: none; padding: 1px 6px; border-radius: 8px; background: var(--amber); font-size: 10.5px; font-style: normal; font-weight: 600; }
.sch__ev--new.is-drag { cursor: grabbing; box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .35); transform: scale(1.03); }
.sch__grip { flex: none; width: 6px; height: 18px; background-image: radial-gradient(#9A9A9A 1.2px, transparent 1.3px); background-size: 3px 4px; }
.ig-head { flex: none; display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 16px; font-size: 17px; }
.ig-head .ic { width: 22px; height: 22px; }
.ig-prof { display: flex; align-items: center; gap: 18px; padding: 4px 16px 0; }
.ig-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.ig-stats div { display: grid; }
.ig-stats b { font-size: 16px; font-weight: 700; }
.ig-stats small { font-size: 12px; color: #555; }
.ig-name { padding: 8px 16px 12px; font-size: 14px; font-weight: 600; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig-post { position: relative; aspect-ratio: 1; overflow: hidden; background: #ECECEC; }
.ig-post > img { width: 100%; height: 100%; object-fit: cover; }
.ig-post__multi { position: absolute; top: 6px; right: 6px; width: 15px; height: 15px; color: #fff; }
.ig-likes { position: absolute; left: 6px; top: 6px; display: flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 9px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; }
.ig-likes svg { width: 11px; height: 11px; color: #FF5A6E; }
.ig-post.is-new { outline: 2px solid var(--amber); outline-offset: -2px; }

/* Обложки постов: у каждого агента свой стиль. Размеры текста — от ширины обложки. */
.cv { position: relative; flex: none; overflow: hidden; container-type: inline-size; aspect-ratio: 1; background: #1A1A1A; }
.cv__pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv__band { position: absolute; inset: auto 0 0; display: grid; gap: 1.5cqw; padding: 5cqw 6cqw 6cqw; }
.cv__band b { font-size: 8.6cqw; font-weight: 700; line-height: 1.02; letter-spacing: -.01em; }
.cv__band span { font-size: 5cqw; line-height: 1.2; opacity: .9; }
.cv__mark { width: 4.4cqw; height: 4.4cqw; }
.cv--price .cv__band, .cv--cta .cv__band { inset: 0; align-content: center; padding: 10cqw; }
.cv--price .cv__band b, .cv--cta .cv__band b { font-size: 12cqw; }
.cv--price .cv__band span, .cv--cta .cv__band span { font-size: 6cqw; }
.cv--ink .cv__band { background: #111; color: #fff; } .cv--ink .cv__mark { background: var(--red); }
.cv--navy .cv__band { background: #13233F; color: #F3E7C9; } .cv--navy .cv__mark { background: #C9A227; }
.cv--sand .cv__band { background: #E9DFCF; color: #3B2F23; } .cv--sand .cv__mark { background: #8A5A3C; }
.cv--red .cv__band { background: var(--red); color: #fff; } .cv--red .cv__mark { background: #fff; }
.cv--green .cv__band { background: #1F3D2B; color: #EDE6D3; } .cv--green .cv__mark { background: #9CC5A1; }
.cv--white .cv__band { background: #fff; color: #111; border-top: 1px solid #111; } .cv--white .cv__mark { background: #111; }
.cv--slide { width: 100%; scroll-snap-align: start; }
.cv--tiny { width: 30px; border-radius: 5px; }
.cv--tiny .cv__band { display: none; }
.cv--grid { width: 100%; height: 100%; }
.cv--grid .cv__band span { display: none; }

/* ══ Под капотом ══ */
.eng { flex: 1; display: flex; flex-direction: column; min-width: 0; max-width: 640px; height: calc(780px * var(--s, 1)); margin-top: 34px; padding: 16px; border: 1px solid var(--g80); background: #111; color: #E8E8E8; }
.eng__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--g80); }
.eng__head .mono { flex: none; color: var(--red-hi); white-space: nowrap; }
.eng__state { font-size: 13px; color: #A8A8A8; text-align: end; }
.eng__grid { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; grid-auto-rows: max-content; gap: 10px; margin-top: 12px; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: #3A3A3A transparent; }
.et { min-width: 0; min-height: 132px; padding: 10px; border: 1px solid #262626; background: #171717; transition: border-color .3s, opacity .3s; opacity: .5; }
.et.is-work, .et.is-done { opacity: 1; }
.et.is-work { border-color: var(--amber); }
.et--wide { grid-column: span 2; min-height: 180px; }
.et__h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #CFCFCF; }
.et__st { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1px solid #3A3A3A; }
.et.is-work .et__st, .et.is-done .et__st { border: 0; }
.et__st .think i { width: 4px; height: 4px; background: var(--amber); }
.et__st .think { gap: 2px; }
.et__note { width: 100%; font: 400 12.5px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--amber); }
.et__body { margin-top: 8px; }
.et__pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.et__pics img, .et__wide { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.et__wide { aspect-ratio: 16 / 7; }
.et__text { font-size: 12.5px; line-height: 1.4; color: #CFCFCF; }
.et .dld__dot { fill: #6E6E6E; }
.et .dld__avg { stroke: #E8E8E8; }
.et .dld__t { fill: #E8E8E8; font-size: 15px; }
.et .dld__t--me, .et .dld__me { fill: var(--red-hi); }
.et__badge { display: inline-block; padding: 3px 9px; background: #2E9B5A; color: #fff; font-size: 13px; font-weight: 600; }
.et__page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: 10px; padding: 6px; background: #fff; color: #1E1E1E; }
.et__page img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.et__page div { display: grid; align-content: start; gap: 2px; font-size: 12px; }
.et__page b { font-size: 13px; }
.et__page em { justify-self: start; padding: 0 6px; background: #2E9B5A; color: #fff; font-style: normal; font-weight: 600; }
.et__fan { display: flex; justify-content: center; padding-top: 4px; }
.et__fan div { display: grid; gap: 4px; width: 64px; padding: 5px; background: #fff; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6); }
.et__fan div:nth-child(1) { transform: rotate(-7deg) translateX(10px); }
.et__fan div:nth-child(3) { transform: rotate(7deg) translateX(-10px); }
.et__fan div:nth-child(2) { z-index: 1; transform: translateY(-4px); }
.et__fan img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.et__fan i { height: 3px; background: #D6D6D6; }
.et__fan i:last-child { width: 60%; }
.et__agents { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ag { display: grid; align-content: start; gap: 5px; min-width: 0; }
.ag__who { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.ag__set { display: grid; }
.ag__set .cv--mini { width: 100%; }
.ag__th { display: flex; align-items: flex-start; gap: 5px; margin-top: 4px; padding: 5px 6px; font-size: 10px; line-height: 1.25; }
.ag__th.cv--ink { background: #111; color: #fff; border: 1px solid #333; } .ag__th.cv--navy { background: #13233F; color: #F3E7C9; } .ag__th.cv--sand { background: #E9DFCF; color: #3B2F23; } .ag__th.cv--red { background: var(--red); color: #fff; } .ag__th.cv--green { background: #1F3D2B; color: #EDE6D3; } .ag__th.cv--white { background: #fff; color: #111; }
.ag__th .cv__mark { width: 5px; height: 5px; background: currentColor; }
.ag__th .cv__mark { flex: none; margin-top: 3px; }
.ag__th span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ag__tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.ag__tags span { padding: 1px 5px; border: 1px solid #3A3A3A; font-size: 10.5px; color: #BDBDBD; }
.ag.is-off { opacity: .5; }
.ag__off { display: grid; place-items: center; aspect-ratio: 1; padding: 6px; border: 1px dashed #3A3A3A; font-size: 11.5px; color: #8A8A8A; text-align: center; }

/* ══ ИИ-триаж: лид глазами системы ══ */
.eng--lead { display: flex; flex-direction: column; }
.lr-state { flex: none; max-width: 60%; padding: 3px 10px; background: #2B2B2B; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr { position: relative; flex: 1; min-height: 0; display: grid; align-content: start; gap: 10px; margin-top: 12px; overflow: hidden auto; scrollbar-width: none; }
.lr__s { padding: 12px; border: 1px solid #262626; background: #171717; transition: border-color .3s; }
.lr__s.is-hl { border-color: var(--amber); }
.lr__h { margin-bottom: 8px; font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #CFCFCF; }
.lr-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #2B2B2B; }
.lr-counts div { display: grid; gap: 2px; padding: 8px 10px; background: #171717; }
.lr-counts b { display: inline-block; font: 700 26px/1 var(--display); color: #fff; }
.lr-counts div:last-child b { color: var(--amber); }
.lr-counts small { font-size: 12.5px; color: #A8A8A8; }
.lr-dl div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid #262626; font-size: 13.5px; }
.lr-dl dt { color: #8A8A8A; }
.lr-dl dd { color: #F1F1F1; text-align: end; }
.lr-dl--ai dd { color: #6E6E6E; }
.lr-dl--ai .is-set dd { color: var(--amber); font-weight: 600; }
.lr-st { display: grid; }
.lr-st li { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: baseline; padding: 6px 0 6px 12px; border-inline-start: 2px solid #3A3A3A; font-size: 13.5px; }
.lr-st time { font: 500 12px var(--mono); color: #8A8A8A; }
.lr-st b { font-weight: 500; color: #E8E8E8; }
.lr-st small { font-size: 12px; color: #8A8A8A; }
.lr-st li.is-ai small { color: var(--amber); }
.lr-st li.is-human small { color: #fff; }
.lr-st li.is-now { border-color: var(--red-hi); }
.lr-st li.is-now b { color: #fff; font-weight: 600; }
.tri { flex: none; padding: 2px 7px; border-radius: 9px; font: 600 11px/15px var(--sans); font-style: normal; white-space: nowrap; }
.tri--off { background: #ECECEB; color: #6B6B6B; }
.tri--route { background: #EAF2F9; color: #2C6A9E; }
.tri--ai { background: var(--amber); color: #1E1E1E; }
.pl-row.is-off .av, .pl-row.is-off .pl-row__main b, .pl-row.is-off .pl-row__text { opacity: .45; }
.pl-row.is-ai { background: #FFFAF0 !important; }
.pl-row .pl-row__low .tri { margin-inline-start: auto; }
.pl-row.is-off .pl-row__text, .pl-row.is-route .pl-row__text, .pl-row.is-ai .pl-row__text { flex: 1; }
.pl-more { padding: 0 16px 12px 73px; font-size: 13px; color: #8A8A8A; }
.pl-accept { display: flex; align-items: center; gap: 10px; margin: 10px 12px 0; padding: 10px 10px 10px 12px; border: 2px solid var(--amber); border-radius: 16px; background: var(--amber-bg); }
.pl-accept div { flex: 1; min-width: 0; display: grid; }
.pl-accept small { font-size: 11.5px; font-weight: 600; color: var(--amber-ink); text-transform: uppercase; letter-spacing: .04em; }
.pl-accept b { overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.pl-accept span { font-size: 12.5px; color: var(--red); font-weight: 600; }
.b--persona .b__who { color: var(--amber-ink); }
.b--persona { border: 1.5px solid #F4D79A; }
.lc { padding: 0 14px 24px; }
.lc__b { padding-bottom: 6px; }
.lc-dl div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #F0F0EF; font-size: 13.5px; }
.lc-dl dt { color: #737373; }
.lc-dl dd { font-weight: 500; text-align: end; }
.lc-ai { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px; border: 2px solid var(--amber); border-radius: 14px; background: var(--amber-bg); }
.lc-ai span { padding: 3px 9px; border-radius: 11px; background: #fff; font-size: 13px; font-weight: 500; }
.lc-talk { padding: 10px 12px; border-radius: 14px; background: #F4F4F3; }
.lc-talk__h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px !important; }
.lc-talk__h b { font-size: 13.5px; font-weight: 600; }
.lc-talk__h small { font-size: 12px; color: #737373; }
.lc-talk__m { margin-top: 4px !important; padding: 6px 9px; border-radius: 10px; background: #fff; font-size: 13px; line-height: 1.35; }
.lc-talk__m--ai { border-inline-start: 3px solid var(--amber); }
.lc-st li { display: grid; grid-template-columns: 42px 1fr; column-gap: 8px; padding: 6px 0 6px 10px; border-inline-start: 2px solid #E2E2E0; font-size: 13.5px; }
.lc-st time { grid-row: span 2; font-size: 12px; color: #8A8A8A; }
.lc-st b { font-weight: 600; }
.lc-st small { font-size: 12px; color: #737373; }
.lc-st li:last-child { border-color: var(--red); }

/* ══ Гипотеза ══ */
.cs--hyp { background: var(--g05); color: var(--graphite); border-bottom: 1px solid var(--g20); }
.cs--hyp .chap span { color: var(--g40); }
.cs--hyp .chap { color: var(--red); }
.cs--hyp .cs__lead { color: var(--g60); }
.cs--hyp .cs__text { position: static; }
.hyp__pc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.hyp__pc .mono { padding-bottom: 8px; border-bottom: 2px solid var(--graphite); }
.hyp__pc div:last-child .mono { border-color: var(--g40); color: var(--g60); }
.hyp__pc li { padding: 10px 0; border-bottom: 1px solid var(--g20); font-size: 16px; line-height: 1.4; }
.hyp__ask { margin: 28px 0 18px; max-width: 520px; font-size: 17px; line-height: 1.45; }
.hyp__board { padding: 18px; border: 1px solid var(--g20); background: var(--white); }
.hyp__now { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--graphite); color: #fff; font-size: 15px; font-weight: 500; }
.hyp__now i { flex: none; width: 10px; height: 10px; background: #3DBE6E; }
.hyp__maybe { margin: 18px 0 10px; color: var(--amber-ink); }
.hyp__maybe::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-inline-end: 10px; background: var(--amber); vertical-align: -1px; }
.hyp__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 2px dashed var(--amber); padding: 10px; background: var(--amber-bg); }
.hyp__col { display: grid; align-content: start; gap: 8px; min-height: 300px; }
.hyp__col > p { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--g60); }
.kb { display: grid; gap: 10px; padding: 10px; border: 1px solid var(--g20); background: var(--white); font-size: 14px; line-height: 1.3; }
.kb b { font-weight: 500; }
.kb__who { justify-self: end; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--graphite); color: #fff; font-size: 10px; font-weight: 600; }

/* ══ Ещё ══ */
.cs--more { background: var(--white); color: var(--graphite); }
.cs--more .chap { color: var(--red); }
.cs--more .chap span { color: var(--g40); }
.cs--more .cs__lead { color: var(--g60); }
.more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(32px, 4vw, 56px); background: var(--g20); border: 1px solid var(--g20); }
.more li { display: grid; align-content: start; gap: 10px; min-height: 200px; padding: 20px; background: var(--white); }
.more b { font: 500 13px var(--mono); color: var(--red); }
.more h3 { font-size: 20px; line-height: 1.2; }
.more p { font-size: 15px; line-height: 1.45; color: var(--g60); }


/* ── Узкие экраны ── */
@media (max-width: 1180px) {
  .cs--wide .cs__grid { grid-template-columns: minmax(0, 1fr); }
  .cs__head { grid-template-columns: 1fr; }
  .cs__head .cs__lead { margin-top: 20px; }
  .eng { height: auto; max-height: none; }
  .eng__grid, .lr { overflow: visible; }
  .cs--wide .cs__text { position: static; }
  .cs-index ol { grid-template-columns: repeat(4, 1fr); }
  .more { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cs__grid { grid-template-columns: minmax(0, 1fr); }
  .cs__text { position: static; }
  .cs__stage { flex-direction: column; align-items: center; }
  .eng { width: 100%; }
  .js .cs-steps { display: flex; gap: 6px; overflow-x: auto; border: 0; scrollbar-width: none; margin-top: 24px; }
  .js .cs-steps li { flex: none; border: 0; }
  .js .cs-steps button { padding: 8px 12px 9px; border: 1px solid var(--g60); font-size: 15px; }
  .js .cs-steps button.is-on { border-color: #fff; }
  .js .cs-step__cap, .js .cs-steps li:has(.is-on) .cs-step__cap { display: none; }
  .js .cs__cap { display: block; min-height: 3em; margin-top: 14px; font-size: 16px; line-height: 1.45; color: #fff; }
  .hyp__pc { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cs-index ol { grid-template-columns: repeat(2, 1fr); }
  .cs-index a { min-height: 72px; }
  .more { grid-template-columns: 1fr; }
  .more li { min-height: 0; }
  .eng__grid { grid-template-columns: 1fr; }
  .et--wide { grid-column: auto; }
  .et__agents { grid-template-columns: repeat(2, 1fr); }
  .hyp__cols { grid-template-columns: 1fr; }
  .hyp__col { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ph__sheet, .ph__dim { transition: none; }
}
