/* Экран оператора ФРС. Фирменные цвета и разметка карты как в веб-интерфейсе раскроя. */
:root{
  --brand:#FE7837;--brand-dark:#E4652A;--brand-soft:rgba(254,120,55,.12);--brand-soft2:rgba(254,120,55,.28);
  --ink:#4B474E;--ink-2:#211E1D;--muted:#918F96;--line:rgba(75,71,78,.12);--line-2:rgba(75,71,78,.22);
  --bg:#F7F7F9;--card:#fff;--ok:#2E9E5B;--ok-soft:#E3F4E9;--warn:#D98A1E;--warn-soft:#FFF1DC;--bad:#F14444;--bad-soft:#FDE4E4;
  --info:#3A7BD5;--info-soft:#E4EEFB;--waste:#E6E2DE;--radius:12px;--shadow:0 1px 2px rgba(33,30,29,.06),0 4px 16px rgba(33,30,29,.05)
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:14px/1.45 Montserrat,"Segoe UI",Roboto,-apple-system,Arial,sans-serif;background:var(--bg);color:var(--ink)}
a{color:var(--brand-dark)}
h1{font-size:22px;font-weight:600;margin:0 0 4px;color:var(--ink-2);letter-spacing:-.01em}
h2{font-size:15px;font-weight:600;margin:20px 0 10px;color:var(--ink-2)}
h3{font-size:14px;font-weight:600;margin:0 0 6px;color:var(--ink-2)}

/* ---- элементы форм */
button,.btn{cursor:pointer;border:1px solid var(--line-2);background:#fff;color:var(--ink);border-radius:8px;padding:7px 14px;font:inherit;font-weight:500;line-height:1.2;transition:.15s;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
button:hover,.btn:hover{border-color:var(--brand);color:var(--brand-dark);background:#fff}
button.primary,.btn.primary{background:var(--brand);color:#fff;border-color:var(--brand)}
button.primary:hover,.btn.primary:hover{background:var(--brand-dark);border-color:var(--brand-dark);color:#fff}
button.soft{background:var(--brand-soft);border-color:transparent;color:var(--brand-dark)}
button.soft:hover{background:var(--brand-soft2)}
button.danger{color:var(--bad);border-color:rgba(241,68,68,.4)}
button.danger:hover{background:var(--bad-soft);border-color:var(--bad);color:var(--bad)}
button.grey{background:#EDECEF;border-color:#EDECEF;color:var(--ink)}
button.grey:hover{background:#E2E1E5;border-color:#E2E1E5}
button.ghost{border-color:transparent;background:transparent;color:var(--muted);padding:6px 8px}
button.ghost:hover{background:var(--bg);color:var(--ink)}
button.sm,.btn.sm{padding:4px 10px;font-size:12px;border-radius:6px}
button:disabled{opacity:.45;cursor:default}
input,select,textarea{border:1px solid var(--line-2);border-radius:8px;padding:7px 10px;font:inherit;color:var(--ink);background:#fff;outline:none}
input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
label{display:inline-flex;align-items:center;gap:6px;color:var(--ink)}
label.fld{flex-direction:column;align-items:flex-start;gap:3px}
label.fld>span{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-weight:600}
input[type=checkbox]{accent-color:var(--brand);width:16px;height:16px}

/* ---- карточки, бейджи, прогресс */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;box-shadow:var(--shadow)}
.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:600;background:#EEEDF0;color:var(--ink);white-space:nowrap;vertical-align:middle}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.8}
.badge.planned,.badge.new{background:#EEEDF0;color:var(--ink)}
.badge.optimized{background:var(--info-soft);color:var(--info)}
.badge.sent,.badge.maintenance,.badge.in_production{background:var(--warn-soft);color:var(--warn)}
.badge.accepted,.badge.ok{background:var(--ok-soft);color:var(--ok)}
.badge.cutting{background:var(--brand-soft);color:var(--brand-dark)}
.badge.done{background:var(--ok);color:#fff}
.badge.rejected,.badge.broken,.badge.cancelled{background:var(--bad-soft);color:var(--bad)}
.badge.pc{background:#EDE4FB;color:#6B3FC4}
.bar{height:8px;background:#ECEBEE;border-radius:4px;overflow:hidden}
.bar>div{height:100%;background:var(--brand);border-radius:4px;transition:width .3s}
.bar.ok>div{background:var(--ok)}
.bar.thin{height:5px}

/* ---- SVG карты */
svg.pattern{font-family:Montserrat,Arial,sans-serif}
svg.pattern .sheet{fill:#F3F0EC;stroke:#4B474E;stroke-width:2}
svg.pattern .waste{fill:url(#hatch);stroke:none}
svg.pattern rect.part{stroke:rgba(33,30,29,.55);stroke-width:1.2;transition:.15s}
svg.pattern rect.part.hl,svg.pattern rect.part:hover{stroke:var(--brand-dark);stroke-width:5;filter:brightness(.96)}
svg.pattern rect.offcut{fill:rgba(46,158,91,.14);stroke:#2E9E5B;stroke-width:2;stroke-dasharray:14 8}
svg.pattern text{fill:#211E1D;pointer-events:none}
svg.pattern text.dim{fill:#5f5a63}
svg.pattern text.off{fill:#1f7a43;font-weight:600}
svg.pattern .cut{stroke-linecap:butt}
svg.pattern .cut.head{stroke:#F14444}
svg.pattern .cut.rip{stroke:#3A7BD5}
svg.pattern .cut.cross{stroke:#4B474E}
svg.pattern .cut.recut{stroke:#6B3FC4}
svg.pattern .cutno circle{fill:#4B474E}
svg.pattern .cutno.head circle{fill:#F14444}.svg.pattern .cutno.rip circle{fill:#3A7BD5}
svg.pattern .cutno.rip circle{fill:#3A7BD5}.svg.pattern .cutno.recut circle{fill:#6B3FC4}
svg.pattern .cutno.recut circle{fill:#6B3FC4}
svg.pattern .cutno text{fill:#fff;font-weight:700;text-anchor:middle}
svg.pattern .ruler{stroke:#918F96;stroke-width:1.5}
svg.pattern .grain{stroke:rgba(33,30,29,.45);stroke-width:2;fill:none}

.swatch{display:inline-block;width:12px;height:12px;border-radius:3px;border:1px solid rgba(0,0,0,.15);vertical-align:-1px;margin-right:6px}
#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%) translateY(10px);background:var(--ink-2);color:#fff;padding:10px 16px;border-radius:10px;opacity:0;transition:.25s;pointer-events:none;max-width:80vw;font-weight:500;box-shadow:0 8px 24px rgba(0,0,0,.2)}
#toast.show{opacity:1;transform:translateX(-50%)}
#toast.err{background:var(--bad)}
.spinner{display:inline-block;width:14px;height:14px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
button.info{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border-radius:50%;border:1px solid var(--line-2);background:#fff;color:var(--muted);font-size:12px;font-weight:700;line-height:1;vertical-align:middle;margin-left:6px;font-family:Georgia,serif;font-style:italic}
button.info:hover{border-color:var(--brand);color:var(--brand-dark)}
.modal-back{position:fixed;inset:0;background:rgba(33,30,29,.45);z-index:50;display:flex;align-items:center;justify-content:center;padding:20px}
.modal{background:#fff;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.3);max-width:760px;width:100%;max-height:90vh;overflow:auto;padding:20px 24px}
.modal h2{margin:0 0 12px;font-size:18px}
.modal h3{margin:16px 0 6px}
.modal .close{float:right}
.modal table{box-shadow:none;border:1px solid var(--line)}
.formula{font-family:ui-monospace,Menlo,monospace;font-size:13px;background:#F7F7F9;border-radius:8px;padding:10px 12px;margin:8px 0;white-space:pre-wrap}
.modal:has(.mset-form){max-width:960px}

/* ---- экран оператора ФРС: сенсорный экран, шрифт от 18 px, кнопки от 56 px */
body{overflow:hidden;font-size:18px}
.op{height:100vh;height:100dvh;display:flex;flex-direction:column;background:#EFEEF1;font-size:18px}
.op-top{display:flex;align-items:center;gap:14px;padding:8px 14px;background:#fff;border-bottom:1px solid var(--line);min-height:72px}
.op-back{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:12px;font-size:34px;text-decoration:none;color:var(--ink);background:#F3F2F4}
.op-title{display:flex;flex-direction:column;line-height:1.2}.op-title b{font-size:20px;color:var(--ink-2)}.op-title span{font-size:14px;color:var(--muted)}
.op-ctitle{flex:1;display:flex;flex-direction:column;line-height:1.2;padding-left:16px;border-left:1px solid var(--line);min-width:0}
.op-ctitle:empty{border:0}
.op-ctitle b{font-size:22px;color:var(--ink-2)}.op-ctitle span{font-size:15px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.op-icon{min-width:56px;height:56px;justify-content:center;font-size:24px;border-radius:12px;padding:0 12px}
.op-switch{gap:10px;font-size:16px;cursor:pointer;user-select:none;min-height:56px;padding:0 6px}
.op-switch input{position:absolute;opacity:0;pointer-events:none}
.op-switch span{width:52px;height:30px;border-radius:15px;background:#D6D4DA;position:relative;transition:.2s;flex:none}
.op-switch span::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.2s}
.op-switch input:checked+span{background:var(--ok)}.op-switch input:checked+span::after{left:25px}
.op-switch input:focus-visible+span{box-shadow:0 0 0 3px var(--brand-soft2)}
.op-body{flex:1;display:flex;min-height:0}
.op-queue{width:380px;flex:none;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;transition:width .25s}
.op-queue.collapsed{width:76px}
.op-qhead{padding:12px;display:flex;flex-direction:column;gap:8px;border-bottom:1px solid var(--line)}
.op-input{font-size:18px;min-height:56px;padding:10px 14px;border-radius:10px;width:100%}
.op-qlist{overflow:auto;flex:1;padding:6px}
.op-qitem{width:100%;display:grid;grid-template-columns:64px 1fr auto;gap:10px;align-items:center;text-align:left;padding:12px 10px;margin:0 0 6px;border-radius:12px;border:1px solid var(--line);min-height:72px;font-size:16px}
.op-qitem.active{border-color:var(--brand);background:var(--brand-soft);box-shadow:inset 4px 0 0 var(--brand)}
.op-qn{font-size:22px;font-weight:700;color:var(--ink-2)}
.op-qt{display:flex;flex-direction:column;min-width:0;line-height:1.3}.op-qt>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.op-qt span{font-size:14px}
.op-qs{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.op-qp{font-size:13px;color:var(--brand-dark);white-space:nowrap}
.op-empty{padding:30px 16px;color:var(--muted);text-align:center}
.op-rail{width:100%;height:100%;border:0;border-radius:0;flex-direction:column;justify-content:flex-start;padding:16px 0;gap:14px;background:#fff}
.op-burger{font-size:28px}.op-railtxt{writing-mode:vertical-rl;transform:rotate(180deg);font-size:17px;font-weight:600}
.op-main{flex:1;display:flex;min-width:0;min-height:0}
.op-stage{flex:1;min-width:0;display:flex;flex-direction:column;padding:12px;gap:8px}
.op-svgwrap{flex:1;min-height:0;background:#fff;border-radius:14px;box-shadow:var(--shadow);padding:8px;display:flex}
.op-svgwrap svg.pattern{width:100%;height:100%;display:block}
.op-legend{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:15px;color:var(--ink)}
.op-legend i{display:inline-block;width:22px;height:5px;border-radius:3px;vertical-align:middle;margin-right:6px}
.op-legend i.head{background:#F14444}.op-legend i.rip{background:#3A7BD5}.op-legend i.cross{background:#4B474E}.op-legend i.recut{background:#6B3FC4}
.op-legend i.cur{background:#E8211B;height:9px}.op-legend i.ready{background:#CFEBD8;height:14px;border:1px solid #2E7D4F;opacity:.6}
.op-panel{width:440px;flex:none;background:#fff;border-left:1px solid var(--line);overflow:auto;padding:14px 16px;display:flex;flex-direction:column;gap:12px}
.op-sheet{display:flex;justify-content:space-between;font-size:16px;color:var(--muted)}.op-sheet span:first-child{font-weight:700;color:var(--ink-2)}
.op-bar{height:10px}
.op-step{border-radius:14px;background:#FBFAF9;border:1px solid var(--line);padding:14px}
.op-step.done{background:var(--ok-soft);border-color:rgba(46,158,91,.4)}
.op-stephead{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:600;color:var(--ink-2);flex-wrap:wrap}
.op-kind{color:#fff;border-radius:8px;padding:4px 12px;font-size:20px;background:var(--ink)}
.op-kind.head{background:#F14444}.op-kind.rip{background:#3A7BD5}.op-kind.cross{background:#4B474E}.op-kind.recut{background:#6B3FC4}.op-kind.ok{background:var(--ok)}
.op-what{display:flex;gap:14px;align-items:center;margin-top:12px}
.op-picto{width:104px;height:72px;flex:none}
.op-big{font-size:54px;font-weight:700;line-height:1;white-space:nowrap;color:var(--ink-2);font-variant-numeric:tabular-nums}.op-big small{font-size:22px;font-weight:600;color:var(--muted)}
.op-sub{font-size:18px;margin-top:4px;color:var(--ink)}
.op-step .muted{font-size:15px}
.op-turn{margin-top:10px;padding:8px 12px;border-radius:10px;background:var(--warn-soft);color:#8A5A00;font-weight:600}
.op-leds{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.led{display:flex;align-items:center;gap:8px;padding:8px;border-radius:10px;background:#F1F0F2;font-size:15px;color:var(--muted);line-height:1.15}
.led::before{content:"";width:18px;height:18px;border-radius:50%;background:#D6D4DA;flex:none}
.led.on{color:var(--ink-2);font-weight:600;background:#fff;box-shadow:inset 0 0 0 1px var(--line-2)}
.led.ok.on::before{background:#2E9E5B;box-shadow:0 0 10px 2px rgba(46,158,91,.7)}
.led.cut.on::before{background:#F2A516;box-shadow:0 0 10px 2px rgba(242,165,22,.7)}
.led.waste.on::before{background:#F14444;box-shadow:0 0 10px 2px rgba(241,68,68,.6)}
.op-after{margin-top:10px;font-size:16px;line-height:1.4}
.op-ready{border-radius:12px;border:1px solid var(--line);padding:10px 12px}
.op-ready.soon{border-color:rgba(46,158,91,.5);background:#F4FBF6}
.op-ready.fresh{border-color:var(--brand-soft2)}
.op-h{font-size:14px;text-transform:uppercase;letter-spacing:.04em;font-weight:700;color:var(--muted);margin-bottom:6px}
.op-prow{display:grid;grid-template-columns:auto 1fr auto auto;gap:10px;align-items:center;padding:6px 0;border-top:1px solid var(--line)}
.op-prow:first-of-type{border-top:0}
.op-prow .swatch{width:18px;height:18px;margin:0}
.op-pn{display:flex;flex-direction:column;line-height:1.2;min-width:0}.op-pn b{color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.op-pn span{font-size:15px;color:var(--muted)}
.op-pq{font-size:20px;font-weight:700;color:var(--ink-2)}
.op-btn{min-height:56px;font-size:18px;border-radius:12px;padding:10px 18px;justify-content:center;font-weight:600}
.op-btn.sm{min-height:56px;font-size:15px;padding:6px 12px}
.op-btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}
.op-btn.primary:hover{background:var(--brand-dark);color:#fff}
.op-btn.big{min-height:84px;font-size:24px;flex:1}
.op-btn.wide{width:100%}
.op-btn.ghost{background:#F3F2F4;border-color:transparent;color:var(--ink)}
.op-foot{position:sticky;bottom:-14px;margin:auto -16px -14px;padding:10px 16px 14px;background:#fff;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:10px;box-shadow:0 -6px 16px rgba(33,30,29,.06)}
.op-actions{display:flex;gap:10px}
.op-actions .op-btn:not(.big){min-width:120px}
.op-keys{font-size:13px;text-align:center}
.op-hello{margin:auto;text-align:center;color:var(--muted);max-width:420px}
.op-hello h2{font-size:26px;margin:12px 0 6px}
.op-hello-ico{display:inline-flex;width:84px;height:84px;border-radius:24px;background:var(--brand-soft);color:var(--brand-dark);align-items:center;justify-content:center}
.op-hello-ico svg{width:44px;height:44px}
.op-modaltxt{font-size:18px}
.op-help{font-size:16px}.op-help input{font-size:18px;width:7em}
.op-blkrow{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap;margin:10px 0 6px}.op-blkrow label{display:flex;flex-direction:column;gap:6px;font-size:16px}.op-blkrow .op-input{width:9em}
/* SVG: отрезанные части отъезжают, готовые приглушены, готовые после текущего реза пульсируют */
.op svg.pattern g.pl,.op svg.pattern g.oc{transition:transform .45s cubic-bezier(.3,.7,.3,1),opacity .3s}
.op svg.pattern g.pl.ready{opacity:.32}
.op svg.pattern g.pl.soon rect.part{stroke:#2E9E5B;stroke-width:8;animation:opPulse 1.1s ease-in-out infinite}
@keyframes opPulse{0%,100%{filter:none;stroke-opacity:1}50%{filter:brightness(1.12) saturate(1.4);stroke-opacity:.35}}
.op svg.pattern rect.part:hover{stroke-width:1.2;filter:none}
.op svg .op-done{stroke-linecap:round;opacity:.9}
.op svg .op-done.head{stroke:#F14444}.op svg .op-done.rip{stroke:#3A7BD5}.op svg .op-done.cross{stroke:#4B474E}.op svg .op-done.recut{stroke:#6B3FC4}
.op svg .op-zone{fill:rgba(254,120,55,.14);stroke:#FE7837;stroke-width:5;stroke-dasharray:18 10;pointer-events:none}
.op svg .op-dimln line{stroke:#211E1D;stroke-width:3}
.op svg .op-dimln text{fill:#fff;font-weight:700}
.op svg .op-pill{fill:#211E1D}
.op svg .op-glow{stroke:rgba(232,33,27,.18);stroke-linecap:round}
.op svg .op-cur{stroke:#E8211B;stroke-linecap:butt;animation:opDash .7s linear infinite}
@keyframes opDash{to{stroke-dashoffset:calc(-1 * var(--dash))}}
.op svg .op-prog{stroke:#7A0D0A;stroke-linecap:butt}
.op svg .op-bladec{fill:rgba(255,255,255,.85);stroke:#4B474E}
.op svg .op-hub{fill:#E8211B}
.op svg .op-blade{transform-box:fill-box;transform-origin:center;animation:spin 1.6s linear infinite}
.op svg .op-saw.run .op-blade{animation-duration:.25s}
.op svg .op-badge circle{fill:#E8211B}
.op svg .op-badge text{fill:#fff;font-weight:700;text-anchor:middle}
@media (prefers-reduced-motion:reduce){.op svg .op-cur,.op svg .op-blade,.op svg.pattern g.pl.soon rect.part{animation:none}.op svg.pattern g.pl,.op svg.pattern g.oc{transition:none}}
@media (max-width:1280px){.op-queue{width:320px}.op-panel{width:380px}}
@media (max-width:1000px),(orientation:portrait){.op-main{flex-direction:column}.op-panel{width:auto;border-left:0;border-top:1px solid var(--line);max-height:52vh}.op-stage{min-height:40vh}.op-switch{font-size:0;gap:0}}

/* ---- вход, выбор станка, ошибки */
#view{height:100vh;height:100dvh}
.op-login{height:100%;display:flex;align-items:center;justify-content:center;padding:16px;background:#EFEEF1}
.op-logincard{width:100%;max-width:420px;background:#fff;border-radius:18px;box-shadow:var(--shadow);padding:28px;display:flex;flex-direction:column;gap:14px;text-align:center;align-items:center}
.op-logincard h1{font-size:26px;margin:4px 0 0}
.op-logincard .fld{width:100%;text-align:left}
.op-logincard .fld>span{font-size:13px}
.op-logincard .err{color:var(--bad);min-height:22px;font-size:16px}
.op-logincard .op-btn.big{width:100%;flex:none}
.op-pick{height:100%;overflow:auto;background:#EFEEF1;padding:24px 16px}
.op-pickhead{max-width:900px;margin:0 auto 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.op-pickhead h1{font-size:28px}
.op-who{display:flex;align-items:center;gap:12px;color:var(--muted)}
.op-picklist{max-width:900px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.op-pickitem{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px 18px;min-height:88px;text-decoration:none;color:var(--ink);box-shadow:var(--shadow)}
.op-pickitem:hover,.op-pickitem.last{border-color:var(--brand)}
.op-pickitem .op-hello-ico{width:56px;height:56px;border-radius:16px;flex:none}
.op-pickitem .op-hello-ico svg{width:30px;height:30px}
.op-pt{flex:1;display:flex;flex-direction:column;min-width:0}.op-pt b{font-size:22px;color:var(--ink-2)}.op-pt span{font-size:15px;color:var(--muted)}
.op-err{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:16px;text-align:center;font-size:18px}
.op-err span{color:var(--muted)}

/* ---- сцена станка (вид сверху, как ассистент CADmatic): только текущая заготовка */
.op-svgwrap{background:#E4E6EA;padding:0;overflow:hidden}
svg.op3{width:100%;height:100%;display:block;font-family:Montserrat,Arial,sans-serif}
svg.op3 .op3-table{fill:#2F343B}
svg.op3 .op3-slot{stroke:#1B1E22;stroke-width:5}
svg.op3 .op3-edge{fill:#B98A12;opacity:.85}
svg.op3 .op3-wp{fill:#F6C431;stroke:#A87C08;stroke-width:2}
svg.op3 .op3-in{fill:none;stroke:rgba(120,85,0,.45);stroke-width:1.5;stroke-dasharray:8 6}
svg.op3 .op3-in.off{stroke:rgba(31,122,122,.6)}
svg.op3 .op3-base{fill:url(#op3hatch);stroke:#7D7770;stroke-width:2}
svg.op3 .op3-waste{fill:url(#op3hatch);stroke:#7D7770;stroke-width:2}
svg.op3 .op3-pl{stroke:rgba(0,0,0,.35);stroke-width:1.5}
svg.op3 .op3-pl.ok{fill:#5BBE6E}
svg.op3 .op3-pl.cut{fill:#F39A4B}
svg.op3 .op3-pl.offcut{fill:#7FD0C8;stroke:#1F7A7A;stroke-dasharray:10 6}
svg.op3 .op3-pl.pulse{animation:op3pulse 1.2s ease-in-out infinite}
@keyframes op3pulse{0%,100%{filter:none}50%{filter:brightness(1.18) drop-shadow(0 0 6px rgba(46,158,91,.9))}}
svg.op3 .op3-t{fill:#1B1E22;font-weight:700;text-anchor:middle;pointer-events:none}
svg.op3 #op3wp,svg.op3 .op3-ghost{transform-box:fill-box;transform-origin:center}
svg.op3 .op3-ghost text{display:none}
svg.op3 #op3near.cutoff .op3-pl,svg.op3 #op3near.cutoff .op3-base{filter:drop-shadow(0 4px 6px rgba(0,0,0,.35))}
svg.op3 #op3kerf{stroke:#E8211B;stroke-width:5}
svg.op3 .op3-chase path{fill:none;stroke:#FFE36B;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;animation:op3chase 1.1s linear infinite;opacity:0}
@keyframes op3chase{0%{opacity:0;transform:translateY(20px)}30%{opacity:1}100%{opacity:0;transform:translateY(-40px)}}
svg.op3 .op3-corner{fill:none;stroke:#3BE36A;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px rgba(59,227,106,.9))}
svg.op3 .op3-disc{fill:#C8CDD3;stroke:#E8211B;stroke-width:6;stroke-dasharray:6 5}
svg.op3 .op3-blade{animation:spin 1.6s linear infinite;transform-box:fill-box;transform-origin:center}
svg.op3 #op3saw.run .op3-blade{animation-duration:.22s}
svg.op3 .op3-tag{fill:#FFD43B;stroke:#B58900;stroke-width:2}
svg.op3 .op3-tagt{font-size:30px;font-weight:800;text-anchor:middle;fill:#1B1E22}
svg.op3 .op3-dim line{stroke:#1B1E22;stroke-width:2.5}
svg.op3 .op3-dim path{fill:#1B1E22}
svg.op3 .op3-dim text{font-size:30px;font-weight:800;text-anchor:middle;fill:#1B1E22}
svg.op3 .op3-led{fill:#9AA0A8}
svg.op3 .op3-led.st-ok{fill:#2EE06A;filter:drop-shadow(0 0 8px #2EE06A)}
svg.op3 .op3-led.st-cut{fill:#FFB020;filter:drop-shadow(0 0 8px #FFB020)}
svg.op3 .op3-led.st-waste{fill:#FF4A3D;filter:drop-shadow(0 0 8px #FF4A3D)}
svg.op3 .op3-led.st-offcut{fill:#35C9C0;filter:drop-shadow(0 0 8px #35C9C0)}
svg.op3 .op3-rot path{fill:none;stroke:#1B1E22;stroke-width:9;stroke-linecap:round;opacity:.85}
svg.op3 .op3-rot circle{fill:#1B1E22}
svg.op3 .op3-rot text{font-size:40px;font-weight:800;text-anchor:middle;fill:#1B1E22;paint-order:stroke;stroke:#F6C431;stroke-width:6px}
.op-legend i.wp{background:#F6C431;height:14px}.op-legend i.ok{background:#5BBE6E;height:14px}.op-legend i.cut{background:#F39A4B;height:14px}
.op-legend i.waste{height:14px;background:repeating-linear-gradient(45deg,#9C968F 0 3px,#D9D6D2 3px 7px)}.op-legend i.offcut{height:14px;background:#7FD0C8}
.op-take{margin-top:12px;font-size:19px;line-height:1.35}
.op-turn{display:flex;align-items:center;gap:10px;font-size:19px}
.op-turn span{font-size:30px;line-height:1}
.op-fencebox{display:flex;flex-direction:column;gap:4px;align-items:flex-start;margin-top:12px;padding:10px 14px;border-radius:12px;background:#FFF6D1;border:2px solid #FFD43B}
.op-fl{font-size:14px;text-transform:uppercase;letter-spacing:.06em;font-weight:700;color:#8A6D00}
.op-sheetdone{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px}
.op-sheetmap{width:min(100%,760px);opacity:.75}
.op-sheetmap svg{width:100%;height:auto;display:block}
.op-sheetok{font-size:28px;font-weight:700;color:var(--ok)}
@media (prefers-reduced-motion:reduce){svg.op3 .op3-chase path,svg.op3 .op3-blade,svg.op3 .op3-pl.pulse{animation:none}}
svg.op3 .op3-more{font-size:30px;fill:#5B616B}
svg.op3 .op3-rot{filter:drop-shadow(0 2px 3px rgba(0,0,0,.25))}
svg.op3 .op3-rot path{stroke:#FFD43B}
svg.op3 .op3-rot circle{fill:#FFD43B}
svg.op3 .op3-rot text{fill:#FFD43B;stroke:#1B1E22}

/* ---- два упора ФРС: упор каретки с флажком, параллельный упор; обрезка кромки; подсказки по безопасности */
svg.op3 .op3-xfence{fill:url(#op3xf);stroke:#7D838C;stroke-width:1.5}
svg.op3 .op3-flag{fill:#FFD43B;stroke:#B58900;stroke-width:2}
svg.op3 .op3-off{opacity:.45}
svg.op3 .op3-offt{font-size:20px;font-weight:600;fill:#D2D6DC;text-anchor:end}
svg.op3 .op3-clamp rect{fill:#3A3F47;stroke:#FFD43B;stroke-width:2}
svg.op3 .op3-clamp text{font-size:18px;font-weight:700;fill:#FFD43B;text-anchor:middle}
.op-legend i.flag{background:#FFD43B;height:14px;width:8px;border:1px solid #B58900}
.op-legend i.fence{background:linear-gradient(90deg,#C9CDD3,#F4F5F7,#9AA0A8);height:14px;width:8px;border:1px solid #7D838C}
.op-kind.trim{background:#7D838C}
.op-fencebox.flag{background:#FFF6D1;border-color:#FFD43B}
.op-fencebox.trim{background:#F1F0F2;border-color:#C9CDD3}
.op-fencebox.trim .op-fl{color:#5B616B}
.op-safe{margin-top:12px;display:flex;flex-direction:column;gap:6px}
.op-safe>div{display:flex;gap:10px;align-items:flex-start;padding:8px 12px;border-radius:10px;background:#FFF1DC;color:#7A4B00;font-size:16px;line-height:1.35;font-weight:500}
.op-safe span{font-size:20px;line-height:1}
svg.op3 .op3-dim.light line{stroke:#FFFFFF}
svg.op3 .op3-dim.light path{fill:#FFFFFF}
svg.op3 .op3-dim.light text{fill:#FFFFFF;paint-order:stroke;stroke:#2F343B;stroke-width:6px}
.op-safe{margin-top:10px}

/* ---- стопка-накопитель: строка под станком, метка размера на заготовке */
svg.op3 .op3-stk-bg{fill:#F2F3F5;stroke:#C9CDD3;stroke-width:2}
svg.op3 .op3-stk-title{font-size:24px;font-weight:700;fill:#1B1E22}
svg.op3 .op3-stk-sub{font-size:18px;fill:#5B616B}
svg.op3 .op3-stk-more{font-size:24px;font-weight:700;fill:#5B616B}
svg.op3 .op3-stk-next{font-size:18px;font-weight:700;fill:#E8211B;text-anchor:middle}
svg.op3 .op3-chip rect{fill:#FFFFFF;stroke:#4B474E;stroke-width:2.5}
svg.op3 .op3-chip.top rect{fill:#F6C431;stroke:#9A7408}
svg.op3 .op3-chip.next rect{stroke:#E8211B;stroke-width:4;animation:op3next 1.1s ease-in-out infinite}
svg.op3 .op3-chip.on rect{fill:#FFFFFF;stroke:#1B1E22;stroke-width:3;filter:drop-shadow(0 3px 5px rgba(0,0,0,.35))}
svg.op3 .op3-cw{font-size:32px;font-weight:700;fill:#1B1E22;stroke:none}
svg.op3 .op3-cl{font-size:21px;font-weight:600;fill:#4B474E;text-anchor:end;stroke:none}
@keyframes op3next{50%{filter:brightness(1.12) drop-shadow(0 0 6px rgba(232,33,27,.8))}}
.op-stackn{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;background:#EEEDF0;font-size:14px;color:var(--ink);vertical-align:middle}
.op-tostack{margin-top:6px;padding:6px 10px;border-radius:8px;background:#FFF6D1;color:#7A5B00;font-weight:600}
@media (prefers-reduced-motion:reduce){svg.op3 .op3-chip.next rect{animation:none}}
