.bam-active-workspace{display:grid;gap:18px;margin:22px 0;padding:22px;border:1px solid rgba(216,173,90,.24);border-radius:22px;background:linear-gradient(145deg,rgba(10,31,55,.96),rgba(5,19,36,.98));box-shadow:0 18px 48px rgba(0,0,0,.22)}
.bam-active-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.bam-active-head h3{margin:4px 0 6px;font-family:"Cormorant Garamond",serif;font-size:34px}.bam-active-head p{margin:0;color:rgba(236,227,212,.62);line-height:1.5}.bam-active-head>strong{font-family:"Cormorant Garamond",serif;font-size:38px;color:#e5bd69}
.bam-active-progress{height:9px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}.bam-active-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#b98a36,#f0ca76);transition:width .35s ease}
.bam-active-summary{display:flex;flex-wrap:wrap;gap:8px}.bam-active-summary span{padding:7px 10px;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:rgba(255,255,255,.03);font-size:11px;color:rgba(236,227,212,.68)}
.bam-active-jobs{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.bam-active-jobs article{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:11px;align-items:center;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.025)}.bam-active-jobs article.done{border-color:rgba(64,190,125,.25)}.bam-active-jobs article.failed{border-color:rgba(214,85,85,.34)}.bam-active-jobs img{width:58px;height:48px;object-fit:cover;border-radius:9px;background:#020914}.bam-active-jobs strong,.bam-active-jobs small,.bam-active-jobs em{display:block}.bam-active-jobs strong{font-size:12px}.bam-active-jobs small{margin-top:3px;color:rgba(236,227,212,.58);font-size:11px}.bam-active-jobs em{margin-top:4px;color:#efaaaa;font-size:10px;font-style:normal}.bam-active-jobs article>span{padding:5px 8px;border-radius:999px;background:rgba(216,173,90,.1);color:#e7c77e;font-size:10px}
.bam-active-results{display:grid;gap:14px;padding-top:18px;border-top:1px solid rgba(255,255,255,.08)}.bam-active-results .bam-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:15px}.bam-active-results .bam-section-head h3{margin:4px 0 3px;font-size:23px}.bam-active-results .bam-section-head p{margin:0;color:rgba(236,227,212,.56);font-size:12px}.bam-active-results .bam-section-head>span{font-size:11px;color:#e5bd69}
.bam-active-result-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}.bam-active-result{position:relative;display:grid;gap:7px;padding:9px;border:1px solid rgba(255,255,255,.08);border-radius:15px;background:rgba(255,255,255,.025);text-align:left;color:#eee4d2}.bam-active-result.selected{border-color:#d8ad5a;box-shadow:0 0 0 2px rgba(216,173,90,.1)}.bam-active-result img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;background:#020914}.bam-active-result>span{position:absolute;z-index:2;top:15px;right:15px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#d8ad5a;color:#071426}.bam-active-result>span:empty{display:none}.bam-active-result strong{font-size:12px}.bam-active-result small{font-size:10px;color:rgba(236,227,212,.54)}
.bam-active-delivery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.bam-active-delivery article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.025)}.bam-active-delivery article.done{border-color:rgba(64,190,125,.28);background:rgba(64,190,125,.05)}.bam-active-delivery article.working{border-color:rgba(216,173,90,.3)}.bam-active-delivery article>span{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:rgba(216,173,90,.1);color:#e5bd69}.bam-active-delivery strong,.bam-active-delivery small{display:block}.bam-active-delivery small{margin-top:3px;color:rgba(236,227,212,.54);font-size:10px}
.bam-active-archive{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:18px;border-top:1px solid rgba(255,255,255,.08)}.bam-active-archive strong,.bam-active-archive small{display:block}.bam-active-archive small{margin-top:4px;color:rgba(236,227,212,.55);font-size:11px}
.bam-polacco-master{display:none!important}
@media(max-width:900px){.bam-active-delivery{grid-template-columns:1fr}.bam-active-head{align-items:flex-start}.bam-active-head>strong{font-size:32px}}
@media(max-width:640px){.bam-active-workspace{padding:16px}.bam-active-head,.bam-active-archive{align-items:stretch;flex-direction:column}.bam-active-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bam-active-delivery article{grid-template-columns:auto minmax(0,1fr)}.bam-active-delivery article button{grid-column:1/-1;width:100%}.bam-active-archive button{width:100%}}

.bam-active-result-card{display:grid;gap:8px;min-width:0}.bam-active-result-card>.bam-active-result{width:100%;height:100%}.bam-active-result-actions{display:flex!important;visibility:visible!important;opacity:1!important;gap:6px!important;position:relative!important;z-index:4!important}.bam-active-result-actions button{display:inline-flex!important;visibility:visible!important;opacity:1!important;flex:1 1 0!important;min-width:0!important;min-height:44px!important;align-items:center!important;justify-content:center!important;padding:0 7px!important;border:1px solid rgba(216,173,90,.42)!important;border-radius:9px!important;background:#0b2949!important;color:#f2eadc!important;font:600 11px/1 Inter,sans-serif!important;touch-action:manipulation!important}

/* Nuova lavorazione sulle stesse foto: stesso impianto del riquadro di
   archiviazione, ma in tono secondario perche' non e' l'azione finale. */
.bam-active-restart{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:10px;padding:14px 16px;border:1px solid rgba(216,173,90,.22);border-radius:12px;background:rgba(11,41,73,.42)}
.bam-active-restart strong{display:block;font:600 13px/1.3 Inter,sans-serif;color:#f2eadc}
.bam-active-restart small{display:block;margin-top:4px;max-width:62ch;font:400 12px/1.45 Inter,sans-serif;color:rgba(242,234,220,.62)}
.bam-active-restart button{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 16px;border:1px solid rgba(216,173,90,.42);border-radius:10px;background:#0b2949;color:#f2eadc;font:600 13px/1 Inter,sans-serif;cursor:pointer}
.bam-active-restart button:disabled{opacity:.45;cursor:not-allowed}
.bam-active-restart button svg{width:16px;height:16px;stroke:currentColor;fill:none}
