/* Каркас — компактный конструктор для вставки на сайт клиента. Занимает ровно отведённое окно: слева модель, справа настройки. */
html, body.embed { height: 100%; }
body.embed { margin: 0; overflow: hidden; background: var(--bg); }
.em { display: grid; grid-template-columns: minmax(0, 1fr) 310px; height: 100vh; height: 100dvh; }
.em__stage { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.em__stage .scene { height: auto; min-height: 0; border: 0; border-radius: 0; }
.em__brand { position: absolute; left: 12px; top: 10px; z-index: 2; max-width: 55%; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-weight: 700; font-size: .875rem; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em__brand:not([hidden]) ~ .scene .scene__size, .em__stage:has(.em__brand:not([hidden])) .scene__size { top: 48px; }
.em__stage:has(.em__brand:not([hidden])) .scene__tools { top: 86px; }
.em__stage .scene__hint { display: none; }
.em__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--card); border-top: 1px solid var(--line); }
.em__price { display: grid; margin-right: auto; line-height: 1.1; }
.em__price span { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.em__price b { font-size: 1.375rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.em__go { padding: 0 18px; }
.em__side { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; background: var(--card); border-left: 1px solid var(--line); }
.em__side .panel { border-radius: 0; box-shadow: none; padding: 16px; gap: 18px; }
.em__side .panel .sws { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.em__order { border-radius: 0; box-shadow: none; padding: 16px; min-height: 100%; }
.em__order h2 { font-size: 1.25rem; text-transform: none; letter-spacing: -.02em; }
.em__hint { font-size: .875rem; color: var(--ink-2); }
.em__back { justify-self: start; align-self: flex-start; min-height: 40px; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.em__back:hover { color: var(--ink); }
.embed .btn--accent { color: var(--on-accent, #fff); }
.embed .chips input:checked + span, .embed .presets button[aria-pressed="true"] { color: #fff; }
@media (max-width: 620px) {
  .em { grid-template-columns: minmax(0, 1fr); grid-template-rows: 44% minmax(0, 1fr); }
  .em__side { border-left: 0; border-top: 1px solid var(--line); }
  .em__bar { padding: 8px 10px; }
  .em__bar [data-svg] { display: none; }
  .em__price b { font-size: 1.125rem; }
  .em__stage .scene__cams { display: none; }
}

/* Подпись на базовом тарифе и в демонстрации; заглушка, когда подписка закончилась */
.em__badge { position: absolute; right: 10px; top: 10px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: rgba(10, 10, 10, .78); color: #fff; font-size: .6875rem; font-weight: 600; letter-spacing: .02em; }
.em__badge:hover { background: #0A0A0A; }
.em__lock { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(248, 244, 241, .96); text-align: center; }
.em__lock div { display: grid; gap: 10px; max-width: 34ch; }
.em__lock b { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.em__lock p { font-size: .9375rem; color: var(--ink-2); }
