
    /* 3D Make: запись сцены из чата и подпись, как у плитки «Артефактов» */
    .op-3d { width: 250px; display: flex; flex-direction: column; align-items: flex-end; }
    .op-3d .op-fabs { margin-bottom: 6px; }
    .op-view { width: 100%; aspect-ratio: 520 / 324; overflow: hidden; border: 1px solid var(--mk-border-2); border-bottom: 0; border-radius: 18px 18px 0 0; background: #fcfcfb; }
    .op-view video { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.6); transform-origin: 56% 50%; }
    .op-3d .op-foot { align-self: stretch; background: var(--mk-panel); }
    @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .op-view { background: #151515; } }
    :root[data-theme="dark"] .op-view { background: #151515; }

    /* Таблица: строка формул, сетка, палитра и курсор соавтора */
    .op-sheet { width: 214px; overflow: visible; border: 1px solid var(--mk-border-2); border-radius: 16px; background: var(--mk-panel); box-shadow: var(--op-shadow); }
    .op-fbar { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 9px; border-bottom: 1px solid var(--mk-border-2); font: 10.5px var(--mk-mono); }
    .op-fbar span { color: var(--mk-fg-3); font-family: var(--mk-sans); font-style: italic; }
    .op-ftyped { overflow: hidden; white-space: nowrap; max-width: 13ch; font-weight: 400; color: var(--tint); }
    .op-grid { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 10.5px; }
    .op-grid th, .op-grid td { height: 22px; padding: 0 6px; border-right: 1px solid var(--mk-border-3); border-bottom: 1px solid var(--mk-border-3); text-align: right; font-weight: 400; white-space: nowrap; }
    .op-grid tr:last-child > * { border-bottom: 0; }
    .op-grid th { width: 18px; padding: 0; text-align: center; color: var(--mk-fg-3); background: var(--mk-bg-2); font-size: 9px; }
    .op-grid tr:first-child th:nth-child(2) { width: 66px; } .op-grid tr:first-child th:nth-child(3) { width: 52px; } .op-grid tr:first-child th:nth-child(4) { width: auto; }
    .op-grid td:nth-child(2) { text-align: left; }
    .op-grid tr:last-child td { font-weight: 600; }
    .op-total span { color: var(--tint); }
    .op-swatches { position: absolute; left: 92px; top: 20px; z-index: 1; display: flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid var(--mk-border-2); border-radius: 11px;
        background: var(--mk-panel); box-shadow: var(--op-shadow); color: var(--mk-fg-3); opacity: 0; }
    .op-swatches .icon { width: 12px; height: 12px; }
    .op-swatches i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
    .op-swatches i.on { box-shadow: 0 0 0 2px var(--mk-panel), 0 0 0 3.5px var(--c); }
    .op-pointer { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: flex-start; color: var(--who); opacity: 0; }
    .op-pointer .icon { width: 16px; height: 16px; fill: currentColor; stroke: var(--mk-panel); }
    .op-pointer b { margin: 13px 0 0 -2px; padding: 1px 5px; border-radius: 5px; background: var(--who); color: #fff; font: 600 10px/1.4 var(--mk-sans); }
    .op.on .op-pointer { animation: op-cursor 4.6s .5s var(--mk-ease) both; }
    .op.on .op-swatches { animation: op-hold 1.2s 1.3s ease both; }
    .op.on .op-head td { animation: op-paint .35s 2s ease both; }
    .op.on .op-total { animation: op-cell .2s 3.2s ease both; }
    .op.on .op-ftyped { animation: op-type 1.1s 3.4s steps(12) both; }
    .op.on .op-total span { animation: op-pop .35s 4.6s var(--mk-ease) both; }
    @keyframes op-cursor {
        0% { opacity: 0; translate: 175px 170px; }
        10% { opacity: 1; }
        28%, 50% { translate: 66px 56px; }
        70%, 100% { opacity: 1; translate: 150px 148px; }
    }
    @keyframes op-hold { 0% { opacity: 0; transform: scale(.85); } 20%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
    @keyframes op-paint { to { background: color-mix(in srgb, var(--tint) 22%, transparent); font-weight: 600; } }
    @keyframes op-cell { to { box-shadow: inset 0 0 0 1.5px var(--tint); background: color-mix(in srgb, var(--tint) 8%, transparent); } }

    /* Ответ с формулами */
    .op-math .op-bubble { margin-left: 24px; }
    .op-step { display: flex; align-items: center; gap: 6px; color: var(--mk-fg-3); font-size: 11px; }
    .op-step .icon { width: 12px; height: 12px; color: var(--tint); }
    .op-formula { margin-top: 6px; overflow: hidden; font-size: 10.5px; color: var(--mk-fg); }
    .op-formula .katex-display { margin: .35em 0; }
    .op.on .op-formula { animation: op-rise .6s 1.4s ease both; }
