/* OPTIK61 A1, этап 8 — «Быстрый заказ по артикулам» и «Загрузить заказ (Excel)».
   Эталон — макет D:\work\optik61-design\quick\quick.css (= /maket/quick/), перенесён с префиксом o61-q-; кнопки, иконки
   и шкала — из base.css. Тема Technics подключена раньше: её глобальные button/input/h1 здесь сбрасываются только
   внутри .o61-q, чужие классы не перекрашиваются. Анимации — только transform и opacity. */

.o61-q { background: var(--bg-soft); color: var(--ink-900); font-family: var(--f-ui); font-size: var(--t-16); line-height: 1.5; padding: 0 0 64px; }
/* сбросы темы — через :where(), чтобы любой класс компонента ниже был сильнее сброса */
.o61-q :where(a), .o61-q :where(a:hover, a:focus) { color: inherit; text-decoration: none; }
.o61-q :where(button:not(.o61-btn)) { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: inherit; box-shadow: none; }
.o61-q :where(button, input, textarea) { font-family: var(--f-ui); }
.o61-q :where(input, textarea) { color: var(--ink-900); box-shadow: none; }
.o61-q :where(h1, h2, h3) { color: inherit; text-transform: none; letter-spacing: normal; }
.o61-q :where(p, dl, dd) { margin: 0; }
.o61-q kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: #fff; box-shadow: none; font: 600 11.5px/1 var(--f-ui); color: var(--ink-700); white-space: nowrap; }
.o61-q [hidden] { display: none !important; }
.o61-q :focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.o61-q-d { }
.o61-q-m { display: none !important; }
.o61-q-noscript { margin: 16px 0; padding: 14px 18px; border-radius: 14px; background: #FFF6DF; border: 1px solid #F1D38B; color: #5C4200; }
.o61-q-noscript a { color: var(--blue-600); text-decoration: underline; }

/* надзаголовок с мотивом шкалы — как на главной */
.o61-q-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 12.5px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.o61-q-eyebrow::before { content: ""; flex: none; width: 36px; height: 10px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) left bottom / 1px 10px no-repeat, linear-gradient(currentColor, currentColor) 50% 100% / 1px 8px no-repeat, linear-gradient(currentColor, currentColor) right bottom / 1px 10px no-repeat, repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 4.5px) left bottom / 100% 4px no-repeat; opacity: .85; }

/* счётчик пар — как в корзине */
.o61-q-stepper { display: inline-flex; align-items: center; height: 40px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; flex: none; }
.o61-q-stepper button { width: 34px; height: 100%; display: grid; place-items: center; color: var(--navy-900); border-radius: 8px; transition: color .14s var(--ease), background-color .14s var(--ease); }
.o61-q-stepper button:hover { color: var(--blue-600); background: var(--bg-soft); }
.o61-q-stepper button[disabled] { color: var(--ink-400); pointer-events: none; }
.o61-q-stepper button .o61-ico { width: 16px; height: 16px; }
.o61-q-stepper input { width: 38px; height: 100%; text-align: center; border: 0; padding: 0; font: 700 15px var(--f-head); background: none; outline: none; -moz-appearance: textfield; }
.o61-q-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.o61-q-stepper input[disabled] { color: var(--ink-400); }

/* всплывающие сообщения */
/* один тост за раз, сверху: на ПК справа под плашкой корзины, на телефоне под липкой шапкой. Отступ сверху считает
   O61Toast.place (shell.js) и пишет в --o61-toast-top, значения здесь запасные. Тело тоста кликов не ловит,
   кликается только кнопка «Вернуть». */
.o61-q-toasts { position: fixed; top: var(--o61-toast-top, 96px); right: 14px; z-index: 1200; display: grid; gap: 8px; width: min(380px, calc(100vw - 28px)); pointer-events: none; }
.o61-q-toast { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 14px; background: var(--navy-950); color: #fff; box-shadow: var(--sh-3); font-size: 14px; line-height: 1.4; animation: o61q-toast-in .3s var(--ease); pointer-events: none; }
.o61-q-toast.o61-mo-out { opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.o61-q-toast > i { width: 30px; height: 30px; border-radius: 50%; background: var(--ok-600); display: grid; place-items: center; flex: none; }
.o61-q-toast > i svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.o61-q-toast--del > i { background: var(--ink-500); }
.o61-q-toast--err > i { background: var(--err-600); }
.o61-q-toast b { color: var(--gold-300); }
.o61-q-toast button { color: var(--gold-300) !important; font-weight: 700 !important; text-decoration: underline !important; text-underline-offset: 3px; pointer-events: auto; }
@keyframes o61q-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes o61q-toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes o61q-fade { from { opacity: 0; } }
@keyframes o61q-drop { from { opacity: 0; transform: translateY(-6px); } }

/* телеграм и MAX в карточке «Проще продиктовать?» */
.o61-q-tg { width: 18px; height: 18px; border-radius: 50%; background: #2AA3E0; display: grid; place-items: center; }
.o61-q-tg svg { width: 11px; height: 11px; fill: #fff; stroke: none; margin-left: -1px; }
.o61-q-wa { width: 18px; height: 18px; border-radius: 50%; background: #1FA855; display: grid; place-items: center; flex: none; } /* WhatsApp, 13.11 */
.o61-q-wa svg { width: 12px; height: 12px; fill: #fff; stroke: none; }
.o61-q-max { height: 18px; padding: 0 5px; border-radius: 6px; background: linear-gradient(135deg, #2A5FE0, #6E35E8); color: #fff; font: 800 10px/18px var(--f-head); letter-spacing: .04em; }

/* загрузка справочника и ошибка */
.o61-q-bstate { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 112px; padding: 24px 20px; color: var(--ink-500); font-size: 14.5px; text-align: center; }
.o61-q-bstate--err { flex-direction: column; color: var(--err-600); font-weight: 600; }
.o61-q-bstate--err .o61-btn { font-weight: 600; }
.o61-q-spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--blue-600); animation: o61-spin .8s linear infinite; flex: none; }
.o61-q-skel { display: grid; grid-template-columns: 36px 56px minmax(0, 1fr) 154px 118px 78px 92px; gap: 10px; align-items: center; padding: 10px 16px; }
.o61-q-skel i { display: block; height: 14px; border-radius: 7px; background: var(--bg-tint); animation: o61q-breath 1.2s var(--ease) infinite alternate; }
@keyframes o61q-breath { from { opacity: 1; } to { opacity: .45; } }

.o61-q-msum { display: none; }

/* хлебные крошки */
.o61-q-crumbs { padding: 18px 0 14px; font-size: 13.5px; color: var(--ink-500); }
.o61-q-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.o61-q-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.o61-q-crumbs li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--ink-400); border-top: 1.5px solid var(--ink-400); transform: rotate(45deg); margin-right: 4px; }
.o61-q-crumbs a { color: var(--ink-500); }
.o61-q-crumbs a:hover { color: var(--blue-600); }
.o61-q-crumbs [aria-current] { color: var(--ink-900); font-weight: 600; }
.o61-q-kstat { display: inline-flex; align-items: baseline; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(242,193,78,.55); background: rgba(242,193,78,.08); color: #E9EEF9; font-size: 14px; line-height: 32px; white-space: nowrap; }
.o61-q-kstat b { font: 800 18px/32px var(--f-head); color: var(--gold-400); }
.o61-q-kstat i { font-style: normal; color: rgba(255,255,255,.35); padding: 0 2px; }
.o61-q-lnk { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--blue-600); transition: background .16s var(--ease); }
.o61-q-lnk:hover { background: var(--blue-50); }
.o61-q-lnk .o61-ico { width: 18px; height: 18px; }
.o61-q-lnk--quiet { color: var(--ink-500); font-weight: 500; }
.o61-q-lnk--quiet:hover { color: var(--err-600); background: var(--err-100); }
/* ---------- сводка справа ---------- */
.o61-q-sumc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-20); box-shadow: var(--sh-2); padding: 22px 22px 20px; position: relative; overflow: hidden; }
.o61-q-sumc__k { font: 700 11.5px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--blue-600); }
.o61-q-sumc__rows { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.o61-q-sumc__rows div { text-align: center; }
.o61-q-sumc__rows div + div { border-left: 1px solid var(--line); }
.o61-q-sumc__rows dt { font-size: 12px; color: var(--ink-500); }
.o61-q-sumc__rows dd { margin: 2px 0 0; font: 800 20px/1.1 var(--f-head); font-variant-numeric: tabular-nums; }
.o61-q-sumc__tot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; }
.o61-q-sumc__tot span { font-size: 14px; color: var(--ink-700); }
.o61-q-sumc__tot b { font: 800 var(--t-31)/1 var(--f-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.o61-q-sumc__note { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-500); }
.o61-q-prog { margin-top: 16px; padding: 12px 14px 10px; border-radius: 14px; background: var(--bg-soft); }
.o61-q-prog__t { font-size: 13.5px; color: var(--ink-700); display: flex; align-items: center; gap: 6px; }
.o61-q-prog__t b { font-weight: 700; color: var(--ink-900); }
.o61-q-prog__t .o61-ico { width: 16px; height: 16px; }
.o61-q-prog.is-ready .o61-q-prog__t { color: var(--ok-600); font-weight: 600; }
.o61-q-prog .o61-scale { margin-top: 10px; height: 10px; }
.o61-q-prog .o61-scale__track { background: var(--line-2); }
.o61-q-prog .o61-scale__ticks { background: repeating-linear-gradient(90deg, #B7C1D4 0 1px, transparent 1px 10%); }
.o61-q-prog .o61-scale__fill { background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); }
.o61-q-prog .o61-scale__mark { background: var(--gold-500); }
.o61-q-prog.is-ready .o61-scale__fill, .o61-q-prog.is-ready .o61-scale__mark { background: var(--ok-600); }
.o61-q-prog__ends { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.o61-q-sumc .o61-btn--gold { width: 100%; margin-top: 16px; }
.o61-q-sumc__why { margin: 8px 0 0; font-size: 13px; color: var(--err-600); font-weight: 600; display: flex; gap: 6px; align-items: flex-start; line-height: 1.35; }
.o61-q-sumc__why .o61-ico { width: 16px; height: 16px; margin-top: 1px; }

.o61-q-helpc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-16); padding: 14px 16px; display: grid; gap: 10px; }
.o61-q-helpc__t { font-size: 13px; color: var(--ink-500); }
.o61-q-helpc__ph { font: 800 18px var(--f-head); color: var(--ink-900); display: inline-flex; align-items: center; gap: 8px; }
.o61-q-helpc__ph .o61-ico { color: var(--blue-600); }
.o61-q-helpc__row { display: flex; gap: 8px; flex-wrap: wrap; }
.o61-q-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink-900); transition: border-color .16s, color .16s; }
.o61-q-kthumbs { display: flex; margin-top: 2px; }
.o61-q-kthumbs img { width: 40px; height: 30px; border-radius: 8px; object-fit: cover; border: 2px solid var(--gold-300); margin-left: -8px; background: #fff; }
.o61-q-kthumbs img:first-child { margin-left: 0; }
@media (max-width: 760px) {
  .o61-q-msum { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px; position: fixed; left: 0; right: 0; bottom: var(--o61-ck, 0px); z-index: 85; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 16px; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); color: var(--ink-900); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(10,27,61,.18); transition: transform .25s var(--ease); }
  .o61-q-msum.is-off { transform: translateY(calc(110% + var(--o61-ck, 0px))); pointer-events: none; }
  .o61-q-msum__s { font: 800 19px/1.1 var(--f-head); font-variant-numeric: tabular-nums; }
  .o61-q-msum__m { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .o61-q-msum__m b { color: var(--ink-900); }
  .o61-q-msum.is-ready .o61-q-msum__m { color: var(--ok-600); }
  .o61-q-msum.is-bad .o61-q-msum__m { color: var(--err-600); font-weight: 600; }
  .o61-q-msum .o61-btn { --h: 52px; padding: 0 20px; grid-row: 1 / span 2; grid-column: 2; }
  .o61-q-msum .o61-scale { grid-column: 1; margin-top: 6px; height: 8px; }
  .o61-q-msum .o61-scale__track { background: var(--line-2); }
  .o61-q-msum .o61-scale__ticks { background: repeating-linear-gradient(90deg, #B7C1D4 0 1px, transparent 1px 10%); }
  .o61-q-msum .o61-scale__fill, .o61-q-msum .o61-scale__mark { background: var(--gold-500); }
  .o61-q-msum.is-ready .o61-scale__fill, .o61-q-msum.is-ready .o61-scale__mark { background: var(--ok-600); }
}

/* ===== часть 2: новое для быстрого заказа ===== */
.o61-pg-quick .o61-hact.is-current { background: var(--blue-50); border-color: #C9D9FB; color: var(--blue-600); }
.o61-pg-quick .o61-mbar__b.is-current, .o61-pg-quick .o61-mbar__b.is-current .o61-ico { color: var(--blue-600); }
.o61-q-xls { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #1D7A45; color: #fff; font: 800 8.5px/1 var(--f-head); letter-spacing: .02em; flex: none; }
.o61-q-xls--l { width: 44px; height: 44px; border-radius: 12px; font-size: 11px; }

/* ---------- раскладка ---------- */
.o61-q-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.o61-q-main { min-width: 0; display: grid; gap: 14px; }
.o61-q-side { position: sticky; top: 16px; display: grid; gap: 12px; }

/* ---------- шапка экрана: тёмная, вкладки «врезаны» в белую панель источника ---------- */
.o61-q-head { position: relative; border-radius: var(--r-20) var(--r-20) 0 0; overflow: hidden; background: var(--g-navy); color: #fff; isolation: isolate; padding: 22px 28px 0; margin-bottom: -14px; }
.o61-q-head::after { content: ""; position: absolute; right: 250px; top: -70px; width: 420px; height: 260px; z-index: -1; background: url(../../images/optik61/quick-cut.webp) center / contain no-repeat; opacity: .12; transform: rotate(-8deg); filter: grayscale(.3); }
.o61-q-head::before { content: ""; position: absolute; left: 0; right: 0; bottom: 48px; height: 10px; z-index: -1; background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 12px) left bottom / 100% 6px no-repeat, repeating-linear-gradient(90deg, rgba(242,193,78,.28) 0 1px, transparent 1px 60px) left bottom / 100% 10px no-repeat; }
.o61-q-head__top { display: flex; align-items: flex-start; gap: 24px; }
.o61-q-head__l { flex: 1; min-width: 0; }
.o61-q-head__h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.o61-q-head h1 { margin: 0; font: 800 var(--t-31)/1.1 var(--f-head); letter-spacing: -.02em; }
.o61-q-head__sub { margin: 10px 0 0; font-size: 14.5px; color: #C8D2EA; max-width: 560px; }
.o61-q-head__sub b { color: #fff; font-weight: 600; }
.o61-q-last { display: flex; align-items: center; gap: 12px; flex: none; max-width: 340px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(242,193,78,.45); color: #fff; text-align: left; transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease); }
.o61-q-last:hover { background: rgba(255,255,255,.12); border-color: var(--gold-400); transform: translateY(-1px); }
.o61-q-last__i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--g-gold); color: var(--navy-950); flex: none; box-shadow: var(--sh-gold); }
.o61-q-last__t b { display: block; font: 700 15px/1.25 var(--f-head); }
.o61-q-last__t small { display: block; font-size: 12.5px; color: #B8C4DE; margin-top: 3px; line-height: 1.35; }
.o61-q-last .o61-q-kthumbs img { border-color: var(--navy-850); width: 34px; height: 26px; }
.o61-q-last .o61-q-kthumbs { margin-top: 8px; }
.o61-q-last .o61-q-kthumbs span { margin-left: 4px; font-size: 12px; color: var(--gold-300); align-self: center; font-weight: 600; }
.o61-q-last--guest { border-color: rgba(255,255,255,.2); }
.o61-q-last--guest .o61-q-last__i { background: rgba(255,255,255,.1); color: var(--gold-300); box-shadow: none; }

.o61-q-tabs { display: flex; align-items: flex-end; gap: 6px; margin-top: 20px; }
.o61-q-tab { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 14px 14px 0 0; background: rgba(255,255,255,.07); color: #C8D2EA; font: 600 15px/1 var(--f-ui); transition: background .16s var(--ease), color .16s var(--ease); position: relative; }
.o61-q-tab:hover { background: rgba(255,255,255,.14); color: #fff; }
.o61-q-tab .o61-ico { width: 19px; height: 19px; color: var(--gold-400); }
.o61-q-tab[aria-selected="true"] { background: #fff; color: var(--navy-900); font-weight: 700; }
.o61-q-tab[aria-selected="true"] .o61-ico { color: var(--blue-600); }
.o61-q-tab[aria-selected="true"]::before, .o61-q-tab[aria-selected="true"]::after { content: ""; position: absolute; bottom: 0; width: 14px; height: 14px; background: radial-gradient(circle at 0 0, transparent 13.5px, #fff 14px); }
.o61-q-tab[aria-selected="true"]::after { right: -14px; }
.o61-q-tab[aria-selected="true"]::before { left: -14px; background: radial-gradient(circle at 100% 0, transparent 13.5px, #fff 14px); }
.o61-q-tab:first-child::before { display: none; }
.o61-q-tab:focus-visible { outline-offset: -3px; }
.o61-q-tabs__note { margin-left: auto; align-self: center; padding-bottom: 6px; font-size: 12.5px; color: #9DAAC6; }

/* ---------- панель источника ---------- */
.o61-q-src { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-20) var(--r-20); box-shadow: var(--sh-2); }
.o61-q-head + .o61-q-src { margin-top: 14px; }
.o61-q-src--xl { margin-top: 14px; }

/* вставка списком */
.o61-q-paste__bar { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 22px; text-align: left; border-radius: 0 0 var(--r-20) var(--r-20); transition: background .16s var(--ease); }
.o61-q-paste__bar:hover { background: var(--blue-50); }
.o61-q-paste__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); flex: none; }
.o61-q-paste__bar:hover .o61-q-paste__ic { background: #fff; }
.o61-q-paste__bt { flex: 1; min-width: 0; }
.o61-q-paste__bt b { display: block; font: 700 15.5px/1.3 var(--f-head); }
.o61-q-paste__bt small, .o61-q-paste__bt small.m-only { display: block; font-size: 13px; color: var(--ink-500); margin-top: 2px; }
.o61-q-paste__go { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14.5px; color: var(--blue-600); white-space: nowrap; }
.o61-q-paste__go .o61-ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.o61-q-paste.is-open .o61-q-paste__bar { display: none; }
.o61-q-paste__body { display: none; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 20px 24px 22px; }
.o61-q-paste.is-open .o61-q-paste__body { display: grid; animation: o61q-open .25s var(--ease); }
@keyframes o61q-open { from { opacity: 0; transform: translateY(-4px); } }
.o61-q-paste__lbl { display: block; font: 700 15.5px/1.3 var(--f-head); margin-bottom: 10px; }
.o61-q-area { position: relative; }
.o61-q-area textarea { display: block; width: 100%; min-height: 168px; resize: vertical; padding: 12px 14px 12px 50px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--bg-soft); font: 500 15px/26px var(--f-ui); font-variant-numeric: tabular-nums; letter-spacing: .01em; color: var(--ink-900); outline: none; white-space: pre; overflow-wrap: normal; transition: border-color .16s, box-shadow .16s, background .16s; }
.o61-q-area textarea::placeholder { color: var(--ink-400); }
.o61-q-area textarea:focus { border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(29,87,219,.12); }
.o61-q-area__gut { position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; width: 40px; padding-top: 10.5px; overflow: hidden; border-right: 1px solid var(--line); border-radius: 13px 0 0 13px; background: #fff; pointer-events: none; }
.o61-q-area__gut span { display: flex; align-items: center; justify-content: flex-end; gap: 4px; height: 26px; padding-right: 7px; font: 600 11px/1 var(--f-ui); color: var(--ink-400); font-variant-numeric: tabular-nums; }
.o61-q-area__gut span i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.o61-q-area__gut .o61-q-g-ok i { background: var(--ok-600); }
.o61-q-area__gut .o61-q-g-fix i { background: var(--gold-500); }
.o61-q-area__gut .o61-q-g-nf i { background: var(--err-600); }
.o61-q-area__gut .o61-q-g-skip i { background: var(--line-2); }
.o61-q-paste__btns { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.o61-q-paste__cnt { font-size: 13px; color: var(--ink-500); }
.o61-q-paste__btns .o61-q-lnk--quiet { margin-left: auto; }
.o61-q-paste__help { padding: 14px 0 0 24px; border-left: 1px dashed var(--line-2); }
.o61-q-k { display: block; font: 700 11.5px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--blue-600); }
.o61-q-fmt { display: flex; margin-top: 12px; border-radius: 10px; overflow: hidden; border: 1px solid var(--navy-900); }
.o61-q-fmt__c { flex: 1; text-align: center; padding: 8px 4px; font: 700 13px/1 var(--f-head); color: var(--navy-900); }
.o61-q-fmt__c + .o61-q-fmt__c { border-left: 1px solid var(--navy-900); }
.o61-q-fmt__c:first-child { background: var(--navy-900); color: var(--gold-300); }
.o61-q-rules { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; font-size: 13.5px; color: var(--ink-700); line-height: 1.4; }
.o61-q-rules li { padding-left: 14px; position: relative; }
.o61-q-rules li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); }
.o61-q-rules kbd { margin-right: 2px; }

/* загрузка Excel */
.o61-q-xlz { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; padding: 22px 24px 24px; }
.o61-q-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 250px; padding: 28px; border: 2px dashed #B9C6DD; border-radius: 18px; background: linear-gradient(180deg, var(--bg-soft), #fff); text-align: center; cursor: pointer; transition: border-color .16s var(--ease), background .16s var(--ease); }
.o61-q-drop:hover, .o61-q-drop.is-over { border-color: var(--blue-600); background: var(--blue-50); }
.o61-q-drop:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(29,87,219,.12); }
.o61-q-drop__ic { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: var(--g-navy); color: var(--gold-400); box-shadow: var(--sh-2); transition: transform .25s var(--ease); }
.o61-q-drop__ic .o61-ico { width: 30px; height: 30px; }
.o61-q-drop:hover .o61-q-drop__ic, .o61-q-drop.is-over .o61-q-drop__ic { transform: translateY(-4px); }
.o61-q-drop__t { font-size: 17px; color: var(--ink-700); margin-top: 6px; }
.o61-q-drop__t b { font: 800 19px var(--f-head); color: var(--ink-900); display: block; margin-bottom: 2px; }
.o61-q-drop__t u { color: var(--blue-600); text-underline-offset: 3px; font-weight: 600; }
.o61-q-drop__f { font-size: 13px; color: var(--ink-500); }
.o61-q-drop__ph { display: none; }
.o61-q-drop.is-loading .o61-q-drop__ic { animation: o61q-lift 1s var(--ease) infinite alternate; }
@keyframes o61q-lift { to { transform: translateY(-8px); } }
.o61-q-drop.is-err { border-color: #E5A3A3; background: #FFF8F8; }
.o61-q-drop.is-err .o61-q-drop__ic { background: var(--err-100); color: var(--err-600); box-shadow: none; }
.o61-q-drop__err { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--err-100); border: 1px solid #F1C2C2; color: #7A1F1F; max-width: 470px; font-size: 14px; line-height: 1.4; }
.o61-q-drop__err .o61-ico { color: var(--err-600); width: 20px; height: 20px; margin-top: 1px; }
.o61-q-drop__err small { display: block; margin-top: 3px; font-size: 12.5px; color: #8C3B3B; }
.o61-q-xlhow { display: flex; flex-direction: column; gap: 12px; }
.o61-q-xlm { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--sh-1); }
.o61-q-xlm__bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: #1D7A45; color: #E6F4EC; font-size: 11.5px; }
.o61-q-xlm__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); }
.o61-q-xlm__bar span { margin-left: 8px; font-weight: 600; }
.o61-q-xlm table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.o61-q-xlm th, .o61-q-xlm td { border: 1px solid #E1E6EE; padding: 4px 8px; text-align: left; white-space: nowrap; }
.o61-q-xlm th { background: #F3F5F8; color: var(--ink-500); font-weight: 500; text-align: center; font-size: 11px; }
.o61-q-xlm td:first-child { background: #F3F5F8; color: var(--ink-500); text-align: center; width: 24px; font-size: 11px; }
.o61-q-xlm__h td:not(:first-child) { font-weight: 700; color: var(--navy-900); background: #FFF6DA; }
.o61-q-xlhow__links { display: grid; gap: 8px; }
.o61-q-dl { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); transition: border-color .16s var(--ease), background .16s var(--ease); }
.o61-q-dl:hover { border-color: #1D7A45; background: #F3FAF6; }
.o61-q-dl .o61-q-xls { width: 34px; height: 34px; border-radius: 9px; font-size: 9.5px; }
.o61-q-dl b { display: block; font-size: 14.5px; font-weight: 600; }
.o61-q-dl small { display: block; font-size: 12.5px; color: var(--ink-500); }
.o61-q-xlfile { display: flex; align-items: center; gap: 14px; padding: 16px 22px; }
.o61-q-xlfile__t { flex: 1; min-width: 0; }
.o61-q-xlfile__t b { display: block; font: 700 15.5px/1.3 var(--f-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o61-q-xlfile__t small { display: block; font-size: 13px; color: var(--ink-500); margin-top: 2px; }
.o61-q-xlfile .o61-btn { cursor: pointer; }

/* ---------- итог разбора ---------- */
.o61-q-rep { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r-16); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); animation: o61q-open .25s var(--ease); }
.o61-q-rep__l { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.o61-q-rep__t { font: 700 15px/1.3 var(--f-head); }
.o61-q-rep__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.o61-q-rc { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; color: var(--ink-700); transition: border-color .16s, background .16s; }
.o61-q-rc b { font: 800 15px var(--f-head); color: var(--ink-900); font-variant-numeric: tabular-nums; }
.o61-q-rc .o61-ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; stroke-width: 2.4; }
.o61-q-rc--ok .o61-ico { background: var(--ok-100); color: var(--ok-600); }
.o61-q-rc--fix .o61-ico { background: #FFF1CC; color: var(--gold-600); }
.o61-q-rc--nf .o61-ico { background: var(--err-100); color: var(--err-600); }
.o61-q-rc:hover { border-color: var(--line-2); background: var(--bg-soft); }
.o61-q-rc.is-zero { opacity: .5; }
.o61-q-rep__skip { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--ink-500); }
.o61-q-tgl { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-700); cursor: pointer; user-select: none; }
.o61-q-tgl input { position: absolute; opacity: 0; }
.o61-q-tgl__s { width: 40px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; transition: background .2s var(--ease); flex: none; }
.o61-q-tgl__s::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .2s var(--ease); }
.o61-q-tgl input:checked + .o61-q-tgl__s { background: var(--blue-600); }
.o61-q-tgl input:checked + .o61-q-tgl__s::after { transform: translateX(16px); }
.o61-q-tgl input:focus-visible + .o61-q-tgl__s { outline: 2px solid var(--blue-500); outline-offset: 2px; }

/* ---------- результат добавления ---------- */
.o61-q-done { padding: 18px 20px; border-radius: var(--r-20); background: #fff; border: 1.5px solid #BFE5CF; box-shadow: 0 14px 30px -20px rgba(19,138,74,.55); display: grid; gap: 12px; animation: o61q-pop .35s var(--ease); }
.o61-q-done__head { display: flex; align-items: center; gap: 16px; }
.o61-q-done__head > div { flex: 1; min-width: 0; }
.o61-q-done__i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-100); color: var(--ok-600); flex: none; }
.o61-q-done__i .o61-ico { width: 26px; height: 26px; stroke-width: 2.4; }
.o61-q-done__h { margin: 0; font: 800 var(--t-20)/1.25 var(--f-head); }
.o61-q-done__s { margin: 3px 0 0; font-size: 14px; color: var(--ink-500); }
.o61-q-done__s b { color: var(--ok-600); }
.o61-q-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; }
.o61-q-note .o61-ico { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.o61-q-note b { font-weight: 700; }
.o61-q-note small { display: block; margin-top: 3px; font-size: 13px; opacity: .9; }
.o61-q-note--warn { background: #FFF6DF; border: 1px solid #F1D38B; color: #5C4200; }
.o61-q-note--warn .o61-ico { color: var(--gold-600); }
.o61-q-note--info { background: var(--blue-50); border: 1px solid #C9D9FB; color: var(--navy-900); }
.o61-q-note--info .o61-ico { color: var(--blue-600); }

/* ---------- бланк ---------- */
.o61-q-blank { --cols: 36px minmax(0, 1fr) 154px 118px 78px 92px 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-20); box-shadow: var(--sh-2); }
.o61-q-bh { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: var(--cols); gap: 10px; align-items: center; height: 42px; padding: 0 16px; background: rgba(248,250,253,.97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); border-radius: var(--r-20) var(--r-20) 0 0; font: 700 11px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-500); }
.o61-q-bh .o61-q-r, .o61-q-r { text-align: right; }
.o61-q-bbody { min-height: 60px; }
.o61-q-bg { position: relative; padding: 6px 0; border-bottom: 1px solid var(--line); }
.o61-q-bg { isolation: isolate; }
.o61-q-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #FFF6DA; opacity: 0; pointer-events: none; border-radius: inherit; }
.o61-q-bg.is-flash::after { animation: o61q-flash 1s var(--ease); }
@keyframes o61q-flash { from { opacity: 1; } to { opacity: 0; } }
.o61-q-bl { position: relative; display: grid; grid-template-columns: var(--cols); gap: 4px 10px; align-items: center; padding: 4px 16px; min-height: 50px; transition: background .16s var(--ease); }
.o61-q-bl:hover, .o61-q-bl:focus-within { background: #F7F9FE; }
.o61-q-bl::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.o61-q-bl.v-err::before { background: var(--err-600); }
.o61-q-bl.v-warn::before { background: var(--gold-500); }
.o61-q-bl.v-info::before { background: var(--blue-500); }
.o61-q-bl.is-new { animation: o61q-land .45s var(--ease) both; }
@keyframes o61q-land { from { opacity: 0; transform: translateY(-8px); } }
.o61-q-bl__n { font: 600 12.5px/1 var(--f-ui); color: var(--ink-400); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 4px; justify-content: flex-start; }
.o61-q-bl__n i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.o61-q-bl__n i svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.o61-q-bl__n .o61-q-n-ok { background: var(--ok-100); color: var(--ok-600); }
.o61-q-bl__n .o61-q-n-err { background: var(--err-100); color: var(--err-600); }
.o61-q-bl__n .o61-q-n-warn { background: #FFF1CC; color: var(--gold-600); }
.o61-q-bl__art { display: flex; align-items: center; gap: 12px; min-width: 0; }
.o61-q-bl__img { width: 56px; height: 42px; border-radius: 9px; object-fit: cover; background: var(--bg-soft); flex: none; border: 1px solid var(--line); }
img[data-o61q-img][data-fit="contain"] { object-fit: contain !important; mix-blend-mode: multiply; } /* высокое фото целиком */
.o61-q-bl__img--none { display: grid; place-items: center; color: var(--ink-400); }
.o61-q-bl__img--none .o61-ico { width: 20px; height: 20px; }
.o61-q-bl__ai { min-width: 0; flex: 1; display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: center; gap: 4px 12px; }
.o61-q-bl__ai .o61-q-usual { grid-column: 1 / -1; }
.o61-q-bl--draft .o61-q-bl__ai { grid-template-columns: 1fr; }
.o61-q-bl__name { font-size: 12.5px; line-height: 1.35; color: var(--ink-500); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.o61-q-bl__name b { color: var(--ink-700); font-weight: 600; }
.o61-q-bl__tree { width: 56px; height: 42px; flex: none; position: relative; }
.o61-q-bl__tree::before { content: ""; position: absolute; left: 27px; top: -14px; height: 36px; width: 14px; border-left: 1.5px solid var(--line-2); border-bottom: 1.5px solid var(--line-2); border-bottom-left-radius: 8px; }
.o61-q-bl.is-last .o61-q-bl__tree::before { top: -14px; }
.o61-q-in { width: 100%; height: 40px; padding: 0 12px; border: 1.5px solid transparent; border-radius: 10px; background: var(--bg-soft); outline: none; transition: border-color .14s var(--ease), background .14s var(--ease), box-shadow .14s var(--ease); }
.o61-q-in::placeholder { color: var(--ink-400); font-weight: 400; }
.o61-q-in:hover { border-color: var(--line-2); }
.o61-q-in:focus { border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(29,87,219,.12); }
.o61-q-in--art { font: 800 16px/1 var(--f-head); letter-spacing: .01em; color: var(--ink-900); }
.o61-q-in--cont { background: transparent; color: var(--ink-400); font-weight: 600; font-size: 14px; max-width: 124px; }
.o61-q-in--cont:hover { background: var(--bg-soft); }
.o61-q-in--cont:focus { color: var(--ink-900); }
.o61-q-bl__dio { position: relative; }
.o61-q-in--dio { font: 800 15.5px/1 var(--f-head); padding-right: 40px; font-variant-numeric: tabular-nums; }
.o61-q-bl__mx { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--blue-600); transition: background .14s var(--ease); }
.o61-q-bl__mx:hover { background: var(--blue-100); }
.o61-q-bl__mx .o61-ico { width: 18px; height: 18px; }
.o61-q-bl__mx[disabled] { color: var(--ink-400); opacity: .5; pointer-events: none; }
.o61-q-bl__q { position: relative; }
.o61-q-bl__q .o61-q-stepper { height: 40px; width: 100%; justify-content: space-between; }
.o61-q-bl__q .o61-q-stepper input { width: 46px; }
.o61-q-bl__q .o61-q-stepper:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(29,87,219,.12); }
/* Вадим 12.11 (видео): «рамка у плюса мигает». Фокус поля шт. показывает подсветка всего степпера (focus-within выше);
   собственный контур поля (.o61-q :focus-visible, 2px + отступ) налезал на «+» и перерисовывался при его hover. */
.o61-q .o61-q-stepper input:focus, .o61-q .o61-q-stepper input:focus-visible { outline: none; }
.o61-q-bl__tag { position: absolute; left: 50%; top: -7px; transform: translateX(-50%); height: 16px; padding: 0 7px; border-radius: 8px; background: var(--gold-600); color: #fff; font: 700 10px/16px var(--f-ui); white-space: nowrap; }
.o61-q-bl__p { text-align: right; font-size: 13.5px; color: var(--ink-700); white-space: nowrap; font-variant-numeric: tabular-nums; }
.o61-q-bl__p.is-strong { color: var(--gold-600); font-weight: 600; }
.o61-q-bl__p.is-strong::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); margin-right: 5px; vertical-align: 1px; }
.o61-q-bl__s { text-align: right; font: 700 15px var(--f-head); white-space: nowrap; font-variant-numeric: tabular-nums; }
.o61-q-bl__s.is-off { color: var(--ink-400); font-weight: 500; }
.o61-q-bl__x { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-400); transition: color .16s, background .16s; }
.o61-q-bl__x:hover { color: var(--err-600); background: var(--err-100); }
.o61-q-bl__x .o61-ico { width: 17px; height: 17px; }
.o61-q-bl.v-err .o61-q-in.is-bad { border-color: #E9A5A5; background: #FFF6F6; }
.o61-q-bl.v-warn .o61-q-in.is-bad { border-color: #EBCB7E; background: #FFFBEF; }
.o61-q-bl__msg { grid-column: 2 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 0 0 4px 68px; font-size: 13px; line-height: 1.35; }
.o61-q-bl__msg > .o61-ico { width: 16px; height: 16px; flex: none; }
.o61-q-bl__msg > span { font-weight: 600; }
.o61-q-bl__msg small { font-size: 12.5px; color: var(--ink-500); font-weight: 400; }
.o61-q-bl.is-cont .o61-q-bl__msg { padding-left: 68px; }
.o61-q-m-err { color: var(--err-600); }
.o61-q-m-warn { color: #8A5C00; }
.o61-q-m-warn > .o61-ico { color: var(--gold-600); }
.o61-q-m-info { color: var(--navy-800); }
.o61-q-m-info > .o61-ico { color: var(--blue-600); }
.o61-q-mchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font: 600 12.5px/1 var(--f-ui); color: var(--ink-900); transition: border-color .14s, color .14s, background .14s; }
.o61-q-mchip:hover { border-color: var(--blue-600); color: var(--blue-600); }
.o61-q-mchip img { width: 28px; height: 21px; border-radius: 4px; object-fit: cover; margin-left: -4px; }
.o61-q-mchip--q { border-color: transparent; background: none; color: var(--ink-500); }
.o61-q-mchip--q:hover { background: var(--err-100); color: var(--err-600); border-color: transparent; }

.o61-q-usual { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-500); }
.o61-q-usual__l { margin-right: 2px; }
.o61-q-usual button { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; background: #FFF6DA; color: #6B4A00; font: 700 11.5px/1 var(--f-head); font-variant-numeric: tabular-nums; transition: background .14s; }
.o61-q-usual button::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); }
.o61-q-usual button:hover { background: var(--gold-300); }
.o61-q-usual button.is-have { background: var(--ok-100); color: var(--ok-600); pointer-events: none; }
.o61-q-usual button.is-have::before { content: "✓"; width: auto; height: auto; background: none; font-size: 10px; }

.o61-q-bg__foot { display: flex; align-items: center; gap: 4px 6px; padding: 2px 16px 4px 112px; flex-wrap: wrap; }
.o61-q-bg__foot .o61-q-lnk { height: 30px; font-size: 13px; padding: 0 8px; }
.o61-q-bg__foot .o61-q-lnk .o61-ico { width: 16px; height: 16px; }
.o61-q-bg__tot { margin-left: auto; font-size: 12.5px; color: var(--ink-500); white-space: nowrap; }
.o61-q-bg__tot b { color: var(--ink-900); font: 700 13.5px var(--f-head); }

.o61-q-bl--draft { border-top: 1px dashed var(--line-2); margin-top: -1px; padding-top: 10px; padding-bottom: 10px; }
.o61-q-bl--draft .o61-q-bl__n { color: var(--blue-600); font-size: 15px; font-weight: 700; }
.o61-q-bl--draft .o61-q-in--art { background: #fff; border-color: var(--line-2); font-size: 15px; }
.o61-q-bl--draft .o61-q-in--art:focus { border-color: var(--blue-600); }
.o61-q-bl--draft .o61-q-bl__ghost { font-size: 13px; color: var(--ink-400); }
.o61-q-bl--draft .o61-q-bl__hint { grid-column: 3 / -1; font-size: 12.5px; color: var(--ink-500); }
.o61-q-bl--draft .o61-q-bl__hint kbd { margin: 0 3px; }
.o61-q-blank.is-filter .o61-q-bg.is-okgrp, .o61-q-blank.is-filter .o61-q-bl.is-okline, .o61-q-blank.is-filter .o61-q-bl--draft, .o61-q-blank.is-filter .o61-q-bg__foot { display: none; }
.o61-q-bempty { padding: 26px 20px; text-align: center; color: var(--ink-500); font-size: 14px; }
.o61-q-bfoot { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; }
.o61-q-keys { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-500); margin-left: 8px; }
.o61-q-keys span { display: inline-flex; align-items: center; gap: 4px; }
.o61-q-keys kbd { margin-right: 2px; }
.o61-q-bfoot .o61-q-lnk--quiet { margin-left: auto; }

/* ---------- подсказки (артикул, диоптрии) ---------- */
.o61-q-ac { position: absolute; z-index: 60; width: 460px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-3); padding: 6px; animation: o61q-drop .18s var(--ease); }
.o61-q-ac__cap { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px 6px; font-size: 11.5px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.o61-q-ac__cap span:last-child { text-transform: none; letter-spacing: 0; font-weight: 500; }
.o61-q-ac__it { width: 100%; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 10px 7px 7px; border-radius: 11px; text-align: left; transition: background .12s; }
.o61-q-ac__it:hover, .o61-q-ac__it.is-active { background: var(--blue-50); }
.o61-q-ac__it.is-active { box-shadow: inset 0 0 0 1.5px #BBD0FA; }
.o61-q-ac__it img { width: 60px; height: 45px; border-radius: 8px; object-fit: cover; background: var(--bg-soft); }
.o61-q-ac__t { min-width: 0; }
.o61-q-ac__t b { display: block; font: 800 15.5px/1.2 var(--f-head); }
.o61-q-ac__t b mark { background: var(--gold-300); border-radius: 3px; padding: 0 1px; color: inherit; }
.o61-q-ac__t span { display: block; font-size: 13px; color: var(--ink-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o61-q-ac__t small { display: block; font-size: 12px; color: var(--ink-500); }
.o61-q-ac__t .o61-q-ac__was { display: inline-flex; margin-left: 6px; height: 18px; padding: 0 6px; border-radius: 5px; background: #FFF6DA; color: #6B4A00; font: 700 10.5px/18px var(--f-ui); vertical-align: 2px; }
.o61-q-ac__pr { text-align: right; font: 800 16px/1.1 var(--f-head); white-space: nowrap; }
.o61-q-ac__pr small { display: block; font: 500 11.5px var(--f-ui); color: var(--ink-500); }
.o61-q-ac__empty { padding: 14px 12px; font-size: 14px; color: var(--ink-700); }
.o61-q-ac__empty b { color: var(--err-600); }

.o61-q-ac--dio { width: 380px; padding: 8px 10px 10px; }
.o61-q-dl__mx { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; background: var(--navy-900); color: #fff; font-weight: 600; font-size: 14px; text-align: left; transition: background .14s; }
.o61-q-dl__mx:hover, .o61-q-dl__mx.is-active { background: var(--navy-800); box-shadow: 0 0 0 2px var(--gold-400); }
.o61-q-dl__mx .o61-ico { color: var(--gold-400); width: 18px; height: 18px; }
.o61-q-dl__mx small { margin-left: auto; font-size: 12px; color: #B8C4DE; font-weight: 500; }
.o61-q-dl__sec { display: flex; align-items: baseline; justify-content: space-between; margin: 12px 2px 6px; font: 700 12.5px var(--f-head); color: var(--navy-900); }
.o61-q-dl__sec small { font: 500 11.5px var(--f-ui); color: var(--ink-500); }
.o61-q-dl__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.o61-q-dch { position: relative; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: 700 13px/1 var(--f-head); color: var(--ink-900); font-variant-numeric: tabular-nums; transition: border-color .12s, background .12s; }
.o61-q-dch:hover { border-color: var(--blue-600); }
.o61-q-dch.is-active { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 2px rgba(29,87,219,.25); }
.o61-q-dch.is-cur { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.o61-q-dch.is-usual::after { content: ""; position: absolute; right: 3px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.o61-q-dch.is-strong { color: var(--gold-600); }
.o61-q-dch.is-out { background: repeating-linear-gradient(135deg, #F4F6FA 0 4px, #fff 4px 8px); color: var(--ink-400); text-decoration: line-through; cursor: not-allowed; }
.o61-q-dch.is-dim { opacity: .28; }
.o61-q-dl__legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; color: var(--ink-500); }
.o61-q-dl__legend i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); margin-right: 5px; vertical-align: 1px; }
.o61-q-dl__legend s { display: inline-block; width: 14px; height: 10px; margin-right: 5px; vertical-align: -1px; background: repeating-linear-gradient(135deg, #DDE2EB 0 2px, #fff 2px 4px); border: 1px solid var(--line); border-radius: 3px; }

/* ---------- мини-матрица модели ---------- */
.o61-q-mxp { position: fixed; inset: 0; z-index: 96; }
.o61-q-mxp__bg { position: absolute; inset: 0; background: rgba(6,18,41,.18); animation: o61q-fade .2s var(--ease); }
.o61-q-mxp__box { position: absolute; width: 600px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow: auto; background: #fff; border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(6,18,41,.45), 0 8px 18px -8px rgba(6,18,41,.2); animation: o61q-pop .25s var(--ease); }
.o61-q-mxh { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px 14px 14px; background: var(--g-navy); color: #fff; isolation: isolate; overflow: hidden; }
.o61-q-mxh::before { content: ""; position: absolute; inset: auto 0 0 0; height: 8px; z-index: -1; background: repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 1px, transparent 1px 10px) left bottom / 100% 5px no-repeat, repeating-linear-gradient(90deg, rgba(242,193,78,.35) 0 1px, transparent 1px 50px) left bottom / 100% 8px no-repeat; }
.o61-q-mxh img { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; background: #fff; }
.o61-q-mxh h3 { margin: 0; font: 800 18px/1.2 var(--f-head); }
.o61-q-nw { white-space: nowrap; } /* артикул в заголовке матрицы не рвётся («6009 а/6», QA 12.11) */
.o61-q-mxh p { margin: 2px 0 0; font-size: 12.5px; color: #B8C4DE; }
.o61-q-mxh__x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #C8D2EA; background: rgba(255,255,255,.08); }
.o61-q-mxh__x:hover { background: rgba(255,255,255,.16); color: #fff; }
.o61-q-mxs { display: flex; gap: 6px; padding: 12px 16px 0; }
/* «+ Плюс / Для близи · N из M», «− Минус / Для дали · …» — подписи как в карточке и окне быстрого заказа (Вадим 12.11) */
.o61-q-mxs button { flex: 1; min-width: 0; min-height: 46px; padding: 4px 10px; border-radius: 10px; border: 1.5px solid var(--line-2); font: 700 14px/1.1 var(--f-head); color: var(--ink-700); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.o61-q-mxs button i { font: 800 18px/1 var(--f-head); font-style: normal; color: var(--blue-600); }
.o61-q-mxs button[aria-pressed="true"] i { color: var(--gold-400); }
.o61-q-mxs__t { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; text-align: left; }
.o61-q-mxs button small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12px/1.1 var(--f-ui); color: var(--ink-500); }
.o61-q-mxs button[aria-pressed="true"] { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.o61-q-mxs button[aria-pressed="true"] small { color: var(--gold-300); }
.o61-q-mxb2 { padding: 12px 16px 6px; }
.o61-q-mxg { display: grid; grid-template-columns: 30px repeat(4, minmax(0, 1fr)); gap: 6px; align-items: center; }
.o61-q-mxg__ch { font-size: 11px; font-weight: 600; color: var(--ink-400); text-align: center; }
.o61-q-mxg__rl { font: 800 14px/1 var(--f-head); color: var(--navy-800); text-align: right; padding-right: 4px; font-variant-numeric: tabular-nums; }
.o61-q-mxg__div { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 11.5px; color: var(--ink-500); white-space: nowrap; }
.o61-q-mxg__div::before, .o61-q-mxg__div::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.o61-q-mxg__div b { height: 20px; padding: 0 8px; border-radius: 6px; background: #FFF3CF; border: 1px solid #F1D38B; color: #6B4A00; font: 700 11.5px/18px var(--f-ui); }
/* Ячейка (Вадим 12.11, единообразие с карточкой и окном): сверху диоптрия, снизу степпер «− N +»; поле вписывается
   с клавиатуры, кнопки вне Tab-порядка. Телефон — 2 в ряд, диоптрия слева, степпер справа (ниже, ≤ 760 px) */
.o61-q-mc2 { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 4px 4px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .12s, background .12s, box-shadow .12s; }
.o61-q-mc2__d { font: 700 13.5px/1 var(--f-head); color: var(--ink-900); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: center; cursor: text; }
.o61-q-mc2__stp { display: flex; align-items: center; border-radius: 8px; background: var(--bg-soft); transition: background .12s; }
.o61-q-mc2__stp button { flex: none; width: 30px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--navy-900); cursor: pointer; transition: background-color .12s, color .12s, transform .12s; }
.o61-q-mc2__stp button svg { width: 15px; height: 15px; stroke-width: 2.4; }
.o61-q-mc2__stp button:hover { background: #fff; color: var(--blue-600); }
.o61-q-mc2__stp button:active { transform: scale(.92); }
.o61-q-mc2__stp button:disabled { color: var(--no-500, #C3CAD6); background: none; cursor: default; transform: none; }
.o61-q-mc2 input { flex: 1; width: 0; min-width: 0; height: 32px; padding: 0; border: 0; border-radius: 7px; background: none; text-align: center; font: 800 15px/1 var(--f-head); color: var(--blue-600); outline: none; font-variant-numeric: tabular-nums; }
.o61-q-mc2 input::placeholder { color: var(--ink-400); font-weight: 600; }
.o61-q-mc2:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(29,87,219,.15); }
.o61-q-mc2.has { border-color: #A9C2F5; background: var(--blue-50); }
.o61-q-mc2.has .o61-q-mc2__stp { background: #fff; }
.o61-q-mc2.is-usual::after { content: ""; position: absolute; right: 5px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.o61-q-mc2.is-out { background: repeating-linear-gradient(135deg, #F4F6FA 0 5px, #fff 5px 10px); }
.o61-q-mc2.is-out .o61-q-mc2__d { color: var(--ink-400); text-decoration: line-through; cursor: default; }
.o61-q-mc2__no { display: grid; place-items: center; height: 32px; font: 600 11.5px/1 var(--f-ui); color: var(--ink-400); }
.o61-q-mc2--empty { visibility: hidden; }
/* фон итога непрозрачный: в WebKit сквозь полупрозрачный фон с blur просвечивали ячейки (QA 12.11) */
.o61-q-mxf { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.o61-q-mxf__t { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink-700); }
/* итог «3 диоптрии · 5 000 шт. · 3 916 ₽»: группы не рвутся, перенос только между ними, точка остаётся в конце строки */
.o61-q-mxf__g { white-space: nowrap; }
/* сам диалог получает фокус (tabindex −1), когда поле не фокусируем (тач): рамку не рисуем, Esc и Tab работают */
/* через id: общее .o61-shell [class*="o61-"]:focus-visible { outline … !important } из base.css иначе побеждало (QA 12.11, 768) */
#o61q-mx-box:focus, #o61q-mx-box:focus-visible, .o61-shell #o61q-mx-box:focus-visible { outline: none !important; }
.o61-q-mxf__t b { font: 800 16px var(--f-head); color: var(--ink-900); }
.o61-q-mxf__err { color: var(--err-600); font-weight: 600; }
.o61-q-mxf .o61-btn { --h: 44px; }
.o61-q-mxl { display: flex; gap: 14px; flex-wrap: wrap; padding: 4px 16px 10px; font-size: 11.5px; color: var(--ink-500); }
.o61-q-mxl i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); margin-right: 5px; vertical-align: 1px; }

/* ---------- сводка справа: мини-шкала бланка по диоптриям ---------- */
.o61-q-mru { margin-top: 14px; padding: 10px 12px 6px; border-radius: 14px; background: var(--g-navy); color: #fff; }
.o61-q-mru__h { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: #9DAAC6; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.o61-q-mru__h span:nth-child(2) { text-transform: none; letter-spacing: 0; font-size: 12px; color: #E3E9F7; font-weight: 500; }
.o61-q-mru__h span:nth-child(2) b { color: var(--gold-300); font: 800 13px var(--f-head); }
.o61-q-mru__h span:last-child { color: var(--gold-300); }
.o61-q-mru__s { position: relative; display: grid; grid-template-columns: repeat(55, 1fr); height: 62px; margin-top: 4px; }
.o61-q-mru__s::before { content: ""; position: absolute; left: 0; right: 0; top: 40px; height: 1px; background: rgba(255,255,255,.26); }
.o61-q-ms { position: relative; height: 100%; }
.o61-q-ms::before { content: ""; position: absolute; left: 50%; top: 40px; width: 1px; height: 4px; background: rgba(255,255,255,.3); }
.o61-q-ms.is-int::before { height: 8px; background: rgba(255,255,255,.6); }
.o61-q-ms.is-zero::before { height: 11px; width: 2px; margin-left: -.5px; background: #fff; }
.o61-q-ms__b { position: absolute; left: 12%; right: 12%; bottom: 22px; height: 34px; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #F9DC8A, #E2A52C); transform-origin: 50% 100%; transform: scaleY(calc(var(--h, 0) / 100)); transition: transform .35s var(--ease); }
.o61-q-ms__l { position: absolute; top: 50px; left: 50%; transform: translateX(-50%); font: 600 9.5px/1 var(--f-ui); color: #9DAAC6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.o61-q-ms.is-zero .o61-q-ms__l { color: #fff; }
.o61-q-ms:hover .o61-q-ms__b { background: #fff; }
.o61-q-side .o61-q-sumc .o61-btn--gold { margin-top: 14px; }
.o61-btn--gold.is-idle { background: var(--bg-soft); color: var(--ink-500); box-shadow: none; border: 1px solid var(--line-2); }
.o61-btn--gold.is-idle::after { display: none; }
.o61-q-sumc__bad { margin: 10px 0 0; font-size: 13px; color: var(--err-600); line-height: 1.4; display: flex; gap: 6px; align-items: flex-start; }
.o61-q-sumc__bad .o61-ico { width: 16px; height: 16px; margin-top: 1px; flex: none; }
.o61-q-sumc__bad button { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.o61-q-side .o61-q-sumc__note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.45; }
.o61-btn--gold small { font: 600 12.5px var(--f-ui); opacity: .75; margin-left: -2px; }
.o61-q-helpc__t { line-height: 1.4; }

/* ---------- планшет ---------- */
@media (max-width: 1280px) {
  .o61-q-grid { grid-template-columns: minmax(0, 1fr) 310px; }
  .o61-q-blank { --cols: 32px minmax(0, 1fr) 140px 112px 70px 86px 32px; }
  .o61-q-paste__body { grid-template-columns: minmax(0, 1fr) 260px; }
  .o61-q-xlz { grid-template-columns: minmax(0, 1fr) 290px; }
  .o61-q-last { max-width: 290px; }
  .o61-q-head::after { display: none; }
}
@media (max-width: 1100px) {
  .o61-q-grid { grid-template-columns: 1fr; }
  .o61-q-bh { position: static; }
  .o61-q-side { position: static; grid-template-columns: 1fr 1fr; }
}

/* ---------- телефон 390 ---------- */
@media (max-width: 760px) {
  .o61-q { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  /* липкий итог бланка вместо нижней панели оболочки и мобильного поиска (как в макете) */
  .o61-pg-quick .o61-mbar, .o61-pg-quick .o61-msearch { display: none !important; }
  .o61-q-d { display: none !important; }
  .o61-q-m { display: revert !important; }
  small.o61-q-m { display: block !important; }
  .o61-btn.o61-q-m { display: inline-flex !important; }
  .o61-q-crumbs { padding: 12px 0 10px; font-size: 13px; }
  .o61-q-grid { gap: 14px; }
  .o61-q-main { gap: 12px; }
  .o61-q-head { padding: 18px 16px 0; border-radius: 18px 18px 0 0; }
  .o61-q-head__top { flex-direction: column; gap: 14px; }
  .o61-q-head h1 { font-size: var(--t-25); }
  .o61-q-head__sub { display: none; }
  .o61-q-eyebrow { font-size: 11px; }
  .o61-q-last { max-width: none; width: 100%; padding: 10px 12px; }
  .o61-q-last .o61-q-kthumbs { display: none; }
  .o61-q-tabs { margin-top: 14px; gap: 4px; }
  .o61-q-tab { flex: 1; justify-content: center; padding: 0 8px; height: 46px; font-size: 13.5px; gap: 7px; }
  .o61-q-tabs__note { display: none; }
  .o61-q-src { border-radius: 0 0 18px 18px; }
  .o61-q-paste__bar { padding: 14px 16px; }
  .o61-q-paste__go { display: none; }
  .o61-q-paste__body { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .o61-q-paste__lbl { font-size: 15px; }
  .o61-q-area textarea { min-height: 150px; font-size: 16px; padding-left: 44px; }
  .o61-q-area__gut { width: 34px; }
  .o61-q-paste__btns .o61-btn { flex: 1; --h: 50px; padding: 0 12px; }
  .o61-q-paste__help { padding: 12px 0 0; border-left: 0; border-top: 1px dashed var(--line-2); }
  .o61-q-rules { font-size: 13px; }
  .o61-q-rules li:nth-child(n+3) { display: none; }
  .o61-q-xlz { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .o61-q-drop { min-height: 200px; padding: 22px 16px; }
  .o61-q-drop__t { font-size: 15px; }
  /* телефон: файл не перетаскивают, главная надпись «Выбрать файл» */
  .o61-q-drop__pc { display: none; }
  .o61-q-drop__ph { display: block; }
  .o61-q-xlm { display: none; }
  .o61-q-xlfile { padding: 14px 16px; flex-wrap: wrap; }
  .o61-q-xlfile .o61-btn { width: 100%; }
  .o61-q-rep { padding: 12px 14px; gap: 10px; }
  .o61-q-rep__t { flex-basis: 100%; }
  .o61-q-rc { height: 34px; }
  .o61-q-tgl { flex-basis: 100%; }
  .o61-q-done { padding: 16px 14px; }
  .o61-q-done__head { flex-wrap: wrap; }
  .o61-q-done__head .o61-btn { width: 100%; }

  /* бланк → карточки моделей */
  .o61-q-blank { background: none; border: 0; box-shadow: none; border-radius: 0; }
  .o61-q-bh { display: none; }
  .o61-q-bg { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-1); padding: 8px 12px 6px; margin-bottom: 10px; }
  .o61-q-bl { grid-template-columns: 92px minmax(0, 1fr) 118px 30px; grid-template-areas: "art art art art" "dio ps q x" "msg msg msg msg"; gap: 6px 8px; padding: 6px 0; min-height: 0; }
  .o61-q-bl:hover, .o61-q-bl:focus-within { background: none; }
  .o61-q-bl.is-cont { grid-template-areas: "dio ps q x" "msg msg msg msg"; border-top: 1px dashed var(--line); }
  .o61-q-bl.is-cont .o61-q-bl__art { display: none; }
  .o61-q-bl::before { left: -12px; }
  .o61-q-bl__n { display: none; }
  .o61-q-bl__art { grid-area: art; gap: 12px; }
  .o61-q-bl__img { width: 64px; height: 48px; }
  .o61-q-in--art { height: 44px; font-size: 20px; max-width: none; background: transparent; padding: 0 8px; }
  .o61-q-bl__name { font-size: 13px; padding-left: 8px; white-space: normal; }
  .o61-q-usual { padding-left: 8px; }
  .o61-q-bl__dio { grid-area: dio; }
  .o61-q-dio-btn { width: 100%; height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 8px 0 12px; border-radius: 11px; border: 1.5px solid var(--line-2); background: #fff; font: 800 17px/1 var(--f-head); color: var(--navy-900); font-variant-numeric: tabular-nums; }
  .o61-q-dio-btn .o61-ico { width: 16px; height: 16px; color: var(--blue-600); }
  .o61-q-dio-btn.is-empty { color: var(--ink-400); font-weight: 600; font-size: 14px; }
  .o61-q-bl.v-err .o61-q-dio-btn.is-bad { border-color: #E9A5A5; background: #FFF6F6; }
  .o61-q-bl.v-warn .o61-q-dio-btn.is-bad { border-color: #EBCB7E; background: #FFFBEF; }
  .o61-q-bl__ps { grid-area: ps; display: grid; gap: 2px; justify-items: start; min-width: 0; }
  .o61-q-bl__p { text-align: left; font-size: 12.5px; }
  .o61-q-bl__s { text-align: left; font-size: 15.5px; }
  .o61-q-bl__q { grid-area: q; }
  .o61-q-bl__q .o61-q-stepper { height: 44px; border-radius: 11px; }
  .o61-q-bl__q .o61-q-stepper button { width: 38px; }
  .o61-q-bl__q .o61-q-stepper input { width: 36px; font-size: 16px; }
  .o61-q-bl__x { grid-area: x; width: 30px; height: 44px; }
  .o61-q-bl__msg { grid-area: msg; padding: 0 0 2px; }
  .o61-q-bl.is-cont .o61-q-bl__msg { padding-left: 0; }
  .o61-q-bg__foot { padding: 6px 0 2px; border-top: 1px dashed var(--line); }
  .o61-q-bg__foot .o61-q-lnk { height: 40px; font-size: 13.5px; }
  .o61-q-bg__tot { flex-basis: 100%; margin-left: 0; order: -1; padding: 2px 0; }
  .o61-q-bl--draft { background: #fff; border: 1.5px dashed #B9C6DD; border-radius: 18px; padding: 10px 12px; grid-template-areas: "art art art art" "hint hint hint hint"; margin: 0; }
  .o61-q-bl--draft .o61-q-bl__dio, .o61-q-bl--draft .o61-q-bl__q, .o61-q-bl--draft .o61-q-bl__ps, .o61-q-bl--draft .o61-q-bl__x { display: none; }
  .o61-q-bl--draft .o61-q-in--art { border: 1.5px solid var(--line-2); background: var(--bg-soft); font-size: 17px; height: 48px; }
  .o61-q-bl--draft .o61-q-bl__img { display: none; }
  .o61-q-bl--draft .o61-q-bl__hint { grid-area: hint; font-size: 12.5px; }
  .o61-q-bfoot { padding: 4px 0 0; }
  .o61-q-bfoot #addRow { display: none; }

  .o61-q-ac { left: 12px !important; right: 12px; width: auto; }
  .o61-q-ac__it { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .o61-q-ac__it img { width: 52px; height: 39px; }
  .o61-q-mxp__bg { background: rgba(6,18,41,.55); }
  .o61-q-mxp__box { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-width: none; max-height: 92vh; border-radius: 22px 22px 0 0; }
  .o61-q-mxb2 { padding: 10px 12px 4px; }
  /* 12.11: со степперами четыре столбца на 375 не помещаются (ячейка ~77 px, а «− N +» с кнопками 40 px — 110 px).
     Делаем как в окне быстрого заказа: 2 в ряд по возрастанию, диоптрия слева, степпер справа; подписи ,00/,25 и рядов
     и пустые места прячем — порядок читается сам (+0,25, +0,5 … +4,0), сильные — после разделителя «+4,5…+6,0 · шаг 0,5» */
  .o61-q-mxg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .o61-q-mxg__ch, .o61-q-mxg__rl, .o61-q-mxg__sp, .o61-q-mxg .o61-q-mc2--empty { display: none; }
  .o61-q-mc2 { flex-direction: row; align-items: center; min-height: 54px; padding: 0 3px 0 10px; gap: 2px; }
  .o61-q-mc2__d { flex: 1 1 auto; min-width: 0; text-align: left; font-size: 15px; }
  .o61-q-mc2__stp, .o61-q-mc2.has .o61-q-mc2__stp { flex: none; background: none; }
  /* P2-9 и QA 11.11: зона нажатия «−/+» 40×44, поле 44 px высотой, 16 px — iOS не зумит */
  .o61-q-mc2__stp button { width: 40px; height: 44px; }
  .o61-q-mc2 input { flex: none; width: 30px; height: 44px; font-size: 16px; }
  .o61-q-mc2__no { height: auto; padding-right: 10px; }
  .o61-q-mxh__x { width: 44px; height: 44px; }
  .o61-q-mxs button { min-height: 48px; padding: 4px 8px; }
  /* вкладки «Плюс/Минус» прилипают к верху листа при прокрутке сетки — переключить сторону, не возвращаясь наверх */
  .o61-q-mxs { position: sticky; top: 0; z-index: 3; padding: 10px 12px 8px; background: #fff; border-bottom: 1px solid var(--line); }
  .o61-q-mxf { padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
  .o61-q-mxf .o61-btn { flex: none; }

  .o61-q-side { grid-template-columns: 1fr; }
  .o61-q-side .o61-q-sumc { padding: 18px 16px; }
  .o61-q-sumc__tot b { font-size: var(--t-25); }
  .o61-q-side .o61-q-helpc { display: grid; }
  .o61-q-mru { display: none; }
  .o61-q-msum.is-empty { transform: translateY(110%); pointer-events: none; }
}

/* ---------- сайт: состояния, которых нет в макете ---------- */
.o61-q { position: relative; } /* точка отсчёта для подсказок артикула и диоптрий */
.o61-q-drop__busy { display: none; font-size: 13.5px; font-weight: 600; color: var(--blue-600); }
.o61-q-drop.is-loading { pointer-events: none; }
.o61-q-drop.is-loading .o61-q-drop__busy { display: block; }
.o61-q-last.is-loading { opacity: .72; pointer-events: none; }
.o61-q-last.is-loading .o61-q-last__i .o61-ico { animation: o61-spin .8s linear infinite; }
.o61-q-in[disabled] { cursor: not-allowed; background: transparent; }
.o61-q-in[disabled]::placeholder { color: var(--ink-400); font-weight: 500; font-size: 13px; }
.o61-q-dio-btn[disabled] { color: var(--ink-400); font-weight: 500; font-size: 13px; background: var(--bg-soft); cursor: not-allowed; }
.o61-q-bl__msg a.o61-q-mchip { text-decoration: none; }
.o61-q-add.is-loading small { visibility: hidden; }
.o61-q-done:focus { outline: none; }
.o61-q-bstate .o61-ico { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
@media (max-width: 991px) {
  .o61-q-crumbs .o61-wrap, .o61-q > .o61-wrap { padding: 0 16px; }
}
.o61-q-bl__name b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o61-q-bfoot .o61-q-lnk { white-space: nowrap; flex: none; }
.o61-q-bl__name { display: block; }
.o61-q-bl__name > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o61-q-done, .o61-q-bl { scroll-margin-top: 88px; }
/* мини-матрица на узком телефоне (< 375): два степпера в ряд не влезают с кнопками 40 px — 36 px, поле 28 px */
@media (max-width: 374px) {
  .o61-q-mc2 { padding-left: 8px; }
  .o61-q-mc2__stp button { width: 36px; }
  .o61-q-mc2 input { width: 28px; }
  .o61-q-mc2__d { font-size: 14px; }
}

/* уведомления на телефоне — сверху, под шапкой (а не над липким итогом бланка); тут же: картинка, которая не загрузилась, — значок очков */
@media (max-width: 991px) {
  .o61-q-toasts { top: var(--o61-toast-top, 72px); left: 12px; right: 12px; width: auto; }
  .o61-q-toast { padding: 10px 14px 10px 10px; gap: 10px; font-size: 13.5px; line-height: 1.35; }
}
.o61-q img.is-noimg { background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A94AB' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 10.5h1M20.5 10.5h1M10 11.2c1.3-.9 2.7-.9 4 0'/%3E%3Crect x='3.5' y='8.5' width='6.5' height='6' rx='2.6'/%3E%3Crect x='14' y='8.5' width='6.5' height='6' rx='2.6'/%3E%3C/svg%3E") center / 50% no-repeat; }

/* ==== этап 10, A: наложения и переносы (начало) ==== */
/* быстрый заказ: кнопка «Добавить всё в корзину» помещается в колонку итога (310–340 px) */
.o61-q-add.o61-btn--lg { padding: 0 14px; gap: 8px; }
/* ==== этап 10, A: наложения и переносы (конец) ==== */
