/* Редактор страницы сайта (Website → Страницы). Токены — по эталону задачи, акцент совпадает с CRM (#4f46e5);
   шрифт наследуется от CRM. Всё под префиксом .wme — на остальные разделы не влияет. */
.content.wme-mode { padding: 0; overflow-y: auto; }

.wme, .wme-mobilebar {
  --ink:#14152a; --ink-2:#3f4357; --muted:#5b5f73; --faint:#8a8da0; --line:#e5e7ef; --field:#d9dce6;
  --ground:#f3f4f8; --surface:#fff; --surface-2:#f7f8fb;
  --accent:#4f46e5; --accent-ink:#3730a3; --accent-soft:#eef0ff; --accent-line:#c7cbf7; --link:#4338ca;
  --ok:#166534; --ok-dot:#16a34a; --ok-soft:#e8f6ee;
  --warn:#9a3412; --warn-dot:#ea580c; --warn-soft:#fff1e0; --warn-line:#f0b377; --warn-bg:#fffaf3;
  --bad:#b91c1c; --serp-title:#1a0dab;
  --r-sm:8px; --r-md:10px; --r-lg:12px; --r-xl:16px;
  --mono:ui-monospace,'JetBrains Mono',SFMono-Regular,Menlo,monospace;
  --top-h:76px;
}
.wme {
  position: relative;
  container-type: inline-size; container-name: wme;
  background: var(--ground); color: var(--ink); min-height: 100%;
}
.wme *, .wme *::before, .wme *::after { box-sizing: border-box; }
:where(.wme) a { color: var(--link); text-decoration: none; }
:where(.wme) a:hover { text-decoration: underline; }
:where(.wme, .wme-mobilebar) button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:where(.wme, .wme-mobilebar) button:disabled { cursor: default; }
.wme :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wme .sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wme svg.i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ── Верхняя панель ── */
.wme-top { position: sticky; top: 0; z-index: 20; height: var(--top-h); background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 0 32px; }
.wme-head { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wme-crumbs { font-size: 12px; color: var(--muted); white-space: nowrap; }
.wme-crumbs a { cursor: pointer; }
.wme-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wme-top h1 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.wme-status { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.wme-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.wme-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wme-pill.published { background: var(--ok-soft); color: var(--ok); }
.wme-pill.draft { background: #eceef4; color: var(--ink-2); }
.wme-save { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.wme-save.dirty { color: var(--warn); }
.wme-save.dirty::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn-dot); }

.wme-btn { height: 40px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; color: var(--ink); }
.wme-btn:hover:not(:disabled) { background: var(--surface-2); text-decoration: none; }
.wme-btn.secondary { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.wme-btn.primary { border: 0; background: var(--accent); color: #fff; font-weight: 700; padding: 0 18px; }
.wme-btn.primary:hover:not(:disabled) { background: #4338ca; }
.wme-btn.primary:disabled { background: #c7c9ee; }
.wme-btn.icon { width: 40px; padding: 0; }
.wme-btn.sm { height: 32px; padding: 0 12px; font-size: 12px; }
.wme-btn.warn-fill { border: 0; background: var(--warn); color: #fff; font-weight: 700; }
.wme-btn.warn-fill:hover:not(:disabled) { background: #7c2d0e; }
.wme-menuwrap { position: relative; }
.wme-dropdown { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 12px 32px rgba(20,21,42,.14); padding: 6px; display: none; z-index: 40; }
.wme-dropdown.open { display: block; }
.wme-dropdown button, .wme-dropdown a { display: flex; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; gap: 10px; align-items: center; color: var(--ink); }
.wme-dropdown button:hover:not(:disabled), .wme-dropdown a:hover { background: var(--surface-2); text-decoration: none; }
.wme-dropdown button:disabled { opacity: .4; }
.wme-dropdown .danger { color: var(--bad); }
.wme-dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.wme-back { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); }

/* ── Раскладка ── */
.wme-layout { display: grid; grid-template-columns: 212px minmax(0,1fr) 360px; gap: 24px; padding: 24px 32px 48px; align-items: start; }
.wme-sectnav, .wme-aside { position: sticky; top: calc(var(--top-h) + 24px); }
.wme-sectnav { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 2px; }
.wme-main { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.wme-aside { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; gap: 20px; }
.wme-sectnav .label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 12px 8px; }
.wme-sectnav .navlink { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-md); font-size: 14px; font-weight: 600; color: var(--ink-2);
  border: 1px solid transparent; white-space: nowrap; text-align: left; width: 100%; }
.wme-sectnav .navlink:hover { background: #eceef4; }
.wme-sectnav .navlink.active { background: var(--surface); color: var(--ink); font-weight: 700; border-color: var(--line); box-shadow: 0 1px 2px rgba(20,21,42,.06); }
.wme-sectnav .navlink > span:first-child { flex: 1; }
.wme-badge { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; line-height: 1.4; }
.wme-badge.ok { color: var(--ok); padding: 0; }
.wme-badge.warn { color: var(--warn); background: var(--warn-soft); }
.wme-badge.count { color: var(--muted); background: #eceef4; font-weight: 700; }
.wme-metacard { margin-top: 20px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.5; }
.wme-metacard b { color: var(--ink); }

.wme-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; display: flex; flex-direction: column; gap: 18px;
  scroll-margin-top: calc(var(--top-h) + 16px); }
.wme-cardhead { display: flex; align-items: center; gap: 12px; }
.wme-cardhead > div:first-child { flex: 1; min-width: 0; }
.wme-card h2 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.wme-card .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── Поля ── */
.wme-field { display: flex; flex-direction: column; gap: 6px; }
.wme-field > label, .wme-field > .lbl { font-size: 13px; font-weight: 700; }
.wme-field .tech { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 4px; }
.wme-input, .wme-textarea { width: 100%; border: 1px solid var(--field); border-radius: var(--r-md); background: var(--surface); font: inherit; font-size: 14px; color: var(--ink); }
.wme-input { height: 44px; padding: 0 14px; }
.wme-textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 72px; }
.wme-input:hover, .wme-textarea:hover { border-color: #b9bdcc; }
.wme-input:focus, .wme-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.wme .is-warn { border-color: var(--warn-line); background: var(--warn-bg); }
.wme-help { font-size: 12px; color: var(--muted); }
.wme-help.warn { color: var(--warn); font-weight: 600; }
.wme-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.wme-meter { display: flex; align-items: center; gap: 10px; }
.wme-meter .track { flex: 1; height: 4px; border-radius: 4px; background: #eceef4; overflow: hidden; }
.wme-meter .fill { height: 100%; border-radius: 4px; background: var(--ok-dot); transition: width .15s, background .15s; }
.wme-meter .num { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wme-meter .range { font-size: 12px; color: var(--muted); }
.wme-meter.ok .num { color: var(--ok); }
.wme-meter.short .fill { background: var(--warn-dot); } .wme-meter.short .num { color: var(--warn); }
.wme-meter.long .fill { background: #dc2626; } .wme-meter.long .num { color: var(--bad); }

.wme-url { display: flex; align-items: stretch; height: 44px; border: 1px solid var(--field); border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.wme-url .prefix { display: flex; align-items: center; padding: 0 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); border-right: 1px solid var(--line); white-space: nowrap; }
.wme-url input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; font-family: var(--mono); font-size: 13px; color: var(--ink); }
.wme-url input:focus { outline: none; }
.wme-url .lock { display: flex; align-items: center; padding: 0 12px; color: var(--muted); }
.wme-url.editable { background: var(--surface); }
.wme-url:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }

.wme-dropzone { min-height: 128px; border: 1.5px dashed #c3c7d6; border-radius: var(--r-lg); background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--muted); font-size: 13px; width: 100%; position: relative; overflow: hidden; padding: 0; }
.wme-dropzone b { color: var(--link); }
.wme-dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.wme-dropzone.has-image { border-style: solid; border-color: var(--line); background: #fff; height: 128px; }
.wme-dropzone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wme-dropzone .over { position: absolute; left: 8px; bottom: 8px; background: rgba(20,21,42,.72); color: #fff; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.wme-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border: 1px solid var(--field); border-radius: var(--r-lg); min-height: 56px; align-content: flex-start; }
.wme-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.wme-chip button { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; padding: 0; color: inherit; }
.wme-chip button:hover { background: rgba(55,48,163,.12); }
.wme-chipadd { padding: 6px 10px; border-radius: 8px; border: 1px dashed #c3c7d6 !important; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; }
.wme-chipinput { border: 1px solid var(--accent); border-radius: 8px; padding: 5px 9px; font: inherit; font-size: 13px; width: 150px; }

/* TinyMCE в стиле эталона */
.wme .tox.tox-tinymce { border: 1px solid var(--field) !important; border-radius: var(--r-lg) !important; overflow: hidden; }
.wme .tox .tox-editor-header, .wme .tox .tox-toolbar-overlord, .wme .tox .tox-toolbar, .wme .tox .tox-toolbar__primary { background: var(--surface-2) !important; }
.wme .tox .tox-toolbar__primary { border-bottom: 1px solid var(--line); }

/* FAQ */
.wme-faqlist { display: flex; flex-direction: column; gap: 10px; }
.wme-faq { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: grid; grid-template-columns: auto auto minmax(0,1fr) auto; gap: 10px 12px; align-items: start; background: var(--surface); }
.wme-faq.dragging { opacity: .45; }
.wme-faq .n { font-size: 12px; font-weight: 700; color: var(--faint); padding-top: 12px; font-variant-numeric: tabular-nums; }
.wme-faq .fields { display: flex; flex-direction: column; gap: 8px; }
.wme-empty { border: 1.5px dashed var(--warn-line); background: var(--warn-bg); border-radius: var(--r-lg); padding: 18px; display: flex; align-items: center; gap: 14px; color: var(--warn); }
.wme-empty.neutral { border-color: #c3c7d6; background: var(--surface-2); color: var(--muted); }
.wme-empty p { margin: 0; flex: 1; font-weight: 600; font-size: 13px; }

/* Блоки */
.wme-seg { display: flex; padding: 3px; border-radius: 9px; background: #f0f1f6; gap: 2px; }
.wme-seg button { padding: 6px 12px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--muted); }
.wme-seg button[aria-pressed="true"] { background: var(--surface); font-weight: 700; color: var(--ink); box-shadow: 0 1px 2px rgba(20,21,42,.08); }
.wme-blocks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wme-block { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); }
.wme-block.dragging, .wme-block.sortable-ghost { opacity: .45; }
.wme-block.off .name, .wme-block.off .code { opacity: .5; }
.wme-block.warn { border-color: var(--warn-line); background: var(--warn-bg); }
.wme-blockrow { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 10px 0 6px; }
.wme-handle { width: 28px; height: 40px; display: grid; place-items: center; color: #a4a7b8; cursor: grab; border-radius: 6px; touch-action: none; }
.wme-handle:hover { background: #eceef4; }
.wme-block .n { width: 22px; font-size: 12px; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; }
.wme-block .title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wme-block .name { font-size: 14px; font-weight: 700; }
.wme-block .code { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.wme-tagshared { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f0f1f6; color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.wme-tagshared svg { width: 12px; height: 12px; }
.wme-blockwarn { display: flex; align-items: center; gap: 10px; padding: 10px 14px 12px 70px; border-top: 1px solid #f6d9b8; font-size: 13px; color: var(--warn); }
.wme-blockwarn span { flex: 1; font-weight: 600; }
.wme-switch { position: relative; width: 40px; height: 24px; border-radius: 999px; background: #cfd2de; padding: 0; flex-shrink: 0; transition: background .15s; }
.wme-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.wme-switch[aria-checked="true"] { background: var(--accent); }
.wme-switch[aria-checked="true"]::after { left: 19px; }
.wme-kebab { width: 32px; height: 32px; border-radius: 8px; color: var(--muted); display: grid; place-items: center; }
.wme-kebab:hover { background: #eceef4; }
.wme-addzone { border: 1.5px dashed #c3c7d6; border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.wme-addzone .hd { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.wme-addzone .hd small { font-weight: 500; font-size: 12px; color: var(--muted); }
.wme-addzone .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.wme-addzone .opts button { padding: 8px 14px; border-radius: var(--r-md); border: 1px solid var(--field); background: var(--surface); font-size: 13px; font-weight: 600; }
.wme-addzone .opts button:hover { border-color: var(--accent); color: var(--accent-ink); }
.wme-menurow { display: flex; gap: 8px; flex-wrap: wrap; }
.wme-menurow select { height: 40px; border: 1px solid var(--field); border-radius: var(--r-md); padding: 0 12px; background: var(--surface); min-width: 220px; flex: 1; font: inherit; }
.wme-samplerow { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.wme-samplerow .thumb { width: 56px; height: 38px; border-radius: 6px; background: #eceef4; overflow: hidden; flex-shrink: 0; }
.wme-samplerow .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wme-samplerow .t { flex: 1; min-width: 0; font-weight: 700; font-size: 13px; }
.wme-samplerow .t small { display: block; font-weight: 400; color: var(--muted); }

/* Правая панель */
.wme-aside .wme-card { padding: 20px; gap: 14px; }
.wme-aside h2 { font-size: 14px; }
.wme-serp { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r-lg); background: var(--surface-2); }
.wme-serp .site { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); overflow: hidden; }
.wme-serp .site span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wme-serp .fav { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.wme-serp .t { font-size: 17px; line-height: 1.3; color: var(--serp-title); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wme-serp .d { font-size: 13px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wme-serp .empty-val { color: var(--faint); font-style: italic; }
.wme-readyhead { display: flex; align-items: center; gap: 14px; }
.wme-ring { --p: 0; width: 52px; height: 52px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), #eceef4 0); display: grid; place-items: center; flex-shrink: 0; }
.wme-ring span { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.wme-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wme-checks li { display: flex; gap: 10px; font-size: 13px; line-height: 1.4; }
.wme-checks .dot { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.wme-checks .ok .dot { background: var(--ok-soft); color: var(--ok); }
.wme-checks .warn .dot { background: var(--warn-soft); color: var(--warn); }
.wme-checks b { font-weight: 600; }
.wme-checks small { display: block; color: var(--muted); font-size: 12px; }
.wme-checks a { font-weight: 700; cursor: pointer; }
.wme-schema { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; display: flex; flex-direction: column; gap: 5px; background: #fafbfd; }
.wme-schema div { border-radius: 6px; display: flex; align-items: center; padding: 0 10px; font-size: 11px; font-weight: 700; overflow: hidden; white-space: nowrap; }
.wme-schema .own { background: #dfe2ff; color: var(--accent-ink); }
.wme-schema .shared { background: #eceef4; color: var(--ink-2); border: 1px solid #d0d3df; }
.wme-schema .empty-b { background: #ffe6cc; color: var(--warn); }
.wme-schema .off { opacity: .35; text-decoration: line-through; }
.wme-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.wme-legend span { display: flex; align-items: center; gap: 6px; }
.wme-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.wme-mobilebar { display: none; }

/* ── Адаптив по ширине области контента (в CRM слева есть своё меню) ── */
@container wme (max-width: 1500px) { .wme .hide-xl { display: none !important; } }
@container wme (max-width: 1180px) {
  .wme-layout { grid-template-columns: 200px minmax(0,1fr); }
  .wme-aside { position: static; grid-column: 2; grid-row: 1; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wme-aside .schema-card { grid-column: 1 / -1; }
  .wme-main { grid-column: 2; grid-row: 2; }
  .wme-sectnav { grid-column: 1; grid-row: 1 / span 2; }
  .wme .hide-md { display: none !important; }
  .wme-save { font-size: 0; }
  .wme-save::after { content: attr(data-short); font-size: 12px; }
}
@container wme (max-width: 900px) { .wme-top { padding: 0 20px; } .wme-layout { padding: 20px; } }

/* ── Телефон ── */
@media (max-width: 768px) {
  .wme { --top-h: 64px; font-size: 15px; }
  .wme-top { padding: 0 8px 0 4px; gap: 4px; }
  .wme-top .wme-crumbs, .wme-top .desktop-only { display: none !important; }
  .wme-back { display: inline-flex; }
  .wme-head { gap: 2px; }
  .wme-top h1 { font-size: 16px; order: -1; }
  .wme-meta { gap: 8px; }
  .wme-save { font-size: 0; }
  .wme-save::after { content: attr(data-short); font-size: 12px; }
  .wme-layout { display: block; padding: 0 12px 120px; }
  .wme-sectnav { position: sticky; top: var(--top-h); z-index: 15; flex-direction: row; overflow-x: auto; scrollbar-width: none; background: var(--surface);
    margin: 0 -12px 14px; padding: 0 8px; border-bottom: 1px solid var(--line); gap: 0; }
  .wme-sectnav::-webkit-scrollbar { display: none; }
  .wme-sectnav .label, .wme-metacard { display: none; }
  .wme-sectnav .navlink { width: auto; border: 0; border-bottom: 2.5px solid transparent; border-radius: 0; padding: 12px; box-shadow: none !important; background: transparent !important; font-size: 14px; }
  .wme-sectnav .navlink.active { border-bottom-color: var(--accent); }
  .wme-sectnav .wme-badge.ok, .wme-sectnav .wme-badge.count { display: none; }
  .wme-sectnav .wme-badge.warn { width: 7px; height: 7px; padding: 0; font-size: 0; background: var(--warn-dot); }
  .wme-aside { display: flex; margin-bottom: 14px; }
  .wme-aside .ready, .wme-aside .schema-card { display: none; }
  .wme-main { gap: 14px; }
  .wme-card { padding: 16px; border-radius: 14px; gap: 16px; }
  .wme-grid2 { grid-template-columns: 1fr; }
  .wme-input, .wme-textarea, .wme-menurow select, .wme-chipinput { font-size: 16px; }
  .wme-url .prefix { display: none; }
  .wme-blockrow { gap: 10px; padding-right: 8px; }
  .wme-block .n, .wme-block .code { display: none; }
  .wme-tagshared .txt { display: none; }
  .wme-tagshared { padding: 6px; }
  .wme-block .act-inline { display: none; }
  .wme-blockwarn { padding-left: 14px; flex-wrap: wrap; }
  .wme-switch { width: 44px; height: 26px; }
  .wme-switch::after { width: 20px; height: 20px; } .wme-switch[aria-checked="true"]::after { left: 21px; }
  .wme-kebab, .wme-btn.icon, .wme-chip button, .wme-handle { min-width: 44px; min-height: 44px; }
  .wme-faq { grid-template-columns: auto minmax(0,1fr) auto; } .wme-faq .n { display: none; }
  .wme-mobilebar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .wme-mobilebar .wme-btn { height: 48px; font-size: 15px; border-radius: 12px; }
  .wme-mobilebar .secondary { flex: 1; } .wme-mobilebar .primary { flex: 2; }
}
@media (prefers-reduced-motion: reduce) { .wme * { transition: none !important; } }
