feat: new layout phase E, the order panel and Revisão as on the canvas

Roadmap Novo Layout, phase E (canvas P2, D2, Ph3): the panel without the
empty column (the item preview stays in Cotações and Abrir e conferir),
Próximo passo with its actions together and the primary last, the item
facts in a four-column grid (the secondary facts kept in a second row),
the Cliente, Entrega and Máquina blocks, and the Revisão dialog with the
camera card and the drop area. Every nextBox branch, action and
permission is unchanged. Built by Prensa.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-16 11:52:54 -03:00
parent 392a21082e
commit fb23b63090
2 changed files with 95 additions and 59 deletions

View File

@@ -2,7 +2,7 @@
conferir (fronts 2/7). Loaded after kanban.js, which defines $, api, node, conferir (fronts 2/7). Loaded after kanban.js, which defines $, api, node,
button, svgIcon, IC, badge, money, when, ago, metres, plural, say, may, button, svgIcon, IC, badge, money, when, ago, metres, plural, say, may,
mayMove, mayAct, myMachine, board, ME, MODALS, load, render, dialog, modal, mayMove, mayAct, myMachine, board, ME, MODALS, load, render, dialog, modal,
formDialog, field, checkbox, dropField, iconButton, gradePill, itemPreview, formDialog, field, checkbox, dropField, iconButton, gradePill,
productName, sheetSize, buyer, cnpj, docKind, copyButton, freightWeight, productName, sheetSize, buyer, cnpj, docKind, copyButton, freightWeight,
whatsappLink, download, downloadButton, FOLDER, STAGE_FOLDERS, FLOW, kv, whatsappLink, download, downloadButton, FOLDER, STAGE_FOLDERS, FLOW, kv,
orderCode, fileCode, stateName, manifest, contractionRecord and cm. */ orderCode, fileCode, stateName, manifest, contractionRecord and cm. */
@@ -41,9 +41,7 @@ function renderPanel(order){
// The head: who, where the order is, and what it is called. // The head: who, where the order is, and what it is called.
const top=node('div',undefined,'dtop'); const top=node('div',undefined,'dtop');
const name=node('span',who.title,'dname');name.title=[who.legal,who.mail].filter(Boolean).join(' · ')||who.title; const name=node('span',who.title,'dname');name.title=[who.legal,who.mail].filter(Boolean).join(' · ')||who.title;
const stage=node('span',undefined,'stage'+(order.cancelled_at?' bad':'')); const stage=node('span',order.cancelled_at?'Cancelado':stateName(order.state),'stage'+(order.cancelled_at?' bad':''));
stage.append(svgIcon(order.cancelled_at?IC.ban:GLYPH[order.state]||GLYPH.rec,'sg'+(order.state==='cor'||order.cancelled_at?' cor':'')),
order.cancelled_at?'Cancelado':stateName(order.state));
const tools=node('span',undefined,'dtools'); const tools=node('span',undefined,'dtools');
const more=moreMenu(order);if(more)tools.append(more); const more=moreMenu(order);if(more)tools.append(more);
tools.append(iconButton(IC.close,'Fechar',closePanel)); tools.append(iconButton(IC.close,'Fechar',closePanel));
@@ -76,7 +74,7 @@ function renderPanel(order){
const head=node('div',undefined,'dhead');head.append(top,sub,steps); const head=node('div',undefined,'dhead');head.append(top,sub,steps);
// The phone's head: back, the order and where it is, its menu. // The phone's head: back, the order and where it is, its menu.
const mhead=node('div',undefined,'mhead phone'),mt=node('span',undefined,'t'); const mhead=node('div',undefined,'mhead phone'),mt=node('span',undefined,'t');
mt.append(node('b','#'+order.number+' '+who.title),node('span',(order.cancelled_at?'Cancelado':stateName(order.state))+', '+money(s.total_cents)+(isTest(order)?' de teste':' pago'))); mt.append(node('b','#'+order.number+' · '+who.title),node('span',(order.cancelled_at?'Cancelado':stateName(order.state))+' · '+money(s.total_cents)+(isTest(order)?' de teste':' pago')));
const phoneMore=moreMenu(order,'mic'); const phoneMore=moreMenu(order,'mic');
mhead.append(iconButton(IC.left,'Voltar',closePanel,'mic'),mt,...(phoneMore?[phoneMore]:[])); mhead.append(iconButton(IC.left,'Voltar',closePanel,'mic'),mt,...(phoneMore?[phoneMore]:[]));
@@ -295,7 +293,7 @@ function nextBox(order){
return composeNext(title,body,main,more); return composeNext(title,body,main,more);
} }
const fixBtn=()=>{if(!trans.includes('cor')||!can('cor'))return; const fixBtn=()=>{if(!trans.includes('cor')||!can('cor'))return;
const b=node('button','Pedir correção','btn quiet lg');b.type='button';b.dataset.move='cor';b.onclick=()=>correctionDialog(order);more.push(b);}; const b=node('button','Pedir correção','btn ghost lg');b.type='button';b.dataset.move='cor';b.onclick=()=>correctionDialog(order);more.push(b);};
const proofBtn=(className='btn lg')=>{if(!proofPending(order)||order.proof_card||!may('print'))return null; const proofBtn=(className='btn lg')=>{if(!proofPending(order)||order.proof_card||!may('print'))return null;
const b=button('Prova OK',()=>proofOk(order),className);b.dataset.proof='';b.title='A prova foi impressa e conferida';return b;}; const b=button('Prova OK',()=>proofOk(order),className);b.dataset.proof='';b.title='A prova foi impressa e conferida';return b;};
const cannot=()=>note(!mayAct(order)?'Pedido da '+(order.machine?.name||'outra máquina')+': só quem está nela move o card.' const cannot=()=>note(!mayAct(order)?'Pedido da '+(order.machine?.name||'outra máquina')+': só quem está nela move o card.'
@@ -409,8 +407,9 @@ function nextBox(order){
} }
function composeNext(title,body,main,more){ function composeNext(title,body,main,more){
const box=node('section',undefined,'nextbox');box.setAttribute('aria-label','Próximo passo'); const box=node('section',undefined,'nextbox');box.setAttribute('aria-label','Próximo passo');
const info=node('div',undefined,'ninfo');
const head=node('div');head.append(node('span','Próximo passo','lbl'),node('h3',title)); const head=node('div');head.append(node('span','Próximo passo','lbl'),node('h3',title));
box.append(head,...body); info.append(head,...body);box.append(info);
if(main.length||more.length){const acts=node('div',undefined,'nact');acts.append(...main,...more);box.append(acts);} if(main.length||more.length){const acts=node('div',undefined,'nact');acts.append(...main,...more);box.append(acts);}
return box; return box;
} }
@@ -608,21 +607,33 @@ async function photoSize(file){
} }
function reviewDialog(order){ function reviewDialog(order){
const host=dialogHost(); const host=dialogHost();
const video=node('video');video.className='reviewcam';video.muted=true;video.playsInline=true;video.autoplay=true; const video=node('video');video.className='reviewcam';video.muted=true;video.playsInline=true;video.autoplay=true;video.hidden=true;
video.setAttribute('aria-label','Pré-visualização da câmera'); video.setAttribute('aria-label','Pré-visualização da câmera');
const timer=node('span','0:00 / 0:30','reviewtime');timer.setAttribute('aria-live','polite'); const timer=node('span','0:00 / 0:30','reviewtime');timer.setAttribute('aria-live','polite');
const controls=node('div',undefined,'reviewcontrols'); const controls=node('div',undefined,'reviewcontrols');controls.hidden=true;
const photoBtn=node('button','Tirar foto','btn pri');photoBtn.type='button';photoBtn.setAttribute('aria-label','Tirar foto');photoBtn.setAttribute('autofocus',''); const photoBtn=node('button','Tirar foto','btn pri');photoBtn.type='button';photoBtn.setAttribute('aria-label','Tirar foto');photoBtn.setAttribute('autofocus','');
const videoBtn=node('button','Gravar vídeo','btn');videoBtn.type='button';videoBtn.setAttribute('aria-label','Gravar vídeo'); const videoBtn=node('button','Gravar vídeo','btn');videoBtn.type='button';videoBtn.setAttribute('aria-label','Gravar vídeo');
const input=node('input');input.type='file';input.className='vh'; const input=node('input');input.type='file';input.className='vh';
input.accept='image/jpeg,image/png,image/webp,video/mp4,video/webm,video/quicktime'; input.accept='image/jpeg,image/png,image/webp,video/mp4,video/webm,video/quicktime';
const fileLabel=node('label',undefined,'btn');fileLabel.tabIndex=0; const drop=node('label',undefined,'reviewdrop');drop.tabIndex=0;
fileLabel.append(svgIcon(IC.upload,'i m'),'Enviar arquivo',input); const dropIco=node('span',undefined,'dropico');dropIco.append(svgIcon(IC.upload));
drop.append(dropIco,node('b','Arraste a foto ou o vídeo'),node('span','ou'),
node('span','Escolher arquivo','btn sm'),input);
const camCard=node('div',undefined,'reviewcamcard');
const camLabel=node('div',undefined,'reviewcamlabel');
const camIco=node('span',undefined,'reviewcamico');camIco.append(svgIcon(IC.camera));
camLabel.append(camIco,node('b','Usar a câmera'),node('span','foto ou vídeo'));
camCard.append(video,camLabel);
const drops=node('div',undefined,'reviewdrops');drops.append(camCard,drop);
const hint=node('p',undefined,'reviewnote');
hint.append(svgIcon(IC.info,'i s'),node('span','A foto precisa de pelo menos '+REVIEW_PHOTO_MIN+' px no lado maior.'));
const nocam=node('p',undefined,'reviewnote bad');nocam.hidden=true;
nocam.append(svgIcon(IC.camera,'i s'),node('span','Este computador não tem câmera. Envie um arquivo, ou faça a revisão pelo celular.'));
const preview=node('div',undefined,'reviewpreview');preview.hidden=true; const preview=node('div',undefined,'reviewpreview');preview.hidden=true;
const status=node('p','','reviewmsg');status.setAttribute('role','status');status.setAttribute('aria-live','polite'); const status=node('p','','reviewmsg');status.setAttribute('role','status');status.setAttribute('aria-live','polite');
const save=node('button','Salvar revisão','btn pri');save.type='button';save.disabled=true; const save=node('button','Salvar revisão','btn pri');save.type='button';save.disabled=true;
const cancel=node('button','Cancelar','btn ghost right');cancel.type='button'; const cancel=node('button','Cancelar','btn ghost right');cancel.type='button';
controls.append(photoBtn,videoBtn,fileLabel); controls.append(photoBtn,videoBtn,timer);
let stream=null,recorder=null,recordTimer=null,chunks=[],ready=null,objectUrl=null,closed=false,recording=false,recordStart=0; let stream=null,recorder=null,recordTimer=null,chunks=[],ready=null,objectUrl=null,closed=false,recording=false,recordStart=0;
const fail=text=>{status.textContent=text;status.classList.add('bad');}; const fail=text=>{status.textContent=text;status.classList.add('bad');};
const clear=()=>{status.textContent='';status.classList.remove('bad');}; const clear=()=>{status.textContent='';status.classList.remove('bad');};
@@ -639,7 +650,7 @@ function reviewDialog(order){
function showReady(file,kind){ function showReady(file,kind){
ready={file,kind}; ready={file,kind};
endStream(); endStream();
video.hidden=true;photoBtn.hidden=true;videoBtn.hidden=true;timer.hidden=true; drops.hidden=true;controls.hidden=true;nocam.hidden=true;
if(objectUrl)URL.revokeObjectURL(objectUrl); if(objectUrl)URL.revokeObjectURL(objectUrl);
objectUrl=URL.createObjectURL(file); objectUrl=URL.createObjectURL(file);
preview.replaceChildren(); preview.replaceChildren();
@@ -724,7 +735,13 @@ function reviewDialog(order){
showReady(file,'photo'); showReady(file,'photo');
} }
}; };
fileLabel.onkeydown=event=>{if(event.key==='Enter'||event.key===' '){event.preventDefault();input.click();}}; drop.onkeydown=event=>{if(event.key==='Enter'||event.key===' '){event.preventDefault();input.click();}};
drop.ondragover=event=>{event.preventDefault();drop.classList.add('over');};
drop.ondragleave=()=>drop.classList.remove('over');
drop.ondrop=event=>{event.preventDefault();drop.classList.remove('over');
if(!event.dataTransfer.files.length)return;
const list=new DataTransfer();list.items.add(event.dataTransfer.files[0]);input.files=list.files;
input.dispatchEvent(new Event('change',{bubbles:true}));};
cancel.onclick=()=>m.close(); cancel.onclick=()=>m.close();
save.onclick=async()=>{ save.onclick=async()=>{
if(!ready)return; if(!ready)return;
@@ -743,22 +760,22 @@ function reviewDialog(order){
} }
}; };
const m=modal('Revisão do #'+order.number,{host,width:640, const m=modal('Revisão do #'+order.number,{host,width:640,
text:'Tire uma foto ou grave um vídeo de até 30 s da folha impressa, ou envie um arquivo. '+ text:'Uma foto ou um vídeo de até 30 s da folha impressa.',
'A foto precisa de pelo menos '+REVIEW_PHOTO_MIN+' px no lado maior.', body:[drops,controls,preview,hint,nocam],foot:[status,cancel,save],onclose:cleanup});
body:[video,controls,timer,preview],foot:[status,cancel,save],onclose:cleanup}); m.box.classList.add('reviewdialog');
(async()=>{ (async()=>{
try{ try{
if(!navigator.mediaDevices?.getUserMedia)throw new Error('sem câmera'); if(!navigator.mediaDevices?.getUserMedia)throw new Error('sem câmera');
stream=await navigator.mediaDevices.getUserMedia({video:{facingMode:'environment', stream=await navigator.mediaDevices.getUserMedia({video:{facingMode:'environment',
width:{ideal:1920},height:{ideal:1080}},audio:false}); width:{ideal:1920},height:{ideal:1080}},audio:false});
if(closed){endStream();return;} if(closed){endStream();return;}
video.srcObject=stream; video.srcObject=stream;video.hidden=false;
await video.play().catch(()=>{}); await video.play().catch(()=>{});
controls.hidden=false;
photoBtn.focus(); photoBtn.focus();
}catch(_){ }catch(_){
endStream();video.hidden=true;photoBtn.hidden=true;videoBtn.hidden=true;timer.hidden=true; endStream();camCard.classList.add('off');nocam.hidden=false;
fail('Câmera indisponível neste computador. Envie um arquivo.'); drop.focus();
fileLabel.focus();
} }
})(); })();
} }
@@ -964,16 +981,18 @@ function itemCard(order,item,index){
const box=node('section',undefined,'item');box.setAttribute('aria-label','Item '+(index+1)); const box=node('section',undefined,'item');box.setAttribute('aria-label','Item '+(index+1));
const info=node('div',undefined,'iinfo'); const info=node('div',undefined,'iinfo');
const count=order.snapshot.items.length; const count=order.snapshot.items.length;
info.append(node('span',count>1?'Item '+(index+1)+' de '+count:'Item','lbl'),node('h3',productName(item))); if(count>1)info.append(node('span','Item '+(index+1)+' de '+count,'lbl'));
info.append(node('h3',productName(item)));
const dl=node('dl',undefined,'dl'); const dl=node('dl',undefined,'dl');
const pair=(k,v)=>{if(v===null||v===undefined||v==='')return;const d=node('div');const dd=node('dd');dd.append(v);d.append(node('dt',k),dd);dl.append(d);}; const pair=(k,v)=>{if(v===null||v===undefined||v==='')return;const d=node('div');const dd=node('dd');dd.append(v);d.append(node('dt',k),dd);dl.append(d);};
pair('Folha',sheetSize(spec));pair('Metros cobrados',metres(item.billed_metres)); pair('Metros cobrados',metres(item.billed_metres));
pair('Peças',spec?String(spec.placements.length):null);
pair('Valor do metro',item.unit_cents?money(item.unit_cents)+manualExtra(item):null); pair('Valor do metro',item.unit_cents?money(item.unit_cents)+manualExtra(item):null);
const g=node('span',undefined,'gradeline');g.append(gradePill(item.grade));pair('Nota da arte',g); const g=node('span',undefined,'gradeline');g.append(gradePill(item.grade));pair('Nota da arte',g);
pair('Contração',contractionControl(order,index));
pair('Folha',sheetSize(spec));
pair('Peças',spec?String(spec.placements.length):null);
pair('Menor resolução',row?.status==='ready'&&row.detail?.min_dpi?row.detail.min_dpi+' DPI':null); pair('Menor resolução',row?.status==='ready'&&row.detail?.min_dpi?row.detail.min_dpi+' DPI':null);
pair('Arquivos',spec&&spec.sources.length>1?String(spec.sources.length):null); pair('Arquivos',spec&&spec.sources.length>1?String(spec.sources.length):null);
pair('Contração',contractionControl(order,index));
info.append(dl); info.append(dl);
const notes=node('div',undefined,'inotes'); const notes=node('div',undefined,'inotes');
if(item.quality_status==='warning')notes.append(itemNote('O cliente aceitou a ressalva de resolução.','warn')); if(item.quality_status==='warning')notes.append(itemNote('O cliente aceitou a ressalva de resolução.','warn'));
@@ -1029,7 +1048,7 @@ function itemCard(order,item,index){
if(may('produce')&&!fix&&['rec','tra'].includes(order.state)&&!waitingProof(order)&&(!row||row.status==='manual'||row.status==='failed'||row.timed_out)){ if(may('produce')&&!fix&&['rec','tra'].includes(order.state)&&!waitingProof(order)&&(!row||row.status==='manual'||row.status==='failed'||row.timed_out)){
const again=button('Gerar de novo',async()=>{await api('/orders/'+order.id+'/print-files',{});await load();},'btn');again.prepend(svgIcon(IC.refresh,'i m'));links.append(again);} const again=button('Gerar de novo',async()=>{await api('/orders/'+order.id+'/print-files',{});await load();},'btn');again.prepend(svgIcon(IC.refresh,'i m'));links.append(again);}
info.append(links); info.append(links);
box.append(itemPreview(item),info);return box; box.append(info);return box;
} }
// Arquivos: every final, current or replaced, and the way to send a new one. // Arquivos: every final, current or replaced, and the way to send a new one.
function filesView(order,revisions,view){ function filesView(order,revisions,view){

View File

@@ -280,7 +280,22 @@ main{padding:0}
.card-open:hover,.card-open:focus-visible{border-color:var(--acc);color:var(--acc)} .card-open:hover,.card-open:focus-visible{border-color:var(--acc);color:var(--acc)}
.card-open-row{display:flex;flex-wrap:wrap;gap:6px} .card-open-row{display:flex;flex-wrap:wrap;gap:6px}
/* A review photo or video: live camera, the preview, and the order's list. */ /* A review photo or video: live camera, the preview, and the order's list. */
.reviewcam{width:100%;aspect-ratio:16/9;object-fit:contain;background:var(--bg);border:1px solid var(--ln2);border-radius:10px;display:block} .reviewdrops{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.reviewcamcard{position:relative;height:168px;border:1px solid var(--ln2);border-radius:12px;background:var(--sf2);overflow:hidden;display:flex;align-items:center;justify-content:center;text-align:center;padding:14px}
.reviewcamcard.off{opacity:.55}
.reviewcam{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000;display:block}
.reviewcamlabel{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:6px;padding:6px 10px;border-radius:9px;background:color-mix(in srgb,var(--sf) 72%,transparent);color:var(--tx2)}
.reviewcamlabel b{font-size:14px;font-weight:600;color:var(--tx)}
.reviewcamlabel span{font-size:12.5px;color:var(--tx3)}
.reviewcamico{width:36px;height:36px;border-radius:10px;background:var(--sf3);display:flex;align-items:center;justify-content:center;color:var(--tx3)}
.reviewdrop{height:168px;padding:14px;border:1.5px dashed var(--ln3);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;cursor:pointer;color:var(--tx2);transition:border-color .15s,background .15s}
.reviewdrop:hover,.reviewdrop.over{border-color:var(--acc);background:color-mix(in srgb,var(--acc) 5%,transparent)}
.reviewdrop:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.reviewdrop b{font-size:14px;font-weight:600;color:var(--tx)}
.reviewdrop>span:not(.dropico):not(.btn){font-size:12.5px;color:var(--tx3)}
.reviewnote{display:flex;align-items:flex-start;gap:8px;margin:0;font-size:12.5px;color:var(--tx2)}
.reviewnote .i{margin-top:2px;flex:none;color:var(--tx3)}
.reviewnote.bad,.reviewnote.bad .i{color:var(--bad)}
.reviewpreview{width:100%;aspect-ratio:16/9;background:var(--bg);border:1px solid var(--ln2);border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center} .reviewpreview{width:100%;aspect-ratio:16/9;background:var(--bg);border:1px solid var(--ln2);border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.reviewpreview img,.reviewpreview video{width:100%;height:100%;object-fit:contain;display:block} .reviewpreview img,.reviewpreview video{width:100%;height:100%;object-fit:contain;display:block}
.reviewcontrols{display:flex;flex-wrap:wrap;align-items:center;gap:8px} .reviewcontrols{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
@@ -288,6 +303,8 @@ main{padding:0}
.reviewtime{font-size:12px;color:var(--tx3);font-variant-numeric:tabular-nums} .reviewtime{font-size:12px;color:var(--tx3);font-variant-numeric:tabular-nums}
.reviewmsg{flex:1;min-width:0;margin:0;font-size:13px;color:var(--tx2)} .reviewmsg{flex:1;min-width:0;margin:0;font-size:13px;color:var(--tx2)}
.reviewmsg.bad{color:var(--bad)} .reviewmsg.bad{color:var(--bad)}
.modal.reviewdialog .dlghead{padding-bottom:18px;border-bottom:1px solid var(--ln)}
.modal.reviewdialog .dfoot{padding-top:14px;border-top:1px solid var(--ln)}
.reviewlist{display:flex;flex-direction:column;max-height:220px;overflow:auto;border-top:1px solid var(--ln)} .reviewlist{display:flex;flex-direction:column;max-height:220px;overflow:auto;border-top:1px solid var(--ln)}
.reviewsec{padding-top:22px;border-top:1px solid var(--ln)} .reviewsec{padding-top:22px;border-top:1px solid var(--ln)}
.reviewrow{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--ln)} .reviewrow{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--ln)}
@@ -381,18 +398,17 @@ main{padding:0}
then Pedido, Arquivos and Histórico. Its dialogs sit in #drawer beside it. */ then Pedido, Arquivos and Histórico. Its dialogs sit in #drawer beside it. */
.dwrap{position:fixed;inset:0;z-index:20} .dwrap{position:fixed;inset:0;z-index:20}
.dwrap>.scrim{position:absolute;inset:0;background:var(--scrim);-webkit-backdrop-filter:blur(3px) saturate(.6);backdrop-filter:blur(3px) saturate(.6);animation:fade .25s ease both} .dwrap>.scrim{position:absolute;inset:0;background:var(--scrim);-webkit-backdrop-filter:blur(3px) saturate(.6);backdrop-filter:blur(3px) saturate(.6);animation:fade .25s ease both}
.drawer{position:absolute;top:0;right:0;bottom:0;width:760px;max-width:100%;background:var(--sf);border-left:1px solid var(--ln2);display:flex;flex-direction:column;animation:drawerIn .45s cubic-bezier(.16,1,.3,1) both;box-shadow:-40px 0 80px -40px rgba(0,0,0,.55)} .drawer{position:absolute;top:0;right:0;bottom:0;width:820px;max-width:100%;background:var(--sf);border-left:1px solid var(--ln2);display:flex;flex-direction:column;animation:drawerIn .45s cubic-bezier(.16,1,.3,1) both;box-shadow:-40px 0 80px -40px rgba(0,0,0,.55)}
.dhead{padding:22px 28px 20px;display:flex;flex-direction:column;gap:16px;border-bottom:1px solid var(--ln);flex-shrink:0} .dhead{padding:22px 28px 0;display:flex;flex-direction:column;gap:14px;flex-shrink:0}
.dtop{display:flex;align-items:center;gap:12px;min-width:0} .dtop{display:flex;align-items:center;gap:12px;min-width:0}
.dnum{font-weight:650;font-size:26px;line-height:1;letter-spacing:-.02em;flex:none} .dnum{font-weight:650;font-size:26px;line-height:1;letter-spacing:-.02em;flex:none}
.dname{font-size:16px;font-weight:600;color:var(--tx2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0} .dname{font-size:16px;font-weight:600;color:var(--tx2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.stage{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 11px 0 9px;border-radius:999px;background:var(--sf3);font-size:12.5px;font-weight:600;color:var(--tx);white-space:nowrap;flex:none} .stage{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;background:var(--sf3);font-size:12px;font-weight:550;color:var(--tx2);white-space:nowrap;flex:none}
.stage .sg{width:15px;height:15px}
.stage.bad{background:color-mix(in srgb,var(--bad) 12%,transparent);color:var(--bad)} .stage.bad{background:color-mix(in srgb,var(--bad) 12%,transparent);color:var(--bad)}
.dtools{margin-left:auto;display:flex;gap:6px;flex:none} .dtools{margin-left:auto;display:flex;gap:6px;flex:none}
.morewrap{position:relative} .morewrap{position:relative}
.dmenu{right:0;top:calc(100% + 6px);width:250px} .dmenu{right:0;top:calc(100% + 6px);width:250px}
.dsub{display:flex;align-items:center;gap:8px 16px;color:var(--tx2);font-size:13px;flex-wrap:wrap} .dsub{display:flex;align-items:center;gap:8px 18px;color:var(--tx2);font-size:13.5px;flex-wrap:wrap}
.dsub b{color:var(--tx);font-weight:600} .dsub b{color:var(--tx);font-weight:600}
.chip{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 4px 0 10px;border-radius:7px;background:var(--sf3);font-size:12.5px;color:var(--tx);white-space:nowrap} .chip{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 4px 0 10px;border-radius:7px;background:var(--sf3);font-size:12.5px;color:var(--tx);white-space:nowrap}
.code{font-family:var(--code);font-weight:500;letter-spacing:-.01em} .code{font-family:var(--code);font-weight:500;letter-spacing:-.01em}
@@ -401,11 +417,11 @@ main{padding:0}
.copy:hover{color:var(--tx);background:var(--ln)} .copy:hover{color:var(--tx);background:var(--ln)}
.copy svg{width:13px;height:13px} .copy svg{width:13px;height:13px}
.stepper{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:0;padding:0;list-style:none} .stepper{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:0;padding:0;list-style:none}
.stepper li{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:550;color:var(--tx3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .stepper li{display:flex;flex-direction:column;gap:8px;font-size:12.5px;font-weight:550;color:var(--tx3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stepper li::before{content:"";height:3px;border-radius:2px;background:var(--ln2)} .stepper li::before{content:"";height:3px;border-radius:2px;background:var(--ln2)}
.stepper li.done{color:var(--tx2)}.stepper li.done::before{background:var(--tx3)} .stepper li.done{color:var(--tx2)}.stepper li.done::before{background:var(--tx3)}
.stepper li.now{color:var(--tx)}.stepper li.now::before{background:var(--ink)} .stepper li.now{color:var(--tx)}.stepper li.now::before{background:var(--ink)}
.dbody{flex:1;overflow:auto;padding:20px 28px 32px;display:flex;flex-direction:column;gap:22px} .dbody{flex:1;overflow:auto;padding:20px 28px 32px;display:flex;flex-direction:column;gap:20px}
.dbody>*{flex-shrink:0} .dbody>*{flex-shrink:0}
.callout{display:flex;align-items:center;gap:14px;padding:12px;border-radius:12px;background:var(--sf2);border:1px solid var(--ln2);color:var(--tx)} .callout{display:flex;align-items:center;gap:14px;padding:12px;border-radius:12px;background:var(--sf2);border:1px solid var(--ln2);color:var(--tx)}
.callout .cico{width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex:none;color:var(--warn);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--warn) 50%,transparent)} .callout .cico{width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex:none;color:var(--warn);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--warn) 50%,transparent)}
@@ -414,8 +430,10 @@ main{padding:0}
.callout p b{font-weight:600} .callout p b{font-weight:600}
.callout small{display:block;color:var(--tx2);font-size:12.5px;margin-top:2px} .callout small{display:block;color:var(--tx2);font-size:12.5px;margin-top:2px}
.callout .btn{height:34px} .callout .btn{height:34px}
.nextbox{border:1px solid var(--ln2);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:14px} .nextbox{border:1px solid var(--ln2);border-radius:12px;padding:18px;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:16px}
.nextbox h3{margin:2px 0 0;font-size:18px;font-weight:650;letter-spacing:-.01em} .nextbox>.ninfo{flex:1 1 240px;min-width:240px;display:flex;flex-direction:column;gap:4px}
.nextbox>.nact{margin-left:auto}
.nextbox h3{margin:0;font-size:18px;font-weight:650;letter-spacing:-.01em}
.nnote{margin:0;color:var(--tx2);font-size:13.5px} .nnote{margin:0;color:var(--tx2);font-size:13.5px}
.nnote b{color:var(--tx);font-weight:600} .nnote b{color:var(--tx);font-weight:600}
.files{display:flex;flex-direction:column;gap:8px} .files{display:flex;flex-direction:column;gap:8px}
@@ -426,32 +444,30 @@ main{padding:0}
.ftext b{display:block;font-family:var(--code);font-weight:500;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .ftext b{display:block;font-family:var(--code);font-weight:500;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ftext span{display:block;font-size:12.5px;color:var(--tx2)} .ftext span{display:block;font-size:12.5px;color:var(--tx2)}
.nact{display:flex;align-items:center;gap:6px;flex-wrap:wrap} .nact{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tabs{display:flex;gap:24px;border-bottom:1px solid var(--ln)} .nextbox>.nact>.btn.pri{order:1}
.tabs button{height:40px;border:0;background:transparent;padding:0;color:var(--tx2);font-size:13.5px;font-weight:550;position:relative;display:flex;align-items:center;gap:7px} .tabs{display:flex;gap:22px;border-bottom:1px solid var(--ln)}
.tabs button{height:42px;border:0;background:transparent;padding:0;color:var(--tx2);font-size:13.5px;font-weight:550;position:relative;display:flex;align-items:center;gap:7px}
.tabs button:hover{color:var(--tx)} .tabs button:hover{color:var(--tx)}
.tabs button .n{font-size:12px;color:var(--tx3)} .tabs button .n{font-size:12px;color:var(--tx3)}
.tabs button.on{color:var(--tx)} .tabs button.on{color:var(--tx)}
.tabs button.on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--ink)} .tabs button.on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--ink)}
.tview{display:flex;flex-direction:column;gap:22px} .tview{display:flex;flex-direction:column;gap:20px}
.tview>*{flex-shrink:0} .tview>*{flex-shrink:0}
.item{display:grid;grid-template-columns:176px minmax(0,1fr);gap:22px;align-items:start} .item{display:block}
.item+.item{padding-top:22px;border-top:1px solid var(--ln)} .item+.item{padding-top:20px;border-top:1px solid var(--ln)}
.item .preview{display:flex;flex-direction:column;gap:8px}
.item .preview>svg,.item .preview .view{display:block;width:100%;border-radius:8px;overflow:hidden;box-shadow:inset 0 0 0 1px var(--ln)}
.item .preview .view{min-height:176px;max-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:6px;background:repeating-conic-gradient(var(--chka) 0 25%,var(--chkb) 0 50%) 0 0/12px 12px}
.item .preview .view img{width:100%;min-height:0;flex:1;object-fit:contain}
.item .preview .view.layout{background:var(--sf2)}
.item .preview .view svg{width:auto;max-width:100%;max-height:300px}
.item .preview>svg{height:auto;max-height:320px}
.ptabs{display:flex;padding:3px;gap:2px;border-radius:9px;background:var(--sf3)} .ptabs{display:flex;padding:3px;gap:2px;border-radius:9px;background:var(--sf3)}
.ptabs button{flex:1;height:26px;border:0;border-radius:6px;background:transparent;color:var(--tx2);font-size:12px;font-weight:550} .ptabs button{flex:1;height:26px;border:0;border-radius:6px;background:transparent;color:var(--tx2);font-size:12px;font-weight:550}
.ptabs button[aria-pressed=true]{background:var(--sf);color:var(--tx);box-shadow:0 0 0 1px var(--ln)} .ptabs button[aria-pressed=true]{background:var(--sf);color:var(--tx);box-shadow:0 0 0 1px var(--ln)}
.iinfo{min-width:0} .iinfo{min-width:0}
.iinfo h3{margin:6px 0 18px;font-size:19px;font-weight:650;letter-spacing:-.01em} .iinfo h3{margin:0 0 16px;font-size:17px;font-weight:650;letter-spacing:-.01em}
.iinfo>.lbl{display:block;margin-bottom:6px}
.dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;margin:0} .dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;margin:0}
.item .dl{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 20px}
.dl div{display:flex;flex-direction:column;gap:3px;min-width:0} .dl div{display:flex;flex-direction:column;gap:3px;min-width:0}
.dl dt{font-size:12.5px;color:var(--tx3)} .dl dt{font-size:12.5px;color:var(--tx3)}
.dl dd{margin:0;font-size:14px;font-weight:550;overflow-wrap:anywhere} .dl dd{margin:0;font-size:14px;font-weight:550;overflow-wrap:anywhere}
.item .dl dd{font-size:14.5px;font-weight:600}
.item .dl .contr select{width:100%;min-width:0}
.inotes{display:flex;flex-direction:column;gap:7px;margin-top:18px} .inotes{display:flex;flex-direction:column;gap:7px;margin-top:18px}
.prumo{border:1px solid var(--ln2);border-radius:9px;padding:7px 10px;background:var(--sf3);font-size:12px;color:var(--mut)} .prumo{border:1px solid var(--ln2);border-radius:9px;padding:7px 10px;background:var(--sf3);font-size:12px;color:var(--mut)}
.prumo summary{cursor:pointer;color:var(--tx);font-weight:600} .prumo summary{cursor:pointer;color:var(--tx);font-weight:600}
@@ -1132,32 +1148,30 @@ select.inp{appearance:none;-webkit-appearance:none;padding-right:32px;background
.stepper{display:flex;gap:4px} .stepper{display:flex;gap:4px}
.stepper li{flex:1;font-size:0;gap:0} .stepper li{flex:1;font-size:0;gap:0}
.stepper li::before{height:4px} .stepper li::before{height:4px}
.dbody{padding:12px 12px 170px;gap:10px} .dbody{padding:12px 12px 220px;gap:10px}
.callout{flex-wrap:wrap;padding:12px;border-radius:12px;background:var(--sf)} .callout{flex-wrap:wrap;padding:12px;border-radius:12px;background:var(--sf)}
.callout .btn{width:100%;height:42px} .callout .btn{width:100%;height:42px}
.nextbox{gap:12px;padding:16px;border:1px solid var(--ln);background:var(--sf)} .nextbox{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:16px;border:1px solid var(--ln);background:var(--sf)}
.nextbox h3{font-size:17px;margin-top:-6px} .nextbox>.ninfo{gap:8px;flex:initial;min-width:0}
.nextbox h3{font-size:17px;margin:0}
.nnote{font-size:14px} .nnote{font-size:14px}
.nextbox .nact{position:fixed;left:0;right:0;bottom:0;z-index:5;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 16px 18px;border-top:1px solid var(--ln);background:var(--top)} .nextbox .nact{position:fixed;left:0;right:0;bottom:0;z-index:5;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 16px 18px;border-top:1px solid var(--ln);background:var(--top)}
.nextbox .nact>*{height:50px;font-size:15px;width:100%} .nextbox .nact>*{height:50px;font-size:15px;width:100%}
.nextbox .nact>:first-child{grid-column:1/-1} .nextbox .nact>:first-child{grid-column:1/-1}
.nextbox .nact>.btn.pri{order:-1}
.dbody .tabs{display:none} .dbody .tabs{display:none}
.dbody .tview{display:flex} .dbody .tview{display:flex}
.dbody .tview+.tview{display:none!important} .dbody .tview+.tview{display:none!important}
.mbtns{display:flex;gap:8px} .mbtns{display:flex;gap:8px}
.mbtns .btn{flex:1;height:44px} .mbtns .btn{flex:1;height:44px}
.item{grid-template-columns:112px minmax(0,1fr);gap:4px 14px;align-items:start} .item{display:block}
.item .iinfo{display:contents}
.item .preview{grid-column:1;grid-row:1/4}
.item .preview .view{min-height:0;max-height:200px}
.item .iinfo>.lbl{display:none} .item .iinfo>.lbl{display:none}
.item .iinfo>h3{grid-column:2;margin:0;font-size:15px} .item .iinfo>h3{margin:0 0 10px;font-size:15px}
.item .dl{grid-column:2;display:flex;flex-direction:column;gap:0} .item .dl{display:flex;flex-direction:column;gap:0}
.dl div{flex-direction:row;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--ln)} .dl div{flex-direction:row;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--ln)}
.dl div:last-child{border-bottom:0} .dl div:last-child{border-bottom:0}
.dl dt{font-size:14px;color:var(--tx2);flex:none} .dl dt{font-size:14px;color:var(--tx2);flex:none}
.dl dd{font-size:14px;text-align:right} .dl dd{font-size:14px;text-align:right}
.item .inotes,.item .links{grid-column:1/-1}
.item .links .btn{flex:1} .item .links .btn{flex:1}
.mblock{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--ln);border-radius:12px;background:var(--sf)} .mblock{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--ln);border-radius:12px;background:var(--sf)}
.mfacts{gap:0;padding-top:4px;padding-bottom:4px} .mfacts{gap:0;padding-top:4px;padding-bottom:4px}
@@ -1175,6 +1189,9 @@ select.inp{appearance:none;-webkit-appearance:none;padding-right:32px;background
.dfoot{flex-wrap:wrap} .dfoot{flex-wrap:wrap}
.dfoot .btn{flex:1;height:48px} .dfoot .btn{flex:1;height:48px}
.dfoot .lbl{max-width:none;flex-basis:100%} .dfoot .lbl{max-width:none;flex-basis:100%}
.reviewdrops{grid-template-columns:1fr}
.reviewcamcard,.reviewdrop{height:148px}
.reviewcontrols .btn{flex:1;height:48px}
.mchoices{grid-template-columns:1fr} .mchoices{grid-template-columns:1fr}
/* the pages */ /* the pages */
.page:not([hidden]){padding:12px 12px 24px;gap:10px} .page:not([hidden]){padding:12px 12px 24px;gap:10px}