/* Каркас демо. Продуктовые экраны используют настоящие design-system/sidebar/crm CSS. */
:root { --shell:#141413; --shell-line:#343431; --shell-text:#faf9f5; --shell-muted:#aaa9a2; --demo-cyan:#22d3ee; --demo-mint:#34d399; }
html,body { margin:0; min-width:320px; min-height:100%; }
body { overflow:hidden; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.45; }
a { color:inherit; text-decoration:none; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,tr:focus-visible { outline:2px solid var(--demo-cyan); outline-offset:2px; }
button { transition:background .15s ease,color .15s ease,transform .12s ease,border-color .15s ease; }
button:active:not(:disabled) { transform:translateY(1px); }
::-webkit-scrollbar { width:7px; height:7px; }
::-webkit-scrollbar-thumb { background:#555650; border-radius:8px; }
.demo-shell { height:100dvh; display:flex; flex-direction:column; background:var(--shell); }
.demo-topbar { min-height:58px; display:flex; align-items:center; gap:26px; padding:8px 22px; border-bottom:1px solid var(--shell-line); z-index:120; }
.demo-brand { font-size:19px; font-weight:800; letter-spacing:-.04em; white-space:nowrap; }
.demo-brand>span { color:var(--demo-cyan); }
.demo-brand small { margin-left:9px; padding:2px 6px; border:1px solid #4a4a45; border-radius:3px; color:var(--shell-muted); font:600 9px/1.4 ui-monospace,monospace; letter-spacing:.14em; vertical-align:3px; }
.mode-switch { display:flex; padding:3px; background:#090909; border:1px solid var(--shell-line); border-radius:7px; }
.mode-switch button { min-width:132px; padding:7px 15px; background:transparent; color:var(--shell-muted); border:0; border-radius:4px; font-size:13px; font-weight:600; }
.mode-switch button span { margin-left:5px; font-size:11px; font-weight:400; opacity:.65; }
.mode-switch button.active { color:var(--shell-text); background:#33332f; box-shadow:0 1px 4px #0006; }
.demo-actions { display:flex; gap:5px; margin-left:auto; }
.top-action { padding:8px 11px; background:transparent; color:var(--shell-muted); border:0; border-radius:4px; font-size:12px; }
.top-action:hover { color:var(--shell-text); background:#292926; }
.site-link { color:#eed5bb; }
.demo-notice { min-height:32px; display:flex; align-items:center; justify-content:center; gap:9px; padding:5px 18px; background:#1d2a2c; border-bottom:1px solid #29464c; color:#b8c9c9; font-size:11px; z-index:110; }
.demo-notice strong { color:#e5f2f1; }
.demo-notice a { margin-left:8px; color:var(--demo-cyan); border-bottom:1px solid #22d3ee66; }
.live-dot { width:6px; height:6px; border-radius:50%; background:var(--demo-mint); box-shadow:0 0 0 3px #34d39918; }
.demo-main { position:relative; flex:1; min-height:0; overflow:hidden; }
.demo-main>#app { height:100%; min-height:0; }
.accent { color:var(--primary); }
.section-kicker { color:var(--primary); font:600 10px/1.4 var(--font-mono); letter-spacing:.09em; text-transform:uppercase; }
.muted { color:var(--text-secondary); }
.text-success { color:var(--success)!important; }
.text-error { color:var(--error)!important; }
.text-button { padding:4px 0; background:transparent; color:var(--primary); border:0; font-size:12px; }
.full { width:100%; margin-top:16px; }

/* РМО: настоящая светлая SOHO-тема */
.demo-main .crm-app { height:100%; }
.soho-theme { --soho-bg:#f5f5f5; --soho-cyan:#52e3ed; --soho-text:#070707; }
.soho-theme .crm-header { background:#52e3ed!important; color:#070707!important; border:0!important; }
.soho-theme .crm-logo,.soho-theme .crm-page-title,.soho-theme .hdr-badge,.soho-theme .hdr-clock { color:#070707!important; }
.soho-theme .crm-logo .accent { color:#1c00bc!important; }
.soho-theme .crm-header .btn-secondary { background:#00000012!important; color:#070707!important; border:1px solid #00000025!important; }
.soho-theme .hdr-badge { background:#ffffff50!important; }
.soho-layout { background:#f5f5f5; }
.soho-layout .cart-pane { order:-1; width:360px; background:#fff!important; border-left:0; border-right:1px solid #ddd; color:#070707!important; height:auto; }
.soho-layout .menu-pane { flex-direction:row!important; padding:0!important; gap:0!important; overflow:hidden!important; }
.soho-layout .category-bar { width:160px; flex-shrink:0; flex-direction:column!important; overflow-y:auto; background:#e8e8e8; border-right:1px solid #ddd; padding:0!important; gap:0!important; }
.soho-layout .cat-chip { display:flex; justify-content:space-between; border-radius:0!important; border:0!important; border-bottom:1px solid #ddd!important; border-left:3px solid transparent!important; background:transparent!important; color:#555!important; padding:12px 14px!important; white-space:normal!important; text-align:left!important; }
.soho-layout .cat-chip.active { background:#fff!important; border-left-color:#1c00bc!important; color:#333!important; font-weight:600!important; }
.soho-layout .menu-content { flex:1; min-width:0; display:flex; flex-direction:column; overflow:hidden; }
.soho-layout .menu-toolbar { padding:10px 12px!important; background:#fff!important; border-bottom:1px solid #ddd!important; }
.soho-layout .menu-toolbar input { background:#fff!important; border:1px solid #ddd!important; color:#333!important; }
.soho-layout .products-grid { flex:1; overflow-y:auto; padding:12px!important; background:#fff; grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important; gap:10px!important; }
.soho-layout .product-card { position:relative; background:#fff!important; border:1px solid #e0e0e0!important; color:#070707!important; min-height:145px; }
.soho-layout .product-card:hover { border-color:#52e3ed!important; box-shadow:0 2px 8px #52e3ed40!important; }
.soho-layout .product-card.stopped { opacity:.5; }
.soho-layout .product-stop { position:absolute; inset:auto 8px 8px auto; color:#c62828; font-size:10px; font-weight:800; }
.soho-layout .product-weight,.soho-layout .product-config { color:#777!important; font-size:11px; }
.soho-layout .product-price { color:#e94560!important; font-size:15px; font-weight:700; }
.soho-layout .order-type-btn { background:#fff!important; border:2px solid #ddd!important; color:#333!important; }
.soho-layout .order-type-btn.active { background:#52e3ed26!important; border-color:#52e3ed!important; color:#006064!important; font-weight:600!important; }
.soho-layout .cart-pane input,.soho-layout .cart-pane select,.soho-layout .cart-pane textarea { background:#fff!important; border:1px solid #ccc!important; color:#222!important; }
.soho-layout .cart-pane label,.soho-layout .cart-pane .section-title { color:#555!important; }
.soho-layout .cart-pane .btn-secondary { background:#e0e0e0!important; color:#333!important; border:1px solid #ccc!important; }
.soho-layout .cart-pane .btn-primary { background:#2196f3!important; color:#fff!important; border:0!important; }
.soho-layout .cart-pane .btn-ghost { color:#555!important; }
.soho-layout .cart-items { background:#f5f5f5!important; padding:8px!important; border-radius:6px!important; }
.soho-layout .cart-item { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:8px; align-items:center; background:#fff!important; border:1px solid #e0e0e0!important; color:#222!important; padding:8px; }
.soho-layout .cart-item-info strong,.soho-layout .cart-item-info small { display:block; }
.soho-layout .cart-item-info small { color:#777; font-size:10px; }
.soho-layout .cart-item-qty { display:flex; align-items:center; gap:5px; }
.soho-layout .cart-item-qty button { width:25px; height:25px; padding:0; border:1px solid #ccc; background:#f4f4f4; color:#222; }
.soho-layout .cart-empty { background:#fff!important; color:#888!important; border:1px dashed #ccc!important; padding:28px 8px; text-align:center; }
.soho-layout .totals { border-top:1px solid #ddd!important; }
.soho-layout .totals-row { color:#555!important; }
.soho-layout .totals-total { color:#222!important; }
.soho-layout .totals-total b { color:#2196f3; }
.soho-layout .bonus-block,.soho-layout .bonus-info { background:#f8f8f8!important; }
.soho-layout .bonus-info { color:#ff9800!important; }
.wp-soho .order-right .btn-primary { background:#1d1d3f; color:#fff; border-color:#1d1d3f; }
.soho-layout .check-row,.soho-layout .hint { color:#555!important; }
.soho-layout .fields-row { display:flex; gap:8px; align-items:end; }
.soho-layout .fields-row>* { flex:1; min-width:0; }
.soho-layout .tpl-bar { display:flex; gap:5px; margin-top:6px; }
.demo-page-title { color:#d9d7f2; font-size:12px; }
.wp-soho .order-detail-grid { display:grid; grid-template-columns:1.25fr .75fr; gap:24px; }
.wp-soho .order-detail-grid h4 { margin:0 0 10px; color:#333; }
.wp-soho .order-detail-grid p { margin:6px 0; color:#555; font-size:12px; }
.wp-soho .order-item-row,.wp-soho .order-total-row { display:flex; justify-content:space-between; gap:12px; padding:7px 0; border-bottom:1px solid #ddd; font-size:12px; }
.wp-soho .order-item-row small { display:block; color:#777; }
.wp-soho .order-total-row { font-size:14px; font-weight:700; }
.wp-soho .order-card-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:15px; }
.wp-soho .order-card-actions .btn-secondary { background:#fff; color:#333; border:1px solid #bbb; }
.wp-soho .wp-pager { display:flex; align-items:center; justify-content:center; gap:14px; padding:8px; background:#fff; border-top:1px solid #ddd; }
.wp-soho .wp-pager .btn-secondary { color:#333; background:#f2f2f2; }
.wp-soho .page-info { color:#666; font-size:11px; }
.service-board { flex:1; min-height:0; overflow:auto; padding:20px; background:#f0f0f0; color:#333; }
.service-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
.service-heading h2 { margin:0 0 4px; }
.service-heading p { margin:0; color:#666; }
.service-columns { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.service-columns>section { min-width:0; padding:12px; background:#e7e7e7; border-radius:8px; }
.service-columns h3 { display:flex; justify-content:space-between; margin:0 0 12px; font-size:14px; }
.service-order { display:grid; gap:8px; margin-bottom:10px; padding:12px; background:#fff; border-radius:6px; box-shadow:0 1px 4px #0001; }
.service-order small { color:#666; line-height:1.6; }

/* Настоящая админка */
.demo-admin-app { min-height:0!important; background:var(--bg-base); }
.demo-admin-app .sidebar { position:absolute; top:0; bottom:0; width:264px; z-index:80; }
.demo-admin-app .main-content { height:100%; min-height:0; margin-left:264px; overflow:auto; }
.demo-admin-app .content-header { flex:0 0 65px; }
.admin-heading { display:flex; align-items:center; gap:12px; }
.admin-heading small { display:block; color:var(--text-secondary); font-size:10px; }
.admin-heading h1 { margin-top:2px; }
.demo-header-location { color:var(--text-secondary); font-size:12px; }
.demo-mobile-menu { display:none; background:transparent; color:var(--text-primary); border:0; font-size:20px; }
.demo-admin-app .nav-section-header { width:100%; background:transparent; border:0; text-align:left; }
.demo-admin-app .nav-item { width:100%; background:transparent; border-top:0; border-right:0; border-bottom:0; text-align:left; }
.demo-admin-app .content-body { max-width:1600px; width:100%; margin:0 auto; padding:20px; }
.admin-section { min-width:0; padding:18px; background:var(--bg-surface); border:1px solid var(--border-color); border-radius:8px; }
.section-title { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:16px; }
.section-title h2 { margin:0; font-size:16px; }
.section-title p { margin:4px 0 0; color:var(--text-secondary); font-size:12px; }
.admin-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.stat-card { min-width:0; padding:16px; background:var(--bg-surface); border:1px solid var(--border-color); border-radius:8px; }
.stat-card .stat-value { color:var(--text-primary); font-size:24px; line-height:1.2; font-weight:700; white-space:nowrap; }
.stat-card .stat-label { margin-top:7px; color:var(--text-secondary); font-size:12px; }
.stat-card .stat-hint { margin-top:4px; color:var(--text-muted); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.stat-card.warning { border-color:#fbbf2455; }
.stat-card.warning .stat-value { color:var(--warning); }
.admin-kpis.compact .stat-card { padding:12px 15px; }
.admin-kpis.compact .stat-value { font-size:20px; }
.dashboard-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr); gap:18px; }
.dashboard-grid.lower { margin-top:18px; grid-template-columns:1fr 1fr; }
.chart-total { text-align:right; }
.chart-total strong,.chart-total span { display:block; }
.chart-total strong { font-size:18px; }
.chart-total span { color:var(--success); font-size:11px; }
.demo-chart { height:235px; padding-top:10px; }
.demo-chart svg { width:100%; height:200px; overflow:visible; }
.demo-chart>div { display:flex; justify-content:space-between; color:var(--text-secondary); font-size:10px; }
.quick-actions { display:grid; }
.quick-actions button { display:flex; align-items:center; gap:12px; padding:12px 0; background:transparent; color:var(--text-primary); border:0; border-top:1px solid var(--border-color); text-align:left; }
.quick-actions button:hover { color:var(--primary); }
.quick-actions button>b { width:24px; font-size:18px; }
.quick-actions strong,.quick-actions small { display:block; }
.quick-actions small { margin-top:3px; color:var(--text-secondary); font-size:11px; }
.stock-alert { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; background:transparent; color:var(--text-primary); border:0; border-top:1px solid var(--border-color); text-align:left; }
.stock-alert:hover { color:var(--primary); }
.stock-alert strong,.stock-alert small { display:block; }
.stock-alert small { color:var(--text-secondary); font-size:10px; }
.stock-alert>b { color:var(--warning); font-size:12px; }
.table-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.module-search { width:min(360px,100%); min-height:38px; padding:8px 12px; background:var(--bg-elevated); color:var(--text-primary); border:1px solid var(--border-color); border-radius:6px; }
.table-toolbar .btn-primary:last-child { margin-left:auto; }
.table-scroll { width:100%; overflow:auto; }
.data-table { width:100%; border-collapse:collapse; white-space:nowrap; }
.data-table th { padding:9px 10px; color:var(--text-secondary); border-bottom:1px solid #3b3b51; text-align:left; font:500 10px/1.2 var(--font-mono); text-transform:uppercase; letter-spacing:.04em; }
.data-table td { padding:11px 10px; color:#d0d0dc; border-bottom:1px solid var(--border-color); font-size:12px; }
.data-table tbody tr:hover { background:#202035; }
.data-table tr[data-action] { cursor:pointer; }
.table-sub { display:block; margin-top:3px; color:var(--text-secondary); font-size:10px; }
.badge { display:inline-block; padding:3px 7px; color:#c9c9d8; background:var(--bg-elevated); border:1px solid var(--border-color); border-radius:12px; font-size:10px; }
.badge-success { color:var(--success); background:var(--success-bg); border-color:#4ade8035; }
.badge-warning { color:var(--warning); background:var(--warning-bg); border-color:#fbbf2435; }
.badge-error { color:var(--error); background:var(--error-bg); border-color:#f8717135; }
.icon-action,.price-edit { background:transparent; color:var(--primary); border:0; }
.price-edit { white-space:nowrap; }
.demo-switch { display:inline-flex; align-items:center; gap:7px; padding:0; background:transparent; color:var(--text-secondary); border:0; font-size:10px; }
.demo-switch i { position:relative; display:block; width:34px; height:19px; background:#46465a; border-radius:20px; }
.demo-switch i::after { content:''; position:absolute; left:3px; top:3px; width:13px; height:13px; background:#c5c5d0; border-radius:50%; transition:transform .15s; }
.demo-switch.on { color:var(--success); }
.demo-switch.on i { background:#226044; }
.demo-switch.on i::after { transform:translateX(15px); background:var(--success); }
.recipe-intro { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
.recipe-intro h2 { margin:0; font-size:20px; }
.recipe-intro p { margin:5px 0 0; color:var(--text-secondary); font-size:12px; }
.recipe-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.recipe-card { min-height:180px; display:flex; flex-direction:column; padding:16px; background:var(--bg-surface); color:var(--text-primary); border:1px solid var(--border-color); border-radius:8px; text-align:left; }
.recipe-card:hover { border-color:var(--primary); background:#1e1e33; }
.recipe-card h3 { margin:7px 0 12px; font-size:14px; }
.recipe-ingredients { flex:1; display:flex; align-content:start; flex-wrap:wrap; gap:5px; }
.recipe-ingredients span { padding:3px 6px; color:var(--text-secondary); background:var(--bg-elevated); border-radius:3px; font-size:10px; }
.recipe-card-bottom { display:flex; justify-content:space-between; gap:8px; margin-top:14px; padding-top:10px; color:var(--text-secondary); border-top:1px solid var(--border-color); font-size:10px; }
.recipe-card-bottom b { color:var(--primary); }
.checkbox-label { display:flex; align-items:center; gap:7px; color:var(--text-secondary); font-size:12px; }
.empty-state { padding:50px 20px; text-align:center; }
.empty-state-icon { font-size:30px; }
.empty-state-title { margin-top:10px; font-size:17px; }
.empty-state-desc { margin-top:5px; color:var(--text-secondary); font-size:12px; }
.loyalty-levels { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.loyalty-levels>div { display:grid; gap:4px; padding:15px 10px; background:var(--bg-elevated); text-align:center; }
.loyalty-levels b { color:var(--primary); font-size:23px; }
.loyalty-levels span { color:var(--text-secondary); font-size:10px; }
.feature-copy { color:var(--text-secondary); font-size:13px; line-height:1.65; }
.feature-list { color:var(--text-secondary); font-size:12px; line-height:2; padding-left:20px; }
.message-preview { padding:18px; background:var(--bg-elevated); border-left:3px solid var(--primary); border-radius:6px; }
.message-preview p { margin:12px 0; line-height:1.65; }
.message-preview small { color:var(--text-secondary); }
.schedule-cell { min-width:64px; padding:7px; background:var(--info-bg); color:var(--info); border:1px solid #60a5fa35; border-radius:4px; }
.schedule-cell.off { background:transparent; color:var(--text-secondary); border-color:var(--border-color); }
.cash-row,.zone-row { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:11px 0; border-top:1px solid var(--border-color); font-size:12px; }
.location-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.location-card { padding:16px; background:var(--bg-elevated); border:1px solid var(--border-color); border-radius:8px; }
.location-card>div { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.location-card h3 { margin:0; }
.location-card p { color:var(--text-secondary); font-size:12px; }
.location-card dl>div { display:flex; justify-content:space-between; padding:8px 0; border-top:1px solid var(--border-color); font-size:11px; }
.location-card dt { color:var(--text-secondary); }
.location-card dd { margin:0; }
.settings-layout { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:18px; }
.setting-name,.modal-field { display:grid; gap:6px; margin-bottom:14px; color:var(--text-secondary); font-size:12px; }
.setting-name input,.modal-field input,.modal-field select,.modal-field textarea { width:100%; padding:10px 12px; background:var(--bg-elevated); color:var(--text-primary); border:1px solid var(--border-color); border-radius:6px; }
.setting-row { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:14px 0; border-top:1px solid var(--border-color); }
.setting-row strong,.setting-row small { display:block; }
.setting-row strong { font-size:13px; }
.setting-row small { margin-top:4px; color:var(--text-secondary); font-size:11px; }
.switch { position:relative; flex:0 0 38px; width:38px; height:21px; }
.switch input { position:absolute; opacity:0; }
.switch i { display:block; width:38px; height:21px; padding:3px; background:#39394c; border-radius:20px; }
.switch i::after { content:''; display:block; width:15px; height:15px; background:#b9b9c4; border-radius:50%; transition:transform .15s; }
.switch input:checked+i { background:#793042; }
.switch input:checked+i::after { background:var(--primary); transform:translateX(17px); }
.switch input:focus-visible+i { outline:2px solid var(--primary); outline-offset:2px; }
.settings-save { margin-top:16px; }
.settings-aside { padding:20px; background:#171b25; border:1px solid #293540; border-radius:8px; }
.settings-aside h3 { margin:8px 0; }
.settings-aside p,.settings-aside li { color:#bdc7cc; font-size:12px; line-height:1.8; }
.settings-aside ul { padding-left:20px; }
.settings-info { margin:12px 0; padding:14px; background:var(--info-bg); border:1px solid #60a5fa35; border-radius:6px; }
.settings-info p { margin:6px 0 0; color:#c8d9ed; font-size:12px; line-height:1.6; }
.tariff-hero { padding:10px 0 25px; }
.tariff-hero h2 { margin:8px 0; font-size:26px; }
.tariff-hero p { color:var(--text-secondary); }
.tariff-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.tariff-card { display:flex; flex-direction:column; gap:12px; padding:22px; background:var(--bg-surface); border:1px solid var(--border-color); border-radius:8px; }
.tariff-card.featured { border-color:var(--primary); }
.tariff-card h3 { margin:0; font-size:20px; }
.tariff-card p,.tariff-card small { color:var(--text-secondary); line-height:1.6; }
.tariff-card>strong { color:var(--primary); font-size:18px; }
.tariff-card .btn { margin-top:auto; }
.zone-map { position:relative; min-height:320px; overflow:hidden; background:#181c29; border-radius:8px; background-image:linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px); background-size:32px 32px; }
.zone { position:absolute; display:grid; place-content:center; text-align:center; border-radius:50%; }
.zone-a { width:180px; height:180px; left:25%; top:20%; background:#e9456030; border:2px solid #e94560; }
.zone-b { width:280px; height:280px; left:5%; top:2%; background:#60a5fa12; border:2px dashed #60a5fa; }
.zone-a strong,.zone-a span { position:relative; z-index:2; }
.zone span { font-size:11px; }
.map-label { position:absolute; left:12px; bottom:10px; color:var(--text-secondary); font-size:10px; }
.content-list { display:grid; }
.content-list button { display:grid; grid-template-columns:30px 1fr auto; align-items:center; gap:10px; padding:14px 0; background:transparent; color:var(--text-primary); border:0; border-top:1px solid var(--border-color); text-align:left; }
.content-list small { color:var(--text-secondary); }
.storefront-preview { max-width:260px; margin:auto; padding:22px 16px; background:#f5f5f5; color:#222; border:6px solid #333; border-radius:24px; text-align:center; }
.storefront-preview>strong,.storefront-preview>span { display:block; }
.storefront-preview>span { margin:6px 0 18px; color:#666; font-size:11px; }
.storefront-preview>button { padding:10px 18px; background:#52e3ed; border:0; border-radius:5px; }
.storefront-preview>div { margin-top:18px; font-size:12px; }
.reference-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; padding:18px; background:var(--bg-surface); border:1px solid var(--border-color); border-radius:8px; }
.reference-hero h2 { margin:0; font-size:20px; }
.reference-hero p { margin:5px 0 0; color:var(--text-secondary); }

/* Модалки, печать, уведомления, тур */
.modal-backdrop { position:fixed; inset:0; z-index:200; display:grid; place-items:center; padding:18px; background:#050810c9; backdrop-filter:blur(5px); }
.demo-modal { width:min(480px,100%); max-height:calc(100dvh - 36px); overflow-y:auto; background:var(--bg-surface); color:var(--text-primary); border:1px solid #3b3b52; border-radius:10px; box-shadow:0 20px 70px #0008; }
.demo-modal.wide { width:min(680px,100%); }
.demo-modal>header { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:15px; padding:15px 18px; background:var(--bg-surface); border-bottom:1px solid var(--border-color); }
.demo-modal>header h2 { margin:0; font-size:17px; }
.demo-modal>header button { width:32px; height:32px; background:transparent; color:var(--text-secondary); border:0; font-size:24px; }
.modal-content { padding:18px; }

/* РМО использует светлые модалки боевой CRM; админка остаётся тёмной. */
.crm-backdrop { background:#0f172a73; backdrop-filter:none; }
.demo-modal.crm-modal { --bg-surface:#fff; --bg-elevated:#f2f4f8; --text-primary:#1f2937; --text-secondary:#4b5563; --text-muted:#6b7280; --border-color:#e2e8f0; background:#fff; color:#1f2937; border-color:#e2e8f0; box-shadow:0 8px 30px #00000040; }
.crm-modal>header { background:#fff; border-bottom-color:#e8ecf1; }
.crm-modal>header h2 { color:#1f2937; font-size:16px; }
.crm-modal>header button { color:#8a94a3; }
.crm-modal>header button:hover { color:#1f2937; background:#eef1f5; }
.crm-modal input,.crm-modal select,.crm-modal textarea { background:#fff; color:#1f2937; border:1px solid #cbd5e1; }
.crm-modal input:focus,.crm-modal select:focus,.crm-modal textarea:focus { border-color:#52e3ed; outline:none; box-shadow:0 0 0 2px #52e3ed40; }
.crm-modal .btn-primary { background:#1d1d3f; color:#fff; border-color:#1d1d3f; }
.crm-modal .btn-primary:hover { background:#2b2b52; border-color:#2b2b52; }
.crm-modal .btn-secondary { background:#1d1d3f; color:#fff; border-color:#1d1d3f; }
.crm-modal .btn-secondary:hover { background:#2b2b52; }
.crm-modal .btn-ghost { color:#4b5563; }
.crm-modal .choice-row,.crm-modal .receipt-lines>div,.crm-modal .recipe-table>div { border-color:#e2e8f0; }
.crm-modal .demo-explanation { color:#39565d; background:#eef7f7; border-color:#d4e6e8; }
.crm-modal .stat-card,.crm-modal .detail-grid>div { background:#f8fafc; border-color:#e2e8f0; }
.crm-modal .stock-alert { color:#1f2937; border-color:#e2e8f0; }
.crm-modal .stock-alert:hover { color:#006064; background:#f2fafa; }
.crm-modal .precheck-paper { border:1px solid #e2e8f0; }
.crm-modal .kno-promo-empty { margin:0 0 16px; color:#777; text-align:center; font-size:12px; }
.crm-modal:has(#discount-form)>header { padding:16px 16px 0; border-bottom:0; }
.crm-modal:has(#discount-form)>.modal-content { padding-top:8px; }
.crm-modal .kno-discount-custom select { width:72px; min-width:72px; padding:8px; }
.crm-modal .kno-discount-custom input { min-width:0; padding:8px 10px; }
.crm-modal .kno-discount-custom .btn { flex-shrink:0; }
.crm-modal .kno-discount-footer { padding-top:4px; }
.modal-lead,.help-copy { color:var(--text-secondary); font-size:13px; line-height:1.65; }
.demo-modal fieldset { margin:16px 0 0; padding:0; border:0; }
.demo-modal legend { width:100%; padding-bottom:6px; color:var(--text-secondary); border-bottom:1px solid var(--border-color); font-size:11px; text-transform:uppercase; }
.choice-row,.check-row { display:flex; align-items:center; gap:9px; padding:10px 0; font-size:13px; }
.choice-row { display:grid; grid-template-columns:18px 1fr auto; border-bottom:1px solid var(--border-color); }
.choice-row strong { color:var(--text-secondary); font-size:11px; }
.choice-row input,.check-row input { accent-color:var(--primary); }
.form-two { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.order-detail-meta { display:flex; align-items:center; gap:8px; }
.order-detail-meta span { padding:3px 7px; background:var(--bg-elevated); border-radius:4px; color:var(--text-secondary); font-size:11px; }
.order-detail-meta strong { margin-left:auto; color:var(--primary); font-size:18px; }
.receipt-lines { margin:16px 0; border-top:1px solid var(--border-color); }
.receipt-lines>div { display:flex; justify-content:space-between; gap:15px; padding:10px 0; border-bottom:1px solid var(--border-color); font-size:12px; }
.receipt-lines small { display:block; color:var(--text-secondary); }
.order-comment { padding:10px; color:var(--warning); background:var(--warning-bg); }
.demo-explanation { margin-top:16px; padding:11px; color:#b8c9c9; background:#1d2a2c; border:1px solid #29464c; border-radius:5px; font-size:11px; line-height:1.6; }
.modal-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:9px; margin-top:20px; }
.success-mark { width:44px; height:44px; display:grid; place-items:center; margin:2px auto 14px; color:#08251a; background:var(--demo-mint); border-radius:50%; font-size:24px; }
.center-title { text-align:center; }
.center-copy { margin-top:10px; color:var(--text-secondary); font-size:13px; line-height:1.65; text-align:center; }
.payment-amount,.stock-detail-total { display:flex; align-items:baseline; justify-content:space-between; gap:15px; padding-bottom:15px; border-bottom:1px solid var(--border-color); }
.payment-amount span,.stock-detail-total span { color:var(--text-secondary); font-size:12px; }
.payment-amount strong,.stock-detail-total strong { color:var(--primary); font-size:24px; }
.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:15px 0 20px; }
.detail-grid>div { padding:10px; background:var(--bg-elevated); border-radius:4px; }
.detail-grid span,.detail-grid strong { display:block; }
.detail-grid span { color:var(--text-secondary); font-size:10px; }
.detail-grid strong { margin-top:4px; font-size:13px; }
.recipe-table>div { display:flex; justify-content:space-between; gap:20px; padding:10px 0; border-bottom:1px solid var(--border-color); font-size:12px; }
.recipe-table>div:first-child { color:var(--text-secondary); font-size:10px; text-transform:uppercase; }
.precheck-paper { padding:22px; background:#faf9f5; color:#242421; font-family:ui-monospace,monospace; }
.precheck-paper>strong,.precheck-paper>span,.precheck-paper>small { display:block; text-align:center; }
.precheck-paper>span { margin:5px 0 18px; font-size:10px; letter-spacing:.12em; }
.precheck-paper>div { display:flex; justify-content:space-between; gap:12px; padding:6px 0; font-size:11px; }
.precheck-paper .precheck-total { margin-top:10px; padding:12px 0; border-top:1px dashed #777; border-bottom:1px dashed #777; font-size:13px; }
.precheck-paper>small { margin-top:16px; color:#666; }
.modal-kpis { grid-template-columns:1fr 1fr; }
.stoplist { max-height:55dvh; overflow:auto; }
.toast-root { position:fixed; right:18px; bottom:18px; z-index:300; display:grid; gap:8px; pointer-events:none; }
.demo-toast { max-width:390px; padding:12px 15px; background:#ecf8f4; color:#174c38; border:1px solid #7bbda4; border-radius:6px; box-shadow:0 10px 35px #0005; font-size:13px; animation:toast-in .2s ease-out; }
@keyframes toast-in { from { opacity:0; transform:translateY(8px); } }
.tour-layer { position:fixed; inset:0; z-index:250; pointer-events:none; background:#0508108c; }
.tour-spotlight { position:fixed; border:2px solid var(--demo-cyan); border-radius:7px; box-shadow:0 0 0 6px #22d3ee20,0 0 35px #22d3ee35; }
.tour-card { position:fixed; padding:17px; background:#faf9f5; color:#191919; border-radius:7px; box-shadow:0 15px 50px #0008; pointer-events:auto; }
.tour-card .section-kicker { color:#39727b; }
.tour-card h2 { margin:6px 0; font-size:18px; }
.tour-card p { color:#60605a; font-size:12px; line-height:1.65; }
.tour-card>div { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-top:15px; }
.tour-card .text-button { color:#696963; }

@media(max-width:1100px) {
  .demo-topbar { gap:14px; padding-inline:14px; }
  .mode-switch button { min-width:105px; }
  .mode-switch button span { display:none; }
  .admin-kpis { grid-template-columns:repeat(2,1fr); }
  .recipe-grid { grid-template-columns:repeat(2,1fr); }
  .soho-layout .cart-pane { width:320px; }
  .demo-admin-app .sidebar { width:230px; }
  .demo-admin-app .main-content { margin-left:230px; }
  .demo-admin-app .content-body { padding:14px; }
}
@media(max-width:760px) {
  body { overflow:auto; }
  .demo-shell { min-height:100dvh; height:auto; }
  .demo-topbar { display:grid; grid-template-columns:1fr auto; gap:8px; padding:9px 11px; }
  .demo-brand { font-size:17px; }
  .mode-switch { grid-row:2; grid-column:1/-1; }
  .mode-switch button { flex:1; min-width:0; min-height:40px; }
  .demo-actions { gap:0; }
  .top-action { min-height:40px; padding:7px; font-size:11px; }
  .site-link { display:none; }
  .demo-notice { justify-content:flex-start; flex-wrap:wrap; gap:4px 7px; padding:7px 11px; font-size:10px; }
  .demo-notice a { margin-left:0; }
  .demo-main { overflow:visible; }
  .demo-main>#app { height:auto; min-height:calc(100dvh - 130px); }
  .demo-main .crm-app { height:auto; overflow:visible; }
  .wp-soho .header { height:auto; flex-wrap:wrap; padding:8px; }
  .wp-soho .header-left,.wp-soho .header-right { gap:5px; flex-wrap:wrap; }
  .wp-soho .header-btn { min-height:36px; }
  .wp-soho .logo,.wp-soho .header-right .hdr-badge:not(:first-child) { display:none; }
  .wp-soho .orders-tabs { padding:8px; }
  .wp-soho .stats-left { width:100%; gap:6px; }
  .wp-soho .stat-box { flex:1; padding:6px; }
  .wp-soho .stat-value { font-size:13px; }
  .wp-soho .filters-bar { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:8px; }
  .wp-soho .filter-cell,.wp-soho .filter-cell-phone,.wp-soho .filter-cell-type,.wp-soho .filter-cell-payment { width:auto; min-width:0; }
  .wp-soho .filter-cell-statuses { grid-column:1/-1; margin:0; }
  .wp-soho .filters-status-row .filter-select { width:50%; flex:1; }
  .wp-soho .orders-container { overflow:visible; padding:8px; }
  .wp-soho .order-header { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:10px; }
  .wp-soho .cell-datetime,.wp-soho .cell-btn,.wp-soho .cell-payment,.wp-soho .cell-badges,.wp-soho .cell-status { width:auto; min-width:0; }
  .wp-soho .order-detail-grid { grid-template-columns:1fr; }
  .wp-soho .order-body { padding:12px; }
  .soho-theme .crm-header { height:auto; min-height:58px; flex-wrap:wrap; padding:8px; }
  .soho-theme .crm-header-left,.soho-theme .crm-header-right { flex-wrap:wrap; gap:5px; }
  .soho-theme .crm-logo { display:none; }
  .soho-layout { display:flex; flex-direction:column; overflow:visible; }
  .soho-layout .menu-pane { order:0; min-height:480px; flex-direction:column!important; }
  .soho-layout .cart-pane { order:1; width:100%; overflow:visible; border-top:1px solid #ddd; }
  .soho-layout .category-bar { width:100%; flex-direction:row!important; overflow-x:auto; overflow-y:hidden; }
  .soho-layout .cat-chip { min-width:112px; min-height:44px; border-bottom:3px solid transparent!important; border-left:0!important; }
  .soho-layout .cat-chip.active { border-bottom-color:#1c00bc!important; }
  .soho-layout .products-grid { overflow:visible; grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  .service-heading { align-items:flex-start; }
  .service-columns { grid-template-columns:1fr; }
  .demo-admin-app { display:block; }
  .demo-admin-app .sidebar { position:fixed; top:126px; width:min(290px,86vw); transform:translateX(-105%); }
  .demo-admin-app .sidebar.open { transform:translateX(0); }
  .demo-admin-app .main-content { height:auto; min-height:calc(100dvh - 130px); margin-left:0; overflow:visible; }
  #btn-new-order { min-height:44px; }
  .demo-mobile-menu { display:block; width:44px; height:44px; }
  .demo-header-location { display:none; }
  .content-header { padding:0 12px; }
  .content-header .header-actions .btn { display:none; }
  .dashboard-grid,.dashboard-grid.lower,.settings-layout { grid-template-columns:1fr; }
  .location-grid,.tariff-grid { grid-template-columns:1fr; }
  .section-title { flex-wrap:wrap; }
  .table-toolbar { align-items:stretch; }
  .table-toolbar .module-search { width:100%; }
  .table-toolbar .btn-primary:last-child { margin-left:0; }
  .recipe-intro { align-items:flex-start; flex-direction:column; }
  .reference-hero { align-items:flex-start; }
  .settings-aside { order:-1; }
  .modal-backdrop { padding:10px; }
  .demo-modal { max-height:calc(100dvh - 20px); }
  .tour-spotlight { display:none; }
  .tour-card { left:12px!important; top:auto!important; bottom:12px; width:calc(100% - 24px)!important; }
  .toast-root { left:10px; right:10px; bottom:10px; }
  .demo-toast { max-width:none; }
}
@media(max-width:400px) {
  .demo-brand small { display:none; }
  .admin-kpis { grid-template-columns:1fr; }
  .recipe-grid { grid-template-columns:1fr; }
  .form-two { grid-template-columns:1fr; }
  .soho-layout .product-card { min-height:135px; }
  .loyalty-levels { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
