.m-trace .tr-tabs { margin-bottom: 16px; }
.m-trace .ok { color: var(--ok); }
.m-trace .warn { color: var(--warn); }
.m-trace .bad { color: var(--bad); }
.m-trace .tr-link { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
.m-trace .tr-link:hover { text-decoration-color: var(--accent); }
.m-trace .tr-chip { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 12.5px; transition: border-color .15s, background .15s; }
.m-trace .tr-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.m-trace .badge svg { width: 12px; height: 12px; }

/* ---------- printplaat ---------- */
.m-trace .tr-pcb { width: 100%; height: auto; display: block; }
.m-trace .tr-zone { animation: trDash 1.2s linear infinite; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 70%, transparent)); }
.m-trace .tr-zone-label { animation: trIn .4s ease both; }
@keyframes trDash { to { stroke-dashoffset: -34; } }

/* ---------- werkinstructies ---------- */
.m-trace .tr-instr-intro { margin-bottom: 14px; }
.m-trace .tr-instr-intro h3 { font-size: 18px; margin-bottom: 4px; }
.m-trace .tr-prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.m-trace .tr-prod { display: grid; gap: 12px; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .2s, border-color .2s; font: inherit; color: inherit; }
.m-trace .tr-prod:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.m-trace .tr-prod-img { background: #0f1720; border-radius: 10px; padding: 12px; }
.m-trace .tr-prod-txt { display: grid; gap: 4px; }
.m-trace .tr-prod-txt b { font-size: 16px; }
.m-trace .tr-prod-txt .row { gap: 6px; margin-top: 4px; }
.m-trace .tr-prod-go { justify-self: start; }
.m-trace .tr-row-new td { background: var(--accent-soft) !important; animation: trIn .5s ease both; }

.m-trace .tr-run { padding: 0; overflow: hidden; }
.m-trace .tr-run-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.m-trace .tr-run-title { display: grid; line-height: 1.3; }
.m-trace .tr-run-title b { font-size: 15px; }
.m-trace .tr-run-count { font-size: 15px; color: var(--muted); white-space: nowrap; }
.m-trace .tr-run-count b { color: var(--ink); font-size: 20px; }
.m-trace .tr-progress { height: 4px; background: var(--line-2); }
.m-trace .tr-progress span { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.m-trace .tr-dots { display: flex; gap: 6px; padding: 12px 16px; overflow-x: auto; border-bottom: 1px solid var(--line-2); background: var(--panel-2); }
.m-trace .tr-dot { display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); cursor: pointer; font-size: 12.5px; color: var(--muted); white-space: nowrap; flex: none; }
.m-trace .tr-dot span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-weight: 700; font-size: 11.5px; }
.m-trace .tr-dot em { font-style: normal; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.m-trace .tr-dot.is-done span { background: var(--ok); color: #fff; }
.m-trace .tr-dot.is-now { border-color: var(--accent); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 3px var(--accent-soft); }
.m-trace .tr-dot.is-now span { background: var(--accent); color: #fff; }
.m-trace .tr-dot:disabled { cursor: default; opacity: .7; }
.m-trace .tr-run-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.m-trace .tr-screen { background: radial-gradient(circle at 30% 20%, #1b2735, #0d141c 70%); padding: 28px; display: grid; place-items: center; min-height: 420px; }
.m-trace .tr-screen .tr-pcb { max-width: 640px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); animation: trIn .35s ease both; }
.m-trace .tr-step { padding: 24px 26px; display: flex; flex-direction: column; gap: 16px; }
.m-trace .tr-step-top { display: flex; gap: 14px; align-items: center; }
.m-trace .tr-step-num { width: 54px; height: 54px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 26px; font-weight: 800; flex: none; }
.m-trace .tr-step-top h2 { font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
.m-trace .tr-step-top .small { display: inline-flex; gap: 5px; align-items: center; margin-top: 3px; }
.m-trace .tr-step-text { font-size: 16.5px; line-height: 1.6; }
.m-trace .tr-warn { border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-soft); border-radius: 12px; padding: 12px 14px; }
.m-trace .tr-warn-h { display: flex; gap: 8px; align-items: center; color: color-mix(in srgb, var(--warn) 80%, black); margin-bottom: 4px; }
.m-trace .tr-warn ul { margin: 0; padding-left: 20px; }
.m-trace .tr-warn li { margin-top: 4px; }
.m-trace .tr-checks { display: grid; gap: 8px; }
.m-trace .tr-check { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 550; transition: border-color .15s, background .15s; }
.m-trace .tr-check:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.m-trace .tr-check input { position: absolute; opacity: 0; pointer-events: none; }
.m-trace .tr-box { width: 28px; height: 28px; border-radius: 8px; border: 2px solid #c3c9d2; display: grid; place-items: center; flex: none; color: transparent; transition: background .15s, border-color .15s; }
.m-trace .tr-box svg { width: 18px; height: 18px; }
.m-trace .tr-check.is-on { border-color: var(--ok); background: var(--ok-soft); }
.m-trace .tr-check.is-on .tr-box { background: var(--ok); border-color: var(--ok); color: #fff; }
.m-trace .tr-check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.m-trace .tr-nav { display: flex; gap: 10px; margin-top: auto; padding-top: 4px; }
.m-trace .tr-nav .btn-primary { flex: 1; }
.m-trace .tr-hint { margin-top: -8px; }

.m-trace .tr-sign { padding: 32px; text-align: center; display: grid; justify-items: center; gap: 8px; margin-bottom: 18px; }
.m-trace .tr-sign-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; animation: trPop .5s ease both; }
.m-trace .tr-sign-ok svg { width: 36px; height: 36px; }
.m-trace .tr-sign h2 { font-size: 24px; }
.m-trace .tr-sign-form { width: min(560px, 100%); text-align: left; display: grid; gap: 12px; margin-top: 12px; }
.m-trace .tr-sig { width: 100%; height: 120px; border: 1.5px dashed var(--line); border-radius: 10px; background: var(--panel-2); cursor: crosshair; }
.m-trace .tr-sig-clear { justify-self: end; }
.m-trace .tr-err { color: var(--bad); }

/* ---------- operatorscherm ---------- */
.m-trace .tr-line-top { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.m-trace .tr-posts { flex-wrap: wrap; }
.m-trace .tr-posts button { padding: 9px 14px; font-size: 14px; }
.m-trace .tr-op-f { min-width: 210px; }
.m-trace .tr-shift { margin-left: auto; display: grid; text-align: right; line-height: 1.35; }
.m-trace .tr-line-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.m-trace .tr-scan { display: grid; gap: 14px; }
.m-trace .tr-scanner { position: relative; height: 120px; border-radius: 14px; background: #0e151d; overflow: hidden; display: grid; place-items: center; }
.m-trace .tr-scanner-code { display: flex; gap: 3px; height: 54px; padding: 10px 16px; background: #f4f4ef; border-radius: 6px; opacity: .9; transform: translateY(-8px); }
.m-trace .tr-scanner-code i { display: block; background: #1a1a1a; height: 100%; }
.m-trace .tr-scanner-txt { position: absolute; bottom: 9px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: 12.5px; }
.m-trace .tr-laser { position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: #ff3b3b; box-shadow: 0 0 10px 2px rgba(255, 50, 50, .7); opacity: .35; }
.m-trace .tr-scanner.is-scanning .tr-laser { opacity: 1; animation: trLaser .5s ease-in-out infinite alternate; }
.m-trace .tr-scanner.is-hit { box-shadow: inset 0 0 0 3px var(--ok); }
.m-trace .tr-scanner.is-hit .tr-laser { background: var(--ok); box-shadow: 0 0 12px 3px rgba(29, 154, 85, .7); opacity: 1; }
@keyframes trLaser { from { top: 22%; } to { top: 68%; } }
.m-trace .tr-scanform { display: flex; gap: 8px; }
.m-trace .tr-scanform .input { font-size: 16px; padding: 11px 13px; letter-spacing: .03em; }
.m-trace .tr-idle { display: flex; gap: 12px; align-items: center; padding: 22px; border: 1.5px dashed var(--line); border-radius: 12px; color: var(--muted); background: var(--panel-2); }
.m-trace .tr-idle svg { width: 28px; height: 28px; flex: none; color: var(--accent); }
.m-trace .tr-done { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 12px; animation: trIn .3s ease both; }
.m-trace .tr-done div { display: grid; }
.m-trace .tr-done-ok { background: var(--ok-soft); color: color-mix(in srgb, var(--ok) 75%, black); }
.m-trace .tr-done-nok { background: var(--bad-soft); color: color-mix(in srgb, var(--bad) 75%, black); }
.m-trace .tr-done > svg { width: 34px; height: 34px; flex: none; }
.m-trace .tr-cur { display: grid; gap: 12px; animation: trIn .25s ease both; }
.m-trace .tr-cur-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.m-trace .tr-sn { font-size: 26px; font-weight: 700; letter-spacing: .01em; line-height: 1.15; word-break: break-all; }
.m-trace .tr-cur-meta { display: grid; text-align: right; }
.m-trace .tr-ministeps { display: flex; flex-wrap: wrap; gap: 5px; }
.m-trace .tr-ministeps span { padding: 4px 10px; border-radius: 999px; background: var(--line-2); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.m-trace .tr-ministeps .is-done { background: var(--ok-soft); color: var(--ok); }
.m-trace .tr-ministeps .is-here { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.m-trace .tr-alert { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.m-trace .tr-alert svg { flex: none; margin-top: 1px; }
.m-trace .tr-alert-warn { background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 80%, black); }
.m-trace .tr-alert-bad { background: var(--bad-soft); color: var(--bad); }
.m-trace .tr-alert-info { background: var(--info-soft); color: var(--info); }
.m-trace .tr-judge { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-trace .tr-big { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 26px 16px; border-radius: 16px; border: 0; color: #fff; font-size: 22px; font-weight: 750; cursor: pointer; transition: transform .1s, filter .15s, box-shadow .2s; }
.m-trace .tr-big svg { width: 32px; height: 32px; }
.m-trace .tr-big:hover { filter: brightness(1.06); }
.m-trace .tr-big:active { transform: scale(.98); }
.m-trace .tr-big-ok { background: linear-gradient(180deg, #22ad61, #1a8c4e); box-shadow: 0 8px 22px rgba(29, 154, 85, .3); }
.m-trace .tr-big-nok { background: linear-gradient(180deg, #e0444d, #bf2c35); box-shadow: 0 8px 22px rgba(208, 52, 61, .28); }
.m-trace .tr-defects { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--bad-soft); animation: trIn .25s ease both; }
.m-trace .tr-defects-h { display: grid; }
.m-trace .tr-defect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.m-trace .tr-defect { padding: 14px 12px; border-radius: 11px; border: 1.5px solid color-mix(in srgb, var(--bad) 30%, transparent); background: var(--panel); cursor: pointer; font-weight: 600; text-align: left; transition: background .15s, border-color .15s; }
.m-trace .tr-defect:hover { border-color: var(--bad); background: #fff7f7; }
.m-trace .tr-live { display: grid; gap: 14px; }
.m-trace .tr-livedot { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: var(--ok); }
.m-trace .tr-livedot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: trPulse 1.6s infinite; }
@keyframes trPulse { 0% { box-shadow: 0 0 0 0 rgba(29, 154, 85, .5); } 100% { box-shadow: 0 0 0 8px rgba(29, 154, 85, 0); } }
.m-trace .tr-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-trace .tr-cnt { padding: 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); display: grid; gap: 2px; }
.m-trace .tr-cnt span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.m-trace .tr-cnt b { font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.m-trace .tr-cnt-ok b { color: var(--ok); }
.m-trace .tr-cnt-nok b { color: var(--bad); }
.m-trace .tr-cnt.is-flash { animation: trPop .5s ease; }
.m-trace .tr-cnt-ok.is-flash { background: var(--ok-soft); }
.m-trace .tr-cnt-nok.is-flash { background: var(--bad-soft); }
.m-trace .tr-hours { margin-top: 12px; display: grid; gap: 6px; }
.m-trace .tr-recent { list-style: none; margin: 0; padding: 0; display: grid; }
.m-trace .tr-recent li { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.m-trace .tr-recent li:last-child { border-bottom: 0; }
.m-trace .tr-recent li .tr-link { margin-right: auto; font-size: 13px; }
.m-trace .tr-recent li .badge { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.m-trace .tr-recent li.is-mine { background: linear-gradient(90deg, var(--accent-soft), transparent); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }

/* ---------- zoeken ---------- */
.m-trace .tr-search { margin-bottom: 14px; display: grid; gap: 10px; }
.m-trace .tr-searchform { display: flex; gap: 8px; }
.m-trace .tr-sinput { position: relative; flex: 1; }
.m-trace .tr-sinput svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.m-trace .tr-sinput .input { padding: 12px 14px 12px 40px; font-size: 16px; letter-spacing: .03em; }
.m-trace .tr-examples { gap: 6px; }
.m-trace .tr-hits { display: flex; flex-wrap: wrap; gap: 6px; }
.m-trace .tr-markbar { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; background: var(--bad); color: #fff; margin-bottom: 14px; animation: trIn .3s ease both; }
.m-trace .tr-markbar div { display: grid; }
.m-trace .tr-markbar span { opacity: .9; font-size: 13.5px; }
.m-trace .tr-markbar svg { flex: none; margin-top: 2px; }
.m-trace .tr-detail { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.m-trace .tr-id-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.m-trace .tr-id-top .tr-sn { font-size: 22px; }
.m-trace .tr-id-name { margin: 8px 0 12px; font-size: 16px !important; }
.m-trace .tr-fields { margin: 0; display: grid; gap: 0; }
.m-trace .tr-fields div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.m-trace .tr-fields dt { color: var(--muted); font-size: 13px; }
.m-trace .tr-fields dd { margin: 0; font-weight: 600; text-align: right; }
.m-trace .tr-tl-list { list-style: none; margin: 0; padding: 0; }
.m-trace .tr-tl { display: grid; grid-template-columns: 30px 1fr; gap: 12px; position: relative; padding-bottom: 14px; }
.m-trace .tr-tl::before { content: ''; position: absolute; left: 14px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.m-trace .tr-tl:last-child::before { display: none; }
.m-trace .tr-tl-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--line-2); color: var(--muted); position: relative; z-index: 1; }
.m-trace .tr-tl-ok .tr-tl-dot { background: var(--ok); color: #fff; }
.m-trace .tr-tl-rework .tr-tl-dot { background: var(--warn); color: #fff; }
.m-trace .tr-tl-nok .tr-tl-dot { background: var(--bad); color: #fff; }
.m-trace .tr-tl-ok::before { background: var(--ok); }
.m-trace .tr-tl-body { padding-top: 4px; display: grid; gap: 4px; }
.m-trace .tr-tl-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.m-trace .tr-tl-ev { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; font-size: 13.5px; padding: 5px 9px; background: var(--panel-2); border-radius: 7px; }
.m-trace .tr-tl-todo .tr-tl-head b { color: var(--muted); }
.m-trace .tr-where { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.m-trace .tr-where-i { padding: 5px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 13px; }
.m-trace .tr-batch-table { max-height: 380px; overflow: auto; }
.m-trace .tr-batch-table th { position: sticky; top: 0; z-index: 1; }
.m-trace .tr-batch-table tr.is-cur td { background: var(--accent-soft) !important; }
.m-trace .tr-batch-table tr.is-marked td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.m-trace .tr-batch .card-head { flex-wrap: wrap; }
.tr-mark-gh { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); }

/* ---------- dashboard ---------- */
.m-trace .tr-dash-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.m-trace .tr-dash-top h3 { font-size: 18px; }
.m-trace .tr-kpis { margin-bottom: 14px; }
.m-trace .tr-kpi-main { background: linear-gradient(150deg, var(--accent-soft), var(--panel) 70%); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.m-trace .tr-kpi-main .kpi-val { font-size: 30px; }
.m-trace .tr-steps-card { margin-bottom: 14px; }
.m-trace .tr-legend { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.m-trace .tr-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.m-trace .tr-fpy { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.m-trace .tr-fpy-step { display: grid; justify-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); text-align: center; position: relative; }
.m-trace .tr-fpy-step.is-weak { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-soft); }
.m-trace .tr-fpy-n { position: absolute; top: 8px; left: 10px; font-size: 11px; color: var(--muted); font-weight: 700; }
.m-trace .tr-ring { --v: 0; --c: var(--ok); width: 82px; height: 82px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--line-2) 0); display: grid; place-items: center; }
.m-trace .tr-ring span { width: 64px; height: 64px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-weight: 750; font-size: 17px; letter-spacing: -.02em; }
.m-trace .tr-ring small { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 1px; }
.m-trace .tr-ring span { display: flex; align-items: baseline; justify-content: center; padding-top: 22px; }
.m-trace .tr-bars-2 { display: grid; gap: 6px; }
.m-trace .tr-dash-grid { align-items: stretch; }
.m-trace .tr-defs { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.m-trace .tr-def-bar { height: 7px; border-radius: 9px; background: var(--line-2); overflow: hidden; margin: 4px 0 2px; }
.m-trace .tr-def-bar i { display: block; height: 100%; border-radius: 9px; background: var(--bad); opacity: .8; }
.m-trace .tr-fpy-cell { font-weight: 700; }

@keyframes trIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes trPop { 0% { transform: scale(.9); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

@media (max-width: 1100px) {
  .m-trace .tr-run-grid { grid-template-columns: 1fr; }
  .m-trace .tr-screen { min-height: 0; padding: 18px; }
  .m-trace .tr-line-grid { grid-template-columns: 1fr; }
  .m-trace .tr-detail { grid-template-columns: 1fr; }
  .m-trace .tr-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .m-trace .tr-prods { grid-template-columns: 1fr; }
  .m-trace .tr-run-head { flex-wrap: wrap; padding: 10px 12px; }
  .m-trace .tr-dots { padding: 10px 12px; }
  .m-trace .tr-dot em { display: none; }
  .m-trace .tr-dot { padding: 4px; }
  .m-trace .tr-dot.is-now em { display: inline; }
  .m-trace .tr-dot.is-now { padding-right: 10px; }
  .m-trace .tr-screen { padding: 10px; }
  .m-trace .tr-step { padding: 16px 14px; }
  .m-trace .tr-step-top h2 { font-size: 20px; }
  .m-trace .tr-step-num { width: 44px; height: 44px; font-size: 21px; border-radius: 13px; }
  .m-trace .tr-step-text { font-size: 15.5px; }
  .m-trace .tr-nav .btn { padding: 12px 14px; font-size: 15px; }
  .m-trace .tr-sign { padding: 20px 14px; }
  .m-trace .tr-shift { margin-left: 0; text-align: left; }
  .m-trace .tr-op-f { min-width: 0; width: 100%; }
  .m-trace .tr-posts button { padding: 7px 10px; font-size: 13px; }
  .m-trace .tr-scanform { flex-wrap: wrap; }
  .m-trace .tr-scanform .input { flex: 1 1 100%; }
  .m-trace .tr-scanform .btn { flex: 1; }
  .m-trace .tr-sn { font-size: 21px; }
  .m-trace .tr-cur-meta { text-align: left; }
  .m-trace .tr-big { padding: 20px 10px; font-size: 19px; }
  .m-trace .tr-defect-grid { grid-template-columns: 1fr 1fr; }
  .m-trace .tr-tl-ev { grid-template-columns: 1fr; gap: 1px; }
  .m-trace .tr-searchform .btn { padding: 0 12px; }
  .m-trace .tr-fpy { grid-template-columns: repeat(3, 1fr); }
  .m-trace .tr-ring { width: 66px; height: 66px; }
  .m-trace .tr-ring span { width: 52px; height: 52px; font-size: 14px; padding-top: 17px; }
  .m-trace .tr-fpy-step { padding: 12px 4px 10px; }
  .m-trace .tr-fpy-n { display: none; }
  .m-trace .tr-fpy-step b { font-size: 12.5px; }
  .m-trace .tr-fpy-step .small { font-size: 11px; }
}
@media (max-width: 600px) { .m-trace .tr-sign-form .row .btn { flex: 1 1 100%; } .m-trace .tr-sign-form .row .spacer { display: none; } }
.m-trace .grid > *, .m-trace .tr-line-grid > *, .m-trace .tr-detail > * { min-width: 0; }
@media (max-width: 600px) {
  .m-trace .tr-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .m-trace .tr-kpis .kpi { padding: 12px; }
  .m-trace .tr-kpis .kpi-val { font-size: 21px; }
  .m-trace .tr-kpi-main .kpi-val { font-size: 24px; }
  .m-trace .tr-steps-card .card-head { flex-wrap: wrap; }
  .m-trace .tr-steps-card .card-head .spacer { display: none; }
  .m-trace .tr-legend i:first-child { margin-left: 0; }
  .m-trace .tr-dash-top .seg { width: 100%; }
  .m-trace .tr-dash-top .seg button { flex: 1; }
}
