/* ---------- Etapa 3: OS, produção, corte, bordado, arte/DTF, estoque, QR ---------- */
.lnk { color: var(--tx); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.lnk:hover { text-decoration-color: var(--red-tx); }
.os-new { height: 20px; font-size: 10px; margin-left: 4px; animation: pulse-red 1.8s infinite; }
.os-prog { display: flex; align-items: center; gap: 8px; }
.os-prog .progress { flex: 1; }
.os-prog small { font-size: 11px; color: var(--tx-3); width: 32px; text-align: right; }

.os-hero { position: relative; overflow: hidden; padding: 24px 26px 20px; border-radius: var(--r-xl); border: 1px solid var(--line-2); margin-bottom: 16px;
  background: radial-gradient(90% 150% at 100% 0%, rgba(178, 44, 56, .2), transparent 55%), linear-gradient(180deg, var(--s2), var(--s1)); box-shadow: var(--shadow-2); }
.os-hero__top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.os-hero__id { font-size: 13px; color: var(--red-tx); letter-spacing: .04em; }
.os-hero h1 { font-size: var(--fs-2xl); margin: 2px 0 4px; }
.os-hero p { font-size: var(--fs-sm); }
.os-hero__acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.os-track { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); position: relative; }
.os-track::before { content: ""; position: absolute; left: 6%; right: 6%; top: 17px; height: 2px; background-image: linear-gradient(90deg, var(--line-3) 0 6px, transparent 6px 11px); background-size: 11px 2px; }
.os-track li { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; font-size: var(--fs-2xs); }
.os-track__dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--s3); border: 1px solid var(--line-2); color: var(--tx-3); }
.os-track__dot svg { width: 16px; height: 16px; }
.os-track li.done .os-track__dot { background: var(--ok-soft); border-color: rgba(52, 209, 127, .4); color: var(--ok); }
.os-track li.now .os-track__dot { background: var(--grad-red); border-color: var(--red-hot); color: #fff; box-shadow: 0 0 0 6px rgba(178, 44, 56, .16), 0 0 24px rgba(178, 44, 56, .6); animation: pulse-red 2s infinite; }
.os-track b { font-weight: 500; font-size: 11.5px; color: var(--tx-2); }
.os-track li.now b { color: var(--tx); }
.os-track small { color: var(--tx-4); font-variant-numeric: tabular-nums; }
.os-col { display: grid; gap: 16px; align-content: start; }
.os-items { padding: 14px 20px 18px; display: grid; gap: 14px; }
.os-it { padding: 14px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.os-it__head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.os-it__head b { font-weight: 500; display: block; } .os-it__head small { font-size: var(--fs-xs); }
.os-it__tot { margin-left: auto; font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.os-grade { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.os-grade > div { position: relative; overflow: hidden; display: grid; justify-items: center; padding: 8px 4px 10px; border-radius: 10px; background: var(--s2); border: 1px solid var(--line); }
.os-grade span { font-size: 11px; color: var(--tx-3); position: relative; }
.os-grade b { font-size: var(--fs-lg); font-weight: 600; position: relative; }
.os-grade i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); background: linear-gradient(0deg, rgba(178, 44, 56, .22), transparent); transform-origin: bottom; animation: grow-y 1s var(--ease) .3s both; }
.os-pers { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.os-pers .chip { cursor: default; }
.os-chk { list-style: none; margin: 8px 0 0; padding: 0 12px; }
.os-chk li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px dashed var(--line); }
.os-chk label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: var(--fs-sm); min-width: 0; }
.os-chk input { position: absolute; opacity: 0; pointer-events: none; }
.os-chk__box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-3); display: grid; place-items: center; flex: none; transition: all var(--t-med) var(--ease); }
.os-chk__box svg { width: 14px; height: 14px; color: #fff; transform: scale(0); transition: transform var(--t-med) var(--ease); }
.os-chk li.on .os-chk__box { background: var(--ok); border-color: var(--ok); }
.os-chk li.on .os-chk__box svg { transform: scale(1); }
.os-chk li.on .os-chk__t { color: var(--tx-3); }
.os-chk input:focus-visible + .os-chk__box { outline: 2px solid var(--red-tx); outline-offset: 2px; }
.os-chk em, .req { color: var(--red-tx); font-style: normal; }
.os-chk small { font-size: var(--fs-2xs); white-space: nowrap; }
.os-chk__foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 20px 16px; font-size: var(--fs-xs); flex-wrap: wrap; }
.os-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 14px 20px 20px; }
.os-foto { position: relative; margin: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); animation: rise .5s var(--ease) both; }
.os-foto img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; transition: transform .5s var(--ease); }
.os-foto:hover img { transform: scale(1.04); }
.os-foto figcaption { padding: 8px 10px; display: grid; font-size: 12px; }
.os-foto figcaption b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-foto figcaption small { color: var(--tx-4); font-size: 10.5px; }
.os-foto__del { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(11, 10, 12, .75); color: var(--tx-2); opacity: 0; transition: opacity var(--t-fast); }
.os-foto:hover .os-foto__del, .os-foto__del:focus-visible { opacity: 1; }
.os-foto__del:hover { color: var(--crit); }
.os-foto__del svg { width: 15px; height: 15px; }
.os-up { display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; min-height: 190px; border-radius: var(--r-md); border: 1.5px dashed var(--line-3); color: var(--tx-3); cursor: pointer; transition: all var(--t-fast); padding: 12px; }
.os-up:hover, .os-up.over { border-color: var(--red-line); background: var(--red-soft); color: var(--tx); }
.os-up svg { width: 26px; height: 26px; color: var(--red-tx); margin-bottom: 4px; }
.os-up b { font-weight: 500; font-size: var(--fs-sm); } .os-up small { font-size: 11px; }
.os-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 20px 20px; }
.os-campos .input, .os-campos .select { width: 100%; }
.os-mats { padding: 12px 14px 16px; display: grid; gap: 8px; }
.os-mat { display: grid; grid-template-columns: 22px 1fr; gap: 4px 10px; align-items: start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); border-left: 3px solid var(--ok); font-size: 12.5px; }
.os-mat.warn { border-left-color: var(--warn); } .os-mat.crit { border-left-color: var(--crit); }
.os-mat__ic svg { width: 16px; height: 16px; } .os-mat.ok .os-mat__ic { color: var(--ok); } .os-mat.warn .os-mat__ic { color: var(--warn); } .os-mat.crit .os-mat__ic { color: var(--crit); }
.os-mat b { font-weight: 500; display: block; } .os-mat small { font-size: 11px; }
.os-mat .pill { grid-column: 2; justify-self: start; height: 20px; font-size: 10.5px; }
.os-fin { display: grid; gap: 10px; }
.os-fin > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); }
.os-fin small { grid-column: 1 / -1; font-size: 11px; } .os-fin b { font-size: var(--fs-lg); font-weight: 600; }
.os-portal { display: flex; gap: 14px; align-items: flex-start; background: radial-gradient(120% 120% at 0 0, rgba(178, 44, 56, .16), transparent 60%), linear-gradient(180deg, var(--s2), var(--s1)); }
.os-portal__ic { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-red); display: grid; place-items: center; flex: none; box-shadow: var(--glow-red); }
.os-portal__ic svg { width: 20px; height: 20px; color: #fff; }
.os-portal b { font-weight: 500; } .os-portal p { font-size: 12.5px; margin: 2px 0 6px; } .os-portal .mono { font-size: 12px; color: var(--tick); }
.qr-big { width: 240px; padding: 14px; background: #fff; border-radius: 16px; box-shadow: 0 0 0 6px rgba(178, 44, 56, .25), 0 20px 50px -20px rgba(178, 44, 56, .8); }
.qr-big svg { width: 100%; height: auto; display: block; }

/* Editor do modelo da OS */
.tp { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.tp__ed { display: grid; gap: 16px; }
.tp__h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--tx); font-size: var(--fs-md); }
.tp__h svg { width: 17px; height: 17px; color: var(--red-tx); }
.tp__h small { font-weight: 400; font-size: var(--fs-xs); margin-left: auto; }
.tp-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-tog { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); font-size: var(--fs-sm); cursor: pointer; }
.tp-tog.fixa { cursor: default; opacity: .8; }
.tp-tog small { font-size: 10.5px; display: block; }
.tp-tog input, .tp-mini input { position: absolute; opacity: 0; pointer-events: none; }
.sw { position: relative; width: 36px; height: 20px; border-radius: 20px; background: var(--s4); flex: none; transition: background var(--t-med) var(--ease); }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--tx-2); transition: transform var(--t-med) var(--ease), background var(--t-med); }
input:checked + .sw { background: var(--red); box-shadow: 0 0 12px -2px rgba(178, 44, 56, .8); }
input:checked + .sw::after { transform: translateX(16px); background: #fff; }
input:focus-visible + .sw { outline: 2px solid var(--red-tx); outline-offset: 2px; }
.tp-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.tp-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); transition: opacity var(--t-fast), transform var(--t-fast) var(--ease), border-color var(--t-fast); flex-wrap: wrap; }
.tp-list li.off { opacity: .5; }
.tp-list li.dragging { opacity: .3; }
.tp-list li.over { border-color: var(--red-line); }
.tp-list li.born { animation: rise .5s var(--ease); border-color: var(--red-line); }
.tp-list li.bye { opacity: 0; transform: translateX(20px); }
.tp-grip { color: var(--tx-4); cursor: grab; display: grid; } .tp-grip svg { width: 16px; height: 16px; }
.tp-name { flex: 1; min-width: 160px; background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 6px 8px; font-size: var(--fs-sm); outline: none; }
.tp-name:hover { border-color: var(--line-2); } .tp-name:focus { border-color: var(--red-line); background: var(--s1); }
.tp-type { height: 32px; font-size: 12px; }
.tp-opts { height: 32px; font-size: 12px; flex: 1 1 100%; margin-left: 28px; }
.tp-req { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--tx-4); border: 1px solid var(--line-2); }
.tp-req svg { width: 14px; height: 14px; }
.tp-req.on { color: var(--red-tx); border-color: var(--red-line); background: var(--red-soft); }
.tp-mini { display: grid; cursor: pointer; }
.tp-del { width: 30px; height: 30px; } .tp-del:hover { color: var(--crit); }
.tp-add { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-add .input { flex: 1; min-width: 200px; }
.tp__prev { position: sticky; top: 0; }
.tp__prev-h { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--tx-3); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .1em; }
.tp-paper { border-radius: 14px; overflow: hidden; background: #F7F4F4; color: #1a181b; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255,255,255,.06); transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); transition: transform .6s var(--ease); }
.tp-paper:hover { transform: none; }
.tp-paper__band { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #0E0C0F; border-bottom: 3px dashed #B22C38; }
.tp-paper__band img { width: 86px; }
.tp-paper__band div { text-align: right; } .tp-paper__band small { display: block; color: #E57882; font-size: 9px; letter-spacing: .12em; font-weight: 600; } .tp-paper__band b { color: #fff; font-size: 15px; }
.tp-paper__body { padding: 14px 16px 18px; display: grid; gap: 12px; font-size: 11.5px; }
.tp-p-sec { animation: rise .4s var(--ease) both; }
.tp-p-sec > b { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid #e0dadb; padding-bottom: 4px; margin-bottom: 6px; }
.tp-p-sec p { color: #555; }
.tp-p-grade { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.tp-p-grade span { display: grid; text-align: center; border: 1px solid #e0dadb; border-radius: 4px; padding: 3px 0; font-weight: 600; }
.tp-p-grade small { font-weight: 500; font-size: 9px; color: #888; }
.tp-p-plan { display: flex; justify-content: space-between; border-top: 2px dashed #B22C38; margin-top: 8px; padding-top: 0; }
.tp-p-plan i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid #B22C38; background: #fff; margin-top: -6px; }
.tp-p-row { display: flex; gap: 8px; align-items: flex-end; margin: 3px 0; } .tp-p-row span { color: #444; white-space: nowrap; } .tp-p-row i { flex: 1; border-bottom: 1px solid #bbb; height: 10px; }
.tp-p-chk { display: flex; gap: 8px; align-items: center; margin: 4px 0; } .tp-p-chk i { width: 11px; height: 11px; border: 1.5px solid #333; border-radius: 2px; flex: none; }
.tp-p-fotos { display: flex; gap: 6px; } .tp-p-fotos i { width: 54px; height: 54px; border-radius: 6px; background: repeating-linear-gradient(45deg, #e6e1e2 0 6px, #f1eded 6px 12px); }

@media (max-width: 1100px) { .tp { grid-template-columns: 1fr; } .tp__prev { position: static; } .tp-paper { transform: none; } }
@media (max-width: 760px) {
  .os-track { grid-template-columns: repeat(4, 1fr); row-gap: 14px; } .os-track::before { display: none; }
  .os-grade { grid-template-columns: repeat(3, 1fr); }
  .os-campos, .tp-sec { grid-template-columns: 1fr; }
  .os-it__head { flex-wrap: wrap; } .os-it__tot { margin-left: 46px; }
}
.tp-opts { order: 10; }

/* ---------- Produção ---------- */
.bottle { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-radius: var(--r-lg); margin-bottom: 16px; border: 1px solid rgba(255, 75, 92, .35);
  background: repeating-linear-gradient(135deg, rgba(255, 75, 92, .06) 0 12px, transparent 12px 24px), linear-gradient(90deg, rgba(255, 75, 92, .14), var(--s1)); transition: all .6s var(--ease); flex-wrap: wrap; }
.bottle.solved { border-color: rgba(52, 209, 127, .35); background: linear-gradient(90deg, rgba(52, 209, 127, .12), var(--s1)); }
.bottle__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--crit-soft); color: var(--crit); flex: none; animation: pulse 2s infinite; }
.bottle.solved .bottle__ic { background: var(--ok-soft); color: var(--ok); }
.bottle__ic svg { width: 20px; height: 20px; }
.bottle > div { flex: 1; min-width: 240px; } .bottle b { font-weight: 600; } .bottle p { color: var(--tx-2); font-size: var(--fs-sm); margin-top: 2px; }
.pboard { grid-template-columns: repeat(8, minmax(220px, 1fr)); }
.pcol .col__head { flex-wrap: wrap; }
.pcol__ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--s3); color: var(--tx-2); }
.pcol__ic svg { width: 14px; height: 14px; }
.pcol__cap { flex-basis: 100%; display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pcol__cap .cap { flex: 1; height: 6px; }
.pcol__cap small { font-size: 11px; width: 38px; text-align: right; }
.pc { position: relative; padding: 12px; border-radius: var(--r-md); background: linear-gradient(180deg, var(--s3), var(--s2)); border: 1px solid var(--line); border-left: 3px solid var(--ok); cursor: pointer; display: grid; gap: 6px; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 50ms); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med); }
.pc.warn { border-left-color: var(--warn); } .pc.crit { border-left-color: var(--crit); box-shadow: inset 3px 0 12px -6px var(--crit); }
.pc:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.9); }
.pc.dragging { opacity: .35; } .pc.landed { animation: landed .8s var(--ease); }
.pc__top { display: flex; align-items: center; gap: 6px; }
.pc__flag svg { width: 15px; height: 15px; } .pc__flag.crit { color: var(--crit); } .pc__flag.warn { color: var(--warn); }
.pc__due { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--tx-3); }
.pc__due svg { width: 12px; height: 12px; }
.pc__cli { font-size: var(--fs-sm); font-weight: 500; }
.pc__desc { font-size: 11.5px; color: var(--tx-3); line-height: 1.4; }
.pc__prog { display: flex; align-items: center; gap: 8px; } .pc__prog .progress { flex: 1; height: 5px; } .pc__prog small { font-size: 10.5px; color: var(--tx-3); }
.pc__why { display: flex; gap: 5px; font-size: 11px; color: var(--tx-2); line-height: 1.35; }
.pc__why svg { width: 12px; height: 12px; flex: none; margin-top: 2px; color: var(--tx-3); }
.pc__foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; border-top: 1px dashed var(--line-2); padding-top: 6px; }

/* ---------- Corte ---------- */
.cut-total { text-align: right; display: grid; } .cut-total b { font-size: var(--fs-xl); font-weight: 600; } .cut-total small { font-size: 11px; }
.cut-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 18px 24px 18px; height: 210px; }
.cut-week__d { display: grid; grid-template-rows: 1fr auto; gap: 8px; text-align: center; font-size: var(--fs-xs); color: var(--tx-3); }
.cut-week__bar { position: relative; border-radius: 10px; background: repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 30px); }
.cut-week__bar i { position: absolute; left: 18%; right: 18%; bottom: 0; height: var(--h); border-radius: 8px 8px 3px 3px; background: var(--grad-red); box-shadow: 0 0 24px -6px rgba(178, 44, 56, .8); transform-origin: bottom; animation: grow-y 1s var(--ease) both; animation-delay: calc(var(--d) + 200ms); }
.cut-week__bar i span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--tx); font-style: normal; white-space: nowrap; }
.need { display: grid; gap: 6px; margin-bottom: 12px; }
.need__t { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-sm); } .need__t b { font-weight: 500; } .need__t span { font-size: 12px; white-space: nowrap; }
.cuts { display: grid; gap: 10px; }
.cut { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 18px; border-radius: var(--r-md); background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid var(--line); }
.cut.live { border-color: var(--red-line); box-shadow: 0 0 0 1px rgba(178, 44, 56, .2), 0 10px 30px -18px rgba(178, 44, 56, .9); }
.cut.live::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background-image: linear-gradient(90deg, var(--red) 0 8px, transparent 8px 14px); background-size: 14px 2px; animation: stitch-run 1s linear infinite; border-radius: 0 0 14px 14px; }
.cut__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .cut__top b { font-weight: 500; }
.cut__fab { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--tx-2); margin-top: 6px; flex-wrap: wrap; }
.cut__fab .mono { font-size: 11px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(255,255,255,.2); flex: none; display: inline-block; }
.swatch.lg { width: 34px; height: 34px; border-radius: 10px; }
.cut__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cut__nums span { display: grid; } .cut__nums small { font-size: 10.5px; color: var(--tx-3); } .cut__nums b { font-size: var(--fs-sm); font-weight: 600; }
.cut__bar { height: 6px; border-radius: 6px; background: var(--s4); margin-top: 8px; overflow: hidden; }
.cut__bar i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--grad-red); transform-origin: left; animation: grow-x 1.1s var(--ease) .3s both; }
.cut__side { display: grid; justify-items: end; gap: 6px; font-size: 11.5px; }
.cut__who { display: flex; align-items: center; gap: 6px; } .cut__who small { color: var(--tx-3); }

/* ---------- Bordado ---------- */
.mqs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mq { padding: 18px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.mq.parada { border-color: rgba(255, 75, 92, .3); background: repeating-linear-gradient(135deg, rgba(255, 75, 92, .05) 0 10px, transparent 10px 20px), linear-gradient(180deg, var(--s2), var(--s1)); }
.mq__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.mq__head b { display: block; font-weight: 600; } .mq__head small { font-size: 11px; }
.mq__body { display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: center; }
.mq__hoop { position: relative; width: 128px; height: 128px; border-radius: 50%; background: repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.03) 0 3px, transparent 3px 6px), var(--bg-2); box-shadow: inset 0 0 0 6px #2a2528, inset 0 0 0 8px #3b3437; }
.mq__hoop svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.mq__ring { fill: none; stroke: var(--s4); stroke-width: 6; }
.mq__val { fill: none; stroke: var(--red); stroke-width: 6; stroke-linecap: round; stroke-dasharray: var(--p) 100; filter: drop-shadow(0 0 6px rgba(178, 44, 56, .8)); animation: mq-in 1.4s var(--ease) both; }
.mq.parada .mq__val { stroke: var(--crit); filter: none; }
@keyframes mq-in { from { stroke-dasharray: 0 100; } }
.mq__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.mq__center b { font-size: var(--fs-xl); font-weight: 600; } .mq__center small { font-size: 10.5px; color: var(--tx-3); }
.mq__needle { position: absolute; left: 50%; top: 14px; width: 2px; height: 22px; margin-left: -1px; background: linear-gradient(#fff, #999); border-radius: 2px; animation: needle .18s linear infinite alternate; box-shadow: 0 0 8px rgba(255,255,255,.6); }
@keyframes needle { from { transform: translateY(0); } to { transform: translateY(8px); } }
.mq__hoop.run::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; border: 2px dashed rgba(255, 90, 70, .35); animation: spin 8s linear infinite; }
.mq__info { display: grid; gap: 6px; min-width: 0; font-size: var(--fs-sm); }
.mq__info > b { font-weight: 500; line-height: 1.35; }
.mq__info .os-id { justify-self: start; }
.mq__threads { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.spool { width: 14px; height: 18px; border-radius: 3px; background: repeating-linear-gradient(0deg, var(--c) 0 2px, color-mix(in srgb, var(--c) 70%, #000) 2px 3px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.mq__threads small { font-size: 11px; }
.mq__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mq__stats span { display: grid; padding: 6px 8px; border-radius: 8px; background: var(--bg-2); } .mq__stats small { font-size: 10px; color: var(--tx-3); } .mq__stats b { font-size: 12.5px; font-weight: 600; }
.mq__op { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--tx-2); } .mq__op svg { width: 15px; height: 15px; color: var(--crit); }
.bq { list-style: none; margin: 0; padding: 12px 14px 16px; display: grid; gap: 8px; }
.bq li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); cursor: grab; font-size: var(--fs-sm); transition: opacity var(--t-fast); }
.bq li.dragging { opacity: .35; }
.bq li > div { flex: 1; min-width: 0; } .bq li b { font-weight: 500; display: block; } .bq li small { font-size: 11px; }
.bq__n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--s3); font-size: 12px; flex: none; }

/* ---------- Arte & DTF ---------- */
.printer { display: flex; gap: 18px; align-items: center; padding: 16px 20px; border-radius: var(--r-lg); background: linear-gradient(90deg, rgba(178, 44, 56, .12), var(--s1) 60%); border: 1px solid var(--line-2); margin-bottom: 16px; flex-wrap: wrap; }
.printer__ic { position: relative; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--s3); color: var(--tx); flex: none; }
.printer__ic svg { width: 22px; height: 22px; }
.printer__led { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink 1s steps(1) infinite; }
.printer__main { flex: 1; min-width: 220px; display: grid; gap: 2px; } .printer__main b { font-weight: 500; } .printer__main small { font-size: 12px; }
.printer__film { position: relative; height: 8px; margin-top: 8px; border-radius: 4px; overflow: hidden; background: var(--s4); }
.printer__film i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #B22C38 0 18px, #F6A723 18px 30px, #5CA8FF 30px 44px, #F4F0F0 44px 52px, transparent 52px 64px); background-size: 64px 100%; animation: film 1.6s linear infinite; opacity: .85; }
@keyframes film { to { background-position: 64px 0; } }
.printer__stats { display: flex; gap: 8px; flex-wrap: wrap; }
.printer__stats span { display: grid; padding: 8px 12px; border-radius: 10px; background: rgba(11, 10, 12, .5); border: 1px solid var(--line); min-width: 110px; }
.printer__stats small { font-size: 10.5px; color: var(--tx-3); } .printer__stats b { font-weight: 600; }
.aboard { grid-template-columns: repeat(7, minmax(200px, 1fr)); }
.acard { position: relative; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(180deg, var(--s3), var(--s2)); border: 1px solid var(--line); cursor: pointer; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 60ms); transition: transform var(--t-fast) var(--ease); }
.acard:hover { transform: translateY(-2px); }
.art-th { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.07), transparent 70%), #151316; }
.art-th svg { width: 80%; height: auto; }
.art-th__v { position: absolute; top: 8px; right: 8px; font-size: 10.5px; padding: 2px 6px; border-radius: 6px; background: rgba(11, 10, 12, .7); color: var(--tx-2); }
.acard__b { padding: 10px 12px 12px; display: grid; gap: 3px; }
.acard__b small { font-size: 10.5px; } .acard__b b { font-size: var(--fs-sm); font-weight: 500; } .acard__b p { font-size: 11.5px; color: var(--tx-3); }
.acard__f { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; }
.acard__f .pill { height: 20px; font-size: 10px; }
.vers { display: flex; gap: 10px; margin-bottom: 18px; overflow-x: auto; }
.vers figure { margin: 0; width: 120px; flex: none; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); opacity: .6; }
.vers figure.on { opacity: 1; border-color: var(--red-line); box-shadow: 0 0 0 3px rgba(178, 44, 56, .15); }
.vers figcaption { font-size: 11px; padding: 6px 8px; color: var(--tx-2); }

/* ---------- Estoque ---------- */
.fab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.fab { position: relative; display: flex; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid var(--line); cursor: pointer; }
.fab.low { border-color: rgba(255, 75, 92, .3); }
.fab__sw { width: 52px; align-self: stretch; min-height: 100px; border-radius: 12px; flex: none; background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 40%), repeating-linear-gradient(45deg, rgba(0,0,0,.18) 0 2px, transparent 2px 5px), repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 5px), var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 6px 0 12px -6px rgba(0,0,0,.8); }
.fab__sw.sm { width: 40px; min-height: 40px; height: 40px; align-self: center; }
.fab__b { flex: 1; min-width: 0; display: grid; gap: 8px; }
.fab__top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; } .fab__top b { font-weight: 500; } .fab__top .pill { height: 22px; font-size: 10.5px; }
.fab__num { display: flex; align-items: baseline; gap: 6px; } .fab__num b { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -.02em; } .fab__num span { font-size: 12px; color: var(--tx-3); }
.fab__bar { position: relative; display: flex; height: 8px; border-radius: 8px; background: var(--s4); overflow: visible; }
.fab__bar i { height: 100%; width: var(--w); transform-origin: left; animation: grow-x 1.1s var(--ease) .3s both; }
.fab__bar i.res { background: repeating-linear-gradient(135deg, #F6A723 0 5px, #d98e12 5px 10px); border-radius: 8px 0 0 8px; }
.fab__bar i.free { background: var(--ok); border-radius: 0 8px 8px 0; }
.fab.low .fab__bar i.free { background: var(--crit); }
.fab__min { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--tx); border-radius: 2px; opacity: .8; }
.fab__leg { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--tx-2); }
.fab__leg span { display: inline-flex; align-items: center; gap: 5px; } .fab__leg i { width: 8px; height: 8px; border-radius: 2px; } .fab__leg i.res { background: #F6A723; } .fab__leg i.free { background: var(--ok); }
.fab__foot { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; border-top: 1px dashed var(--line-2); padding-top: 8px; } .fab__foot b { font-weight: 500; }
.thr th.c, .thr td.c { text-align: center; }
.thr__n { display: flex; align-items: center; gap: 10px; } .thr__n b { font-weight: 500; }
.thr__cell { display: inline-grid; justify-items: center; gap: 2px; } .thr__cell.zero { opacity: .3; } .thr__cell b { font-size: 12px; }
.cone { width: 22px; height: 34px; display: block; }
.dtf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dtfi { display: flex; gap: 16px; align-items: center; } .dtfi b { font-weight: 500; display: block; } .dtfi small { font-size: 11.5px; display: block; } .dtfi .pill { display: inline-flex; }
.dtfi__ring { --p: 50; width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--s4) 0); animation: ring-in 1.2s var(--ease) both; }
.dtfi__ring.warn { background: conic-gradient(var(--warn) calc(var(--p) * 1%), var(--s4) 0); } .dtfi__ring.crit { background: conic-gradient(var(--crit) calc(var(--p) * 1%), var(--s4) 0); }
.dtfi__ring span { width: 62px; height: 62px; border-radius: 50%; background: var(--s1); display: grid; place-content: center; text-align: center; line-height: 1.1; } .dtfi__ring small { font-size: 10px; color: var(--tx-3); }
.rolls { display: grid; gap: 10px; }
.roll { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.roll__qr { width: 58px; height: 58px; padding: 4px; background: #fff; border-radius: 8px; flex: none; } .roll__qr svg { width: 100%; height: 100%; display: block; }
.roll__b { flex: 1; min-width: 0; display: grid; gap: 6px; } .roll__t { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; } .roll small { font-size: 11px; }

/* ---------- Leitor QR ---------- */
.qr-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.phone-stage { position: relative; padding: 10px 20px 20px; }
.phone-glow { position: absolute; inset: 10% -10%; z-index: -1; background: radial-gradient(closest-side, rgba(178, 44, 56, .35), transparent); filter: blur(30px); }
.phone { position: relative; width: 330px; height: 680px; border-radius: 48px; padding: 12px; background: linear-gradient(145deg, #3a3538, #141214 40%, #2a2629); box-shadow: 0 0 0 2px #0a090b, 0 40px 90px -30px rgba(0,0,0,.95), inset 0 0 0 1px rgba(255,255,255,.08); transform: perspective(1400px) rotateY(8deg) rotateX(2deg); transition: transform .6s var(--ease); }
.phone:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.phone.buzz { animation: buzz .35s linear; }
@keyframes buzz { 20% { translate: -3px 0; } 40% { translate: 3px 0; } 60% { translate: -2px 0; } 80% { translate: 2px 0; } }
.phone__notch { position: absolute; top: 20px; left: 50%; width: 96px; height: 26px; margin-left: -48px; border-radius: 20px; background: #000; z-index: 5; }
.phone__screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #0d0b09; }
.ph-view { position: absolute; inset: 0; overflow-y: auto; padding: 50px 16px 20px; scrollbar-width: none; }
.ph-view.in { animation: ph-in .5s var(--ease) both; }
@keyframes ph-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.ph-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 14px; }
.ph-bar span { display: grid; cursor: pointer; } .ph-bar svg { width: 20px; height: 20px; } .ph-bar b { font-weight: 600; }
.ph-cam { position: relative; height: 360px; border-radius: 24px; overflow: hidden; background: #111; }
.ph-fabric { position: absolute; inset: -20%; background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, transparent 2px 4px), repeating-linear-gradient(90deg, rgba(0,0,0,.35) 0 2px, transparent 2px 4px), radial-gradient(ellipse at 30% 30%, #2a2a2e, #0e0e10 70%); animation: cam 6s ease-in-out infinite alternate; }
.ph-fabric.tubo { background: repeating-linear-gradient(0deg, rgba(0,0,0,.45) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 60%, #3a3a3e, #0f0f11 70%); }
@keyframes cam { from { transform: translate(0, 0) rotate(0); } to { transform: translate(-10px, 6px) rotate(1deg); } }
.ph-tag { position: absolute; left: 50%; top: 50%; width: 130px; margin: -80px 0 0 -65px; padding: 10px 10px 6px; background: #f4f1ee; border-radius: 6px; transform: rotate(-4deg); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.6); animation: tag 3s ease-in-out infinite alternate; }
.ph-tag small { display: block; color: #222; font-family: var(--mono); font-size: 11px; margin-top: 2px; }
.ph-tag__qr svg { width: 100%; height: auto; display: block; }
@keyframes tag { to { transform: rotate(-2deg) translate(4px, -3px); } }
.ph-finder { position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; margin: -100px 0 0 -100px; transition: all .4s var(--ease); }
.ph-finder i { position: absolute; width: 34px; height: 34px; border: 3px solid #fff; border-radius: 4px; }
.ph-finder i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; } .ph-finder i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.ph-finder i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; } .ph-finder i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.ph-laser { position: absolute; left: 6px; right: 6px; top: 10%; height: 2px; background: var(--red-hot); box-shadow: 0 0 12px 2px var(--red); animation: laser 1.6s ease-in-out infinite alternate; }
@keyframes laser { to { top: 90%; } }
.ph-cam.lock .ph-finder { width: 160px; height: 160px; margin: -96px 0 0 -80px; } .ph-cam.lock .ph-finder i { border-color: var(--ok); } .ph-cam.lock .ph-laser { display: none; }
.ph-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.ph-cam.lock .ph-flash { animation: flash-w .5s ease-out .5s; }
@keyframes flash-w { 0% { opacity: .7; } 100% { opacity: 0; } }
.ph-hint { text-align: center; font-size: 12.5px; color: var(--tx-3); margin: 14px 0; }
.ph-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-switch button, .ph-ops button, .ph-chips button { height: 38px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line-2); font-size: 12px; color: var(--tx-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all var(--t-fast); }
.ph-switch svg { width: 15px; height: 15px; }
.ph-switch button.on, .ph-ops button.on { background: var(--red-soft); border-color: var(--red-line); color: var(--tx); }
.ph-card { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line); }
.ph-card b { display: block; font-weight: 500; font-size: 14px; } .ph-card small { font-size: 11px; color: var(--tx-3); }
.ph-saldo { display: flex; gap: 14px; align-items: center; margin: 14px 0; }
.ph-ring { --p: 50; width: 104px; height: 104px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--red) calc(var(--p) * 1%), var(--s4) 0); animation: ring-in 1s var(--ease) both; }
.ph-ring span { width: 88px; height: 88px; border-radius: 50%; background: #0d0b09; display: grid; place-content: center; text-align: center; line-height: 1.1; } .ph-ring b { font-size: 22px; } .ph-ring small { font-size: 10px; color: var(--tx-3); }
.ph-saldo__i { display: grid; gap: 6px; font-size: 12px; } .ph-saldo__i span { display: grid; } .ph-saldo__i small { font-size: 10px; color: var(--tx-3); } .ph-saldo__i b { font-weight: 500; font-size: 12px; }
.ph-ops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.ph-ops button { height: 34px; font-size: 11px; padding: 0 4px; }
.ph-lbl { display: block; font-size: 11.5px; color: var(--tx-3); margin: 4px 0 8px; }
.ph-step { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; align-items: center; }
.ph-step button { height: 52px; border-radius: 16px; background: var(--s3); display: grid; place-items: center; } .ph-step button svg { width: 20px; height: 20px; }
.ph-step b { text-align: center; font-size: 28px; font-weight: 600; }
.ph-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 12px; } .ph-chips button { height: 32px; }
.ph-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
.ph-row span { display: inline-flex; align-items: center; gap: 6px; color: var(--tx-3); } .ph-row svg { width: 14px; height: 14px; } .ph-row b { font-weight: 500; font-size: 11.5px; }
.ph-go { width: 100%; height: 52px; margin-top: 12px; border-radius: 16px; background: var(--grad-red); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 10px 30px -10px rgba(178, 44, 56, .9); }
.ph-go svg { width: 18px; height: 18px; } .ph-go.ghost { background: var(--s2); border: 1px solid var(--line-2); box-shadow: none; }
.ph-states { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.ph-states button { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line); transition: all var(--t-fast); }
.ph-states button.on { border-color: var(--red-line); background: var(--red-soft); transform: translateY(-2px); }
.ph-states small { font-size: 9px; color: var(--tx-2); line-height: 1.15; text-align: center; }
.ph-range { display: flex; align-items: center; gap: 12px; } .ph-range input { flex: 1; accent-color: var(--red); } .ph-range b { width: 44px; text-align: right; }
.ph-ok { display: grid; justify-items: center; text-align: center; gap: 10px; padding-top: 30px; }
.ph-ok > b { font-size: 18px; } .ph-ok p { font-size: 13px; color: var(--tx-2); }
.ph-count { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--tx-3); } .ph-count b { font-size: 34px; color: var(--tx); font-weight: 600; } .ph-count svg { width: 20px; height: 20px; color: var(--red-tx); }
.ph-audit { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--tx-3); padding: 8px 10px; border-radius: 10px; background: var(--s2); } .ph-audit svg { width: 14px; height: 14px; color: var(--ok); flex: none; }
.ph-warn { display: flex; gap: 8px; text-align: left; font-size: 11.5px; padding: 10px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); } .ph-warn svg { width: 16px; height: 16px; flex: none; }
.qr-side { display: grid; gap: 16px; }
.qr-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.qr-steps li { display: flex; gap: 12px; } .qr-steps li > span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--red-soft); color: var(--red-tx); font-weight: 600; font-size: 12px; flex: none; }
.qr-steps b { font-weight: 500; display: block; font-size: var(--fs-sm); } .qr-steps small { font-size: 12px; color: var(--tx-3); }

@media (max-width: 1280px) { .mqs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 980px) {
  .qr-wrap { grid-template-columns: 1fr; justify-items: center; } .qr-side { width: 100%; }
  .cut { grid-template-columns: 1fr; } .cut__side { justify-items: start; }
}
@media (max-width: 760px) {
  .mqs { grid-template-columns: 1fr; } .mq__body { grid-template-columns: 1fr; justify-items: center; }
  .phone { width: 300px; height: 620px; transform: none; } .phone-stage { padding: 0; }
  .fab-grid { grid-template-columns: 1fr; }
}

/* ---------- Costura ---------- */
.cs-hero { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-radius: var(--r-lg); margin-bottom: 16px; border: 1px solid var(--line-2); background: radial-gradient(120% 200% at 0 0, rgba(178, 44, 56, .18), transparent 55%), var(--s1); }
.cs-hero__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-red); color: #fff; flex: none; box-shadow: var(--glow-red); }
.cs-hero__ic svg { width: 21px; height: 21px; }
.cs-hero b { font-weight: 600; } .cs-hero p { color: var(--tx-2); font-size: var(--fs-sm); margin-top: 2px; max-width: 90ch; }
.cs-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.cs-in { border-radius: var(--r-lg); background: rgba(20, 18, 21, .6); border: 1px solid var(--line); padding: 14px; position: sticky; top: 0; }
.cs-in header, .cs-team__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cs-in h3, .cs-team__h h3 { font-size: var(--fs-md); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.cs-in h3 svg, .cs-team__h h3 svg { width: 16px; height: 16px; color: var(--tx-3); }
.cs-team__h .muted { font-size: var(--fs-xs); }
.cs-in__list { display: grid; gap: 8px; max-height: calc(100vh - 380px); min-height: 300px; overflow-y: auto; padding-right: 2px; }
.pk { position: relative; padding: 12px; border-radius: var(--r-md); background: linear-gradient(180deg, var(--s3), var(--s2)); border: 1px solid var(--line); border-left: 3px solid var(--ok); display: grid; gap: 4px; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 50ms); transition: transform .5s var(--ease), opacity .5s var(--ease); }
.pk.ready { cursor: grab; } .pk.ready:hover { transform: translateX(3px); border-color: var(--line-2); }
.pk.urg { border-left-color: var(--crit); }
.pk.lock { border-left-color: var(--line-3); opacity: .62; cursor: not-allowed; background: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 8px, transparent 8px 16px), var(--s2); }
.pk.dragging { opacity: .35; }
.pk.fly { transform: translateX(60px) scale(.9); opacity: 0; }
.pk__top { display: flex; align-items: center; gap: 6px; } .pk__top .pill { height: 20px; font-size: 10px; }
.pk__grip, .pk__lock { margin-left: auto; color: var(--tx-4); display: grid; } .pk__grip svg, .pk__lock svg { width: 15px; height: 15px; }
.pk b { font-size: var(--fs-sm); font-weight: 500; } .pk p { font-size: 11.5px; }
.pk__maq { color: var(--tx-2); font-weight: 500; }
.pk__st { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.pk__st span { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; padding: 2px 7px; border-radius: 999px; }
.pk__st span svg { width: 12px; height: 12px; }
.pk__st .ok { background: var(--ok-soft); color: var(--ok); } .pk__st .wait { background: var(--warn-soft); color: var(--warn); } .pk__st .wait svg { animation: spin 2s linear infinite; }
.pk__why { display: flex; gap: 6px; font-size: 11px; color: var(--tx-2); margin-top: 2px; } .pk__why svg { width: 13px; height: 13px; flex: none; margin-top: 1px; color: var(--warn); }
.cs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cs { position: relative; padding: 14px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid var(--line); display: grid; gap: 10px; cursor: pointer; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 50ms); transition: border-color var(--t-fast), box-shadow var(--t-med), transform var(--t-fast) var(--ease); }
.cs:hover { transform: translateY(-2px); }
.cs.livre { border-style: dashed; border-color: rgba(92, 168, 255, .35); }
.cs.fit { border-color: rgba(52, 209, 127, .5); box-shadow: 0 0 0 1px rgba(52, 209, 127, .25); }
.cs.over { border-color: var(--red); box-shadow: 0 0 0 2px var(--red), 0 0 30px -6px var(--red); transform: scale(1.02); }
.cs.got { animation: got .9s var(--ease); }
@keyframes got { 0% { box-shadow: 0 0 0 0 rgba(52, 209, 127, .8); } 40% { box-shadow: 0 0 0 6px rgba(52, 209, 127, .35); transform: scale(1.03); } 100% { box-shadow: 0 0 0 0 rgba(52, 209, 127, 0); } }
.cs__head { display: flex; gap: 10px; align-items: center; }
.cs__head > div { flex: 1; min-width: 0; } .cs__head b { display: block; font-weight: 500; font-size: var(--fs-sm); } .cs__head small { font-size: 11px; }
.cs__head .pill { height: 22px; font-size: 10px; padding: 0 8px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.cs__now { display: grid; gap: 2px; padding: 10px; border-radius: var(--r-sm); background: var(--bg-2); }
.cs__now small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; } .cs__now b { font-size: 12.5px; font-weight: 500; } .cs__now .mono { font-size: 11px; }
.cs__prog { display: flex; gap: 8px; align-items: center; margin-top: 6px; } .cs__prog .progress { flex: 1; } .cs__prog b { font-size: 12px; }
.cs__drop { display: grid; justify-items: center; gap: 4px; padding: 16px 10px; border-radius: var(--r-sm); border: 1.5px dashed var(--line-3); color: var(--tx-3); font-size: 12px; text-align: center; }
.cs__drop svg { width: 18px; height: 18px; color: var(--info); animation: bounce 1.4s infinite; }
.cs__foot { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; }
.cs__rit { display: inline-flex; align-items: center; gap: 5px; } .cs__rit svg { width: 13px; height: 13px; }
/* TV */
.tvw { border-radius: var(--r-xl); background: #080709; border: 1px solid var(--line-2); padding: 20px; box-shadow: var(--shadow-2); }
.tvw:fullscreen { border-radius: 0; padding: 32px; overflow: auto; }
.tvw__h { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.tvw__h img { width: 110px; } .tvw__h > div:nth-child(2) { display: grid; } .tvw__h b { font-size: var(--fs-xl); } .tvw__h small { color: var(--tx-3); font-family: var(--mono); font-size: 12px; }
.tvw__kpi { margin-left: auto; display: flex; gap: 10px; } .tvw__kpi span { display: grid; padding: 8px 16px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); } .tvw__kpi small { font-size: 11px; color: var(--tx-3); } .tvw__kpi b { font-size: var(--fs-xl); }
.tvw__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tvc { position: relative; overflow: hidden; padding: 16px; border-radius: 18px; background: linear-gradient(180deg, #17141a, #0f0d10); border: 1px solid var(--line); border-top: 4px solid var(--c); display: grid; gap: 12px; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.tvc.tick { animation: tvtick .6s var(--ease); }
@keyframes tvtick { 30% { box-shadow: inset 0 0 0 2px var(--ok); } }
.tvc.pausa { opacity: .6; }
.tvc__who { display: flex; align-items: center; gap: 10px; } .tvc__who b { font-size: var(--fs-lg); } .tvc__who small { margin-left: auto; font-size: 11px; color: var(--tx-3); padding: 3px 8px; border-radius: 999px; background: var(--s3); }
.tvc__now { display: grid; gap: 2px; } .tvc__now small, .tvc__next small { font-size: 10px; letter-spacing: .14em; color: var(--tx-3); } .tvc__now b { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.2; } .tvc__now span { font-size: 12.5px; color: var(--tx-2); }
.tvc__now.idle b { color: var(--info); }
.tvc__bar { height: 10px; border-radius: 10px; background: var(--s4); overflow: hidden; margin-top: 8px; } .tvc__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #7ef0b0); border-radius: 10px; transition: width .6s var(--ease); }
.tvc__now em { font-style: normal; font-size: var(--fs-lg); font-weight: 600; margin-top: 4px; }
.tvc__next { padding-top: 10px; border-top: 1px dashed var(--line-2); display: grid; gap: 2px; font-size: 12px; color: var(--tx-2); }
.tvw__ticker { margin-top: 16px; overflow: hidden; border-radius: 12px; background: var(--red-soft); border: 1px solid var(--red-line); padding: 10px 0; white-space: nowrap; }
.tvw__ticker span { display: inline-flex; align-items: center; gap: 10px; padding-left: 100%; animation: ticker 28s linear infinite; font-size: var(--fs-sm); }
.tvw__ticker svg { width: 16px; height: 16px; color: var(--red-tx); }
@keyframes ticker { to { transform: translateX(-100%); } }
/* Tablet da costureira */
.tab-dev { padding: 14px; border-radius: 28px; background: linear-gradient(145deg, #3a3538, #141214); box-shadow: 0 30px 60px -30px #000; }
.tab-dev__scr { border-radius: 18px; background: #0d0b09; padding: 18px; display: grid; gap: 14px; }
.tab-dev__hi { font-size: var(--fs-lg); font-weight: 600; }
.tab-dev__now { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line-2); }
.tab-dev__now small, .tab-dev__next small { font-size: 10.5px; letter-spacing: .14em; color: var(--tx-3); }
.tab-dev__now b { font-size: var(--fs-xl); } .tab-dev__now span { color: var(--tx-2); font-size: var(--fs-sm); }
.tab-dev__count { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0 0; }
.tab-dev__count button { width: 54px; height: 54px; border-radius: 16px; background: var(--s3); display: grid; place-items: center; } .tab-dev__count button svg { width: 22px; height: 22px; }
.tab-dev__count b { font-size: 40px; } .tab-dev__count span { color: var(--tx-3); }
.tab-dev__next { display: grid; gap: 6px; font-size: 13px; color: var(--tx-2); }
.tab-dev__help { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 8px; align-items: center; padding: 12px; border-radius: 14px; background: var(--s2); font-size: 12px; color: var(--tx-2); }
.tab-dev__help svg { width: 18px; height: 18px; color: var(--warn); }
@media (max-width: 1280px) { .tvw__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) { .cs-grid { grid-template-columns: 1fr; } .cs-in { position: static; } .cs-in__list { max-height: none; min-height: 0; } }
@media (max-width: 560px) { .tvw__grid { grid-template-columns: 1fr; } .tvw__kpi { margin-left: 0; } }
