/*!
 * constructor-ux.css : стили нового интерфейса 3D-конструктора (WZ 22324294), версия 2.0.0, 06.10.2026.
 * Все правила под html.c3dux: без включения слоя (constructor-ux.js) файл ничего не меняет.
 */
/* шрифт Montserrat подключает constructor-ux.js только при включённом слое (v2) */

html.c3dux {
  --cx-dark: var(--p55-primary-18,#004156);
  --cx-teal: var(--p55-primary,#00838f);
  --cx-teal-d: var(--p55-primary-23,#006b75);
  --cx-teal-l: var(--p55-surface,#e3f2f3);
  --cx-bg: var(--p55-tint-931,#eaf0f1);
  --cx-text: var(--p55-ink-129,#0f2a33);
  --cx-muted: var(--p55-ink-473,#6b7f86);
  --cx-line: var(--p55-tint-882,#dbe4e7);
  --cx-ok: #1f9d55;
  --cx-ok-l: #e4f5ea;
  --cx-red: #e5484d;
  --cx-red-l: #fdecec;
  --cx-yellow: #ffd66b;
  --cx-r: 14px;
  --cx-shadow: 0 6px 24px rgba(var(--p55-primary-13-rgb,0,49,64),0.10);
}

/* ---------- старый интерфейс: прячем, не удаляем ---------- */
html.c3dux .constructor-ui-container > .sidebar,
html.c3dux .constructor-ui-container > .sidepanel,
html.c3dux .constructor-ui-container > .toolbar,
html.c3dux .constructor-ui-container > .pager-toolbar,
html.c3dux .constructor-ui-container > .pager-toolbar-mobile,
html.c3dux .show-menu-btn,
html.c3dux .show-menu-btn-fixed { display: none !important; }
html.c3dux #constructor-ui,
html.c3dux .constructor-ui-container { height: 0 !important; min-height: 0 !important; display: block !important; overflow: visible !important; }
html.c3dux #main-collabsed-header { top: 56px; z-index: 1100; }
html.c3dux.c3dux-m #main-collabsed-header { top: 0; }

/* штатное окно «Добавить в корзину» и сообщения ядра в новом стиле */
html.c3dux .control.popover { position: fixed !important; inset: 0; width: auto !important; min-width: 0 !important; max-width: none !important; height: auto; z-index: 5000; background: rgba(var(--p55-primary-9-rgb,0,32,42),0.45); align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; }
html.c3dux .control.popover > .control { position: relative; width: 400px; max-width: calc(100vw - 32px); background: #fff !important; border-radius: 20px !important; padding: 22px 22px 18px !important; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); box-sizing: border-box; }
html.c3dux .control.popover .label,
html.c3dux .control.popover .control.label { color: var(--cx-text) !important; font-family: 'Montserrat', sans-serif !important; font-weight: 600; letter-spacing: 0; font-size: 15px !important; }
html.c3dux .control.popover .label.title { font-size: 20px !important; font-weight: 800; padding: 4px 0 8px; }
html.c3dux .control.popover .button { border-radius: 12px; padding: 10px 18px; background: var(--cx-teal-l); cursor: pointer; }
html.c3dux .control.popover .button .label { color: var(--cx-teal-d) !important; font-weight: 700; }
html.c3dux .control.popover .row:last-child .button:nth-child(5) { background: var(--cx-teal); }
html.c3dux .control.popover .row:last-child .button:nth-child(5) .label { color: #fff !important; }
html.c3dux .control.popover .icon,
html.c3dux .control.popover .fa { color: var(--cx-teal) !important; }
html.c3dux .control.popover input { border: 1px solid var(--cx-line); border-radius: 10px; padding: 6px 8px; font: 600 15px 'Montserrat', sans-serif; color: var(--cx-text); max-width: 64px; user-select: text; }
html.c3dux .control.popover a { color: var(--cx-teal) !important; font-weight: 700; }

/* ---------- корень ---------- */
html.c3dux body { overflow: hidden !important; }
#c3dux { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: var(--cx-bg); color: var(--cx-text); font: 500 14px/1.35 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
#c3dux *, #c3dux *::before, #c3dux *::after { box-sizing: border-box; touch-action: manipulation; }
#c3dux .constructor-container, #c3dux .constructor-container * { touch-action: none !important; }
#c3dux input, #c3dux textarea { user-select: text; -webkit-user-select: text; }
#c3dux button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#c3dux button:disabled { cursor: default; opacity: 0.4; }
#c3dux button:focus-visible, #c3dux input:focus-visible, #c3dux textarea:focus-visible { outline: 3px solid rgba(var(--p55-primary-rgb,0,131,143),0.45); outline-offset: 2px; }
#c3dux [hidden] { display: none !important; }
#c3dux .cx-i { width: 20px; height: 20px; flex: none; display: block; }
#c3dux .cx-sp { flex: 1 1 auto; }

/* ---------- полоса сайта ---------- */
#c3dux .cx-site { height: 56px; flex: none; display: flex; align-items: center; gap: 28px; padding: 0 24px; background: var(--cx-dark); color: #fff; }
#c3dux .cx-logo img { height: 34px; width: auto; display: block; }
#c3dux .cx-logo { color: #fff; font-weight: 800; text-decoration: none; }
#c3dux .cx-nav { display: flex; align-items: center; gap: 22px; }
#c3dux .cx-nav a, #c3dux .cx-navmenu { color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.95; display: inline-flex; align-items: center; gap: 6px; }
#c3dux .cx-nav a:hover, #c3dux .cx-navmenu:hover { opacity: 1; text-decoration: underline; }
#c3dux .cx-navmenu .cx-i { width: 16px; height: 16px; }
#c3dux .cx-tel { color: #fff; text-decoration: none; font-weight: 600; font-size: 13px; }
#c3dux .cx-sitecart { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
#c3dux .cx-sitecart b { background: var(--cx-teal); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; min-width: 44px; text-align: center; }

/* ---------- шапка конструктора ---------- */
#c3dux .cx-head { height: 72px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--cx-line); }
#c3dux .cx-back { width: 40px; height: 40px; border-radius: 12px; background: var(--p55-tint-945,#eef3f4); display: grid; place-items: center; }
#c3dux .cx-titlebox { min-width: 220px; max-width: 300px; }
#c3dux .cx-crumbs { font-size: 12.5px; color: var(--cx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#c3dux .cx-title { font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#c3dux .cx-steps { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0; min-width: 0; }
#c3dux .cx-step { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; color: var(--cx-muted); font-weight: 700; font-size: 15px; white-space: nowrap; }
#c3dux .cx-step .cx-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--p55-tint-945,#eef3f4); font-size: 13.5px; font-weight: 800; color: var(--cx-muted); }
#c3dux .cx-step .cx-num .cx-i { width: 16px; height: 16px; stroke-width: 3; }
#c3dux .cx-step.done { color: var(--cx-text); }
#c3dux .cx-step.done .cx-num { background: var(--cx-ok); color: #fff; }
#c3dux .cx-step.on { background: var(--cx-teal-l); color: var(--cx-text); box-shadow: 0 0 0 2px var(--p55-surface-87,#cfe7e9) inset; }
#c3dux .cx-step.on .cx-num { background: var(--cx-teal); color: #fff; }
#c3dux .cx-step:hover { color: var(--cx-text); }
#c3dux .cx-line { width: 28px; height: 2px; background: var(--cx-line); flex: none; }
#c3dux .cx-line.done { background: var(--cx-ok); }
#c3dux .cx-howto { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--cx-text); white-space: nowrap; }
#c3dux .cx-howto .cx-i { width: 24px; height: 24px; }

/* ---------- тело: колонка иконок, панель, сцена ---------- */
#c3dux .cx-body { flex: 1 1 auto; min-height: 0; display: flex; }
#c3dux .cx-rail { width: 92px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; background: #fff; border-right: 1px solid var(--cx-line); overflow-y: auto; }
#c3dux .cx-railbtn { position: relative; width: 76px; padding: 10px 2px 8px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--cx-text); font-size: 12.5px; font-weight: 600; }
#c3dux .cx-railbtn .cx-i { width: 24px; height: 24px; }
#c3dux .cx-railbtn:hover { background: var(--p55-tint-957,#f1f6f7); }
#c3dux .cx-railbtn.on { background: var(--cx-teal); color: #fff; box-shadow: 0 6px 16px rgba(var(--p55-primary-rgb,0,131,143),0.3); }
#c3dux .cx-railbtn .cx-dot { display: none; position: absolute; top: 9px; right: 18px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
#c3dux .cx-railbtn.has .cx-dot { display: block; }
#c3dux .cx-panel { width: 344px; flex: none; background: #fff; border-right: 1px solid var(--cx-line); overflow-y: auto; padding: 20px 18px 28px; }
#c3dux .cx-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
#c3dux .cx-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
#c3dux .cx-mscroll, #c3dux .cx-minfo, #c3dux .cx-mpanel, #c3dux .cx-mhead, #c3dux .cx-mbar, #c3dux .cx-mhint { display: none; }

/* ---------- сцена ---------- */
#c3dux .cx-card { position: absolute; top: 96px; left: 100px; right: 100px; bottom: 236px; background: #fff; border-radius: 26px; box-shadow: var(--cx-shadow); overflow: hidden; }
#c3dux.cx-in3d .cx-card { top: 72px; bottom: 20px; background: var(--p55-tint-890,#dfe5e7); }
#c3dux .cx-card .constructor-container { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; overflow: auto; background: transparent; display: block; }
#c3dux .cx-card .canvas-container { left: 0; right: 0; }
#c3dux .cx-card .canvas-container, #c3dux .cx-card .side-container, #c3dux .cx-card .lower-canvas { transition: none !important; }
#c3dux .cx-card .lower-canvas { border: 1px solid transparent !important; box-shadow: none !important; outline: 2px dashed var(--cx-teal); outline-offset: 0; }
/* 24. скругление/круг зоны печати берём у ядра (Side2D.setRoundCorners пишет border-radius на холст); верхний холст повторяет форму для рамки выделения */
#c3dux .cx-card .side-container .lower-canvas { outline: none; }
#c3dux .cx-card .side-container { background-color: transparent; }
#c3dux .cx-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 26px; border-radius: 18px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 8px 26px rgba(var(--p55-primary-13-rgb,0,49,64),0.14); color: var(--cx-text); }
#c3dux .cx-empty .cx-i { width: 30px; height: 30px; color: #fff; background: var(--cx-teal); border-radius: 12px; padding: 7px; box-sizing: content-box; }
#c3dux .cx-empty b { font-size: 16px; font-weight: 800; }
#c3dux .cx-empty span { font-size: 12.5px; color: var(--cx-muted); }
#c3dux.cx-dragging .cx-card { box-shadow: 0 0 0 4px var(--cx-teal), var(--cx-shadow); }

#c3dux .cx-hint { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 8; width: max-content; max-width: calc(100% - 48px); display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--cx-dark); color: #fff; box-shadow: 0 10px 30px rgba(var(--p55-primary-13-rgb,0,49,64),0.3); }
#c3dux .cx-hint-tag { position: absolute; left: 18px; top: -11px; background: var(--cx-yellow); color: #5a4300; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 6px; padding: 2px 8px; }
#c3dux .cx-hint-ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); display: grid; place-items: center; }
#c3dux .cx-hint-t { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#c3dux .cx-hint-t b { font-weight: 800; margin-right: 4px; }
#c3dux .cx-hint-go { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--cx-dark); font-weight: 800; border-radius: 10px; padding: 8px 12px; white-space: nowrap; }
#c3dux .cx-hint-go .cx-i { width: 16px; height: 16px; }
#c3dux .cx-hint-x { color: #fff; opacity: 0.8; padding: 4px; }

#c3dux .cx-topbar { position: absolute; top: 76px; left: 122px; z-index: 6; display: flex; gap: 10px; align-items: center; }
#c3dux.cx-in3d .cx-topbar { top: 52px; }
#c3dux .cx-seg, #c3dux .cx-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(var(--p55-primary-13-rgb,0,49,64),0.12); }
#c3dux .cx-seg button, #c3dux .cx-tab { padding: 7px 16px; border-radius: 10px; font-weight: 700; color: var(--cx-muted); white-space: nowrap; min-width: max-content; }
#c3dux .cx-seg button.on { background: var(--cx-teal-l); color: var(--cx-dark); }
#c3dux .cx-tab.on { background: var(--cx-dark); color: #fff; }
#c3dux .cx-tab small { font-weight: 600; opacity: 0.8; }
#c3dux .cx-tabdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin-right: 7px; vertical-align: 1px; }

#c3dux .cx-badge { position: absolute; top: 80px; right: 122px; z-index: 6; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; font-weight: 700; font-size: 13.5px; box-shadow: 0 4px 14px rgba(var(--p55-primary-13-rgb,0,49,64),0.10); }
#c3dux .cx-badge .cx-i { width: 22px; height: 22px; border-radius: 50%; padding: 4px; stroke-width: 3; color: #fff; }
#c3dux .cx-badge.ok { background: var(--cx-ok-l); color: #17663a; }
#c3dux .cx-badge.ok .cx-i { background: var(--cx-ok); }
#c3dux .cx-badge.bad { background: #fff4e0; color: #8a5300; }
#c3dux .cx-badge.bad .cx-i { background: #f59e0b; stroke-width: 2.5; }

#c3dux .cx-zone { position: absolute; bottom: 222px; left: 50%; transform: translateX(-50%); z-index: 5; background: var(--p55-ink-204,#263a42); color: #fff; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
#c3dux .cx-helper { position: absolute; bottom: 186px; left: 100px; right: 300px; flex-wrap: wrap; row-gap: 4px; display: flex; justify-content: center; gap: 24px; color: var(--cx-muted); font-size: 13.5px; }
#c3dux .cx-helper span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
#c3dux .cx-helper .cx-i { width: 17px; height: 17px; }

#c3dux .cx-float { position: absolute; top: 130px; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 8px; }
#c3dux .cx-fleft { left: 26px; }
#c3dux .cx-fright { right: 26px; }
#c3dux.cx-in3d .cx-fleft { display: none; }
#c3dux .cx-float small { font-size: 11px; font-weight: 700; color: var(--cx-muted); }
#c3dux .cx-pill { display: flex; background: #fff; border-radius: 999px; box-shadow: 0 4px 14px rgba(var(--p55-primary-13-rgb,0,49,64),0.12); }
#c3dux .cx-pill.cx-vert { flex-direction: column; }
#c3dux .cx-pill .cx-ib { width: 44px; height: 44px; display: grid; place-items: center; color: var(--cx-text); }
#c3dux .cx-pill.cx-vert .cx-ib + .cx-ib { border-top: 1px solid var(--cx-line); }
#c3dux .cx-roundw { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(var(--p55-primary-13-rgb,0,49,64),0.12); margin-top: 8px; }

/* мини-3D */
#c3dux .cx-mini { position: absolute; right: 24px; bottom: 16px; z-index: 7; width: 260px; height: 220px; border-radius: 22px; overflow: hidden; background: var(--p55-tint-928,#e9eef0); border: 3px solid #fff; box-shadow: 0 10px 30px rgba(var(--p55-primary-13-rgb,0,49,64),0.22); cursor: pointer; }
#c3dux .cx-mini-gl { position: absolute; inset: 0; }
#c3dux .cx-mini-gl canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
#c3dux .cx-mini-tag { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; background: var(--cx-dark); color: #fff; font-weight: 800; font-size: 12px; border-radius: 8px; padding: 3px 8px 3px 6px; pointer-events: none; }
#c3dux .cx-mini-tag i { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3); }
#c3dux .cx-mini-exp { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--cx-dark); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
#c3dux .cx-mini-exp .cx-i { width: 16px; height: 16px; }
#c3dux .cx-mini-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 9px; background: linear-gradient(to top, rgba(var(--p55-primary-10-rgb,0,40,52),0.78), rgba(var(--p55-primary-10-rgb,0,40,52),0)); color: #fff; font-size: 12.5px; pointer-events: none; }
#c3dux .cx-mini-cap b { font-weight: 800; }

/* панель слоёв под холстом */
#c3dux .cx-layers { position: absolute; left: 24px; bottom: 16px; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border-radius: 18px; box-shadow: var(--cx-shadow); max-width: calc(100% - 320px); }
#c3dux .cx-lthumbs { display: flex; gap: 8px; overflow-x: auto; min-width: 0; }
#c3dux .cx-lthumb { width: 54px; height: 54px; flex: none; border-radius: 12px; border: 2px solid var(--cx-line); padding: 2px; display: grid; place-items: center; }
#c3dux .cx-lthumb.on { border-color: var(--cx-teal); box-shadow: 0 0 0 2px var(--cx-teal-l); }
#c3dux .cx-ladd { background: var(--cx-teal-l); border-color: transparent; color: var(--cx-teal); }
#c3dux .cx-th { width: 100%; height: 100%; border-radius: 9px; background: var(--p55-tint-945,#eef3f4) center / cover no-repeat; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: var(--cx-dark); }
#c3dux .cx-spin { background: conic-gradient(var(--cx-teal) 0 25%, var(--p55-tint-945,#eef3f4) 0) !important; border-radius: 50% !important; animation: cxspin 0.9s linear infinite; -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%); mask: radial-gradient(circle, transparent 52%, #000 54%); }
@keyframes cxspin { to { transform: rotate(360deg); } }
#c3dux .cx-lsep { width: 1px; align-self: stretch; background: var(--cx-line); flex: none; }
#c3dux .cx-lacts { display: flex; gap: 4px; }
#c3dux .cx-lact { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; font-size: 12px; font-weight: 700; color: var(--cx-teal-d); }
#c3dux .cx-lact i { width: 40px; height: 40px; border-radius: 12px; background: var(--cx-teal-l); display: grid; place-items: center; }
#c3dux .cx-lact.danger { color: var(--cx-red); }
#c3dux .cx-lact.danger i { background: var(--cx-red-l); }

/* нижняя панель */
#c3dux .cx-bottom { height: 84px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 24px; background: #fff; border-top: 1px solid var(--cx-line); }
#c3dux .cx-bname { display: flex; flex-direction: column; min-width: 0; max-width: 320px; flex: 1 1 0; }
#c3dux .cx-bname b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#c3dux .cx-bname span { font-size: 12.5px; color: var(--cx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#c3dux .cx-qty { display: flex; align-items: center; background: var(--p55-tint-945,#eef3f4); border-radius: 12px; height: 44px; flex: none; }
#c3dux .cx-qty .cx-ib { width: 40px; height: 44px; display: grid; place-items: center; }
#c3dux .cx-qty input { width: 40px; border: 0; background: transparent; text-align: center; font: 800 16px 'Montserrat', sans-serif; color: var(--cx-text); -moz-appearance: textfield; }
#c3dux .cx-qty input::-webkit-inner-spin-button, #c3dux .cx-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#c3dux .cx-bprice { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
#c3dux .cx-bprice b { font-size: 28px; font-weight: 800; line-height: 1.05; white-space: nowrap; }
#c3dux .cx-bprice span { font-size: 12.5px; color: var(--cx-muted); white-space: nowrap; }
#c3dux .cx-btn3d { height: 52px; flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; border-radius: 14px; border: 2px solid var(--cx-teal) !important; color: var(--cx-dark) !important; font-weight: 800 !important; font-size: 16px !important; background: #fff !important; white-space: nowrap; }
#c3dux .cx-btn3d .cx-i { width: 22px; height: 22px; color: var(--cx-teal); }
#c3dux .cx-btn3d:hover { background: var(--cx-teal-l) !important; }
#c3dux .cx-primary { height: 52px; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border-radius: 14px; background: var(--cx-teal) !important; color: #fff !important; font-weight: 800 !important; font-size: 16px !important; white-space: nowrap; box-shadow: 0 8px 20px rgba(var(--p55-primary-rgb,0,131,143),0.3); }
#c3dux .cx-primary:hover { background: var(--cx-teal-d) !important; }
#c3dux .cx-primary .cx-i { width: 22px; height: 22px; }
#c3dux .cx-primary.busy { background: var(--p55-primary-62,#7fb9be) !important; box-shadow: none; }
#c3dux .cx-topbar.cx-center { left: 50%; transform: translateX(-50%); max-width: calc(100% - 220px); }
#c3dux .cx-topbar.cx-center .cx-tabs { overflow-x: auto; max-width: 100%; }

/* ---------- панели ---------- */
#c3dux .cx-ph { margin-bottom: 14px; }
#c3dux .cx-ph h2 { margin: 0 0 4px; font-size: 21px; font-weight: 800; color: var(--cx-text); letter-spacing: 0; }
#c3dux .cx-ph p { margin: 0; font-size: 13px; color: var(--cx-muted); }
#c3dux .cx-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cx-muted); }
#c3dux .cx-tag { display: inline-flex; align-items: center; gap: 4px; font-style: normal; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 700; color: var(--cx-dark); background: var(--cx-teal-l); border-radius: 999px; padding: 3px 9px; }
#c3dux .cx-tag .cx-i { width: 13px; height: 13px; stroke-width: 3; }
#c3dux .cx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
#c3dux .cx-chip { padding: 7px 14px; border-radius: 999px; background: var(--p55-tint-945,#eef3f4); font-weight: 700; color: var(--cx-text); }
#c3dux .cx-chip small { color: var(--cx-muted); font-weight: 600; margin-left: 2px; }
#c3dux .cx-chip.on { background: var(--cx-dark); color: #fff; }
#c3dux .cx-chip.on small { color: var(--p55-tint-790,#b9d3da); }
#c3dux .cx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#c3dux .cx-mcard { display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 7px 7px 10px; border-radius: 16px; border: 2px solid var(--cx-line); background: #fff; transition: border-color 0.15s, box-shadow 0.15s; min-width: 0; }
#c3dux .cx-mcard:hover { border-color: var(--p55-tint-786,#b7d6da); }
#c3dux .cx-mcard.on { border-color: var(--cx-teal); box-shadow: 0 0 0 3px var(--cx-teal-l); }
#c3dux .cx-mimg { position: relative; display: grid; place-items: center; height: 78px; border-radius: 11px; background: var(--p55-tint-927,#e8eff1); margin-bottom: 8px; overflow: hidden; }
#c3dux .cx-mimg img { max-width: 92%; max-height: 74px; object-fit: contain; mix-blend-mode: multiply; }
#c3dux .cx-mcheck { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--cx-teal); color: #fff; display: grid; place-items: center; }
#c3dux .cx-mcheck .cx-i { width: 14px; height: 14px; stroke-width: 3; }
#c3dux .cx-no3dtag { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: 10.5px; font-weight: 700; background: #fff; color: var(--cx-muted); border-radius: 6px; padding: 1px 6px; }
#c3dux .cx-mname { font-size: 13.5px; font-weight: 700; line-height: 1.25; padding: 0 3px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#c3dux .cx-mspec { font-size: 11.5px; color: var(--cx-muted); padding: 3px 3px 0; margin-top: auto; }
#c3dux .cx-mprice { font-size: 12.5px; color: var(--cx-muted); padding: 5px 3px 0; }
#c3dux .cx-mprice b { font-size: 16px; font-weight: 800; color: var(--cx-text); }
#c3dux .cx-more, #c3dux .cx-wide { width: 100%; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--p55-tint-855,#cfe2e5) !important; color: var(--cx-teal-d) !important; font-weight: 700; background: #fff; }
#c3dux .cx-more .cx-i { width: 16px; height: 16px; }
#c3dux .cx-wide-main { background: var(--cx-teal) !important; color: #fff !important; border-color: var(--cx-teal) !important; }
#c3dux a.cx-gdesigns, #c3dux a.cx-gdesigns:hover { text-decoration: none; box-sizing: border-box; }
#c3dux .cx-gdesigns .cx-i { flex: none; }
#c3dux .cx-catrow.cx-gdesigns b, #c3dux .cx-catrow.cx-gdesigns small { white-space: normal; overflow: visible; text-overflow: clip; }
#c3dux .cx-link { color: var(--cx-teal) !important; font-weight: 700; }

#c3dux .cx-drop { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; border-radius: 16px; border: 2px dashed var(--p55-primary-73,#9fcbd0) !important; background: var(--p55-tint-968,#f3f9fa); text-align: center; }
#c3dux .cx-drop i { width: 42px; height: 42px; border-radius: 12px; background: var(--cx-teal); color: #fff; display: grid; place-items: center; }
#c3dux .cx-drop b { font-size: 15px; font-weight: 800; }
#c3dux .cx-drop span { font-size: 12px; color: var(--cx-muted); }
#c3dux .cx-drop:hover { background: var(--cx-teal-l); }
#c3dux .cx-file { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px; border-radius: 14px; background: #f3f7f8; cursor: pointer; border: 2px solid transparent; }
#c3dux .cx-file.on { border-color: var(--cx-teal); background: #fff; }
#c3dux .cx-file > .cx-th { width: 48px; height: 48px; flex: none; }
#c3dux .cx-fileinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#c3dux .cx-fileinfo b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#c3dux .cx-fileinfo span { font-size: 12px; color: var(--cx-muted); display: inline-flex; align-items: center; gap: 4px; }
#c3dux .cx-okline { color: #17663a !important; }
#c3dux .cx-okline .cx-i { width: 14px; height: 14px; stroke-width: 3; }
#c3dux .cx-up { color: var(--cx-teal-d) !important; }
#c3dux .cx-quality { flex: none; max-width: 96px; font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; padding: 4px 7px; border-radius: 8px; }
#c3dux .cx-quality.ok { background: var(--cx-ok-l); color: #17663a; }
#c3dux .cx-quality.mid { background: #fff7e0; color: #8a5300; }
#c3dux .cx-quality.low { background: var(--cx-red-l); color: #b42318; }
#c3dux .cx-mini-ib { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex: none; }
#c3dux .cx-mini-ib .cx-i { width: 17px; height: 17px; }
#c3dux .cx-mini-ib.danger { color: var(--cx-red); }
#c3dux .cx-fitrow, #c3dux .cx-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
#c3dux .cx-sbtn { padding: 10px 6px; border-radius: 12px; background: var(--p55-tint-945,#eef3f4); font-weight: 700; font-size: 13px; text-align: center; }
#c3dux .cx-sbtn.on { background: var(--cx-dark); color: #fff; }
#c3dux .cx-sbtn.danger { color: var(--cx-red); background: #fff; box-shadow: inset 0 0 0 1.5px var(--cx-line); }
#c3dux .cx-note { margin: 14px 0 0; font-size: 12.5px; color: var(--cx-muted); line-height: 1.45; display: flex; gap: 8px; align-items: flex-start; }
#c3dux .cx-note .cx-i { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--cx-teal); }
#c3dux .cx-note.warn { color: #8a5300; background: #fff7e0; padding: 10px 12px; border-radius: 12px; }
#c3dux .cx-note.warn .cx-i { color: #d97706; }

#c3dux .cx-flabel { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 7px; font-size: 13px; font-weight: 700; color: var(--cx-text); }
#c3dux .cx-flabel small { font-size: 12px; color: var(--cx-muted); font-weight: 600; }
#c3dux .cx-input { width: 100%; resize: vertical; min-height: 52px; padding: 12px 14px; border: 2px solid var(--cx-teal); border-radius: 14px; font: 600 17px/1.3 'Montserrat', sans-serif; color: var(--cx-text); background: #fff; box-shadow: 0 0 0 4px var(--cx-teal-l); outline: none; }
#c3dux .cx-select { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--cx-line) !important; background: #fff; text-align: left; }
#c3dux .cx-select span { flex: 1; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#c3dux .cx-select small { color: var(--cx-muted); font-size: 12px; }
#c3dux .cx-select i .cx-i { width: 16px; height: 16px; }
#c3dux .cx-fontlist { margin-top: 6px; max-height: 260px; overflow-y: auto; border: 1.5px solid var(--cx-line); border-radius: 14px; padding: 4px; background: #fff; }
#c3dux .cx-fontlist button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 9px; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
#c3dux .cx-fontlist button:hover { background: var(--p55-tint-957,#f1f6f7); }
#c3dux .cx-fontlist button.on { background: var(--cx-teal-l); }
#c3dux .cx-swatches { display: flex; flex-wrap: wrap; gap: 9px; }
#c3dux .cx-sw { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--p55-tint-838,#cfd9dc) !important; display: grid; place-items: center; cursor: pointer; }
#c3dux .cx-sw.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--cx-dark); }
#c3dux .cx-swplus { background: #f3f7f8; color: var(--cx-muted); overflow: hidden; }
#c3dux .cx-swplus .cx-i { width: 16px; height: 16px; }
#c3dux .cx-swplus input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
#c3dux .cx-stylerow { display: flex; gap: 8px; align-items: center; }
#c3dux .cx-range { flex: 1; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-radius: 12px; background: var(--p55-tint-945,#eef3f4); min-width: 0; }
#c3dux .cx-range small { font-weight: 700; color: var(--cx-muted); }
#c3dux .cx-range input { flex: 1; min-width: 0; accent-color: var(--cx-dark); }
#c3dux .cx-sq { width: 46px; height: 46px; flex: none; border-radius: 12px; border: 1.5px solid var(--cx-line) !important; display: grid; place-items: center; background: #fff; }
#c3dux .cx-sq.on { background: var(--cx-dark); color: #fff; border-color: var(--cx-dark) !important; }

#c3dux .cx-stickers { margin: 0 -6px; }
#c3dux .cx-stickers .control { color: var(--cx-text); font-family: 'Montserrat', sans-serif; letter-spacing: 0; }
#c3dux .cx-stickers .control.label, #c3dux .cx-stickers .label { color: var(--cx-text) !important; font-weight: 600; }
#c3dux .cx-stickers .title { font-size: 15px; padding: 10px 6px 6px; }
#c3dux .cx-stickers img { max-width: 100%; }
#c3dux .cx-stickers .control.button { border-radius: 10px; cursor: pointer; }
#c3dux .cx-stickers .control.button:hover { background: var(--p55-tint-957,#f1f6f7); }
#c3dux .cx-stickers select { width: 100%; padding: 8px; border-radius: 10px; border: 1.5px solid var(--cx-line); font: 600 14px 'Montserrat', sans-serif; }

#c3dux .cx-ogroup { margin-bottom: 14px; padding: 12px; border-radius: 16px; background: #f5f8f9; border: 2px solid transparent; transition: border-color 0.2s; }
#c3dux .cx-ogroup.miss { border-color: var(--cx-red); background: #fff6f6; animation: cxpulse 1.2s ease-in-out 2; }
@keyframes cxpulse { 50% { box-shadow: 0 0 0 6px rgba(229, 72, 77, 0.18); } }
#c3dux .cx-ohead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
#c3dux .cx-ohead b { font-size: 14.5px; font-weight: 800; }
#c3dux .cx-req { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--cx-red); background: var(--cx-red-l); border-radius: 999px; padding: 3px 9px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
#c3dux .cx-req.ok { color: #17663a; background: var(--cx-ok-l); }
#c3dux .cx-req .cx-i { width: 12px; height: 12px; stroke-width: 3; }
#c3dux .cx-omiss { display: flex; align-items: center; gap: 6px; color: #b42318; font-weight: 700; font-size: 12.5px; margin: -4px 0 10px; }
#c3dux .cx-omiss .cx-i { width: 15px; height: 15px; }
#c3dux .cx-ochips { display: flex; flex-wrap: wrap; gap: 8px; }
/* 10.10 (5 пунктов Романа, п.1): компактнее — чипы размеров плотнее (контентная ширина сохранена нарочно:
   настоящая CSS grid с фикс. minmax здесь опаснее, чем кажется — у части значений есть доплата («+200 р.»)
   рядом с названием (.cx-ochip small, п.548 text-overflow:ellipsis на <1140px), и grid-ячейка уже чипа с
   доплатой обрезала бы название многоточием — ровно та же беда, что просил убрать Роман, только в опциях.
   flex-wrap остаётся: каждый чип по своему содержимому, обрезки в принципе не бывает. */
#c3dux .cx-ochip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 12px; background: #fff; border: 1.5px solid var(--cx-line) !important; font-weight: 600; font-size: 12.5px; }
/* 10.10 (5 пунктов Романа, п.1): компактнее — плотность чипов опций (размеры и т.п.), что раньше включалась только
   у окна ≤1140px (строка ниже, «2, 8»), теперь по умолчанию: панель справа и так фиксированной узкой ширины
   (~283–338 px) независимо от общей ширины окна, более просторный вариант только тратил место впустую. */
#c3dux .cx-ochip i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.18); flex: none; }
#c3dux .cx-ochip small { color: var(--cx-muted); font-weight: 600; }
#c3dux .cx-ochip.on { border-color: var(--cx-teal) !important; background: var(--cx-teal-l); box-shadow: 0 0 0 1px var(--cx-teal) inset; }

#c3dux .cx-sum { border-radius: 16px; background: #f5f8f9; padding: 6px 14px; }
#c3dux .cx-sumhead { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--cx-line); }
#c3dux .cx-sumhead img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: var(--p55-tint-927,#e8eff1); mix-blend-mode: multiply; }
#c3dux .cx-sumhead div { display: flex; flex-direction: column; }
#c3dux .cx-sumhead b { font-weight: 800; }
#c3dux .cx-sumhead span { font-size: 12.5px; color: var(--cx-muted); }
#c3dux .cx-sumrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--cx-line); font-size: 13.5px; }
#c3dux .cx-sumrow:last-child { border-bottom: 0; }
#c3dux .cx-sumrow span { color: var(--cx-muted); }
#c3dux .cx-sumrow b { text-align: right; }
#c3dux .cx-sumtotal b { font-size: 22px; font-weight: 800; }

/* окно и всплывающие сообщения */
#c3dux .cx-modal { position: fixed; inset: 0; z-index: 4000; background: rgba(var(--p55-primary-9-rgb,0,32,42),0.45); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; }
#c3dux .cx-mcardbox { position: relative; width: min(440px, 100%); max-width: 100%; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; border-radius: 22px; padding: 24px 22px 20px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3); }
#c3dux .cx-mcardbox h3 { margin: 0 34px 10px 0; font-size: 21px; font-weight: 800; }
#c3dux .cx-mcardbox p { margin: 0 0 10px; color: var(--p55-ink-245,#2d4750); }
#c3dux .cx-mclose { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 10px; background: var(--p55-tint-945,#eef3f4); display: grid; place-items: center; }
#c3dux .cx-mact { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
#c3dux .cx-ghost { height: 52px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 14px; background: var(--p55-tint-945,#eef3f4); font-weight: 700; }
#c3dux .cx-misslist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#c3dux .cx-misslist li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff6f6; border: 2px solid var(--cx-red); }
#c3dux .cx-misslist .cx-i { color: var(--cx-red); }
#c3dux .cx-howlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
#c3dux .cx-howlist li { display: flex; gap: 12px; align-items: flex-start; }
#c3dux .cx-howlist i { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--cx-teal); color: #fff; font-style: normal; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
#c3dux .cx-howlist div { display: flex; flex-direction: column; }
#c3dux .cx-howlist span { color: var(--cx-muted); font-size: 13px; }
#c3dux .cx-toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 4500; max-width: calc(100vw - 32px); background: var(--p55-ink-153,#1d2b31); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); text-align: center; }

/* ---------- узкий компьютер и планшет ---------- */
@media (max-width: 1320px) {
  #c3dux .cx-howto span { display: none; }
  #c3dux .cx-line { width: 16px; }
  #c3dux .cx-titlebox { min-width: 160px; max-width: 220px; }
  #c3dux .cx-panel { width: 312px; }
  #c3dux .cx-bname { max-width: 200px; }
}
@media (max-width: 1140px) {
  #c3dux .cx-step .cx-sl { display: none; }
  #c3dux .cx-step.on .cx-sl { display: inline; }
  #c3dux .cx-nav a { display: none; }
  #c3dux .cx-bname { display: none; }
  #c3dux .cx-btn3d span { display: none; }
  #c3dux .cx-btn3d.cx-gmore span { display: inline; }
  #c3dux .cx-card { left: 84px; right: 84px; }
  #c3dux .cx-fleft { left: 18px; }
  #c3dux .cx-fright { right: 18px; }
}

/* ---------- телефон (класс c3dux-m ставит скрипт при ширине до 900 px) ---------- */
html.c3dux.c3dux-m #c3dux { font-size: 14px; }
html.c3dux.c3dux-m #c3dux .cx-site,
html.c3dux.c3dux-m #c3dux .cx-head,
html.c3dux.c3dux-m #c3dux .cx-rail,
html.c3dux.c3dux-m #c3dux .cx-panel,
html.c3dux.c3dux-m #c3dux .cx-bottom,
html.c3dux.c3dux-m #c3dux .cx-float,
html.c3dux.c3dux-m #c3dux .cx-helper,
html.c3dux.c3dux-m #c3dux .cx-topbar,
html.c3dux.c3dux-m #c3dux .cx-hint,
html.c3dux.c3dux-m #c3dux .cx-stage > .cx-layers { display: none !important; }
html.c3dux.c3dux-m #c3dux .cx-mhead { display: flex; align-items: center; gap: 10px; height: 64px; flex: none; padding: 10px 14px 6px; }
html.c3dux.c3dux-m #c3dux .cx-round { width: 46px; height: 46px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(var(--p55-primary-13-rgb,0,49,64),0.12); }
html.c3dux.c3dux-m #c3dux .cx-mtop { flex: 1; min-width: 0; display: flex; justify-content: center; }
html.c3dux.c3dux-m #c3dux .cx-mtop .cx-seg, html.c3dux.c3dux-m #c3dux .cx-mtop .cx-tabs { box-shadow: none; background: var(--p55-tint-894,#dfe7e9); overflow-x: auto; max-width: 100%; }
html.c3dux.c3dux-m #c3dux .cx-mtop .cx-seg button.on { background: #fff; }
html.c3dux.c3dux-m #c3dux .cx-mtop .cx-seg button, html.c3dux.c3dux-m #c3dux .cx-mtop .cx-tab { padding: 8px 18px; font-size: 15px; }
html.c3dux.c3dux-m #c3dux .cx-body { flex: 1 1 auto; min-height: 0; }
html.c3dux.c3dux-m #c3dux .cx-main { min-height: 0; }
html.c3dux.c3dux-m #c3dux .cx-stage { flex: none; height: 29vh; min-height: 190px; max-height: 330px; overflow: visible; }
html.c3dux.c3dux-m #c3dux .cx-card { top: 12px; left: 12px; right: 12px; bottom: 22px; border-radius: 22px; }
html.c3dux.c3dux-m #c3dux.cx-in3d .cx-card { bottom: 8px; top: 8px; }
html.c3dux.c3dux-m #c3dux .cx-badge { top: -2px; right: 18px; font-size: 12.5px; padding: 5px 11px 5px 6px; }
html.c3dux.c3dux-m #c3dux .cx-badge .cx-i { width: 20px; height: 20px; }
html.c3dux.c3dux-m #c3dux .cx-zone { bottom: 8px; font-size: 12px; }
html.c3dux.c3dux-m #c3dux .cx-empty { padding: 12px 18px; }
html.c3dux.c3dux-m #c3dux .cx-minfo { display: flex; gap: 12px; align-items: stretch; padding: 8px 14px 4px; flex: none; }
html.c3dux.c3dux-m #c3dux .cx-minfo-l { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
html.c3dux.c3dux-m #c3dux .cx-minfo-t { display: flex; flex-direction: column; }
html.c3dux.c3dux-m #c3dux .cx-minfo-t b { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.c3dux.c3dux-m #c3dux .cx-minfo-t span { font-size: 12.5px; color: var(--cx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.c3dux.c3dux-m #c3dux .cx-minfo-btns { display: flex; gap: 10px; }
html.c3dux.c3dux-m #c3dux .cx-minfo-btns .cx-ib { width: 46px; height: 42px; display: grid; place-items: center; }
html.c3dux.c3dux-m #c3dux .cx-minfo-btns .cx-ib + .cx-ib { border-left: 1px solid var(--cx-line); }
html.c3dux.c3dux-m #c3dux .cx-minislot { flex: none; }
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini { position: relative; right: auto; bottom: auto; width: 112px; height: 112px; border-radius: 18px; }
html.c3dux.c3dux-m #c3dux .cx-mini-cap { padding: 18px 8px 6px; font-size: 11px; line-height: 1.2; }
html.c3dux.c3dux-m #c3dux .cx-mini-cap span { display: none; }
html.c3dux.c3dux-m #c3dux .cx-mini-exp { width: 26px; height: 26px; right: 6px; top: 6px; }
html.c3dux.c3dux-m #c3dux .cx-mini-tag { left: 6px; top: 6px; }
html.c3dux.c3dux-m #c3dux.cx-in3d .cx-minislot { display: none; }
html.c3dux.c3dux-m #c3dux .cx-mscroll { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
html.c3dux.c3dux-m #c3dux .cx-mpanel { display: block; padding: 8px 14px 14px; }
html.c3dux.c3dux-m #c3dux .cx-ph h2 { font-size: 18px; }
html.c3dux.c3dux-m #c3dux .cx-mhead2 { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 10px; }
html.c3dux.c3dux-m #c3dux .cx-mhead2 b { font-size: 18px; font-weight: 800; }
html.c3dux.c3dux-m #c3dux .cx-mhead2 span { color: var(--cx-muted); font-weight: 600; }
html.c3dux.c3dux-m #c3dux .cx-ribbon { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 2px 14px 6px; }
html.c3dux.c3dux-m #c3dux .cx-ribbon .cx-mcard { width: 132px; flex: none; scroll-snap-align: start; }
html.c3dux.c3dux-m #c3dux .cx-ribbon .cx-mimg { height: 64px; }
html.c3dux.c3dux-m #c3dux .cx-ribbon .cx-mimg img { max-height: 60px; }
html.c3dux.c3dux-m #c3dux .cx-ribbon .cx-mname { -webkit-line-clamp: 2; font-size: 13px; }
html.c3dux.c3dux-m #c3dux .cx-ribbon .cx-mspec { display: none; }
html.c3dux.c3dux-m #c3dux .cx-mlayers { position: static; display: flex; flex-direction: column; align-items: stretch; gap: 10px; max-width: none; padding: 10px; margin-bottom: 12px; box-shadow: none; border: 1px solid var(--cx-line); }
html.c3dux.c3dux-m #c3dux .cx-mlayers .cx-lacts { justify-content: space-between; }
html.c3dux.c3dux-m #c3dux .cx-mlayers .cx-lact { min-width: 0; flex: 1; }
html.c3dux.c3dux-m #c3dux .cx-mlayers .cx-lthumb { width: 50px; height: 50px; }
html.c3dux.c3dux-m #c3dux .cx-mbar { display: block; flex: none; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -6px 24px rgba(var(--p55-primary-13-rgb,0,49,64),0.10); padding: 12px 12px calc(6px + env(safe-area-inset-bottom)); }
html.c3dux.c3dux-m #c3dux .cx-mrow { display: flex; gap: 10px; }
html.c3dux.c3dux-m #c3dux .cx-m3d { flex: none; width: auto; padding: 0 14px; white-space: nowrap; height: 56px; border-radius: 16px; border: 2px solid var(--cx-teal) !important; background: var(--cx-teal-l); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 18px !important; font-weight: 800 !important; color: var(--cx-dark) !important; }
html.c3dux.c3dux-m #c3dux .cx-m3d.on { background: var(--cx-dark); color: #fff !important; border-color: var(--cx-dark) !important; font-size: 15px !important; }
html.c3dux.c3dux-m #c3dux .cx-m3d .cx-i { width: 24px; height: 24px; color: var(--cx-teal); }
html.c3dux.c3dux-m #c3dux .cx-m3d.on .cx-i { color: #fff; }
html.c3dux.c3dux-m #c3dux .cx-mrow .cx-primary { flex: 1; min-width: 0; height: 56px; font-size: 17px !important; padding: 0 12px; }
html.c3dux.c3dux-m #c3dux .cx-mrow .cx-primary span { overflow: hidden; text-overflow: ellipsis; }
html.c3dux.c3dux-m #c3dux .cx-mnav { display: flex; justify-content: space-between; margin-top: 8px; }
html.c3dux.c3dux-m #c3dux .cx-mstep { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 5px; border-radius: 14px; color: var(--cx-muted); font-size: 12px; font-weight: 700; }
html.c3dux.c3dux-m #c3dux .cx-mstep .cx-i { width: 22px; height: 22px; }
html.c3dux.c3dux-m #c3dux .cx-mstep sup { position: absolute; left: 10px; top: 3px; font-size: 10px; }
html.c3dux.c3dux-m #c3dux .cx-mstep .cx-dot { position: absolute; top: 5px; right: calc(50% - 16px); width: 9px; height: 9px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
html.c3dux.c3dux-m #c3dux .cx-mstep.on { background: var(--cx-teal-l); color: var(--cx-dark); }
html.c3dux.c3dux-m #c3dux .cx-mhint { display: flex; position: fixed; left: 14px; right: 14px; bottom: 150px; z-index: 30; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--cx-dark); color: #fff; font-size: 13.5px; box-shadow: 0 10px 30px rgba(var(--p55-primary-13-rgb,0,49,64),0.3); }
html.c3dux.c3dux-m #c3dux .cx-mhint span { flex: 1; }
html.c3dux.c3dux-m #c3dux .cx-mhint::after { content: ''; position: absolute; left: 46px; bottom: -7px; border: 8px solid transparent; border-bottom: 0; border-top-color: var(--cx-dark); }
html.c3dux.c3dux-m #c3dux .cx-mhint button { color: #fff; opacity: 0.8; }
html.c3dux.c3dux-m #c3dux .cx-toast { bottom: 160px; }
html.c3dux.c3dux-m #c3dux .cx-mact .cx-primary, html.c3dux.c3dux-m #c3dux .cx-mact .cx-ghost { flex: 1; }
html.c3dux.c3dux-m #c3dux.cx-in3d .cx-minfo-btns .cx-pill:first-child { display: none; }
html.c3dux.c3dux-m #c3dux .cx-mtop .cx-tab small { display: none; }
html.c3dux.c3dux-m #c3dux .cx-mtop .cx-tab { padding: 8px 12px; font-size: 14px; }

/* ======================================================================= v2 (06.10.2026): правки по замечаниям заказчика */

/* 6. ПК: шапка с шагами и нижняя панель вдвое компактнее */
#c3dux .cx-site { height: 46px; }
#c3dux .cx-logo img { height: 28px; }
#c3dux .cx-head { height: 50px; gap: 12px; padding: 0 16px; }
#c3dux .cx-back { width: 32px; height: 32px; border-radius: 10px; }
#c3dux .cx-titlebox { min-width: 170px; max-width: 260px; }
#c3dux .cx-crumbs { font-size: 11px; }
#c3dux .cx-title { font-size: 14.5px; }
#c3dux .cx-step { gap: 6px; padding: 3px 10px 3px 3px; font-size: 12.5px; }
#c3dux .cx-step .cx-num { width: 22px; height: 22px; font-size: 11px; }
#c3dux .cx-step .cx-num .cx-i { width: 12px; height: 12px; }
#c3dux .cx-line { width: 16px; }
#c3dux .cx-howto { font-size: 12.5px; gap: 6px; }
#c3dux .cx-howto .cx-i { width: 18px; height: 18px; }
#c3dux .cx-catbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; background: var(--cx-teal-l); color: var(--cx-dark); font-weight: 800; font-size: 12.5px; white-space: nowrap; flex: none; }
#c3dux .cx-catbtn .cx-i { width: 16px; height: 16px; }
#c3dux .cx-catbtn:hover { background: var(--p55-surface-87,#cfe7e9); }
#c3dux .cx-bottom { height: 56px; gap: 12px; padding: 0 16px; }
#c3dux .cx-bname b { font-size: 13px; }
#c3dux .cx-bname span { font-size: 11px; }
#c3dux .cx-qty { height: 34px; border-radius: 10px; }
#c3dux .cx-qty .cx-ib { width: 30px; height: 34px; }
#c3dux .cx-qty .cx-ib .cx-i { width: 16px; height: 16px; }
#c3dux .cx-qty input { width: 34px; font-size: 14px; }
#c3dux .cx-bprice b { font-size: 19px; display: inline-flex; align-items: baseline; gap: 6px; }
#c3dux .cx-bprice b s, #c3dux .cx-sumrow b s { font-size: 12px; font-weight: 600; color: var(--cx-muted); }
#c3dux .cx-bprice span { font-size: 11px; }
#c3dux .cx-pending b { opacity: 0.55; }
#c3dux .cx-btn3d { height: 38px; padding: 0 14px; gap: 7px; border-radius: 11px; font-size: 13.5px !important; border-width: 1.5px !important; }
#c3dux .cx-btn3d .cx-i { width: 18px; height: 18px; }
#c3dux .cx-primary { height: 38px; padding: 0 16px; gap: 7px; border-radius: 11px; font-size: 13.5px !important; box-shadow: 0 4px 12px rgba(var(--p55-primary-rgb,0,131,143),0.25); }
#c3dux .cx-primary .cx-i { width: 18px; height: 18px; }
#c3dux .cx-sumdisc b { color: #17663a; }

/* 7. ПК: макет на всю центральную область */
#c3dux .cx-card { top: 54px; left: 78px; right: 78px; bottom: 104px; }
#c3dux.cx-in3d .cx-card { top: 54px; bottom: 16px; }
#c3dux .cx-topbar, #c3dux.cx-in3d .cx-topbar { top: 10px; left: 78px; }
#c3dux .cx-badge { top: 12px; right: 78px; }
#c3dux .cx-zone { bottom: 92px; }
#c3dux .cx-helper { display: none !important; }
#c3dux .cx-float { top: 64px; gap: 6px; }
#c3dux .cx-fleft { left: 16px; }
#c3dux .cx-fright { right: 16px; }
#c3dux .cx-roundw { margin-top: 4px; }
#c3dux .cx-roundw.on { background: var(--cx-dark); color: #fff; }
#c3dux .cx-layers { left: 16px; bottom: 12px; padding: 8px 10px; }
#c3dux .cx-lthumb { width: 46px; height: 46px; }
#c3dux .cx-lact { min-width: 54px; font-size: 11px; }
#c3dux .cx-lact i { width: 34px; height: 34px; }
@media (max-width: 1140px) {
  #c3dux .cx-card { left: 66px; right: 66px; }
  #c3dux .cx-topbar, #c3dux.cx-in3d .cx-topbar { left: 66px; }
  #c3dux .cx-badge { right: 66px; }
  #c3dux .cx-catbtn span { display: none; }
}

/* 5. мини-3D: меньше и сворачивается крестиком в кнопку «3D» */
#c3dux .cx-mini { width: 210px; height: 176px; right: 16px; bottom: 12px; }
#c3dux .cx-mini-exp { right: 46px; }
#c3dux .cx-mini-x { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--cx-dark); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
#c3dux .cx-mini-x .cx-i { width: 16px; height: 16px; }
#c3dux .cx-minipill { position: absolute; right: 16px; bottom: 12px; z-index: 7; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 12px; background: #fff; color: var(--cx-dark); font-weight: 800; box-shadow: 0 6px 18px rgba(var(--p55-primary-13-rgb,0,49,64),0.18); }
#c3dux .cx-minipill .cx-i { width: 18px; height: 18px; color: var(--cx-teal); }
html.c3dux.c3dux-m #c3dux .cx-mini-x, html.c3dux.c3dux-m #c3dux .cx-minipill { display: none !important; }

/* 11. направляющие центра зоны печати */
#c3dux .cx-guide { position: absolute; z-index: 5; pointer-events: none; background: #e5484d; }
#c3dux .cx-guide-v { width: 1.5px; }
#c3dux .cx-guide-h { height: 1.5px; }

/* 2, 8. опции: плитка цвета и компактные кнопки */
#c3dux .cx-ogroup { padding: 10px; margin-bottom: 10px; }
#c3dux .cx-ohead { margin-bottom: 8px; flex-wrap: wrap; justify-content: flex-start; }
#c3dux .cx-ohead b { font-size: 13.5px; margin-right: auto; }
#c3dux .cx-ocur { order: 3; flex-basis: 100%; font-size: 12px; font-weight: 700; color: var(--cx-teal-d); }
#c3dux .cx-otgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 6px; }
#c3dux .cx-otile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px 3px; border-radius: 10px; background: #fff; border: 1.5px solid transparent !important; min-width: 0; }
#c3dux .cx-otile:hover { border-color: var(--p55-tint-786,#b7d6da) !important; }
#c3dux .cx-tface { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.16); background-size: cover; background-position: center; display: block; }
#c3dux .cx-tchk { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: rgba(var(--p55-primary-18-rgb,0,65,86),0.85); color: #fff; display: grid; place-items: center; }
#c3dux .cx-tchk .cx-i { width: 14px; height: 14px; stroke-width: 3; }
#c3dux .cx-tname { max-width: 100%; font-size: 10.5px; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#c3dux .cx-otile small { font-size: 9.5px; font-weight: 700; color: var(--cx-muted); line-height: 1; }
#c3dux .cx-otile.on { border-color: var(--cx-teal) !important; background: var(--cx-teal-l); }
#c3dux .cx-otile.off, #c3dux .cx-ochip.off { opacity: 0.45; }
#c3dux .cx-ochips { gap: 6px; }
#c3dux .cx-ochip { padding: 6px 9px; gap: 6px; font-size: 12.5px; max-width: 100%; }
#c3dux .cx-ochip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#c3dux .cx-ochip .cx-obox { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--p55-tint-765,#b9c9cd); background: #fff; display: grid; place-items: center; flex: none; }
#c3dux .cx-ochip.on .cx-obox { background: var(--cx-teal); border-color: var(--cx-teal); color: #fff; }
#c3dux .cx-ochip .cx-obox .cx-i { width: 12px; height: 12px; stroke-width: 3; }
#c3dux .cx-ochip small { font-size: 11px; }

/* 10–12. инструменты выбранного объекта */
#c3dux .cx-tools { margin-top: 14px; padding: 12px; border-radius: 16px; background: #f5f8f9; }
#c3dux .cx-tools .cx-label { margin-top: 0; }
#c3dux .cx-tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
#c3dux .cx-tgrid3 { grid-template-columns: repeat(3, 1fr); }
#c3dux .cx-tgrid2 { grid-template-columns: repeat(2, 1fr); }
#c3dux .cx-tbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 6px; border-radius: 11px; background: #fff; border: 1.5px solid var(--cx-line) !important; font-size: 10.5px; font-weight: 700; line-height: 1.15; text-align: center; color: var(--cx-text); min-width: 0; }
#c3dux .cx-tbtn .cx-i { width: 18px; height: 18px; color: var(--cx-teal-d); }
#c3dux .cx-tbtn.on { background: var(--cx-dark); color: #fff; border-color: var(--cx-dark) !important; }
#c3dux .cx-tbtn.on .cx-i { color: #fff; }
#c3dux .cx-tbtn.danger { color: var(--cx-red); }
#c3dux .cx-tbtn.danger .cx-i { color: var(--cx-red); }
#c3dux .cx-tgrid2 .cx-tbtn, #c3dux .cx-tgrid3 .cx-tbtn { flex-direction: row; justify-content: center; font-size: 12px; padding: 9px 6px; }
#c3dux .cx-rrow { display: grid; grid-template-columns: 104px 1fr 42px; align-items: center; gap: 8px; margin: 6px 0; font-size: 12.5px; font-weight: 700; }
#c3dux .cx-rrow input { width: 100%; accent-color: var(--cx-dark); }
#c3dux .cx-rrow b { text-align: right; font-size: 12px; color: var(--cx-muted); }
#c3dux .cx-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#c3dux .cx-fbtn, #c3dux .cx-fstep { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 38px; padding: 0 8px 0 11px; border-radius: 11px; background: #fff; border: 1.5px solid var(--cx-line) !important; font-size: 12.5px; font-weight: 700; }
#c3dux .cx-fbtn.on, #c3dux .cx-fstep.on { border-color: var(--cx-teal) !important; background: var(--cx-teal-l); }
#c3dux .cx-fbtn .cx-i { width: 16px; height: 16px; color: var(--cx-teal); stroke-width: 3; }
#c3dux .cx-fstep span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#c3dux .cx-fpm { width: 26px; height: 26px; border-radius: 8px; background: var(--p55-tint-945,#eef3f4); display: grid; place-items: center; flex: none; }
#c3dux .cx-fpm .cx-i { width: 14px; height: 14px; }
#c3dux .cx-fl-reset { font-size: 12px; }
#c3dux .cx-sqrow { margin-top: 8px; flex-wrap: wrap; }
#c3dux .cx-sqrow .cx-sq { width: 34px; height: 34px; border-radius: 10px; }
#c3dux .cx-sqrow .cx-sq .cx-i { width: 17px; height: 17px; }
#c3dux .cx-sqsep { width: 1px; height: 24px; background: var(--cx-line); margin: 0 2px; }
#c3dux .cx-mini-ib.on { background: var(--cx-dark); color: #fff; }

/* 14. каталог */
#c3dux .cx-catrow { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; border-radius: 14px; background: var(--cx-teal-l); color: var(--cx-dark); text-align: left; }
#c3dux .cx-catrow > .cx-i { width: 22px; height: 22px; flex: none; }
#c3dux .cx-catrow span { flex: 1; display: flex; flex-direction: column; }
#c3dux .cx-catrow b { font-weight: 800; font-size: 14px; }
#c3dux .cx-catrow small { font-size: 11.5px; color: var(--cx-teal-d); }
/* p3c: ряд иконок категорий в панели "Товар" на ПК (10.10 вечер, docs/DESIGN-3dconstructor.md #12) */
#c3dux .cx-catrail { margin-bottom: 14px; }
#c3dux .cx-catrail-h { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
#c3dux .cx-catrail-h b { font-weight: 800; font-size: 13px; }
#c3dux .cx-catrail-h small { font-size: 11px; color: var(--cx-teal-d); }
#c3dux .cx-catrail-row { display: flex; flex-wrap: wrap; gap: 6px; }
#c3dux .cx-catrailc { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 68px; padding: 8px 4px 7px; border-radius: 12px; border: 1.5px solid var(--cx-line); background: #fff; text-align: center; color: var(--cx-text); font-size: 10.5px; line-height: 1.15; }
#c3dux a.cx-catrailc:hover { border-color: var(--p55-tint-786,#b7d6da); background: var(--p55-tint-957,#f1f6f7); }
#c3dux .cx-catrailc.cur { border-color: var(--cx-teal); background: var(--cx-teal-l); color: var(--cx-dark); cursor: default; }
#c3dux .cx-catrailc .cx-catico { font-size: 20px; color: var(--cx-teal-d); }
#c3dux .cx-catrailc .cx-catico .cx-i { width: 20px; height: 20px; }
#c3dux .cx-catrailc .cx-catico-img img { width: 20px; height: 20px; object-fit: contain; display: block; } /* p3c2: svg-иконки категорий (img вместо общего значка), та же коробка 20x20 что у .cx-i */
#c3dux .cx-catrailc.cur .cx-catico { color: var(--cx-teal); }
#c3dux .cx-catrailc .cx-nm2 { justify-content: center; }
#c3dux .cx-catrailc .cx-nm-t { text-align: center; }
html.c3dux.c3dux-m #c3dux .cx-catrail { display: none; }
#c3dux .cx-catmodal { width: min(760px, 100%); }
#c3dux .cx-cat { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
#c3dux .cx-catitem { border-radius: 14px; background: #f5f8f9; overflow: hidden; }
#c3dux .cx-catitem.open { background: #fff; box-shadow: 0 0 0 1.5px var(--cx-line) inset; }
#c3dux .cx-cathead { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; text-align: left; }
#c3dux .cx-cathead b { flex: 1; font-weight: 800; }
#c3dux .cx-cathead em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--cx-teal-d); background: var(--cx-teal-l); border-radius: 999px; padding: 2px 8px; }
#c3dux .cx-cathead i { transition: transform 0.15s; display: grid; }
#c3dux .cx-catitem.open .cx-cathead i { transform: rotate(180deg); }
#c3dux .cx-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; padding: 2px 12px 12px; }
#c3dux .cx-catm { display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 8px; border-radius: 12px; border: 1.5px solid var(--cx-line) !important; background: #fff; text-align: left; min-width: 0; }
#c3dux .cx-catm:hover { border-color: var(--p55-tint-786,#b7d6da) !important; }
#c3dux .cx-catm.on { border-color: var(--cx-teal) !important; box-shadow: 0 0 0 2px var(--cx-teal-l); }
#c3dux .cx-catimg { height: 70px; border-radius: 9px; background: var(--p55-tint-927,#e8eff1); display: grid; place-items: center; overflow: hidden; }
#c3dux .cx-catimg img { max-width: 92%; max-height: 66px; object-fit: contain; mix-blend-mode: multiply; }
#c3dux .cx-catm b { font-size: 12.5px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#c3dux .cx-catm small { font-size: 11.5px; color: var(--cx-muted); }
#c3dux .cx-catm small b { font-size: 13px; color: var(--cx-text); display: inline; }
#c3dux .cx-catall { grid-column: 1 / -1; font-size: 12.5px; font-weight: 700; color: var(--cx-teal-d); text-decoration: none; padding: 4px 2px; }
#c3dux .cx-catall:hover { text-decoration: underline; }

/* 4, 13. телефон: отмена, сетка и масштаб прямо под макетом и под окном 3D, блок названия компактный */
#c3dux .cx-mtools { display: none; }
html.c3dux.c3dux-m #c3dux .cx-mtools { display: flex; align-items: center; gap: 8px; padding: 0 14px 6px; flex: none; }
html.c3dux.c3dux-m #c3dux .cx-mtools .cx-pill .cx-ib { width: 42px; height: 38px; display: grid; place-items: center; }
html.c3dux.c3dux-m #c3dux .cx-mtools .cx-pill .cx-ib + .cx-ib { border-left: 1px solid var(--cx-line); }
html.c3dux.c3dux-m #c3dux .cx-mt-snap { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 11px; border-radius: 999px; background: #fff; box-shadow: 0 4px 14px rgba(var(--p55-primary-13-rgb,0,49,64),0.12); font-weight: 700; font-size: 12.5px; }
html.c3dux.c3dux-m #c3dux .cx-mt-snap .cx-i { width: 17px; height: 17px; }
html.c3dux.c3dux-m #c3dux .cx-mt-snap.on { background: var(--cx-dark); color: #fff; }
html.c3dux.c3dux-m #c3dux.cx-in3d .cx-mt-undo, html.c3dux.c3dux-m #c3dux.cx-in3d .cx-mt-snap { display: none; }
html.c3dux.c3dux-m #c3dux .cx-stage { height: 31vh; }
html.c3dux.c3dux-m #c3dux.cx-in3d .cx-stage { height: 44vh; max-height: 420px; }
html.c3dux.c3dux-m #c3dux .cx-card { bottom: 18px; }
html.c3dux.c3dux-m #c3dux .cx-zone { bottom: 4px; }
html.c3dux.c3dux-m #c3dux .cx-minfo { padding: 2px 14px 4px; align-items: center; }
html.c3dux.c3dux-m #c3dux .cx-minfo-t b { font-size: 15px; }
html.c3dux.c3dux-m #c3dux .cx-minfo-t span { font-size: 11.5px; }

html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini { width: 84px; height: 84px; border-radius: 16px; }
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini-cap { display: none; }
html.c3dux.c3dux-m #c3dux.cx-in3d .cx-minfo { padding-top: 0; }
html.c3dux.c3dux-m #c3dux .cx-tgrid { grid-template-columns: repeat(4, 1fr); }
html.c3dux.c3dux-m #c3dux .cx-otgrid { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
html.c3dux.c3dux-m #c3dux .cx-catmodal { padding: 18px 14px 14px; }
html.c3dux.c3dux-m #c3dux .cx-catgrid { grid-template-columns: repeat(2, 1fr); padding: 2px 8px 10px; }

/* 15. окно «Добавить в корзину»: строка «Количество − + поле» компактно и внутри окна на узком телефоне */
html.c3dux .control.popover .row { min-width: 0; max-width: 100%; box-sizing: border-box; flex-wrap: nowrap; gap: 6px; }
html.c3dux .control.popover .row:not(:last-child) .button { width: 38px; height: 38px; min-width: 38px; padding: 0 !important; margin: 0 !important; display: grid; place-items: center; flex: none; border-radius: 10px; }
html.c3dux .control.popover .row:not(:last-child) .button .icon, html.c3dux .control.popover .row:not(:last-child) .button .fa { margin: 0 !important; }
html.c3dux .control.popover input { width: 52px !important; min-width: 0 !important; max-width: 52px !important; height: 38px; padding: 4px 6px !important; text-align: center; flex: none; box-sizing: border-box; margin: 0 !important; }
html.c3dux .control.popover .row > .label:first-child { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.c3dux .control.popover .row > * { flex-shrink: 0; }
html.c3dux .control.popover .row > .spacer, html.c3dux .control.popover .row > .control.spacer { flex: 1 1 0; min-width: 0; }
@media (max-width: 400px) {
  html.c3dux .control.popover > .control { padding: 18px 14px 14px !important; }
  html.c3dux .control.popover .label, html.c3dux .control.popover .control.label { font-size: 14px !important; }
  html.c3dux .control.popover .label.title { font-size: 18px !important; }
}

/* 17. ПК: родная шапка сайта вместо своей полосы, конструктор под ней */
html.c3dux.c3dux-nh #main-collabsed-header { top: 0 !important; z-index: 100; }
html.c3dux.c3dux-nh #c3dux { top: var(--cx-top, 56px); }
html.c3dux.c3dux-nh #c3dux .cx-site { display: none; }

/* 18. мини-окно до загрузки 3D: картинка изделия и кнопка «Показать в 3D» */
#c3dux .cx-mini-ph { display: none; }
#c3dux .cx-mini.cx-mini-lazy .cx-mini-ph { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--p55-tint-928,#e9eef0); cursor: pointer; }
#c3dux .cx-mini-ph img { max-width: 70%; max-height: 58%; object-fit: contain; mix-blend-mode: multiply; }
#c3dux .cx-mini-ph span { display: inline-flex; align-items: center; gap: 6px; background: var(--cx-teal); color: #fff; font-weight: 800; font-size: 12.5px; border-radius: 10px; padding: 6px 10px; }
#c3dux .cx-mini-ph span .cx-i { width: 15px; height: 15px; }
#c3dux .cx-mini.cx-mini-lazy .cx-mini-cap, #c3dux .cx-mini.cx-mini-lazy .cx-mini-exp { display: none; }
#c3dux .cx-mini.cx-mini-lazy .cx-mini-x, #c3dux .cx-mini.cx-mini-lazy .cx-mini-tag { z-index: 3; }
html.c3dux.c3dux-m #c3dux .cx-mini-ph span { font-size: 10.5px; padding: 4px 6px; }
html.c3dux.c3dux-m #c3dux .cx-mini-ph img { max-height: 46%; }

/* 20. примеры работ (доп. фото модели из админки) */
#c3dux .cx-samples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
#c3dux .cx-sample { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--p55-tint-927,#e8eff1); padding: 0; }
#c3dux .cx-sample img { width: 100%; height: 100%; object-fit: cover; display: block; }
#c3dux .cx-sample:hover { box-shadow: 0 0 0 2px var(--cx-teal); }
#c3dux .cx-samplemodal { width: min(920px, 100%); }
#c3dux .cx-sview { display: grid; place-items: center; background: #f1f5f6; border-radius: 14px; min-height: 240px; }
#c3dux .cx-sbig { max-width: 100%; max-height: calc(100vh - 220px); object-fit: contain; display: block; border-radius: 10px; }
#c3dux .cx-scount { align-self: center; font-weight: 700; color: var(--cx-muted); font-size: 13px; }
#c3dux .cx-samplemodal .cx-mact { justify-content: space-between; align-items: center; }
#c3dux .cx-mini-ph span b { font-weight: 800; }
html.c3dux.c3dux-m #c3dux .cx-mini-ph span b { display: none; }
html.c3dux.c3dux-m #c3dux .cx-mini-ph span { padding: 5px 8px; }
html.c3dux.c3dux-m #c3dux .cx-mini-ph span .cx-i { width: 18px; height: 18px; }
/* подсказка «Фото загружено» не закрывает переключатель Макет/3D и плашку зоны */
#c3dux .cx-hint { top: 62px; }

/* 27. плашка «за зоной печати» нажимается */
#c3dux .cx-badge.bad { cursor: pointer; }
#c3dux .cx-badge.bad:hover { box-shadow: 0 0 0 2px #f59e0b, 0 4px 14px rgba(var(--p55-primary-13-rgb,0,49,64),0.10); }
#c3dux .cx-bfind { font-style: normal; font-size: 12px; font-weight: 800; text-decoration: underline; margin-left: 2px; }
#c3dux .cx-bfix { margin-left: 4px; background: #8a5300; color: #fff !important; border-radius: 999px; padding: 4px 10px !important; font-size: 12px; font-weight: 800; }
html.c3dux.c3dux-m #c3dux .cx-badge { max-width: calc(100% - 36px); flex-wrap: wrap; }
/* вкладки сторон слева, плашка зоны справа: не наезжают друг на друга при длинных названиях из админки (25) */
/* 25. вкладки сторон слева на всю ширину между кнопками; если не помещаются, переносятся во второй ряд; плашка зоны уходит под них (badgeFit) */
#c3dux .cx-topbar.cx-center { left: 78px; transform: none; max-width: calc(100% - 156px); }
#c3dux .cx-topbar.cx-center .cx-tabs { flex-wrap: wrap; overflow: visible; }
@media (max-width: 1140px) { #c3dux .cx-topbar.cx-center { left: 66px; max-width: calc(100% - 132px); } }
/* 25. плашка зоны не наезжает на вкладки сторон: опускается под них */
/* 28 (доп.): телефон, мини-3D не выступает из строки названия: окно 64 px по высоте строки, отступ до панели */
html.c3dux.c3dux-m #c3dux .cx-minfo { padding: 4px 14px 8px; align-items: center; min-height: 72px; box-sizing: border-box; }
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 2px 8px rgba(var(--p55-primary-13-rgb,0,49,64),0.10); }
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini-tag { transform: scale(0.85); transform-origin: left top; left: 4px; top: 4px; }
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini-exp { width: 22px; height: 22px; right: 4px; top: 4px; }
/* 29. кнопка добавления в начале панели */
#c3dux .cx-wide.cx-addtop { margin: 0 0 12px; }
/* 30. телефон: нижняя панель действий и шаги компактнее, больше места под прокрутку */
html.c3dux.c3dux-m #c3dux .cx-mbar { padding: 7px 10px calc(3px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
html.c3dux.c3dux-m #c3dux .cx-mrow { gap: 8px; }
html.c3dux.c3dux-m #c3dux .cx-m3d { width: auto; padding: 0 12px; height: 44px; border-radius: 13px; font-size: 15px !important; gap: 6px; }
html.c3dux.c3dux-m #c3dux .cx-m3d.on { font-size: 14px !important; }
html.c3dux.c3dux-m #c3dux .cx-m3d .cx-i { width: 20px; height: 20px; }
html.c3dux.c3dux-m #c3dux .cx-mrow .cx-primary { height: 44px; font-size: 15px !important; border-radius: 13px; }
html.c3dux.c3dux-m #c3dux .cx-mnav { margin-top: 4px; }
html.c3dux.c3dux-m #c3dux .cx-mstep { gap: 1px; padding: 4px 2px 2px; border-radius: 11px; font-size: 11px; }
html.c3dux.c3dux-m #c3dux .cx-mstep .cx-i { width: 19px; height: 19px; }
html.c3dux.c3dux-m #c3dux .cx-mstep sup { top: 1px; font-size: 9px; }
html.c3dux.c3dux-m #c3dux .cx-mstep .cx-dot { top: 3px; width: 8px; height: 8px; }
/* 31. ПК с родной шапкой: окна (каталог, помощь, примеры) открываются под шапкой сайта и целиком видны, прокрутка внутри окна */
html.c3dux.c3dux-nh #c3dux .cx-modal { top: var(--cx-top, 0px); }
html.p55-hdr-anim.c3dux-nh #c3dux .cx-modal { top: 0; }
html.c3dux.c3dux-nh #c3dux .cx-mcardbox { max-height: calc(100vh - var(--cx-top, 0px) - 32px); max-height: calc(100dvh - var(--cx-top, 0px) - 32px); }
/* 32. каталог плиткой */
#c3dux .cx-cat { display: block; margin-top: 8px; }
#c3dux .cx-catcats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#c3dux .cx-catc { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 8px 10px; border-radius: 14px; border: 1.5px solid var(--cx-line) !important; background: #fff; text-align: left; min-width: 0; }
#c3dux .cx-catc:hover { border-color: var(--p55-tint-786,#b7d6da) !important; }
#c3dux .cx-catc.cur { border-color: var(--cx-teal) !important; box-shadow: 0 0 0 2px var(--cx-teal-l); }
#c3dux .cx-catc b { font-size: 13px; font-weight: 800; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#c3dux .cx-catc em { position: absolute; top: 12px; left: 12px; font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--cx-teal); border-radius: 999px; padding: 2px 8px; }
#c3dux .cx-catcimg { height: 86px; border-radius: 10px; background: var(--p55-tint-927,#e8eff1); display: grid; place-items: center; overflow: hidden; }
#c3dux .cx-catcimg img { max-width: 92%; max-height: 80px; object-fit: contain; mix-blend-mode: multiply; }
#c3dux .cx-catico { display: grid; place-items: center; color: var(--cx-teal-d); font-size: 30px; }
#c3dux .cx-catico .cx-i { width: 30px; height: 30px; }
#c3dux .cx-catback { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
#c3dux .cx-catback b { font-size: 16px; font-weight: 800; }
#c3dux .cx-catbackbtn { height: 34px; padding: 0 12px 0 8px; }
#c3dux .cx-catmodal .cx-catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; gap: 10px; }
#c3dux .cx-catmodal .cx-catimg { height: 86px; }
#c3dux .cx-catmodal .cx-catimg img { max-height: 80px; }
html.c3dux.c3dux-m #c3dux .cx-catcats, html.c3dux.c3dux-m #c3dux .cx-catmodal .cx-catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#c3dux .cx-tgrid3 .cx-tbtn { padding-left: 6px; padding-right: 6px; gap: 5px; font-size: 12.5px; min-width: 0; }
/* 33. телефон, режим 3D: без строки масштаба (жест в окне 3D работает) и без блока названия, больше места опциям */
html.c3dux.c3dux-m #c3dux.cx-in3d .cx-mtools, html.c3dux.c3dux-m #c3dux.cx-in3d .cx-minfo { display: none !important; }
#c3dux .cx-ph-sh { display: none; }
html.c3dux.c3dux-m #c3dux .cx-ph-short { display: flex; align-items: baseline; gap: 10px; }
html.c3dux.c3dux-m #c3dux .cx-ph-short h2 { flex: none; }
html.c3dux.c3dux-m #c3dux .cx-ph-short p { margin: 0 0 0 auto; min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.c3dux.c3dux-m #c3dux .cx-ph-short .cx-ph-long { display: none; }
html.c3dux.c3dux-m #c3dux .cx-ph-short .cx-ph-sh { display: inline; }
/* 34. телефон: вкладки сторон с наценкой, прокрутка с тенью-подсказкой, активная заметно выделена */
html.c3dux.c3dux-m #c3dux .cx-mtabwrap { position: relative; min-width: 0; max-width: 100%; }
html.c3dux.c3dux-m #c3dux .cx-mtop .cx-mtabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
html.c3dux.c3dux-m #c3dux .cx-mtop .cx-mtabs::-webkit-scrollbar { display: none; }
html.c3dux.c3dux-m #c3dux .cx-mtop .cx-mtabs .cx-tab { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 4px 12px; min-height: 40px; line-height: 1.15; }
html.c3dux.c3dux-m #c3dux .cx-mtop .cx-mtabs .cx-tab.on { background: var(--cx-dark); color: #fff; }
html.c3dux.c3dux-m #c3dux .cx-mtab-n { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 13.5px; }
html.c3dux.c3dux-m #c3dux .cx-mtop .cx-tab small.cx-mtab-p { display: block; font-size: 10.5px; font-weight: 700; opacity: 0.8; }
html.c3dux.c3dux-m #c3dux .cx-mtabwrap::before, html.c3dux.c3dux-m #c3dux .cx-mtabwrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 26px; pointer-events: none; opacity: 0; transition: opacity 0.15s; z-index: 1; border-radius: 14px; }
html.c3dux.c3dux-m #c3dux .cx-mtabwrap::before { left: 0; background: linear-gradient(90deg, var(--p55-tint-894,#dfe7e9) 30%, rgba(var(--p55-tint-894-rgb,223,231,233),0)); }
html.c3dux.c3dux-m #c3dux .cx-mtabwrap::after { right: 0; background: linear-gradient(270deg, var(--p55-tint-894,#dfe7e9) 30%, rgba(var(--p55-tint-894-rgb,223,231,233),0)); }
html.c3dux.c3dux-m #c3dux .cx-mtabwrap.cx-more-l::before, html.c3dux.c3dux-m #c3dux .cx-mtabwrap.cx-more-r::after { opacity: 1; }
html.c3dux.c3dux-m #c3dux .cx-mtabwrap::before { content: "‹"; } html.c3dux.c3dux-m #c3dux .cx-mtabwrap::after { content: "›"; }
html.c3dux.c3dux-m #c3dux .cx-mtabwrap::before, html.c3dux.c3dux-m #c3dux .cx-mtabwrap::after { display: flex; align-items: center; font-size: 20px; font-weight: 800; color: var(--cx-teal-d); }
html.c3dux.c3dux-m #c3dux .cx-mtabwrap::before { justify-content: flex-start; padding-left: 3px; } html.c3dux.c3dux-m #c3dux .cx-mtabwrap::after { justify-content: flex-end; padding-right: 3px; }
/* 36. телефон: ряд под макетом тремя группами с равными промежутками, подпись зоны не налезает */
html.c3dux.c3dux-m #c3dux .cx-mtools { justify-content: space-between; padding-top: 8px; }
html.c3dux.c3dux-m #c3dux .cx-mtools .cx-sp { display: none; }
/* 37. Типографика: одна шкала для всех панелей и окон слоя.
   заголовок панели 21/18 · заголовок группы 14.5/14 · текст 13.5/13 · подпись 12/11.5 · мелкая подпись кнопок 11/10.5; межстрочный 1.3 у многострочных.
   Подписи не обрезаются многоточием: длинные переносятся по словам. */
#c3dux { --t-h1: 21px; --t-h2: 14.5px; --t-body: 13.5px; --t-cap: 12px; --t-micro: 11px; }
html.c3dux.c3dux-m #c3dux { --t-h1: 18px; --t-h2: 14px; --t-body: 13px; --t-cap: 11.5px; --t-micro: 10.5px; }
#c3dux .cx-ph h2 { font-size: var(--t-h1); line-height: 1.2; }
#c3dux .cx-ph p, #c3dux .cx-note { font-size: var(--t-cap); line-height: 1.4; }
#c3dux .cx-label { font-size: var(--t-cap); }
#c3dux .cx-grid + .cx-label { margin-top: 28px; }
#c3dux .cx-flabel { font-size: var(--t-body); line-height: 1.3; }
#c3dux .cx-flabel small, #c3dux .cx-fileinfo span { font-size: var(--t-cap); }
#c3dux .cx-ohead b { font-size: var(--t-h2); line-height: 1.25; }
#c3dux .cx-lact, #c3dux .cx-tbtn, #c3dux .cx-otile small { font-size: var(--t-micro); line-height: 1.2; }
#c3dux .cx-lact span { white-space: nowrap; }
#c3dux .cx-tbtn span { white-space: normal; text-align: center; overflow-wrap: break-word; }
/* имена слоёв, моделей, вариантов: перенос вместо обрезки */
#c3dux .cx-fileinfo b { font-size: var(--t-body); white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.25; }
#c3dux .cx-mname, html.c3dux.c3dux-m #c3dux .cx-ribbon .cx-mname { font-size: var(--t-body); -webkit-line-clamp: unset; display: block; overflow: visible; line-height: 1.25; }
#c3dux .cx-catm b, #c3dux .cx-catc b { -webkit-line-clamp: unset; display: block; overflow: visible; }
#c3dux .cx-otgrid { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
html.c3dux.c3dux-m #c3dux .cx-otgrid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
#c3dux .cx-tname { font-size: var(--t-micro); white-space: normal; overflow: visible; text-overflow: clip; text-align: center; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; line-height: 1.15; }
#c3dux .cx-ochip span { white-space: normal; overflow-wrap: break-word; }
/* телефон: ряд действий над слоями пятью кнопками, «Очистить» справа в ряду слоёв */
html.c3dux.c3dux-m #c3dux .cx-mlayers .cx-lacts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
html.c3dux.c3dux-m #c3dux .cx-mlayers .cx-lact { min-width: 0; }
html.c3dux.c3dux-m #c3dux .cx-lrow2 { display: flex; align-items: center; gap: 10px; min-width: 0; }
html.c3dux.c3dux-m #c3dux .cx-lrow2 .cx-lthumbs { flex: 1; }
html.c3dux.c3dux-m #c3dux .cx-lrow2 .cx-lclear { flex: none; min-width: 58px; }
/* кнопки нижней панели на узком телефоне не обрезают сумму */
html.c3dux.c3dux-m #c3dux .cx-mrow .cx-primary { padding: 0 8px; gap: 6px; }
html.c3dux.c3dux-m #c3dux .cx-mrow .cx-primary span { overflow: visible; text-overflow: clip; white-space: nowrap; }
@media (max-width: 370px) { html.c3dux.c3dux-m #c3dux .cx-mrow .cx-primary { font-size: 14px !important; } html.c3dux.c3dux-m #c3dux .cx-m3d { width: auto; padding: 0 9px; font-size: 13px !important; gap: 4px; } html.c3dux.c3dux-m #c3dux .cx-m3d .cx-i { width: 18px; height: 18px; } }
/* 37. «Сохранить и поделиться» ровно по 2 в ряд (на 360 подписи налезали), подпись кнопки может перейти на вторую строку */
#c3dux .cx-tgrid.cx-tgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#c3dux .cx-tgrid2 .cx-tbtn span { white-space: normal; text-align: center; }
html.c3dux.c3dux-m #c3dux .cx-tgrid.cx-tgrid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.c3dux.c3dux-m #c3dux .cx-tgrid.cx-tgrid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 37. название и характеристики модели под макетом (телефон) и шрифт в выборе шрифта: перенос вместо многоточия */
html.c3dux.c3dux-m #c3dux .cx-minfo-t b, html.c3dux.c3dux-m #c3dux .cx-minfo-t span { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
#c3dux .cx-select span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.2; }
/* 37. ПК: подпись модели в нижней панели (выбранные варианты) в две строки вместо многоточия */
#c3dux .cx-bname span { white-space: normal; overflow: hidden; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: unset; line-height: 1.2; }
/* 37. Ж/К/Ч/З и 4 выравнивания всегда в одну строку (на 1280 «по ширине» уходило одно во вторую строку) */
#c3dux .cx-sqrow { flex-wrap: nowrap; gap: 4px; justify-content: space-between; }
#c3dux .cx-sqrow .cx-sq { flex: 1 1 0; min-width: 26px; max-width: 36px; width: auto; height: 34px; }
#c3dux .cx-sqrow .cx-sqsep { flex: none; margin: 0; }
/* плитки вариантов: название без переноса по слогам, мельче на телефоне */
#c3dux .cx-tname { hyphens: manual; -webkit-hyphens: manual; }
html.c3dux.c3dux-m #c3dux .cx-tname { font-size: 10px; letter-spacing: -0.01em; }
html.c3dux.c3dux-m #c3dux .cx-otile { padding-left: 1px; padding-right: 1px; }
/* 37. название варианта целиком, без разрыва слова: плитка не уже 70 px (ПК 3–4 в ряд, телефон 4 в ряд) */
#c3dux .cx-otgrid, html.c3dux.c3dux-m #c3dux .cx-otgrid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
#c3dux .cx-tname { overflow-wrap: normal; word-break: keep-all; font-size: 10.5px; }
html.c3dux.c3dux-m #c3dux .cx-tname { font-size: 10.5px; letter-spacing: 0; }
/* 37. строка слоя / файла: имя не уже 120 px, кнопки при нехватке места уходят во вторую строку справа, слово не рвётся */
#c3dux .cx-file { flex-wrap: wrap; row-gap: 6px; }
#c3dux .cx-fileinfo { min-width: 120px; flex: 1 1 120px; }
#c3dux .cx-fileinfo b { overflow-wrap: break-word; }
#c3dux .cx-file > .cx-mini-ib:first-of-type { margin-left: auto; }
/* ПК: 4 варианта в ряд при ширине панели 1440 (11 цветов = 3 ряда), имя целиком */
#c3dux .cx-otgrid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
#c3dux .cx-tname { font-size: 10px; letter-spacing: -0.01em; }
#c3dux .cx-otile { padding-left: 1px; padding-right: 1px; }
html.c3dux.c3dux-m #c3dux .cx-otgrid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
html.c3dux.c3dux-m #c3dux .cx-tname { font-size: 10.5px; letter-spacing: 0; }

/* ======================================================================= v3.1 (06.10.2026): замечания 40–41 */

/* 40. «Другие изделия»: подпись в одну строку, многоточие вместо переноса, стрелка не сдвигается */
#c3dux .cx-catrow span { min-width: 0; }
#c3dux .cx-catrow b, #c3dux .cx-catrow small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#c3dux .cx-catrow > .cx-i:last-child { flex: none; }

/* 41. «Как это работает»: «Меню сайта» в одну строку; при нехватке места кнопки встают друг под другом, текст не переносится */
#c3dux .cx-mact .cx-ghost, #c3dux .cx-mact .cx-primary { white-space: nowrap; justify-content: center; }
html.c3dux.c3dux-m #c3dux .cx-mact .cx-menubtn { flex: 0 0 auto; padding: 0 14px; gap: 6px; }
html.c3dux.c3dux-m #c3dux .cx-mact .cx-menubtn + .cx-primary { flex: 1 1 110px; }

/* 41. телефон: родное меню сайта поверх конструктора, затемнение мимо меню, строка «Закрыть меню» */
html.c3dux .cx-menuback { display: none; }
html.c3dux.c3dux-menu .cx-menuback { display: block; position: fixed; inset: 0; z-index: 1095; background: rgba(var(--p55-primary-9-rgb,0,32,42),0.5); }
html.c3dux .cx-menuclose { display: none; }
html.c3dux.c3dux-menu #main-collabsed-header { max-height: 100vh; max-height: 100dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y !important; }
/* страница (ядро) ставит touch-action: none всем элементам, внутри меню прокрутку пальцем возвращаем */
html.c3dux.c3dux-menu #main-collabsed-header * { touch-action: pan-y !important; }
html.c3dux.c3dux-menu #main-collabsed-header .cx-menuclose { display: flex; position: sticky; bottom: 0; z-index: 2; width: 100%; flex: 0 0 100%; align-items: center; justify-content: center; gap: 8px; height: 52px; margin: 0; padding: 0 16px; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); background: var(--p55-primary-14,#003646); color: var(--p55-on-primary,#fff); font: 700 15px/1 'Montserrat', system-ui, sans-serif; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.c3dux.c3dux-menu #main-collabsed-header .cx-menuclose .cx-i { width: 20px; height: 20px; }

/* ======================================================================= v3.2 (06–07.10.2026): замечания 42–48 */

/* 42. окно ядра «Продукт добавлен»: обе кнопки целиком в окне (пустые распорки ряда убираем, кнопки делят ширину) */
html.c3dux .control.popover.popover-added .row:last-child,
html.c3dux .popover-added .row:last-child { display: flex !important; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; box-sizing: border-box; }
html.c3dux .popover-added .row:last-child > .spacer,
html.c3dux .popover-added .row:last-child > .control.spacer { display: none !important; }
html.c3dux .popover-added .row:last-child > .button { flex: 1 1 auto; min-width: 0; max-width: 100%; margin: 0 !important; padding: 10px 14px !important; box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center; }
html.c3dux .popover-added .row:last-child > .button .label { white-space: nowrap; }
@media (max-width: 400px) { html.c3dux .popover-added .row:last-child > .button .label { font-size: 14px !important; } }
html.c3dux .popover-added .row:last-child > .button:last-of-type { background: var(--cx-teal); }
html.c3dux .popover-added .row:last-child > .button:last-of-type .label { color: #fff !important; }
html.c3dux .popover-added > .control { overflow: hidden; }

/* 43. телефон, клавиатура открыта: прячем нижнюю панель и строку товара, на iOS слой по видимой области */
html.c3dux.c3dux-m.c3dux-kb #c3dux .cx-mbar,
html.c3dux.c3dux-m.c3dux-kb #c3dux .cx-minfo,
html.c3dux.c3dux-m.c3dux-kb #c3dux .cx-mhint,
html.c3dux.c3dux-m.c3dux-kb #c3dux .cx-toast { display: none !important; }
html.c3dux.c3dux-m.c3dux-kb.c3dux-vv #c3dux { top: var(--cx-vvt, 0px); bottom: auto; height: var(--cx-vvh, 100%); }
html.c3dux.c3dux-m.c3dux-kb #c3dux .cx-mpanel { padding-bottom: 12px; }

/* 44. телефон: ряд под макетом ближе к макету и меньше */
html.c3dux.c3dux-m #c3dux .cx-card { bottom: 13px; }
html.c3dux.c3dux-m #c3dux .cx-zone { bottom: 1px; padding: 3px 10px; font-size: 11.5px; }
html.c3dux.c3dux-m #c3dux .cx-mtools { padding-top: 3px; padding-bottom: 4px; }
html.c3dux.c3dux-m #c3dux .cx-mtools .cx-pill .cx-ib { width: 36px; height: 32px; }
html.c3dux.c3dux-m #c3dux .cx-mtools .cx-pill .cx-ib .cx-i { width: 18px; height: 18px; }
html.c3dux.c3dux-m #c3dux .cx-mtools .cx-snapbtn, html.c3dux.c3dux-m #c3dux .cx-mtools > button { min-height: 32px; height: 32px; padding-top: 0; padding-bottom: 0; font-size: 12.5px; }

/* 45. ПК, 3D: вписывание макета к 3D не относится, кнопку прячем (+ и − остаются) */
#c3dux.cx-in3d .cx-fright .cx-fitbtn { display: none !important; }

/* 47. окно «Ссылка на макет» */
#c3dux .cx-sharemodal { max-width: 520px; }
#c3dux .cx-share p { margin: 0 0 12px; color: var(--cx-muted); font-size: 13.5px; }
#c3dux .cx-sharerow { display: flex; gap: 8px; align-items: stretch; }
#c3dux .cx-shareurl { flex: 1 1 auto; min-width: 0; height: 46px; border: 1.5px solid var(--cx-line); border-radius: 12px; padding: 0 12px; font: 600 13.5px 'Montserrat', system-ui, sans-serif; color: var(--cx-text); background: #f6f9fa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#c3dux .cx-shareurl:focus { outline: 2px solid var(--cx-teal); outline-offset: 0; }
#c3dux .cx-copybtn { flex: none; height: 46px; padding: 0 16px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
#c3dux .cx-copybtn .cx-i { width: 18px; height: 18px; }
#c3dux .cx-sharest { min-height: 20px; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--cx-red); }
#c3dux .cx-sharest.ok { color: var(--cx-ok); }
html.c3dux.c3dux-m #c3dux .cx-sharerow { flex-direction: column; }
html.c3dux.c3dux-m #c3dux .cx-copybtn { justify-content: center; }

/* 48. фигуры: ровная сетка из трёх одинаковых кнопок (значок над подписью), без обрезки */
#c3dux .cx-tgrid.cx-shapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#c3dux .cx-tgrid.cx-shapes .cx-tbtn { flex-direction: column; justify-content: center; gap: 4px; padding: 9px 4px 8px; min-width: 0; font-size: 12px; border: 1.5px solid var(--cx-line) !important; border-radius: 12px; background: #fff; }
#c3dux .cx-tgrid.cx-shapes .cx-tbtn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#c3dux .cx-tgrid.cx-shapes .cx-tbtn .cx-i { width: 20px; height: 20px; }
/* 48. узкая панель ПК (1280): «Треугольник» целиком */
#c3dux .cx-tgrid.cx-shapes { gap: 6px; }
#c3dux .cx-tgrid.cx-shapes .cx-tbtn { padding: 9px 2px 8px; font-size: 11.5px; letter-spacing: -0.1px; }
@media (max-width: 1366px) { html.c3dux:not(.c3dux-m) #c3dux .cx-tgrid.cx-shapes .cx-tbtn { font-size: 11px; letter-spacing: -0.2px; } }
/* 42. подписи кнопок окна «Продукт добавлен» по центру кнопки */
html.c3dux .popover-added .row:last-child > .button .label { width: auto; text-align: center; margin: 0 auto; }
/* 13.10.2026 (Роман, скрин ПК): подпись всё равно прижата влево, потому что внутри самой кнопки живёт собственный .spacer (из конструктора Button: Label+Spacer без парного Spacer слева), а .spacer{flex:auto} в базовой таблице стилей растягивается и съедает всё свободное место, margin:auto у .label опереться не на что. Прячем этот внутренний spacer, тогда justify-content:center у самой кнопки (строка выше, п.881) центрирует подпись по-настоящему. */
html.c3dux .popover-added .row:last-child > .button > .spacer { display: none !important; }

/* ---------------- 3.3.0 (07.10, v9) ---------------- */
/* 51. своя палитра «Свой цвет» вместо системного окна input type=color */
#c3dux .cx-swcustom { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--cx-dark); color: #fff; }
#c3dux .cx-swcustom .cx-i { filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.7)); }
#c3dux .cx-palmodal { width: min(380px, 100%); }
#c3dux .cx-pal { display: flex; flex-direction: column; gap: 14px; user-select: none; -webkit-user-select: none; }
#c3dux .cx-pal-sv { position: relative; height: 170px; border-radius: 14px; touch-action: none; cursor: crosshair;
  background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)), linear-gradient(to right, #fff, rgba(255, 255, 255, 0)); }
#c3dux .cx-pal-hue { position: relative; height: 26px; border-radius: 13px; touch-action: none; cursor: pointer;
  background: linear-gradient(to right, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%); }
#c3dux .cx-pal-k { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.3); pointer-events: none; }
#c3dux .cx-pal-hue .cx-pal-k { top: 50%; }
#c3dux .cx-pal-row { display: flex; align-items: center; gap: 8px; }
#c3dux .cx-pal-old, #c3dux .cx-pal-prev { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--p55-tint-838,#cfd9dc); }
#c3dux .cx-pal-old { width: 22px; border-radius: 8px; }
#c3dux .cx-pal-hl { flex: none; font-size: 13px; font-weight: 700; color: var(--cx-muted); margin-left: 4px; }
#c3dux .cx-pal-hex { flex: 1 1 auto; min-width: 0; height: 40px; font-size: 16px; font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: lowercase; }
#c3dux .cx-pal-hex.cx-bad { border-color: #e5484d !important; }
#c3dux .cx-pal-pre { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
#c3dux .cx-pal-sw { aspect-ratio: 1 / 1; width: 100%; border-radius: 50%; border: 1.5px solid var(--p55-tint-838,#cfd9dc) !important; cursor: pointer; padding: 0; }
#c3dux .cx-pal-sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cx-dark); }
#c3dux .cx-palmodal .cx-mact { flex-wrap: nowrap; }
#c3dux .cx-palmodal .cx-mact .cx-ghost, #c3dux .cx-palmodal .cx-mact .cx-primary { flex: 1 1 0; min-width: 0; }
/* 52. телефон: «Поделиться» в верхней строке; три круглые кнопки чуть меньше, чтобы «Макет · 3D» влезал на 360 */
html.c3dux.c3dux-m #c3dux .cx-mhead { gap: 8px; padding-left: 12px; padding-right: 12px; }
html.c3dux.c3dux-m #c3dux .cx-mhead .cx-round { width: 42px; height: 42px; }
html.c3dux.c3dux-m #c3dux .cx-mhead .cx-round .cx-i { width: 20px; height: 20px; }
@media (max-width: 375px) {
  html.c3dux.c3dux-m #c3dux .cx-mtop .cx-seg button { padding: 8px 14px; }
}
#c3dux .cx-sharenat { margin-top: 12px; }
#c3dux .cx-palmodal .cx-mact .cx-ghost, #c3dux .cx-palmodal .cx-mact .cx-primary { height: 48px; min-height: 48px; padding: 0 12px; }
@media (max-width: 375px) {
  html.c3dux.c3dux-m #c3dux .cx-swatches { gap: 6px; }
}
/* 54. названия товара: не больше 2 строк, номер «#NNNN» отдельно и целиком */
#c3dux .cx-nm2, html.c3dux .popover-added a.cx-nm2 { display: flex !important; align-items: flex-end; flex-wrap: nowrap; min-width: 0; max-width: 100%; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
html.c3dux .popover-added a.cx-nm2 { display: inline-flex !important; vertical-align: bottom; justify-content: center; text-align: center; }
#c3dux .cx-nm2 .cx-nm-t, html.c3dux .popover-added .cx-nm-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; overflow-wrap: break-word; word-break: normal; white-space: normal; }
#c3dux .cx-nm2 .cx-nm-n, html.c3dux .popover-added .cx-nm-n { flex: none; white-space: nowrap; margin-left: 0.3em; }
html.c3dux .popover-added, html.c3dux .popover-added > .control, html.c3dux .popover-added .label, html.c3dux .popover-added .text { min-width: 0; max-width: 100%; overflow-wrap: anywhere; white-space: normal; box-sizing: border-box; }
html.c3dux.c3dux-m #c3dux .cx-minfo-t { min-width: 0; }
html.c3dux.c3dux-m #c3dux .cx-minfo-t b.cx-nm2 { white-space: normal; }
html.c3dux.c3dux-m #c3dux .cx-minfo-t b.cx-nm2 .cx-nm-t { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html.c3dux.c3dux-m #c3dux .cx-minfo-t b.cx-nm2 .cx-nm-n { overflow: visible; }
html.c3dux.c3dux-m #c3dux .cx-minfo-t b.cx-nm2 span { font: inherit; color: inherit; letter-spacing: inherit; margin-top: 0; }

/* v9.2 (07.10.2026): «К макету» на сцене 3D, телефон и ПК (ссылка «Поделиться» открывается сразу в 3D) */
#c3dux .cx-back2d { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 8; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px 0 12px; border: 0; border-radius: 14px; background: var(--cx-dark, var(--p55-primary-17,#0b3a4a)); color: var(--p55-on-primary,#fff); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 6px 18px rgba(var(--p55-primary-13-rgb,0,49,64),0.25); }
#c3dux .cx-back2d[hidden] { display: none !important; }
#c3dux .cx-back2d .cx-i { width: 18px; height: 18px; }
html.c3dux.c3dux-m #c3dux .cx-back2d { bottom: 18px; height: 42px; font-size: 14px; }
/* v9.3: кнопка «К макету» внутри окна просмотра (.cx-card), поверх холста 3D у нижнего края */
html.c3dux.c3dux-m #c3dux .cx-back2d { bottom: 12px; }
/* v9.2: круглый индикатор загрузки ядра (div с animation: spin, z-index 1000) у магнитов остаётся над холстом навсегда (3D-файл магнита отдаёт 404)
   и перехватывал касания по центру макета: фото там не выделялось. Касания проходят сквозь индикатор */
#c3dux .cx-card div[style*="spin"] { pointer-events: none !important; }

/* v9.4 (07.10.2026): телефон, крупное превью изделия под макетом (клиент: «а где футболка?», превью 64 px и его закрывал значок 3D
   со стрелками). Превью = кнопка 3D: тап открывает 3D на всё окно; значок «3D» маленький в нижнем правом углу, изделие не закрывает */
html.c3dux.c3dux-m #c3dux .cx-minfo { align-items: center; gap: 12px; }
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini { width: min(47vw, 220px); height: clamp(100px, min(37vw, 19vh), 160px); border-radius: 16px; border-width: 2px; box-shadow: 0 4px 14px rgba(var(--p55-primary-13-rgb,0,49,64),0.14); }
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini-exp,
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini-cap { display: none !important; }
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini-tag { left: auto; top: auto; right: 5px; bottom: 5px; transform: none; z-index: 3; font-size: 10.5px; line-height: 15px; padding: 1px 6px 1px 5px; border-radius: 7px; gap: 4px; opacity: 0.92; }
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini-tag i { width: 7px; height: 7px; }
/* до первого открытия 3D (модель грузится по нажатию, п.18): фото изделия крупно, значок «3D» тот же; «Загружаем…» поверх, пока грузится */
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini-ph img { max-width: 86%; max-height: 86%; }
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini-ph span { display: none; }
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini-ph.cx-ld span { display: inline-flex; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini-ph.cx-ld span b { display: inline; }

/* v9.4.1 (07.10.2026): «двоение/тряска» модели в 3D на ПК (Opera, настоящие полосы прокрутки). Холст 3D ядра строчный и выше
   контейнера на 5 px (базовая линия) → у .constructor-container (overflow: auto ядра) появлялись полосы прокрутки, размер прыгал
   на 15 px туда-обратно каждый кадр. Холст блоком, у контейнера в 3D полос нет */
#c3dux .constructor-container > canvas { display: block; }
#c3dux.cx-in3d .constructor-container { overflow: hidden !important; }

/* v9.5 (07.10.2026): телефон, компактный верх. Клиент (Яндекс.Браузер, адресная строка и панель Яндекса снизу, видимая высота ~700):
   опции не листались, «слишком узко из-за большого превью». Шапка 64 → 48 (кнопки 42 → 38, сегмент Макет/3D 44 → 36),
   строка инструментов: кнопки 32 → 36 (тап-зона), отступы меньше; превью 183×144 → ~140×108, строка название+превью 145–156 → ≤ 116 */
html.c3dux.c3dux-m #c3dux .cx-mhead { height: 48px; padding: 5px 12px 3px; gap: 8px; }
html.c3dux.c3dux-m #c3dux .cx-mhead .cx-round { width: 38px; height: 38px; box-shadow: 0 2px 8px rgba(var(--p55-primary-13-rgb,0,49,64),0.12); }
html.c3dux.c3dux-m #c3dux .cx-mhead .cx-round .cx-i { width: 19px; height: 19px; }
html.c3dux.c3dux-m #c3dux .cx-mtop .cx-seg { padding: 3px; border-radius: 12px; }
html.c3dux.c3dux-m #c3dux .cx-mtop .cx-seg button { padding: 0 14px; height: 30px; line-height: 30px; font-size: 14px; border-radius: 9px; }
html.c3dux.c3dux-m #c3dux .cx-mtop .cx-mtabs .cx-tab { min-height: 34px; padding: 2px 11px; font-size: 13.5px; }
html.c3dux.c3dux-m #c3dux .cx-mtop .cx-tab small.cx-mtab-p { font-size: 10px; }
html.c3dux.c3dux-m #c3dux .cx-card { top: 8px; }
html.c3dux.c3dux-m #c3dux .cx-badge { top: -5px; }
html.c3dux.c3dux-m #c3dux .cx-mtools { padding-top: 2px; padding-bottom: 2px; }
html.c3dux.c3dux-m #c3dux .cx-mtools .cx-pill .cx-ib { width: 38px; height: 36px; }
html.c3dux.c3dux-m #c3dux .cx-mtools .cx-snapbtn, html.c3dux.c3dux-m #c3dux .cx-mtools > button { min-height: 36px; height: 36px; }
html.c3dux.c3dux-m #c3dux .cx-minfo { padding: 2px 14px 4px; min-height: 0; }
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini { width: min(36vw, 150px); height: clamp(95px, min(28vw, 15vh), 112px); border-radius: 14px; }
/* v9.5: заголовок раздела в панели телефона компактнее (больше места самим опциям) */
html.c3dux.c3dux-m #c3dux .cx-mpanel { padding-top: 4px; }
html.c3dux.c3dux-m #c3dux .cx-mpanel .cx-ph { margin-bottom: 6px; }
html.c3dux.c3dux-m #c3dux .cx-mpanel .cx-ph h2 { font-size: 16px; margin-bottom: 0; }
/* v9.5: поле «Текст выбранной надписи» на телефоне в одну строку (44 px), шрифт 16 px (iOS не увеличивает страницу), растёт по строкам */
html.c3dux.c3dux-m #c3dux textarea.cx-input1 { min-height: 44px; height: 44px; padding: 9px 12px; font-size: 16px; line-height: 22px; resize: none; overflow-y: hidden; box-sizing: border-box; border-radius: 12px; }
/* v9.5: значок «3D» на компактном превью ещё ближе к углу, чтобы не заходить на изделие */
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini-tag { right: 4px; bottom: 4px; font-size: 10px; line-height: 14px; padding: 1px 5px 1px 4px; border-radius: 6px; gap: 3px; }
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini-tag i { width: 6px; height: 6px; }
/* v9.5: нижняя шторка выбора шрифта (телефон) */
#c3dux .cx-sheet { position: fixed; inset: 0; z-index: 2000; background: rgba(var(--p55-primary-8-rgb,0,30,40),0.42); display: flex; flex-direction: column; justify-content: flex-end; touch-action: manipulation; }
#c3dux .cx-sheet-box { background: #fff; border-radius: 20px 20px 0 0; height: 72vh; max-height: calc(100% - 40px); display: flex; flex-direction: column; box-shadow: 0 -8px 30px rgba(var(--p55-primary-13-rgb,0,49,64),0.2); padding-bottom: env(safe-area-inset-bottom); }
#c3dux .cx-sheet-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; border-bottom: 1px solid var(--cx-line, var(--p55-tint-907,#e2eaec)); flex: none; }
#c3dux .cx-sheet-h b { font-size: 17px; font-weight: 800; }
#c3dux .cx-sheet-h small { color: var(--cx-muted); font-size: 12.5px; margin-right: auto; }
#c3dux .cx-sheet-done { height: 38px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--cx-dark, var(--p55-primary-17,#0b3a4a)); color: var(--p55-on-primary,#fff); font: inherit; font-weight: 800; font-size: 14px; }
#c3dux .cx-sheet-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; padding: 6px 10px 12px; }
#c3dux .cx-sheet-it { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 56px; padding: 8px 40px 8px 12px; border: 0; border-radius: 12px; background: transparent; text-align: left; color: var(--cx-text); }
#c3dux .cx-sheet-it + .cx-sheet-it { margin-top: 2px; }
#c3dux .cx-sheet-it.on { background: var(--cx-teal-l); }
#c3dux .cx-sheet-pv { font-size: 22px; line-height: 1.25; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#c3dux .cx-sheet-it small { font-size: 11.5px; color: var(--cx-muted); font-weight: 700; font-family: 'Montserrat', sans-serif; }
#c3dux .cx-sheet-it i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--cx-teal); }
#c3dux .cx-sheet-it i .cx-i { width: 20px; height: 20px; }
html.c3dux.c3dux-m #c3dux .cx-minislot .cx-mini-tag { right: 3px; bottom: 3px; line-height: 13px; }
/* 13.10.2026 (Роман, скрин shrink_req.jpg): три круглые кнопки шапки мобильного редактора (Назад слева;
   Поделиться + Помощь справа, .cx-mhead .cx-round) были уже дважды уменьшены раньше (46 -> 42 v9.2, 42 -> 38
   v9.5), сейчас клиент просит ещё минус «в три раза» -- 38/3 ~= 13px физически непригодно для пальца, поэтому
   уменьшаем ещё на шаг до пола читаемого тап-таргета (32px, тот же минимум, что уже используется в этой
   шапке у .cx-mrow/.cx-m3d кнопок инструментов строкой ниже). .cx-round -- общий класс этих же трёх кнопок
   в шапке мобильного редактора ВСЕХ витрин на этом слое (constructor-ux.css), других мест класс не затрагивает
   (на ПК .cx-round не стилизуется вовсе, только в мобильной ветке html.c3dux-m). */
html.c3dux.c3dux-m #c3dux .cx-mhead .cx-round { width: 32px; height: 32px; }
html.c3dux.c3dux-m #c3dux .cx-mhead .cx-round .cx-i { width: 16px; height: 16px; }

#c3dux img.control.button.sticker,
#constructor-ui img.control.button.sticker { object-fit: contain; }

#c3dux .cx-stickers .control.flow:has(> img.sticker) {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)) !important;
  gap: 8px;
  padding: 0 6px 8px;
  box-sizing: border-box;
}
#c3dux .cx-stickers img.control.button.sticker {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 10% !important;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
  transition: background-color 0.12s;
}
#c3dux .cx-stickers img.control.button.sticker:hover,
#c3dux .cx-stickers img.control.button.sticker:focus-visible { background: var(--p55-tint-957,#f1f6f7); }
html.c3dux-m #c3dux .cx-stickers .control.flow:has(> img.sticker) { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important; gap: 6px; }

html.c3dux.c3dux-m #c3dux .cx-mtools .cx-pill .cx-ib { width: 42px; height: 40px; }
