/*
 * Кабинет «Деливеренот для бизнеса»: поверх токенов панели YOI (css/yoi.css).
 * Крупные цели нажатия (≥48px), контраст AA, цвет никогда не единственный признак статуса.
 */

body.biz { margin: 0; background: var(--yoi-bg); color: var(--yoi-text); font: 15px/1.55 Inter, "Segoe UI", system-ui, sans-serif; }
.biz *, .biz *::before, .biz *::after { box-sizing: border-box; }
.biz a { color: var(--yoi-green); }

.biz-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--yoi-surface); border-bottom: 1px solid var(--yoi-border); position: sticky; top: 0; z-index: var(--yoi-z-sticky); }
.biz-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--yoi-text) !important; font-weight: 700; font-size: 18px; }
.biz-brand small { font-weight: 500; color: var(--yoi-muted); font-size: 13px; margin-left: 2px; }
.biz-nav { flex: 1; display: flex; gap: 6px; overflow-x: auto; }
.biz-nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--yoi-text) !important; white-space: nowrap; font-weight: 600; }
.biz-nav a:hover, .biz-nav a.active { background: var(--yoi-green-light); }

.biz-main { max-width: 1040px; margin: 0 auto; padding: 36px 36px 128px; }
.biz-main h1 { font-size: clamp(28px,3vw,36px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.03em; }
.biz-lead { color: var(--yoi-muted); margin: 0 0 18px; font-size: 16px; }

/* Выбор ресторана */
.biz-chain { margin-bottom: 22px; }
.biz-chain-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.biz-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--yoi-green-light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--yoi-green-dark); }
.biz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.biz-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--yoi-surface); border: 1px solid var(--yoi-border); border-radius: var(--yoi-radius); text-decoration: none; color: var(--yoi-text) !important; min-height: 96px; }
.biz-card:hover, .biz-card:focus-visible { border-color: var(--yoi-green); box-shadow: var(--yoi-shadow); outline: none; }
.biz-card b { font-size: 17px; }
.biz-card span { color: var(--yoi-muted); font-size: 14px; }

/* Мастер: шаги */
.biz-steps { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.biz-step { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--yoi-surface); border: 1px solid var(--yoi-border); white-space: nowrap; font-weight: 600; font-size: 14px; color: var(--yoi-muted); }
.biz-step i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--yoi-surface-2); color: var(--yoi-green-dark); font-size: 13px; }
.biz-step.current { border-color: var(--yoi-green); color: var(--yoi-text); background: var(--yoi-green-soft); }
.biz-step.current i { background: var(--yoi-green); color: #fff; }
.biz-step.done i { background: var(--yoi-green-dark); color: #fff; }

.biz-panel { background: var(--yoi-surface); border: 1px solid var(--yoi-border); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.biz-panel h2 { margin: 0 0 4px; font-size: 20px; }
.biz-panel h3 { margin: 18px 0 6px; font-size: 17px; }
.biz-hint { color: var(--yoi-muted); font-size: 14px; margin: 4px 0 10px; }
.biz-err { color: var(--yoi-red); font-weight: 600; margin: 8px 0; }
.biz-ok { color: #23745e; font-weight: 600; }
.biz-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.biz-grow { flex: 1; min-width: 180px; }
.biz-two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
@media (max-width: 720px) { .biz-two { grid-template-columns: 1fr; } }

.biz-footer { position: fixed; left: 0; right: 0; bottom: 0; background: var(--yoi-surface); border-top: 1px solid var(--yoi-border); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; justify-content: space-between; z-index: var(--yoi-z-sticky); }
.biz-footer .inner { max-width: 1040px; margin: 0 auto; width: 100%; display: flex; gap: 10px; justify-content: space-between; align-items: center; }

.biz-btn-big { min-height: 56px; padding: 0 28px; font-size: 18px; font-weight: 700; border-radius: 14px; }
.biz .yoi-btn { min-height: 44px; }

/* Выбор из крупных карточек */
.biz-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 10px 0; }
.biz-choice button { text-align: left; padding: 16px; border: 2px solid var(--yoi-border); border-radius: 14px; background: var(--yoi-surface); cursor: pointer; font: inherit; color: inherit; min-height: 88px; }
.biz-choice button b { display: block; font-size: 18px; margin-bottom: 4px; }
.biz-choice button span { color: var(--yoi-muted); font-size: 14px; }
.biz-choice button[aria-pressed="true"] { border-color: var(--yoi-green); background: var(--yoi-green-soft); }
.biz-choice button:focus-visible { outline: none; box-shadow: var(--yoi-focus); }

/* Теги-специализации */
.biz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--yoi-border-strong); background: var(--yoi-surface); cursor: pointer; font: inherit; font-weight: 600; min-height: 44px; }
.biz-chip[aria-pressed="true"] { background: var(--yoi-green); border-color: var(--yoi-green); color: #fff; }

/* Инструкция iiko */
.biz-guide { counter-reset: s; list-style: none; padding: 0; margin: 12px 0; }
.biz-guide li { counter-increment: s; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--yoi-border); font-size: 17px; }
.biz-guide li::before { content: counter(s); flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--yoi-green); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.biz-guide li b { display: block; }

/* Адрес и карта */
.biz-map { height: 360px; border-radius: 14px; border: 1px solid var(--yoi-border); overflow: hidden; background: var(--yoi-surface-2); position: relative; }
.biz-map-note { position: absolute; left: 10px; top: 10px; z-index: 2; background: rgba(255,255,255,.95); padding: 6px 10px; border-radius: 10px; font-size: 13px; box-shadow: var(--yoi-shadow); max-width: 70%; }
.biz-suggest { position: relative; }
.biz-suggest ul { position: absolute; z-index: var(--yoi-z-dropdown); left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--yoi-border-strong); border-radius: 12px; box-shadow: var(--yoi-shadow); max-height: 280px; overflow: auto; }
.biz-suggest li { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.biz-suggest li:hover, .biz-suggest li[aria-selected="true"] { background: var(--yoi-green-light); }

/* Зоны */
.biz-zone { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--yoi-border); border-radius: 12px; margin-bottom: 8px; background: var(--yoi-surface); }
.biz-zone .sw { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; border: 1px solid rgba(0,0,0,.2); }
.biz-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.biz-swatches button { width: 38px; height: 38px; border-radius: 10px; border: 3px solid transparent; cursor: pointer; }
.biz-swatches button[aria-pressed="true"] { border-color: var(--yoi-text); }

/* Подключение iiko */
.biz-status { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; margin: 10px 0; font-weight: 600; }
.biz-status.ok { background: #e3f5ec; color: #17503f; }
.biz-status.bad { background: #fbe9ea; color: #7c1a22; }
.biz-status.wait { background: var(--yoi-surface-2); color: var(--yoi-muted); }
.biz-status.warn { background: #fffbeb; color: #6b4415; border: 1px solid #f3c96b; }

/* Меню iiko */
.biz-menu-cat { margin: 14px 0 6px; font-size: 16px; font-weight: 700; }
.biz-dish { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--yoi-border); }
.biz-dish img, .biz-dish .noimg { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--yoi-surface-2); }
.biz-dish .meta { color: var(--yoi-muted); font-size: 14px; }
.biz-dish.hidden { opacity: .55; }

/* Заглушка раздела при внешней системе учёта */
.biz-stub { text-align: center; padding: 36px 16px; }
.biz-stub img { width: 96px; height: auto; margin-bottom: 8px; }

/* Успех: енот и конфетти (отключается при reduced-motion) */
.biz-success { text-align: center; padding: 30px 16px 10px; position: relative; overflow: hidden; }
.biz-success img { width: 150px; height: auto; animation: biz-hop 1.1s ease-in-out 3; transform-origin: bottom center; }
.biz-success h2 { font-size: 26px; margin: 12px 0 6px; }
.biz-confetti i { position: absolute; top: -10px; width: 10px; height: 16px; border-radius: 2px; animation: biz-fall 2.6s linear forwards; opacity: 0; }
@keyframes biz-hop { 0%,100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-26px) rotate(-6deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-14px) rotate(5deg); } }
@keyframes biz-fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(420px) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .biz-success img, .biz-confetti i { animation: none; } .biz-confetti { display: none; } }

.biz-table { width: 100%; border-collapse: collapse; }
.biz-table th, .biz-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--yoi-border); vertical-align: middle; }
.biz-table th { color: var(--yoi-muted); font-size: 13px; font-weight: 600; }
.biz-scroll { overflow-x: auto; }

.biz-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 6px 0 14px; }
.biz-tabs button { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--yoi-border); background: var(--yoi-surface); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; min-height: 44px; }
.biz-tabs button[aria-selected="true"] { background: var(--yoi-green); color: #fff; border-color: var(--yoi-green); }

.biz-perm-group { margin: 10px 0; }
.biz-perm-group b { display: block; margin-bottom: 4px; }
.biz-perm { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 6px 0; min-height: 32px; }
.biz [hidden] { display: none !important; }

/* Внутри панели YOI: место под боковое меню (на телефоне оно выезжает поверх). */
@media (min-width: 901px) {
  body.biz { padding-left: 240px; }
  body.biz .biz-footer { left: 240px; }
}
body.biz .biz-top { padding-top: calc(10px + env(safe-area-inset-top)); }
.biz-kicker { margin:0 0 8px; color:var(--brand-green-strong); font-size:.72rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.biz-main { max-width:1200px; }
.biz-main h1 { letter-spacing:-.035em; }
.biz-card, .biz-panel { border-color:var(--brand-line); border-radius:var(--brand-radius-md); }
.biz-tabs { border-bottom:1px solid var(--brand-line); padding-bottom:6px; }
.biz-tabs button { border-radius:var(--brand-radius-sm); }
/* Редактор витрины заведения (js/business/page-design.js): вкладки слева, живой предпросмотр справа. */
.pd-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin:18px 0 8px; }
.pd-head h2 { margin:0 0 8px; font-size:clamp(1.6rem,2.5vw,2.2rem); letter-spacing:-.035em; }
.pd-head .biz-hint { max-width:62ch; }
.pd-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px; }
.pd-actions a[aria-disabled=true] { opacity:.5; pointer-events:none; }
.pd-status { min-height:24px; margin:0 0 6px; color:var(--brand-muted); font-size:.87rem; }
.pd-layout { display:grid; grid-template-columns:minmax(340px,.9fr) minmax(380px,1.1fr); gap:22px; align-items:start; }
.pd-form { display:flex; flex-direction:column; gap:12px; min-width:0; }
.pd-form .biz-panel { margin:0; }
.pd-form h3 { margin:0 0 12px; font-size:1.05rem; }
.pd-form h3.pd-sub { margin-top:22px; }
.pd-tabs { display:flex; flex-wrap:wrap; gap:4px; padding:4px; border-radius:14px; background:var(--brand-soft); scrollbar-width:none; }
.pd-tab { flex:none; min-height:40px; padding:0 14px; border:0; border-radius:10px; background:transparent; color:var(--brand-charcoal); font:inherit; font-size:.86rem; font-weight:700; cursor:pointer; white-space:nowrap; }
.pd-tab:hover { background:rgba(255,255,255,.6); }
.pd-tab[aria-selected=true] { background:#fff; color:var(--brand-green-strong); box-shadow:0 1px 4px rgba(41,37,31,.12); }
.pd-presets { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; margin-bottom:14px; }
.pd-preset { display:flex; flex-direction:column; gap:8px; padding:8px; border:1px solid var(--brand-line); border-radius:14px; background:#fff; text-align:left; font:inherit; cursor:pointer; transition:border-color .15s ease, box-shadow .15s ease; }
.pd-preset:hover { border-color:var(--brand-green); }
.pd-preset[aria-pressed=true] { border-color:var(--brand-green); box-shadow:0 0 0 2px var(--brand-green); }
.pd-preset-swatch { position:relative; display:flex; align-items:flex-end; height:64px; padding:8px; border-radius:10px; box-shadow:inset 0 0 0 1px rgba(41,37,31,.08); }
.pd-preset-card { display:grid; place-items:center; width:44px; height:36px; border-radius:8px; font-size:1.05rem; font-weight:800; box-shadow:0 2px 6px rgba(0,0,0,.08); }
.pd-preset-dot { position:absolute; right:10px; bottom:10px; width:22px; height:22px; border-radius:50%; box-shadow:0 0 0 2px rgba(255,255,255,.8); }
.pd-preset-text b { display:block; font-size:.88rem; }
.pd-preset-text small { color:var(--brand-muted); font-size:.75rem; }
.pd-color-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.pd-color { min-height:52px; display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:10px; align-items:center; padding:8px 10px; border:1px solid var(--brand-line); border-radius:12px; background:#fff; font-size:.8rem; font-weight:700; }
.pd-color input[type=color] { grid-row:1 / span 2; width:44px; height:44px; border:0; padding:0; background:transparent; cursor:pointer; }
.pd-hex { width:100%; min-height:26px; padding:2px 6px; border:1px solid transparent; border-radius:6px; background:var(--brand-field); font:600 .78rem/1.2 ui-monospace,Consolas,monospace; color:var(--brand-muted); }
.pd-hex:focus { border-color:var(--brand-green); color:var(--brand-charcoal); }
.pd-field { display:flex; flex-direction:column; gap:6px; margin:12px 0; font-size:.86rem; font-weight:700; color:var(--brand-charcoal); position:relative; }
.pd-field input:not([type=file]),.pd-field textarea,.pd-field select { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--brand-line); border-radius:12px; background:#fff; font:inherit; font-weight:500; }
.pd-field textarea { resize:vertical; }
.pd-hint { color:var(--brand-muted); font-size:.76rem; font-weight:500; }
.pd-count { align-self:flex-end; color:var(--brand-muted); font-size:.72rem; font-weight:600; font-variant-numeric:tabular-nums; }
.pd-font-sample { display:flex; flex-direction:column; gap:4px; padding:14px; border-radius:12px; background:var(--brand-field); }
.pd-font-sample b { font-size:1.35rem; line-height:1.2; }
.pd-font-sample span { color:var(--brand-muted); font-size:.92rem; }
.pd-choices { margin:12px 0; padding:0; border:0; min-width:0; }
.pd-choices legend { margin-bottom:8px; padding:0; font-size:.86rem; font-weight:700; }
.pd-choice-row { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:8px; }
.pd-choice { position:relative; display:flex; flex-direction:column; gap:6px; padding:10px; border:1px solid var(--brand-line); border-radius:12px; background:#fff; cursor:pointer; }
.pd-choice input { position:absolute; opacity:0; pointer-events:none; }
.pd-choice:has(input:checked) { border-color:var(--brand-green); box-shadow:0 0 0 2px var(--brand-green); background:var(--brand-green-wash); }
.pd-choice:has(input:focus-visible) { outline:3px solid var(--brand-green); outline-offset:2px; }
.pd-scheme svg { display:block; width:100%; height:auto; max-height:48px; fill:var(--brand-green-strong); color:var(--brand-green-strong); }
.pd-choice-text b { display:block; font-size:.84rem; }
.pd-choice-text small { display:block; color:var(--brand-muted); font-size:.72rem; line-height:1.35; }
.pd-image { display:flex; gap:12px; align-items:center; margin:12px 0; padding:10px; border:1px solid var(--brand-line); border-radius:12px; background:#fff; }
.pd-image-thumb { flex:none; width:92px; height:68px; overflow:hidden; border-radius:10px; background:var(--brand-field); }
.pd-image-thumb img { width:100%; height:100%; object-fit:cover; }
.pd-image-thumb.is-empty { background:repeating-linear-gradient(135deg,var(--brand-field) 0 8px,var(--brand-soft) 8px 16px); }
.pd-image-thumb.is-empty img { display:none; }
.pd-image-body { display:flex; flex-direction:column; gap:4px; min-width:0; }
.pd-image-body b { font-size:.86rem; }
.pd-image-body small { color:var(--brand-muted); font-size:.75rem; line-height:1.35; }
.pd-image-actions { display:flex; gap:6px; flex-wrap:wrap; margin-top:4px; }
.pd-file { position:relative; overflow:hidden; cursor:pointer; }
.pd-file input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.pd-file:focus-within { outline:3px solid var(--brand-green); outline-offset:2px; }
.pd-section-row { min-height:54px; display:flex; justify-content:space-between; align-items:center; gap:8px; padding:8px 0; border-top:1px solid var(--brand-line); }
.pd-section-row > div { display:flex; align-items:center; gap:6px; }
.pd-section-row button { min-width:44px; min-height:44px; border:1px solid var(--brand-line); border-radius:10px; background:#fff; cursor:pointer; }
.pd-section-toggle { display:flex; align-items:center; gap:5px; font-size:.76rem; }
.pd-hl-row { display:flex; gap:8px; margin-bottom:8px; }
.pd-hl-row input { flex:1; min-width:0; min-height:44px; padding:10px 12px; border:1px solid var(--brand-line); border-radius:12px; font:inherit; }
.pd-switch { display:flex; gap:10px; align-items:flex-start; margin:12px 0; padding:12px; border-radius:12px; background:var(--brand-field); font-weight:700; font-size:.88rem; cursor:pointer; }
.pd-switch input { width:20px; height:20px; margin-top:1px; accent-color:var(--brand-green); }
.pd-checks { padding:12px 14px; border:1px solid var(--brand-line); border-radius:14px; background:#fff; }
.pd-checks-head { display:flex; justify-content:space-between; gap:8px; margin-bottom:6px; font-size:.88rem; }
.pd-good { color:var(--brand-green-strong); font-weight:700; }
.pd-bad { color:var(--brand-danger); font-weight:800; }
.pd-checks ul { margin:0; padding:0; list-style:none; display:grid; gap:2px; }
.pd-checks li { display:flex; justify-content:space-between; gap:8px; font-size:.78rem; color:var(--brand-muted); font-variant-numeric:tabular-nums; }
.pd-checks li.is-bad { color:var(--brand-danger); }
.pd-checks li.is-warn { color:var(--brand-warning); }
.pd-preview-pane { position:sticky; top:16px; min-width:0; padding:14px; border:1px solid var(--brand-line); border-radius:18px; background:var(--yoi-surface,#fff); }
.pd-preview-head { display:flex; flex-wrap:wrap; gap:8px; justify-content:space-between; align-items:center; margin-bottom:12px; }
.pd-seg { display:inline-flex; gap:4px; padding:4px; border-radius:12px; background:var(--brand-soft); }
.pd-seg button { min-height:36px; padding:0 12px; border:0; border-radius:9px; background:transparent; font:inherit; font-size:.82rem; font-weight:700; color:var(--brand-charcoal); cursor:pointer; }
.pd-seg button[aria-pressed=true] { background:#fff; color:var(--brand-green-strong); box-shadow:0 1px 4px rgba(41,37,31,.12); }
.pd-stage { position:relative; overflow:hidden; border-radius:16px; background:var(--brand-soft); }
.pd-frame { position:absolute; top:0; left:0; display:block; border:0; background:#fff; transform-origin:top left; }
.pd-stage.is-mobile .pd-frame { border-radius:18px; }
.pd-preview-note { margin:8px 0 0; font-size:.76rem; }
@media(max-width:1100px){ .pd-head { flex-direction:column; }.pd-actions { justify-content:flex-start; }.pd-layout { grid-template-columns:1fr; }.pd-preview-pane { position:static; order:-1; } }
@media(max-width:600px){ .pd-head { margin-top:12px; }.pd-actions > * { flex:1 1 45%; justify-content:center; }.pd-preview-pane { padding:10px; }.pd-color-grid { grid-template-columns:1fr; } }

.biz a.yoi-btn-primary { color:#fff; }
.biz-main { min-width:0; }
.biz-main > .biz-lead { max-width:70ch; margin-bottom:28px; }
.biz-main h1 { overflow-wrap:anywhere; }
.biz-main .biz-row > div { min-width:0; }
.biz-hub { max-width:1080px; }
.biz-hub .bz-find { margin:24px 0!important; background:var(--yoi-surface); min-height:48px; }
.biz-hub .bz-find input { min-height:48px; }
.biz-hub .bz-choose-grid { grid-template-columns:1fr; gap:0; margin:12px 0 28px; }
.biz-hub .bz-choice { background:transparent; border:0; border-bottom:1px solid var(--yoi-border); border-radius:0; padding:20px 0; min-height:100px; box-shadow:none; }
.biz-hub .bz-choice:hover { background:var(--yoi-green-light); }
.biz-hub .bz-choice b { font-size:19px; }
.biz-hub .bz-choice small { margin-top:4px; font-size:14px; }
.biz-hub .bz-choice .bz-kind { text-transform:none; letter-spacing:0; font-weight:600; }
.biz-table { font-size:14px; font-variant-numeric:tabular-nums; }
.biz-table th { padding:12px; background:var(--yoi-green-soft); color:var(--yoi-muted); }
.biz-table td { padding:14px 12px; }
.biz-table tbody tr:hover { background:var(--yoi-green-soft); }
.biz-scroll { max-width:100%; overscroll-behavior-x:contain; scrollbar-color:#B9B0A1 #F0EAE0; }
.biz-tabs { gap:8px; margin:8px 0 24px; }
.biz-panel > h2 { font-size:20px; letter-spacing:-.02em; margin-bottom:12px; }
.biz-footer .inner { gap:16px; }
.biz-footer .inner > .biz-row { min-width:0; }
.biz-footer .biz-hint { font-size:13px; }
.biz-steps { padding-bottom:12px; margin-bottom:24px; }
.pd-section-row button,.pd-color input { min-width:44px; min-height:44px; }
.pd-preview-head button { min-height:44px; }
@media(max-width:900px){ .biz-main { padding:28px 20px 144px; } }
@media(max-width:600px){ .biz-main { padding:24px 16px 176px; }.biz-main h1 { font-size:28px; }.biz-panel { padding:18px; }.biz-grow { min-width:0; }.biz-row { gap:10px; }.biz-cards,.biz-choice,.bz-choose-grid { grid-template-columns:1fr; }.biz-footer .inner { align-items:stretch; gap:10px; }.biz-footer .inner > .biz-row { flex:1; }.biz-footer .biz-hint { flex-basis:100%; max-width:none!important; }.biz-footer .biz-btn-big { min-height:48px; padding:0 16px; font-size:15px; }.biz-guide li { font-size:15px; }.biz-table { min-width:560px; } }

/* «Чат с гостями» (js/business/chats.js): список переписок и диалог; на телефоне — по очереди. */
.bz-chats { display:grid; grid-template-columns:minmax(220px,320px) minmax(0,1fr); gap:12px; margin-top:12px; min-height:420px; }
.bz-chats-list { display:flex; flex-direction:column; gap:6px; max-height:560px; overflow:auto; }
.bz-chat-row { position:relative; display:flex; flex-direction:column; gap:2px; width:100%; min-height:56px; padding:10px 40px 10px 12px; text-align:left; font:inherit; color:var(--yoi-text); background:var(--yoi-surface); border:1px solid var(--yoi-border); border-radius:12px; cursor:pointer; }
.bz-chat-row:hover, .bz-chat-row[aria-current="true"] { border-color:var(--yoi-green); background:var(--yoi-green-soft); }
.bz-chat-row:focus-visible { outline:2px solid var(--yoi-focus); outline-offset:2px; }
.bz-chat-top { display:flex; justify-content:space-between; gap:8px; }
.bz-chat-top b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bz-chat-top time { color:var(--yoi-muted); font-size:12px; white-space:nowrap; }
.bz-chat-prev { color:var(--yoi-muted); font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bz-chat-unread { position:absolute; right:10px; top:50%; transform:translateY(-50%); min-width:22px; height:22px; padding:0 6px; border-radius:11px; background:var(--yoi-green); color:#fff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.bz-chats-dialog { display:flex; flex-direction:column; min-width:0; border:1px solid var(--yoi-border); border-radius:12px; background:var(--yoi-surface-2); padding:12px; }
.bz-chat-head { display:flex; align-items:center; gap:10px; padding-bottom:10px; border-bottom:1px solid var(--yoi-border); }
.bz-chat-back { display:none; }
.bz-chat-msgs { flex:1; min-height:240px; max-height:460px; overflow:auto; display:flex; flex-direction:column; gap:8px; padding:12px 2px; }
.bz-msg { max-width:80%; padding:8px 12px; border-radius:14px; background:var(--yoi-surface); border:1px solid var(--yoi-border); }
.bz-msg--guest { align-self:flex-start; border-bottom-left-radius:4px; }
.bz-msg--me { align-self:flex-end; background:var(--yoi-green-light); border-color:var(--yoi-green-light); border-bottom-right-radius:4px; }
.bz-msg-text { white-space:pre-wrap; overflow-wrap:anywhere; }
.bz-msg-meta { margin-top:2px; font-size:12px; color:var(--yoi-muted); }
.bz-chat-form { display:flex; gap:8px; align-items:flex-end; }
.bz-chat-form textarea { flex:1; min-height:48px; resize:vertical; }
.bz-chat-form button { min-height:48px; }
@media(max-width:760px){
  .bz-chats { grid-template-columns:1fr; min-height:0; }
  .bz-chats.is-dialog .bz-chats-list, .bz-chats:not(.is-dialog) .bz-chats-dialog { display:none; }
  .bz-chat-back { display:inline-flex; }
  .bz-chats-list { max-height:none; }
  .bz-msg { max-width:90%; }
}

/* Живой предпросмотр витрины (2026-10-14): настоящие страницы гостя во фрейме, два кадра без мигания. */
.pd-frame[hidden] { display:none; }
.pd-veil { position:absolute; inset:0; z-index:2; display:grid; place-items:center; padding:24px; background:rgba(245,244,240,.88); color:var(--brand-charcoal); font-weight:700; font-size:.92rem; line-height:1.5; text-align:center; backdrop-filter:blur(2px); }
.pd-veil[hidden] { display:none; }
.pd-busy { position:absolute; z-index:3; left:0; right:0; top:0; height:3px; overflow:hidden; background:transparent; }
.pd-busy[hidden] { display:none; }
.pd-busy::after { content:''; position:absolute; top:0; bottom:0; width:40%; border-radius:3px; background:var(--brand-green); animation:pd-busy 1s ease-in-out infinite; }
@keyframes pd-busy { from { left:-40%; } to { left:100%; } }
.pd-preview-foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 14px; margin-top:8px; }
.pd-preview-foot .pd-preview-note { flex:1 1 260px; margin:0; }
.pd-open { flex:none; min-height:36px; display:inline-flex; align-items:center; color:var(--brand-green-strong); font-size:.84rem; font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.pd-open[aria-disabled=true] { opacity:.45; pointer-events:none; }
.pd-seg--views button { padding:0 10px; }
@media (prefers-reduced-motion: reduce) { .pd-busy::after { animation:none; left:0; width:100%; opacity:.5; } }

/* Мерки обложки ресторана (2026-11-13): превью 3 : 1 с рамками — компьютер (4 : 1), телефон (середина), безопасная зона. */
.pd-image--spec { align-items: flex-start; flex-wrap: wrap; }
.pd-image-thumb--cover { position: relative; width: 100%; max-width: 360px; height: auto; aspect-ratio: 3 / 1; }
.pd-image-thumb--cover .pd-guide { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; border-radius: 4px; }
.pd-guide--desk { width: 100%; height: 75%; border-top: 2px dashed rgba(255,255,255,.95); border-bottom: 2px dashed rgba(255,255,255,.95); box-shadow: 0 0 0 999px rgba(0,0,0,.28); }
.pd-guide--phone { width: 50%; height: 100%; border-left: 2px solid rgba(255,255,255,.95); border-right: 2px solid rgba(255,255,255,.95); }
.pd-guide--safe { width: 45.8%; height: 70%; background: rgba(45,128,58,.22); outline: 2px solid #2d803a; }
.pd-image-thumb--cover.is-empty .pd-guide--desk { box-shadow: none; border-color: rgba(41,37,31,.35); }
.pd-image-thumb--cover.is-empty .pd-guide--phone { border-color: rgba(41,37,31,.35); }
.pd-spec { display: grid; gap: 4px; margin: -4px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--brand-field); font-size: 13px; line-height: 1.4; }
.pd-spec b { font-size: 13.5px; }
.pd-spec-row { position: relative; padding-left: 22px; color: var(--brand-muted, #6d655a); }
.pd-spec-row::before { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 10px; border-radius: 2px; }
.pd-spec-row--desk::before { border-top: 2px dashed #6d655a; border-bottom: 2px dashed #6d655a; }
.pd-spec-row--phone::before { border-left: 2px solid #6d655a; border-right: 2px solid #6d655a; }
.pd-spec-row--safe::before { background: rgba(45,128,58,.22); outline: 2px solid #2d803a; }
.pd-spec-note { margin: 4px 0 0; font-weight: 700; color: #2d803a; }
.pd-spec-note:empty { display: none; }
.pd-spec-note.is-warn { color: #a8461b; }
