/* =========================================================================
   Respar Cartoons console — v4.1 Visual editor styles
   Extends admin.css; nothing here changes the console when Visual edit is off.
   ========================================================================= */

/* ---------- mode toggle + chip in the preview toolbar ---------- */
.pv-tools { flex-wrap: wrap; row-gap: 6px; }
.seg.ve-mode button { width: auto; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; font-weight: 700; font-size: 12.5px; color: var(--ink-2); }
.seg.ve-mode button svg { width: 15px; height: 15px; }
.seg.ve-mode button[data-vm="edit"][aria-pressed="true"] { background: linear-gradient(135deg, #ffd666, #ff8a3d); color: var(--ink); }
.seg.ve-mode[hidden], #adVisualBtn[hidden] { display: none; }
.ve-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #fff4dc; color: #8a4b05; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.ve-chip i { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); animation: vePulse 1.8s ease-in-out infinite; }
.ve-chip[hidden] { display: none; }
@keyframes vePulse { 50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); } }
#adVisualBtn[aria-pressed="true"] { background: rgba(255, 214, 102, .16); border-color: rgba(255, 214, 102, .5); color: var(--sun); }

/* ---------- layout: preview + inspector ---------- */
.pv-body { flex: 1; min-height: 0; display: flex; position: relative; }
.pv-body > .pv-frame-wrap { flex: 1; min-width: 0; }
.ve-insp { width: 336px; flex: none; display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-left: 1px solid var(--line); font-size: 13px; }
.ve-insp[hidden] { display: none; }
body.ve-on.pv-on .ad-shell { grid-template-columns: var(--nav-w) minmax(320px, 30vw) minmax(0, 1fr); }
body.ve-on .pv-note { display: none; }
@media (max-width: 1360px) {
  body.ve-on.pv-on .ad-shell { grid-template-columns: var(--nav-w) minmax(0, 1fr); }
  body.ve-on .ad-preview:not([hidden]) { width: calc(100vw - var(--nav-w)); }
}
@media (max-width: 1100px) { .ve-insp { width: 300px; } }
@media (max-width: 900px) {
  body.ve-on .ad-preview:not([hidden]) { width: 100vw; }
  .seg.ve-mode button span { display: none; }
  .ve-chip { font-size: 0; padding: 6px; } .ve-chip i { margin: 0; }
  /* inspector becomes a bottom sheet */
  .ve-insp { position: absolute; left: 0; right: 0; bottom: 0; width: auto; max-height: 46px; border-left: 0; border-top: 1px solid var(--line-2); border-radius: 16px 16px 0 0; box-shadow: 0 -12px 30px -12px rgba(27, 16, 53, .35); transition: max-height .25s ease; z-index: 3; }
  .ve-insp.sheet-open { max-height: 58%; }
  .ve-insp .vx-sheet-t { display: inline-grid !important; }
  .ve-insp.sheet-open .vx-sheet-t svg { transform: rotate(180deg); }
}

/* ---------- inspector chrome ---------- */
.vx-head { display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 14px; border-bottom: 1px solid var(--line); min-height: 46px; }
.vx-kind { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--info-bg); color: var(--info); }
.vx-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.vx-hbtns { display: inline-flex; gap: 4px; flex: none; }
.vx-hbtns .ib { width: 30px; height: 30px; }
.vx-sheet-t { display: none !important; }
.vx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 6px 14px; font-size: 11.5px; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.vx-crumbs button { border: 0; background: none; padding: 2px 4px; border-radius: 5px; color: var(--info); font: inherit; font-weight: 700; cursor: pointer; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-crumbs button:hover { background: var(--info-bg); }
.vx-crumbs span { font-weight: 700; color: var(--ink-2); }
.vx-tabs { display: flex; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid var(--line); }
.vx-tabs button { flex: 1; border: 0; background: none; padding: 8px 4px 9px; font: inherit; font-weight: 700; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; }
.vx-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--coral); }
.vx-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px 18px; scrollbar-width: thin; }
.vx-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); background: #fbfaff; }
.vx-follow { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); cursor: pointer; }

/* ---------- fields ---------- */
.vx-l { display: block; font-weight: 700; font-size: 12px; color: var(--ink-2); margin: 10px 0 5px; }
.vx-in { width: 100%; min-height: 34px; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
textarea.vx-in { resize: vertical; line-height: 1.45; }
.vx-in:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); }
.vx-in.bad { border-color: var(--err); box-shadow: 0 0 0 3px rgba(208, 40, 79, .14); }
.vx-help { display: block; margin: 6px 0 2px; color: var(--ink-3); font-size: 11.5px; line-height: 1.45; }
.vx-warn { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; padding: 9px 10px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 12px; }
.vx-warn svg { width: 16px; height: 16px; flex: none; }
.vx-h { margin: 14px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.vx-h small { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink-3); }
.vx-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vx-btns .ab { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.vx-btns .ab svg { width: 14px; height: 14px; }
.ab-danger-ghost { color: var(--err); border-color: #f6cbd6; }
.ab-danger-ghost:hover { background: var(--err-bg); }
.vx-row2 { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.vx-card { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fcfbfe; }
.vx-card > b { font-size: 12.5px; }
.vx-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }

/* toggles */
.vx-tg { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 12.5px; color: var(--ink-2); position: relative; }
.vx-tg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vx-tg span { width: 32px; height: 18px; border-radius: 999px; background: #d6cde6; position: relative; transition: background .15s; flex: none; }
.vx-tg span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.vx-tg input:checked + span { background: var(--violet); }
.vx-tg input:checked + span::after { transform: translateX(14px); }
.vx-tg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(139, 92, 246, .3); }
.vx-tg small { color: var(--ink-3); font-weight: 600; }

/* device bar */
.vx-dev { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: #f3f0f8; margin-bottom: 6px; }
.vx-dev button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; background: none; padding: 6px 4px; border-radius: 8px; font: inherit; font-size: 12px; font-weight: 700; color: var(--ink-3); cursor: pointer; }
.vx-dev button svg { width: 14px; height: 14px; }
.vx-dev button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(27, 16, 53, .14); }
.vx-devnote { margin: 0 0 8px; font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
.vx-scope { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 10px; }
.vx-scope button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 4px 9px; font: inherit; font-size: 11.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.vx-scope button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* control rows */
.vx-grp { border: 1px solid var(--line); border-radius: 12px; margin: 8px 0; background: #fff; }
.vx-grp > summary { list-style: none; cursor: pointer; padding: 9px 12px; font-weight: 800; font-size: 12.5px; display: flex; align-items: center; justify-content: space-between; }
.vx-grp > summary::-webkit-details-marker { display: none; }
.vx-grp > summary::after { content: "+"; font-weight: 700; color: var(--ink-3); }
.vx-grp[open] > summary::after { content: "–"; }
.vx-grp-b { padding: 0 12px 12px; border-top: 1px solid var(--line); }
.vx-ctl { position: relative; }
.vx-ctl > .vx-l { padding-right: 26px; }
.vx-rs { position: absolute; right: 0; top: 7px; width: 22px; height: 22px; border: 0; border-radius: 6px; background: var(--info-bg); color: var(--info); font-weight: 800; cursor: pointer; line-height: 1; }
.vx-rs[hidden] { display: none; }
.vx-num { display: flex; align-items: center; gap: 8px; }
.vx-num input[type="range"] { flex: 1; min-width: 0; accent-color: var(--violet); }
.vx-num input[type="number"] { width: 74px; flex: none; }
.vx-num .vx-unit { width: 64px; flex: none; }
.vx-u { font-size: 11.5px; color: var(--ink-3); min-width: 16px; }
.vx-inh { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-3); }
.vx-seg { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 9px; background: #f3f0f8; }
.vx-seg button { flex: 1; min-width: 34px; border: 0; background: none; border-radius: 7px; padding: 6px 6px; font: inherit; font-weight: 800; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.vx-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(27, 16, 53, .14); }
.vx-seg button.inh { box-shadow: inset 0 0 0 1px var(--line-2); background: transparent; }
.vx-box { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.vx-box > b { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); }
.vx-bi { display: grid; gap: 3px; font-size: 10.5px; color: var(--ink-3); font-weight: 700; text-align: center; }
.vx-bi .vx-in { text-align: center; padding: 5px 4px; }

/* colour & gradient */
.vx-color { display: flex; align-items: center; gap: 8px; }
.vx-sw { width: 34px; height: 34px; flex: none; border-radius: 9px; border: 1px solid var(--line-2); cursor: pointer; background: linear-gradient(var(--c), var(--c)), repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.vx-gsw { background: var(--g, none), repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.vx-gtxt { font-size: 12px; color: var(--ink-3); }
.vx-hex { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.vx-cpanel { margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fcfbfe; display: grid; gap: 8px; }
.vx-cp-row { display: flex; align-items: center; gap: 10px; }
.vx-cp-row input[type="color"] { width: 44px; height: 34px; padding: 2px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; cursor: pointer; }
.vx-cp-a { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.vx-cp-a input { flex: 1; min-width: 0; accent-color: var(--violet); }
.vx-cp-a output { width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.vx-cp-rgb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vx-cp-rgb label { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--ink-3); }
.vx-cp-rgb input { width: 100%; min-height: 30px; padding: 4px 6px; border: 1px solid var(--line-2); border-radius: 7px; font: inherit; font-size: 12px; }
.vx-pal small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.vx-pal > div { display: flex; flex-wrap: wrap; gap: 5px; }
.vx-sw-i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(27, 16, 53, .15); cursor: pointer; background: linear-gradient(var(--c), var(--c)), repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 8px 8px; }
.vx-sw-i.vx-gsw { width: 40px; background: var(--g); }
.vx-sw-i:hover, .vx-sw-i:focus-visible { transform: scale(1.12); outline: 2px solid var(--violet); outline-offset: 1px; }
.vx-gp { height: 30px; border-radius: 8px; border: 1px solid var(--line); }
.vx-gstop { display: flex; align-items: center; gap: 8px; }
.vx-gstop input[type="color"] { width: 34px; height: 28px; padding: 1px; border: 1px solid var(--line-2); border-radius: 7px; }
.vx-gstop input[type="range"] { flex: 1; accent-color: var(--violet); }
.vx-gstop output { width: 36px; font-size: 11.5px; text-align: right; }

/* image */
.vx-img { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; }
.vx-img > div { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.vx-img .ab { justify-content: flex-start; min-height: 32px; font-size: 12.5px; }
.vx-img .ab svg { width: 14px; height: 14px; }
.vx-thumb { width: 84px; height: 84px; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); display: grid; place-items: center; background: repeating-conic-gradient(#f0ecf6 0 25%, #fff 0 50%) 0 0 / 12px 12px; color: var(--ink-3); }
.vx-thumb img { width: 100%; height: 100%; object-fit: contain; }
.vx-focal { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); cursor: crosshair; touch-action: none; background: repeating-conic-gradient(#f0ecf6 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.vx-focal img { display: block; width: 100%; max-height: 150px; object-fit: contain; pointer-events: none; user-select: none; }
.vx-focal i { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid #fff; background: var(--coral); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .3); pointer-events: none; }

/* add layer */
.vx-add { margin-top: 14px; border: 1px dashed var(--line-2); border-radius: 12px; padding: 0 10px; }
.vx-add > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 9px 0; font-weight: 800; font-size: 12.5px; color: var(--info); }
.vx-add > summary svg { width: 15px; height: 15px; }
.vx-add > summary::-webkit-details-marker { display: none; }
.vx-add-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vx-add-grid button { display: grid; justify-items: center; gap: 2px; padding: 9px 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 18px; font-weight: 800; color: var(--ink); }
.vx-add-grid button span { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.vx-add-grid button:hover { border-color: var(--violet); background: var(--info-bg); }
.vx-add .vx-help { margin-bottom: 10px; }

/* empty state + structure */
.vx-empty { text-align: center; padding: 8px 4px 4px; }
.vx-empty-ill { width: 52px; height: 52px; margin: 6px auto 8px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #ffd666, #ff5c8a 60%, #c084fc); color: var(--ink); }
.vx-empty-ill svg { width: 24px; height: 24px; }
.vx-empty h3 { margin: 0 0 8px; font-size: 14.5px; }
.vx-empty ul { margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); text-align: left; max-width: 270px; }
.vx-empty li::before { content: "•"; color: var(--coral); margin-right: 6px; }
.vx-tree { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 3px; counter-reset: s; }
.vx-tree li { display: flex; align-items: center; gap: 4px; counter-increment: s; }
.vx-tree li > button:first-child { flex: 1; text-align: left; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 7px 10px; font: inherit; font-weight: 700; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.vx-tree li > button:first-child::before { content: counter(s) "."; color: var(--ink-3); margin-right: 6px; font-weight: 600; }
.vx-tree li > button:first-child:hover:not(:disabled) { border-color: var(--violet); }
.vx-tree li.off > button:first-child { color: var(--ink-3); background: #f7f5fb; text-decoration: line-through; cursor: default; }
.vx-tree small { font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 5px; background: var(--info-bg); color: var(--info); text-transform: uppercase; }
.vx-tree .ib { width: 30px; height: 30px; }
.vx-sfoot { padding-top: 10px; border-top: 1px dashed var(--line); margin-top: 14px; }

/* panel sync flash */
.ve-flash { animation: veFlash 1.4s ease; border-radius: 10px; }
@keyframes veFlash { 0%, 40% { box-shadow: 0 0 0 3px rgba(255, 138, 61, .55); background-color: #fff7ec; } 100% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0); } }

/* ---------- crop modal ---------- */
.crop-ui { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; }
.crop-stage { position: relative; align-self: start; justify-self: center; max-width: 100%; user-select: none; touch-action: none; background: repeating-conic-gradient(#ece7f4 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-radius: 8px; overflow: hidden; }
.crop-stage img { display: block; max-width: 100%; max-height: 62vh; pointer-events: none; transition: transform .2s; }
.crop-box { position: absolute; box-shadow: 0 0 0 9999px rgba(13, 8, 32, .55); outline: 2px solid #fff; cursor: move; }
.crop-box i { position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.crop-box i[data-c="nw"] { left: -2px; top: -2px; cursor: nwse-resize; } .crop-box i[data-c="ne"] { right: -2px; top: -2px; cursor: nesw-resize; }
.crop-box i[data-c="sw"] { left: -2px; bottom: -2px; cursor: nesw-resize; } .crop-box i[data-c="se"] { right: -2px; bottom: -2px; cursor: nwse-resize; }
.crop-box i { width: 20px; height: 20px; }
.crop-grid { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 33%, rgba(255, 255, 255, .45) 33%, rgba(255, 255, 255, .45) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(255, 255, 255, .45) 66%, rgba(255, 255, 255, .45) calc(66% + 1px), transparent calc(66% + 1px)), linear-gradient(transparent 33%, rgba(255, 255, 255, .45) 33%, rgba(255, 255, 255, .45) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(255, 255, 255, .45) 66%, rgba(255, 255, 255, .45) calc(66% + 1px), transparent calc(66% + 1px)); }
.crop-side input[type="range"] { width: 100%; accent-color: var(--violet); }
.crop-side .vx-tg { margin-top: 12px; }
.crop-side .vx-seg button { flex: 0 0 auto; }
.crop-side > .ab { margin-top: 8px; }
@media (max-width: 760px) { .crop-ui { grid-template-columns: 1fr; } .crop-stage img { max-height: 46vh; } }

/* ---------- image studio ---------- */
.studio-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.studio-tools .ab { min-height: 32px; font-size: 12.5px; }
.studio-tools .ab svg { width: 14px; height: 14px; }
.studio-mode button { flex: 0 0 auto; padding: 6px 10px; }
.studio-r { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.studio-r input { width: 90px; accent-color: var(--violet); }
.studio-r output { width: 24px; font-variant-numeric: tabular-nums; }
.studio-stage { position: relative; display: grid; place-items: center; min-height: 220px; max-height: 62vh; overflow: auto; border-radius: 10px; background: repeating-conic-gradient(#e7e1f0 0 25%, #fff 0 50%) 0 0 / 18px 18px; border: 1px solid var(--line); }
.studio-stage canvas { max-width: 100%; max-height: 60vh; touch-action: none; cursor: crosshair; display: block; }
.studio-stage canvas[data-mode="erase"], .studio-stage canvas[data-mode="restore"] { cursor: cell; }
.studio-msg { position: absolute; inset: auto 16px; margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, .94); text-align: center; font-weight: 700; color: var(--ink-2); }
.studio-msg[hidden] { display: none; }

/* ---------- Design styles panel ---------- */
.dz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dz-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.dz-t { min-width: 0; font-weight: 650; font-size: 13px; overflow-wrap: anywhere; }
.dz-t code { display: block; font-size: 11px; color: var(--ink-3); font-weight: 500; }
.dz-devs { display: inline-flex; gap: 3px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.dz-dev { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; background: var(--info-bg); color: var(--info); font-size: 10.5px; font-weight: 800; }
.dz-a { display: inline-flex; gap: 6px; }
.dz-pals { display: grid; gap: 8px; margin-top: 12px; }
.dz-pal { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.dz-pal span { display: flex; flex-wrap: wrap; gap: 4px; }
.dz-pal i { width: 20px; height: 20px; border-radius: 6px; border: 1px solid rgba(27, 16, 53, .15); }
@media (max-width: 640px) { .dz-list li { grid-template-columns: 1fr; } }

/* ---------- console message receipts (bug 4) — same look as the site ---------- */
.ops-thread .rcpt { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--ink-3); cursor: help; border-radius: 6px; vertical-align: middle; }
.ops-thread .rcpt svg { width: 16px; height: 11px; flex: none; }
.ops-thread .rcpt-read { color: #0d9488; }
.ops-thread .rcpt:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { .ve-chip i, .ve-flash { animation: none; } .ve-insp { transition: none; } .crop-stage img { transition: none; } }

/* ---------- top bar fits at every width (also fixes a V4 overflow between 901–1360 px) ---------- */
.ad-top { min-width: 0; }
.ad-top-r { flex-wrap: nowrap; }
@media (max-width: 1440px) {
  #adVisualBtn span, #adPreviewBtn span { display: none; }
  #adVisualBtn, #adPreviewBtn { padding: 0 10px; }
}
@media (max-width: 1280px) {
  .ad-proto { font-size: 0; padding: 6px; gap: 0; }
  .ad-proto svg { width: 15px; height: 15px; }
  .ad-who .who-t { display: none; }
  .ad-status .st:not(:first-child):not(.st-warn):not(.st-err) { display: none; }
}
@media (max-width: 1100px) {
  #adApply span { display: none; }
  #adApply { padding: 0 10px; }
  .ad-brand-t small { display: none; }
}
@media (max-width: 600px) {
  /* phones: status pills shrink to a coloured dot (full text in the tooltip / status panel) */
  .ad-status .st { font-size: 0; gap: 0; width: 12px; height: 12px; min-width: 0; padding: 0; border-radius: 50%; background: currentColor; }
  .ad-status .st svg { display: none; }
  .ad-status { align-items: center; gap: 4px; }
  .ad-status .st-ok { color: var(--mint, #5eeab4); }
}
@media (max-width: 400px) {
  .ad-top-r { gap: 4px; }
  #adVisualBtn, #adPreviewBtn, #adApply { padding: 0 8px; }
}
