/* Seu Lóza — Nova OS (assistente em 9 passos). Prefixo nx-. Só tokens: funciona nos temas escuro e claro. */

/* ---------- Página: 4 formas de começar + faixa dos passos ---------- */
.no-ways.nx-ways4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1280px) { .no-ways.nx-ways4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .no-ways.nx-ways4 { grid-template-columns: 1fr; } }
.nx-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--s1); font-size: var(--fs-xs); color: var(--tx-2); }
.nx-flow__t { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--tx); margin-right: 6px; }
.nx-flow__t svg { width: 15px; height: 15px; color: var(--red-tx); }
.nx-flow__s { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: var(--r-pill); background: var(--s3); }
.nx-flow__s i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--s4); font-size: 10px; font-weight: 600; color: var(--tx); }

/* ---------- Modal ---------- */
.modal.nx-modal { width: min(1200px, calc(100vw - 32px)); height: min(860px, calc(100vh - 32px)); max-height: none; }
.nx-mhead { padding: 16px 24px; }
.nx-mhead h3 { display: flex; align-items: center; gap: 10px; }
.nx-mhead .spacer { flex: 1; }
.nx-num { font-size: var(--fs-xs); }
.nx-body { padding: 18px 24px 22px; }
.nx-modal .modal__foot { padding: 12px 24px; }
.nx-tot { display: flex; gap: 14px; white-space: nowrap; font-size: var(--fs-sm); color: var(--tx-3); }
.nx-tot b { color: var(--tx); font-weight: 600; }
.nx-tot span + span { padding-left: 14px; border-left: 1px solid var(--line-2); }

/* Stepper */
.nx-steps { list-style: none; margin: 0; padding: 10px 24px; display: flex; gap: 4px; border-bottom: 1px solid var(--line); background: var(--bg-2); overflow-x: auto; scrollbar-width: none; }
.nx-steps li { flex: 1 1 auto; min-width: 0; position: relative; }
.nx-steps li + li::before { content: ""; position: absolute; left: -4px; top: 50%; width: 4px; height: 1px; background: var(--line-3); }
.nx-steps button { width: 100%; display: flex; align-items: center; gap: 7px; padding: 5px 8px 5px 5px; border-radius: var(--r-pill); border: 1px solid transparent; font-size: var(--fs-xs); color: var(--tx-3); white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); }
.nx-steps button span:last-child { overflow: hidden; text-overflow: ellipsis; }
.nx-steps button:not(:disabled):hover { background: var(--s2); color: var(--tx); }
.nx-steps button:disabled { cursor: default; opacity: .7; }
.nx-steps__n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--s4); font-size: 11px; font-weight: 600; color: var(--tx-2); }
.nx-steps__n svg { width: 12px; height: 12px; }
.nx-steps li.done .nx-steps__n { background: var(--ok-soft); color: var(--ok); }
.nx-steps li.done button { color: var(--tx-2); }
.nx-steps li.on button { color: var(--tx); border-color: var(--red-line); background: var(--red-soft); font-weight: 500; }
.nx-steps li.on .nx-steps__n { background: var(--red); color: #fff; }

/* Cabeçalho de cada passo */
.nx-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.nx-head > div:first-child { flex: 1; min-width: 0; }
.nx-head__n { font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--red-tx); font-weight: 500; }
.nx-head h3 { font-size: var(--fs-lg); font-weight: 600; margin: 2px 0 2px; }
.nx-head p { font-size: var(--fs-sm); color: var(--tx-3); margin: 0; max-width: 760px; }
.nx-head__dir { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 46%; }
.nx-head__dir .pill { height: auto; min-height: 24px; white-space: normal; padding: 4px 10px; line-height: 1.3; }

/* ---------- Passo 1: identificação ---------- */
.nx-form { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 16px; }
.nx-f { min-width: 0; display: grid; align-content: start; }
.nx-f.c3 { grid-column: span 3; } .nx-f.c4 { grid-column: span 4; } .nx-f.c8 { grid-column: span 8; } .nx-f.c12 { grid-column: 1 / -1; }
.nx-form .input, .nx-form .select { width: 100%; }
.nx-ro { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); border: 1px dashed var(--line-2); background: var(--bg-2); color: var(--tx); font-size: var(--fs-sm); }
.nx-ro svg { width: 15px; height: 15px; color: var(--tx-3); }
.nx-ro small { margin-left: auto; font-size: var(--fs-2xs); color: var(--tx-4); font-family: var(--font); }
.nx-ro.sm { height: 34px; }
.nx-help { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: var(--fs-2xs); color: var(--tx-3); }
.nx-help svg { width: 13px; height: 13px; color: var(--ok); }
.nx-help.warn svg { color: var(--warn); }
.nx-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-sm); background: var(--s1); border: 1px solid var(--line-2); }
.nx-seg button { height: 32px; padding: 0 12px; border-radius: 7px; font-size: var(--fs-xs); color: var(--tx-3); transition: background var(--t-fast), color var(--t-fast); }
.nx-seg button:hover { color: var(--tx); }
.nx-seg button.on { background: var(--s4); color: var(--tx); font-weight: 500; }
.nx-seg.sm button { height: 26px; padding: 0 9px; font-size: var(--fs-2xs); }
.nx-form .nx-seg { display: flex; } .nx-form .nx-seg button { flex: 1; }
.nx-combo { position: relative; }
.nx-combo__list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); padding: 4px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--s2); box-shadow: var(--shadow-2); display: grid; gap: 2px; }
.nx-combo__list[hidden] { display: none; }
.nx-combo__list button { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); text-align: left; }
.nx-combo__list button:hover { background: var(--s3); }
.nx-combo__list button > span:last-child { display: grid; min-width: 0; }
.nx-combo__list b { font-weight: 500; font-size: var(--fs-sm); }
.nx-combo__list small { font-size: var(--fs-2xs); color: var(--tx-3); }
.nx-combo__list .avatar svg { width: 14px; height: 14px; }
.nx-contato { margin: 0; padding: 12px 14px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-2); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
.nx-contato legend { display: flex; align-items: center; gap: 6px; padding: 0 6px; font-size: var(--fs-sm); font-weight: 500; color: var(--tx); }
.nx-contato legend svg { width: 14px; height: 14px; color: var(--red-tx); }
.nx-contato legend small { font-weight: 400; font-size: var(--fs-2xs); color: var(--tx-3); }

/* ---------- Passo 2: itens ---------- */
.nx-tblw { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 12px; background: var(--s1); }
.nx-items { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.nx-items th { padding: 8px 12px; background: var(--bg-2); }
.nx-items td { padding: 8px 12px; }
.nx-items td b { font-weight: 500; display: block; }
.nx-items td small { display: block; font-size: var(--fs-2xs); }
.nx-items .num { text-align: right; }
.nx-items tr.editing td { background: var(--red-soft); }
.nx-items tfoot td { border-top: 1px solid var(--line-2); border-bottom: 0; background: var(--bg-2); color: var(--tx-3); font-size: var(--fs-xs); }
.nx-items tfoot b { color: var(--tx); }
.nx-n { color: var(--tx-3); width: 34px; }
.nx-acts { width: 84px; white-space: nowrap; }
.nx-acts .icon-btn { display: inline-grid; vertical-align: middle; }
.nx-acts .icon-btn { width: 32px; height: 32px; }
.nx-acts .icon-btn svg { width: 15px; height: 15px; }
.nx-cor { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nx-cor i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-3); flex: none; }
.nx-cor i + i { margin-left: -10px; }
.nx-gsum { display: flex; flex-wrap: wrap; gap: 4px; }
.nx-gsum span { display: inline-flex; gap: 4px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--s3); font-size: var(--fs-2xs); font-variant-numeric: tabular-nums; }
.nx-gsum i { font-style: normal; color: var(--tx-3); }
.nx-add { width: 100%; border-style: dashed; }
.nx-ed { padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--red-line); background: linear-gradient(180deg, var(--red-soft), var(--s1) 70%); display: grid; gap: 12px; }
.nx-ed__top { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); }
.nx-ed__top b { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; }
.nx-ed__top svg { width: 15px; height: 15px; color: var(--red-tx); }
.nx-ed__row { display: grid; grid-template-columns: minmax(200px, 1.1fr) auto minmax(250px, 1.2fr) minmax(250px, 1.1fr); gap: 14px; align-items: end; }
.nx-ed__row .select { width: 100%; }
.nx-cor-n { color: var(--tx); font-weight: 500; }
.nx-sws { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.nx-sw { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid var(--s1); box-shadow: 0 0 0 1px var(--line-3); transition: transform var(--t-fast), box-shadow var(--t-fast); }
.nx-sw:hover { transform: scale(1.08); }
.nx-sw.on { box-shadow: 0 0 0 2px var(--red); }
.nx-fmini { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.nx-fmini__art { width: 52px; height: 56px; flex: none; border-radius: 8px; background: color-mix(in srgb, var(--tx-3) 30%, var(--s3)); display: grid; place-items: center; overflow: hidden; }
.nx-fmini__art svg { width: 100%; height: 100%; }
.nx-fmini > span:last-child { display: grid; gap: 2px; min-width: 0; }
.nx-fmini small { font-size: var(--fs-2xs); color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-fmini .pill { justify-self: start; }
.nx-ed__gh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nx-ed__gh .lbl { margin: 0; }
.nx-check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--tx-2); cursor: pointer; }
.nx-check input { accent-color: var(--red); width: 15px; height: 15px; }
.nx-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.nx-grade label { display: grid; gap: 4px; text-align: center; font-size: var(--fs-xs); color: var(--tx-3); font-weight: 500; }
.nx-grade .input { width: 100%; text-align: center; padding: 0 4px; font-size: var(--fs-md); font-weight: 500; }
.nx-grade label.kid span { color: var(--info); }
.nx-grade label.kid .input { border-color: var(--info-soft); }
.nx-ed__foot { display: flex; align-items: center; gap: 8px; }
.nx-ed__foot .spacer { flex: 1; }
.nx-ed__tot { font-size: var(--fs-sm); color: var(--tx-3); }
.nx-ed__tot b { font-size: var(--fs-lg); color: var(--tx); font-weight: 600; }

/* ---------- Passo 3: aplicações por item ---------- */
.nx-itabs { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 2px; }
.nx-itab { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--s1); text-align: left; min-width: 0; flex: none; transition: border-color var(--t-fast), background var(--t-fast); }
.nx-itab:hover { border-color: var(--line-3); }
.nx-itab.on { border-color: var(--red-line); background: var(--red-soft); }
.nx-itab > .mono { color: var(--tx-3); font-size: var(--fs-xs); }
.nx-itab > span:nth-child(2) { display: grid; min-width: 0; }
.nx-itab b { font-weight: 500; font-size: var(--fs-sm); white-space: nowrap; }
.nx-itab small { font-size: var(--fs-2xs); color: var(--tx-3); }
.nx-apw { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.nx-apl { display: grid; gap: 10px; min-width: 0; }
.nx-pcores { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nx-pcores .lbl { margin: 0; }
.nx-pcores__l { display: flex; flex-wrap: wrap; gap: 6px; }
.nx-cchip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 5px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--s2); font-size: var(--fs-2xs); color: var(--tx-2); white-space: nowrap; }
.nx-cchip i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-3); flex: none; }
.nx-cchip svg { width: 11px; height: 11px; color: var(--tx-3); }
.nx-cchip:hover { border-color: var(--line-3); color: var(--tx); }
.nx-cchip.pc { border-style: dashed; color: var(--tx-3); }
.nx-cchip.pc.on { border-style: solid; border-color: var(--red-line); background: var(--red-soft); color: var(--tx); }
.nx-cchip small { font-size: 10px; color: var(--red-tx); }
.nx-ap { padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--s1); display: grid; gap: 8px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.nx-ap.hl { border-color: var(--red-line); box-shadow: 0 0 0 3px var(--red-soft); }
.nx-ap small { display: block; font-size: 10.5px; color: var(--tx-3); margin-bottom: 3px; }
.nx-ap .input, .nx-ap .select { width: 100%; height: 34px; font-size: var(--fs-sm); }
.nx-ap__r1 { display: grid; grid-template-columns: 26px 148px 104px 122px minmax(0, 1fr) 32px; gap: 10px; align-items: end; }
.nx-ap__n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--s3); font-size: 11px; font-weight: 600; color: var(--tx-2); margin-bottom: 4px; }
.nx-ap__dim span { display: flex; align-items: center; gap: 4px; }
.nx-ap__dim span i { font-style: normal; color: var(--tx-3); }
.nx-ap__dim .input { text-align: center; padding: 0 4px; }
.nx-ap__cores { min-width: 0; }
.nx-ap__cores > span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 34px; }
.nx-ap .nx-cadd { width: 76px; height: 26px; padding: 0 22px 0 8px; font-size: var(--fs-2xs); border-radius: var(--r-pill); }
.nx-ap__r1 > .icon-btn { width: 32px; height: 32px; }
.nx-ap__r1 > .icon-btn svg { width: 15px; height: 15px; }
.nx-ap__r2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; padding-left: 36px; }
.nx-ap__add { display: flex; gap: 8px; flex-wrap: wrap; }
.nx-apv { position: sticky; top: 0; }

/* ---------- Silhueta ---------- */
.nx-silh-w { padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-2); }
.nx-silh { width: 100%; height: auto; display: block; }
.nx-garment { fill: var(--s3); stroke: var(--line-3); stroke-width: 1.2; }
.nx-spot rect, .nx-spot circle, .nx-spot ellipse { fill: transparent; stroke: var(--tx-4); stroke-width: 1; stroke-dasharray: 3 2.5; transition: fill var(--t-med), stroke var(--t-med); }
.nx-spot.on rect, .nx-spot.on circle, .nx-spot.on ellipse { fill: var(--red-soft); stroke: var(--red); stroke-dasharray: none; stroke-width: 1.5; }
.nx-spot.hl rect, .nx-spot.hl circle, .nx-spot.hl ellipse { stroke: var(--red-tx); stroke-width: 2.5; fill: var(--red-soft); stroke-dasharray: none; }
.nx-silh text { fill: var(--tx-3); font-size: 11px; text-anchor: middle; font-family: var(--font); }

/* ---------- Passo 4: personalização ---------- */
.nx-pers { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.nx-pers__f { display: grid; min-width: 0; }
.nx-pers__r2 { display: grid; grid-template-columns: minmax(220px, .8fr) 1.2fr; gap: 16px; }
.nx-pers__r2 .input { width: 100%; }
.nx-pers__v { display: grid; gap: 8px; }
.nx-pers__v small, .nx-apv > small { font-size: var(--fs-2xs); text-align: center; }
.nx-apv { display: grid; gap: 8px; }
.nx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nx-mt { margin-top: 16px; }
.nx-ta { width: 100%; height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; }
.nx-where { padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-2); }
.nx-where__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.nx-where__h .lbl { margin: 0; }
.nx-where__r { display: grid; grid-template-columns: 26px 150px 1fr; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.nx-where__r .mono { color: var(--tx-3); font-size: var(--fs-xs); padding-top: 2px; }
.nx-where__r b { font-weight: 500; }
.nx-where__l { display: flex; flex-wrap: wrap; gap: 4px; }
.nx-where__l span:not(.muted) { padding: 2px 8px; border-radius: var(--r-pill); background: var(--s3); font-size: var(--fs-2xs); color: var(--tx-2); }

/* ---------- Passo 5: roteiro ---------- */
.nx-rt { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 22px; align-items: start; }
.nx-secs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.nx-sec { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--s1); font-size: var(--fs-sm); color: var(--tx-2); text-align: left; transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast); }
.nx-sec svg { width: 15px; height: 15px; color: var(--tx-3); flex: none; }
.nx-sec span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-sec .nx-sec__plus { opacity: 0; color: var(--red-tx); transition: opacity var(--t-fast); }
.nx-sec:hover { border-color: var(--red-line); background: var(--red-soft); color: var(--tx); }
.nx-sec:hover .nx-sec__plus { opacity: 1; }
.nx-route { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.nx-route li { display: flex; align-items: center; gap: 10px; padding: 3px 6px 3px 8px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--s1); position: relative; }
.nx-route li + li::before { content: ""; position: absolute; left: 19px; top: -6px; width: 2px; height: 6px; background: var(--line-3); }
.nx-route li.nx-new { animation: rise .5s var(--ease) both; border-color: var(--red-line); }
.nx-route__n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--s4); font-size: 11px; font-weight: 600; color: var(--tx); flex: none; }
.nx-route__ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--s3); flex: none; }
.nx-route__ic svg { width: 15px; height: 15px; color: var(--tx-2); }
.nx-route b { font-weight: 500; font-size: var(--fs-sm); }
.nx-route__acts { margin-left: auto; display: flex; gap: 2px; }
.nx-route__acts .icon-btn { width: 32px; height: 32px; }
.nx-route__acts .icon-btn svg { width: 15px; height: 15px; }
.nx-route__acts .icon-btn:disabled { opacity: .3; pointer-events: none; }

/* Estados vazios e notas */
.nx-empty { display: grid; justify-items: center; gap: 4px; padding: 28px 16px; border-radius: var(--r-md); border: 1px dashed var(--line-2); text-align: center; color: var(--tx-3); font-size: var(--fs-sm); }
.nx-empty svg { width: 22px; height: 22px; }
.nx-empty b { color: var(--tx); font-weight: 500; }
.nx-empty.sm { display: flex; justify-content: center; padding: 16px; font-size: var(--fs-xs); }
.nx-empty.sm svg { width: 16px; height: 16px; }
.nx-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--s3); font-size: var(--fs-xs); color: var(--tx-2); }
.nx-note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--info); }
.nx-note.sm { margin-top: 10px; padding: 8px 10px; }

/* ---------- Passos 6 e 7: arte e arquivos ---------- */
.nx-two { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.nx-side { display: grid; gap: 12px; align-content: start; }
.nx-side .select { width: 100%; }
.nx-drop { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1.5px dashed var(--line-3); background: var(--bg-2); text-align: left; color: var(--tx-3); font-size: var(--fs-xs); transition: border-color var(--t-fast), background var(--t-fast); }
.nx-drop:hover, .nx-drop.over { border-color: var(--red-line); background: var(--red-soft); }
.nx-drop b { display: block; color: var(--tx); font-weight: 500; font-size: var(--fs-sm); }
.nx-drop__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--s3); flex: none; }
.nx-drop__ic svg { width: 19px; height: 19px; color: var(--red-tx); }
.nx-drop.big { flex-direction: column; justify-content: center; text-align: center; gap: 8px; min-height: 340px; }
.nx-drop.big .nx-drop__ic { width: 56px; height: 56px; border-radius: 16px; }
.nx-drop.big .nx-drop__ic svg { width: 26px; height: 26px; }
.nx-drop.big b { font-size: var(--fs-md); }
.nx-drop.big .btn { margin-top: 6px; }
.nx-drop.loading { opacity: .6; pointer-events: none; }
.nx-art { border-radius: var(--r-md); border: 1px solid var(--line-2); overflow: hidden; background: var(--s1); }
.nx-art img { display: block; width: 100%; max-height: 340px; object-fit: contain; background: var(--bg-2); }
.nx-art__bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.nx-art__f { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 180px; }
.nx-art__f > svg { width: 18px; height: 18px; color: var(--tx-3); flex: none; }
.nx-art__f > span { display: grid; }
.nx-art__f b { font-weight: 500; font-size: var(--fs-sm); }
.nx-art__f small { font-size: var(--fs-2xs); color: var(--tx-3); }
.nx-art__bar .icon-btn { width: 32px; height: 32px; }
.nx-art__bar .icon-btn svg { width: 15px; height: 15px; }
.nx-callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--warn-soft); background: var(--warn-soft); font-size: var(--fs-xs); color: var(--tx-2); }
.nx-callout > svg { width: 18px; height: 18px; flex: none; color: var(--warn); }
.nx-callout p { margin: 0; }
.nx-callout b { color: var(--tx); font-weight: 600; }
.nx-callout.red { border-color: var(--red-line); background: var(--red-soft); }
.nx-callout.red > svg { color: var(--red-tx); }
.nx-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nx-how li { display: flex; gap: 10px; align-items: flex-start; }
.nx-how li > span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--s4); font-size: 11px; font-weight: 600; flex: none; }
.nx-how div { display: grid; }
.nx-how b { font-weight: 500; font-size: var(--fs-sm); }
.nx-how small { font-size: var(--fs-2xs); color: var(--tx-3); }
.nx-files { display: grid; gap: 10px; }
.nx-flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nx-flist li { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 8px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--s1); }
.nx-flist__ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--info-soft); color: var(--info); }
.nx-flist__ic.logo { background: var(--red-soft); color: var(--red-tx); }
.nx-flist__ic svg { width: 16px; height: 16px; }
.nx-flist__n { flex: 1; display: grid; min-width: 0; }
.nx-flist__n b { font-weight: 500; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-flist__n small { font-size: var(--fs-2xs); color: var(--tx-3); }
.nx-flist .icon-btn { width: 32px; height: 32px; }
.nx-flist .icon-btn svg { width: 14px; height: 14px; }
.nx-ficha-ex { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-2); }
.nx-ficha-ex__art { width: 64px; height: 70px; border-radius: 10px; background: color-mix(in srgb, var(--tx-3) 30%, var(--s3)); flex: none; overflow: hidden; display: grid; place-items: center; }
.nx-ficha-ex__art svg { width: 100%; height: 100%; }
.nx-ficha-ex > span:last-child { display: grid; gap: 3px; justify-items: start; }
.nx-ficha-ex small { font-size: var(--fs-2xs); }
.nx-ficha-ex b { font-weight: 500; font-size: var(--fs-sm); }
.nx-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-xs); color: var(--tx-2); }
.nx-legend li { display: flex; gap: 8px; align-items: flex-start; }
.nx-legend svg { width: 15px; height: 15px; color: var(--tx-3); flex: none; margin-top: 1px; }
.nx-legend b { color: var(--tx); font-weight: 500; }

/* ---------- Passo 8: pagamento ---------- */
.nx-pay { display: grid; gap: 10px; }
.nx-popts { display: grid; gap: 8px; }
.nx-popt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--s1); text-align: left; transition: border-color var(--t-fast), background var(--t-fast); }
.nx-popt:hover { border-color: var(--line-3); }
.nx-popt.on { border-color: var(--red-line); background: var(--red-soft); }
.nx-popt__r { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-3); flex: none; display: grid; place-items: center; }
.nx-popt.on .nx-popt__r { border-color: var(--red); }
.nx-popt.on .nx-popt__r::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.nx-popt__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--s3); flex: none; }
.nx-popt__ic svg { width: 16px; height: 16px; color: var(--tx-2); }
.nx-popt > span:last-child { display: grid; }
.nx-popt b { font-weight: 500; font-size: var(--fs-sm); }
.nx-popt small { font-size: var(--fs-xs); color: var(--tx-3); }
.nx-trust { position: relative; }
.nx-pay .nx-note { margin-top: 0; }
.nx-money { display: grid; gap: 0; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--s1); overflow: hidden; }
.nx-money > div { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.nx-money > div:last-child { border-bottom: 0; background: var(--bg-2); }
.nx-money small { font-size: var(--fs-xs); color: var(--tx-3); }
.nx-money b { grid-row: span 2; font-size: var(--fs-lg); font-weight: 600; text-align: right; }
.nx-money span.muted { font-size: var(--fs-2xs); }
.nx-money__st .pill { grid-row: span 1; justify-self: end; }

/* ---------- Passo 9: revisão ---------- */
.nx-rvsum { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.nx-rvsum > div { padding: 9px 12px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 1px; min-width: 0; }
.nx-rvsum small { font-size: var(--fs-2xs); color: var(--tx-3); }
.nx-rvsum b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-rvgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nx-rv { padding: 10px 14px 12px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--s1); display: grid; gap: 6px; align-content: start; min-width: 0; }
.nx-rv.w2 { grid-column: span 2; }
.nx-rv.w3 { grid-column: 1 / -1; }
.nx-rv.w3 .nx-kv { grid-template-columns: 120px 1fr; }
.nx-rv header { display: flex; align-items: center; gap: 8px; }
.nx-rv header > svg { width: 15px; height: 15px; color: var(--red-tx); }
.nx-rv header b { font-weight: 600; font-size: var(--fs-sm); }
.nx-rv header .btn { margin-left: auto; height: 26px; padding: 0 8px; }
.nx-kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: var(--fs-xs); color: var(--tx); }
.nx-kv small { color: var(--tx-3); font-size: var(--fs-2xs); padding-top: 1px; }
.nx-rvl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nx-rvl li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); }
.nx-rvl li:last-child { border-bottom: 0; }
.nx-rvl li > span:nth-child(2) { flex: 1; display: grid; min-width: 0; }
.nx-rvl b { font-weight: 500; }
.nx-rvl small { font-size: var(--fs-2xs); color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-rvl .nx-cor { min-width: 24px; }
.nx-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nx-chain span { padding: 3px 9px; border-radius: var(--r-pill); background: var(--s3); font-size: var(--fs-2xs); }
.nx-chain__sep { width: 12px; height: 12px; color: var(--tx-4); }
.nx-rvart { display: flex; gap: 10px; align-items: flex-start; }
.nx-rvart img, .nx-rvart__no { width: 92px; height: 62px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; background: var(--bg-2); }
.nx-rvart__no { display: grid; place-items: center; color: var(--tx-4); }
.nx-rvart > div { display: grid; gap: 4px; justify-items: start; font-size: var(--fs-xs); min-width: 0; }
.nx-rvart b { font-weight: 500; word-break: break-all; }
.nx-rvart small { font-size: var(--fs-2xs); }
.nx-rvpay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Telas menores ---------- */
@media (max-width: 1100px) {
  .nx-ed__row { grid-template-columns: 1fr 1fr; }
  .nx-apw, .nx-pers, .nx-two, .nx-rt { grid-template-columns: 1fr; }
  .nx-ap__r1 { grid-template-columns: 26px 1fr 1fr 150px 32px; }
  .nx-ap__cores { grid-column: 2 / -1; grid-row: 2; }
  .nx-apv { position: static; max-width: 420px; }
  .nx-steps button span:last-child { display: none; }
  .nx-steps li.on button span:last-child { display: inline; }
}
@media (max-width: 720px) {
  .nx-form { grid-template-columns: 1fr; }
  .nx-f.c3, .nx-f.c4, .nx-f.c8 { grid-column: 1 / -1; }
  .nx-contato, .nx-pers__r2, .nx-rvpay { grid-template-columns: 1fr; }
  .nx-rvsum, .nx-rvgrid { grid-template-columns: 1fr 1fr; }
  .nx-rv.w2 { grid-column: 1 / -1; }
  .nx-head { flex-direction: column; } .nx-head__dir { max-width: none; justify-content: flex-start; }
  .nx-ap__r1 { grid-template-columns: 26px 1fr 32px; }
  .nx-ap__r1 > label:nth-of-type(n+2) { grid-column: 2 / -1; }
  .nx-ap__r2 { grid-template-columns: 1fr; padding-left: 0; }
  .nx-tot span:not(:last-child) { display: none; }
  .nx-next-l { display: none; }
  .nx-itab .pill { display: none; }
  .nx-modal .modal__foot .btn { padding: 0 12px; }
}

/* Desenho da ficha em miniatura (sobrepõe o tamanho do .prd-sketch.compact) */
.nx-fmini__art .prd-sketch.compact, .nx-ficha-ex__art .prd-sketch.compact { width: 100%; height: 100%; max-height: none; filter: none; }
/* rascunho da Nova OS guardado neste aparelho (revisão 10/11 · E3) */
.nx-rasc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 24px 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--info-soft, rgba(80, 140, 255, .12)); border: 1px solid var(--line-2); }
.nx-rasc > svg { width: 18px; height: 18px; flex: none; color: var(--info, #6aa0ff); }
.nx-rasc > div { flex: 1; min-width: 180px; display: grid; gap: 2px; }
.nx-rasc small { color: var(--tx-2); }
@media (max-width: 640px) { .nx-rasc { margin: 10px 16px 0; } .nx-rasc > div { flex: 1 1 calc(100% - 28px); } .nx-rasc .btn { flex: 1; min-height: 44px; } }   /* no celular os botões descem para a linha de baixo */

/* Revisão · Informações adicionais do Modelo da OS (revisão 10/11 · N2) */
.nx-rv--campos { grid-column: 1 / -1; }
.nx-cps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; }
.nx-cps .nx-f { display: grid; gap: 5px; min-width: 0; }
.nx-cps .req { color: var(--red); font-style: normal; }
.nx-cp-aviso { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; color: var(--tx-2); font-size: var(--fs-sm); line-height: 1.45; }
.nx-cp-aviso svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--warn); }
.nx-cp-aviso[hidden] { display: none; }
