/* ChefUp AI · 03 · очередь ИИ-агента (27.11.2026, «ИИ первым»). Копия qorgan-ops.css из QorğanAI; сценарий — chefup-ops.js.
   Свой префикс qo-. Цвета — только токены, --alert — только риск. Анимации — только transform и opacity; вне экрана стоят. Метки ниши — в конце файла. */

.qo-stage { display: block; min-height: 0; padding: clamp(14px, 3.2vw, 48px) clamp(12px, 3.2vw, 48px) clamp(34px, 4vw, 56px); border-radius: 32px; margin-top: 8px; }
.qo-win { position: relative; z-index: 1; width: 100%; border-radius: 20px; overflow: hidden; background: color-mix(in srgb, var(--surface) 97%, transparent); color: var(--ink); border: 1px solid var(--hair); box-shadow: var(--lift); }
.qo-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.qo-ava.ava { --s: 36px; flex: none; }
.qo-title { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qo-title b { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.qo-title i { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qo-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 12.5px; font-weight: 500; padding: 7px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 5%, transparent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qo-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--g3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--g3) 18%, transparent); }
.qo-status i.is-wait { background: var(--st-dirty); box-shadow: 0 0 0 4px color-mix(in srgb, var(--st-dirty) 18%, transparent); }

.qo-body { display: grid; grid-template-columns: minmax(0, 1fr) 372px; }

/* ── контуры: «Люди» — глубокий малахит, «Деньги» — светлый малахит, «Данные» — нейтральный ── */
.qo-stage .is-p { --kc: var(--g1); --ki: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7.5' r='3.5'/%3E%3Cpath d='M5 20.5c0-3.9 3.1-7 7-7s7 3.1 7 7'/%3E%3C/svg%3E"); }
.qo-stage .is-m { --kc: color-mix(in srgb, var(--g2) 50%, var(--g3)); --ki: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='19' height='12' rx='2.5'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3Cpath d='M6 9.5v.01M18 14.5v.01'/%3E%3C/svg%3E"); }
.qo-stage .is-d { --kc: color-mix(in srgb, var(--muted) 85%, var(--ink)); --ki: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5.5' rx='7' ry='2.5'/%3E%3Cpath d='M5 5.5v13c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5v-13M5 12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .qo-stage .is-m { --kc: var(--g2); }
:root[data-theme="dark"] .qo-stage .is-d { --kc: var(--muted); }
.qo-k i, .qo-mini span i, .qo-fly i { flex: none; width: 13px; height: 13px; background: var(--kc); -webkit-mask: var(--ki) center / contain no-repeat; mask: var(--ki) center / contain no-repeat; }

/* ── очередь операций ── */
.qo-queue { min-width: 0; display: flex; flex-direction: column; padding: 14px 16px 14px; }
/* строки делят свободную высоту поровну, если правая колонка выше очереди */
.qo-vp { flex: 1 1 auto; display: flex; flex-direction: column; }
.qo-qh { margin: 0 0 6px; padding: 0 4px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.qo-qh b { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.qo-qh span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--muted); }
.qo-list { flex: 1 1 auto; list-style: none; margin: 0; padding: 0; position: relative; display: grid; transition: transform 0.7s var(--ease); }
.qo-op { position: relative; display: grid; grid-template-columns: 86px minmax(0, 1fr) 126px; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--hair); }
.qo-op:last-child { border-bottom-color: transparent; }
.qo-op > * { position: relative; z-index: 1; }
/* текущая строка: лёгкая подсветка и полоса прогресса */
.qo-op::before { content: ""; position: absolute; z-index: 0; inset: -1px -4px; border-radius: 12px; background: color-mix(in srgb, var(--hot) 7%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hot) 24%, transparent); opacity: 0; transition: opacity 0.35s var(--ease); }
.qo-op.is-cur::before { opacity: 1; }
.qo-bar { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; overflow: hidden; background: color-mix(in srgb, var(--hot) 15%, transparent); opacity: 0; transition: opacity 0.3s; }
.qo-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--g1), var(--g3)); transform-origin: 0 50%; }
.qo-op.is-cur .qo-bar { opacity: 1; }

.qo-k { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; line-height: 1; padding: 5px 9px 5px 7px; border-radius: 8px; white-space: nowrap; background: color-mix(in srgb, var(--kc) 14%, var(--surface)); }
.qo-w { margin: 0; min-width: 0; font-size: 11.5px; line-height: 1.4; }
.qo-w b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.qo-w small { font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.qo-w em { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.02em; line-height: 1.4; color: var(--hot-ink); white-space: nowrap; margin-left: 6px; }

/* статус: в очереди → готовит → на подписи → подписано */
.qo-s { --sc: var(--muted); justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; padding: 5px 9px 5px 6px; border-radius: 8px; white-space: nowrap; color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, transparent); }
.qo-s i, .qo-leg i { flex: none; width: 13px; height: 13px; border-radius: 50%; box-sizing: border-box; }
.is-q .qo-s i { border: 1.5px dashed currentColor; opacity: 0.8; }
.is-prep .qo-s { --sc: var(--hot-ink); background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hot) 40%, transparent); }
.is-prep .qo-s i, .qo-leg .is-prep i { border: 2px solid color-mix(in srgb, var(--hot) 22%, transparent); border-top-color: var(--hot); }
.is-prep .qo-s i { animation: qoSpin 0.8s linear infinite; }
@keyframes qoSpin { to { transform: rotate(360deg); } }
.is-sign .qo-s { --sc: var(--st-dirty); }
.is-sign .qo-s i, .qo-leg .is-sign i { border-radius: 0; background: var(--st-dirty); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.5 4.5l4 4L8 20H4v-4z'/%3E%3Cpath d='M13 7l4 4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.5 4.5l4 4L8 20H4v-4z'/%3E%3Cpath d='M13 7l4 4'/%3E%3C/svg%3E") center / contain no-repeat; }
.is-done .qo-s { --sc: var(--hot-ink); background: color-mix(in srgb, var(--g3) 14%, transparent); }
.is-done .qo-s i, .qo-leg .is-done i { background: var(--g3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 10px no-repeat; }
:root[data-theme="dark"] .is-done .qo-s i, :root[data-theme="dark"] .qo-leg .is-done i { background-color: color-mix(in srgb, var(--g1) 80%, #000); }
.qo-s.is-pop { animation: qoPop 0.45s var(--ease); }
@keyframes qoPop { 0% { transform: scale(0.82); opacity: 0.3; } 70% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }

.qo-leg { margin: 12px 0 0; padding: 10px 4px 0; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 11.5px; color: var(--muted); }
.qo-leg span { display: inline-flex; align-items: center; gap: 6px; }
.qo-leg i { width: 12px; height: 12px; }
.qo-leg .is-done i { background-size: 9px; }
.qo-leg b { font-weight: 400; opacity: 0.6; }
.qo-leg em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; }

/* ── правая колонка: освобождённые часы и текущая операция ── */
.qo-side { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-left: 1px solid var(--hair); background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.qo-hrs { position: relative; border-radius: 16px; padding: 14px 16px 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair), var(--lift-sm); }
.qo-hrs-k { margin: 0; max-width: 24ch; font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--muted); }
.qo-hrs-n { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.qo-hrs-n b { min-width: 3ch; font-size: 54px; font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; font-variant-numeric: tabular-nums; color: var(--ink); }
.qo-hrs-u { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); }
.qo-hrs-n em { margin-left: auto; align-self: center; font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.03em; padding: 5px 8px; border-radius: 8px; color: var(--hot-ink); background: color-mix(in srgb, var(--hot) 12%, transparent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qo-mini { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qo-mini li { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.qo-mini li > span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.qo-mini b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.qo-mini u { display: block; height: 4px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--kc) 16%, transparent); }
.qo-mini u i { display: block; height: 100%; border-radius: 3px; background: var(--kc); transform-origin: 0 50%; transform: scaleX(var(--v, 0.3)); transition: transform 0.8s var(--ease); }
/* прибавка часов: всплывает у счётчика и гаснет */
.qo-fly { position: absolute; right: 14px; top: 12px; display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; padding: 5px 8px; border-radius: 8px; color: var(--ink); background: color-mix(in srgb, var(--kc) 18%, var(--surface)); box-shadow: var(--lift-sm); pointer-events: none; animation: qoFly 1.6s var(--ease) forwards; }
@keyframes qoFly { 0% { opacity: 0; transform: translateY(10px) scale(0.9); } 18% { opacity: 1; transform: none; } 70% { opacity: 1; transform: translateY(-2px); } 100% { opacity: 0; transform: translateY(-12px); } }

.qo-cur { margin: 4px 2px -2px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.qo-cur b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

/* документы лежат в одной клетке сетки: высота блока — по самому высокому, при смене документа ничего не прыгает */
.qo-docs { position: relative; flex: 1 1 auto; display: grid; }
.qo-doc { grid-area: 1 / 1; position: relative; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 15px 15px 13px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair), var(--lift-sm); opacity: 0; transform: translateY(10px) scale(0.985); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); }
.qo-doc.is-on { opacity: 1; transform: none; }
.qo-doc:not(.is-card)::before { content: ""; position: absolute; left: 15px; right: 15px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--g1), var(--g3)); }
.qo-dh { display: flex; flex-direction: column; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.qo-dk { margin: 0 0 2px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qo-dk span { min-width: 0; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hot-ink); }
.qo-dk span::before { content: ""; flex: none; width: 13px; height: 13px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6.5A1.5 1.5 0 0 0 5 4.5v15A1.5 1.5 0 0 0 6.5 21h11a1.5 1.5 0 0 0 1.5-1.5V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6.5A1.5 1.5 0 0 0 5 4.5v15A1.5 1.5 0 0 0 6.5 21h11a1.5 1.5 0 0 0 1.5-1.5V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E") center / contain no-repeat; }
.qo-dk em { flex: none; font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.05em; padding: 3px 7px; border-radius: 6px; color: var(--muted); background: color-mix(in srgb, var(--ink) 6%, transparent); white-space: nowrap; }
.qo-dt { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.qo-doc.is-card .qo-dt { font-size: 15.5px; }
.qo-dm { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; line-height: 1.4; color: var(--muted); }

/* поля документа: подпись поля, значение, отметка проверки; пока ИИ готовит — серая заготовка строки */
.qo-f { margin: 0; display: grid; }
.qo-f > div { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.38fr) 16px; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed color-mix(in srgb, var(--ink) 12%, transparent); }
.qo-f > div:last-child { border-bottom: 0; }
.qo-f dt { grid-column: 1; grid-row: 1; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.qo-f dd { grid-column: 2; grid-row: 1; margin: 0; font-size: 12.5px; font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; transition: opacity 0.3s; }
.qo-f.is-num dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.qo-f > div::before { content: ""; grid-column: 3; grid-row: 1; width: 16px; height: 16px; border-radius: 50%; transition: opacity 0.3s; }
.qo-f > div.is-ok::before { background: var(--g3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 11px no-repeat; }
:root[data-theme="dark"] .qo-f > div.is-ok::before { background-color: color-mix(in srgb, var(--g1) 80%, #000); }
.qo-f > div.is-risk::before { background: var(--alert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 6.5v7M12 17.5v.01'/%3E%3C/svg%3E") center / 11px no-repeat; }
.qo-f > div.is-risk dd { color: var(--alert); }
.qo-f > div::after { content: ""; grid-column: 2; grid-row: 1; width: 72%; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 9%, transparent); opacity: 0; transition: opacity 0.3s; }
.qo-f > div.is-hide dd, .qo-f > div.is-hide::before { opacity: 0; }
.qo-f > div.is-hide::after { opacity: 1; }
.qo-f > div.is-pop dd { animation: qoIn 0.4s var(--ease); }
.qo-f > div.is-pop::before { animation: qoPop 0.45s var(--ease); }
@keyframes qoIn { from { opacity: 0; transform: translateX(-6px); } }

.qo-src { margin: 0; display: flex; align-items: flex-start; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.03em; line-height: 1.45; color: var(--muted); }
.qo-src::before { content: ""; flex: none; width: 11px; height: 11px; margin-top: 2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3.2-3.2a4.5 4.5 0 0 0-6.4-6.4L12 5.6M14 10a4.5 4.5 0 0 0-6.4 0l-3.2 3.2a4.5 4.5 0 0 0 6.4 6.4l1.2-1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3.2-3.2a4.5 4.5 0 0 0-6.4-6.4L12 5.6M14 10a4.5 4.5 0 0 0-6.4 0l-3.2 3.2a4.5 4.5 0 0 0 6.4 6.4l1.2-1.2'/%3E%3C/svg%3E") center / contain no-repeat; }

/* подписи: кто подписывает и место для штампа ЭЦП */
.qo-sg { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k st" "w w"; align-items: end; gap: 7px 10px; padding-top: 11px; border-top: 1px solid var(--hair); }
.qo-sgk { grid-area: k; min-width: 0; padding-bottom: 1px; font-size: 11.5px; color: var(--muted); }
.qo-whos { grid-area: w; min-width: 0; display: flex; flex-wrap: wrap; gap: 5px 6px; }
.qo-who { display: inline-flex; white-space: nowrap; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; line-height: 1.2; padding: 4px 8px 4px 6px; border-radius: 8px; color: var(--ink); background: color-mix(in srgb, var(--st-dirty) 12%, transparent); }
.qo-who::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box; border: 1.5px dashed var(--st-dirty); }
.qo-who.is-ok { background: color-mix(in srgb, var(--g3) 14%, transparent); }
.qo-who.is-ok::before { border: 0; background: var(--g3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 9px no-repeat; }
:root[data-theme="dark"] .qo-who.is-ok::before { background-color: color-mix(in srgb, var(--g1) 80%, #000); }
.qo-who.is-pop { animation: qoPop 0.45s var(--ease); }
.qo-stamp { grid-area: st; display: grid; width: 122px; height: 44px; }
.qo-ph, .qo-st { grid-area: 1 / 1; display: grid; place-items: center; align-content: center; border-radius: 9px; }
.qo-ph { border: 1.5px dashed color-mix(in srgb, var(--muted) 45%, transparent); font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; color: color-mix(in srgb, var(--muted) 85%, transparent); transition: opacity 0.3s; }
.qo-st { gap: 2px; padding: 0 6px; border: 2px solid var(--hot); color: var(--hot); background: color-mix(in srgb, var(--hot) 7%, var(--surface)); opacity: 0; transform: rotate(-7deg) scale(1.6); transition: opacity 0.2s, transform 0.45s cubic-bezier(0.3, 1.45, 0.5, 1); }
:root[data-theme="dark"] .qo-st { color: var(--hot-ink); }
.qo-st b { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.07em; line-height: 1.15; text-transform: uppercase; text-align: center; }
.qo-st i { font-style: normal; font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.06em; opacity: 0.8; }
.qo-doc.is-signed .qo-ph { opacity: 0; }
.qo-doc.is-signed .qo-st { opacity: 1; transform: rotate(-7deg); }

/* смена круга: очередь и документ на мгновение гаснут */
.qo-list, .qo-docs, .qo-hrs { transition: opacity 0.35s var(--ease), transform 0.7s var(--ease); }
.qo-win.is-reset .qo-list, .qo-win.is-reset .qo-docs, .qo-win.is-reset .qo-hrs { opacity: 0.25; }

.qo-stage:not(.is-vis) *, .qo-stage:not(.is-vis) *::before, .qo-stage:not(.is-vis) *::after { animation-play-state: paused !important; }

/* компьютер поуже: правая колонка уже */
@media (max-width: 1240px) and (min-width: 1101px) {
  .qo-body { grid-template-columns: minmax(0, 1fr) 340px; }
  .qo-op { grid-template-columns: 82px minmax(0, 1fr) 122px; gap: 10px; }
}
/* планшет: под очередью часы одной полосой во всю ширину, под ними документ */
@media (max-width: 1100px) {
  .qo-body { grid-template-columns: minmax(0, 1fr); }
  .qo-side { border-left: 0; border-top: 1px solid var(--hair); }
  .qo-hrs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); grid-template-areas: "k m" "n m"; align-items: center; column-gap: 22px; }
  .qo-hrs-k { grid-area: k; align-self: end; }
  .qo-hrs-n { grid-area: n; align-self: start; }
  .qo-mini { grid-area: m; margin: 0; padding: 4px 0 4px 22px; border-top: 0; border-left: 1px solid var(--hair); }
  .qo-f > div { grid-template-columns: minmax(0, 210px) minmax(0, max-content) 16px; justify-content: start; }
}
@media (max-width: 720px) {
  .qo-stage { border-radius: 26px; }
  .qo-win { border-radius: 16px; }
  .qo-top { padding: 10px 12px; flex-wrap: wrap; row-gap: 8px; }
  .qo-title { flex: 1 1 0; }
  .qo-title i { white-space: normal; }
  .qo-status { margin-left: 0; order: 3; width: 100%; justify-content: center; font-size: 12px; }
  .qo-side { padding: 12px; }
  .qo-leg em { margin-left: 0; flex-basis: 100%; }
}
/* телефон: окно очереди на пять строк, оно сдвигается за текущей операцией; документ под очередью */
@media (max-width: 560px) {
  .qo-queue { padding: 12px 10px 12px; }
  .qo-vp { --rh: 96px; --rg: 6px; display: block; height: calc(5 * var(--rh) + 4 * var(--rg)); overflow: hidden; }
  .qo-list { gap: var(--rg); }
  .qo-op { height: var(--rh); box-sizing: border-box; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k s" "w w"; align-items: center; align-content: center; gap: 6px 8px; padding: 8px 10px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--ink) 3%, var(--surface)); }
  .qo-k, .qo-s { padding-top: 4px; padding-bottom: 4px; }
  .qo-op::before { inset: 0; }
  .qo-k { grid-area: k; }
  .qo-s { grid-area: s; }
  .qo-w { grid-area: w; align-self: start; }
  .qo-w b { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .qo-w small { display: none; }
  .qo-w em { display: block; margin: 2px 0 0; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
  .qo-bar { left: 10px; right: 10px; bottom: 3px; }
  .qo-hrs { display: block; padding: 13px 14px; }
  .qo-mini { margin: 12px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--hair); }
  .qo-hrs-n b { font-size: 46px; }
  .qo-mini { gap: 10px; }
  .qo-doc { padding: 14px 13px 12px; }
  /* поля документа: подпись над значением */
  .qo-f > div { grid-template-columns: minmax(0, 1fr) 16px; gap: 2px 8px; padding: 6px 0; }
  .qo-f dt { grid-column: 1; grid-row: 1; font-size: 11px; }
  .qo-f dd { grid-column: 1; grid-row: 2; }
  .qo-f > div::before { grid-column: 2; grid-row: 1 / span 2; }
  .qo-f > div::after { grid-column: 1; grid-row: 2; width: 60%; }
  .qo-stamp { width: 112px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .qo-s i, .qo-fly { animation: none !important; }
  .qo-list, .qo-docs, .qo-hrs, .qo-doc, .qo-st { transition: none; }
}

/* ── метки ниши: значки поверх меток QorğanAI ── */
.qo-stage .is-m { --ki: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='19' height='12' rx='2.5'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3C/svg%3E"); }
.qo-stage .is-p { --ki: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7.5' r='3.5'/%3E%3Cpath d='M4.5 20.5a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E"); }
.qo-stage .is-d { --ki: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 14a4 4 0 1 1 2.2-7.4A4 4 0 0 1 16.8 6.6 4 4 0 1 1 17 14'/%3E%3Cpath d='M7 14v6h10v-6M7 17h10'/%3E%3C/svg%3E"); }
