/* BOX13 4.0 — algorithm transparency, visible state and rule-based product matching */
.algorithm-section{background:radial-gradient(ellipse at 20% 20%,#2b1d37,#080c14 60%)}
.algorithm-panel{padding:22px;border-radius:22px;border:1px solid #87643f;background:linear-gradient(140deg,#16121e,#0d1018);box-shadow:0 15px 45px #0007}
.algorithm-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:18px}
.algorithm-chips{display:flex;flex-wrap:wrap;gap:9px}
.algorithm-chips button{padding:10px 16px;border-radius:999px;border:1px solid #5b4b4c;background:#13131b;color:#c9b9c1;font-weight:850;letter-spacing:.6px;font-size:10px;cursor:pointer}
.algorithm-chips button.selected{border-color:#ecc17f;background:#4d3424;color:#ffdeae;box-shadow:0 0 18px #cb86462a}
.algorithm-stat{font-size:9px;letter-spacing:1.3px;font-weight:800;color:#d8b384}
.algorithm-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.algorithm-product{overflow:hidden;border:1px solid #58465d;border-radius:16px;background:radial-gradient(circle at 50% 25%,#31233e,#111219 72%);min-width:0}
.algorithm-product>img{width:100%;height:178px;object-fit:contain;padding:16px;filter:drop-shadow(0 18px 19px #000a)}
.algorithm-product-body{padding:4px 15px 15px}
.algorithm-product-body small{display:block;color:#e3b779;font-size:9px;letter-spacing:.5px;font-weight:800}
.algorithm-product-body h3{font-size:15px;color:#fff;line-height:1.25;min-height:38px;margin:9px 0 6px}
.algorithm-product-body p{font-size:11px;color:#b6b0ba;margin:0 0 12px}
.algorithm-product-body button{font-size:10px;font-weight:900;letter-spacing:.3px;border:1px solid #d9ac65;background:#2c201b;color:#f7ca87;border-radius:9px;padding:9px 10px;cursor:pointer;width:100%}
.algorithm-bottom{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:18px;padding-top:16px;border-top:1px solid #78614d55}
.algorithm-bottom p{max-width:800px;margin:0;font-size:11px;line-height:1.7;color:#bbb0bc}
.algorithm-bottom a{font-weight:900;font-size:10px;color:#e9c17e;white-space:nowrap}
.box40-audit[hidden]{display:none!important}
.box40-audit{border-top:1px solid #89674899;padding:15px 24px;background:linear-gradient(100deg,#0c161a,#1b1520);display:flex;align-items:center;justify-content:space-between;gap:12px}
.box40-audit>div:first-child{min-width:0}
.box40-label{display:block;font-size:9px;letter-spacing:1.4px;color:#d8b584;font-weight:900}
.box40-audit strong{display:block;font-size:11px;color:#fff;margin:6px 0;overflow-wrap:anywhere}
.box40-audit p{font-size:10px;color:#aeb2ba;line-height:1.65;margin:0;max-width:670px}
.box40-audit-actions{display:flex;gap:8px;flex-shrink:0;flex-wrap:wrap}
.box40-audit-actions button{border:1px solid #816a4f;background:#2c211e;border-radius:9px;color:#e3caac;font-size:10px;padding:10px 12px;font-weight:900;cursor:pointer}
.box40-audit-actions button:last-child{background:#e5b872;color:#141119;border-color:#e5b872}
@media(max-width:840px){.algorithm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.box40-audit{flex-direction:column;align-items:stretch}.box40-audit-actions{width:100%}}
@media(max-width:520px){.algorithm-panel{padding:13px}.algorithm-grid{gap:8px}.algorithm-product>img{height:126px;padding:10px}.algorithm-product-body{padding:2px 9px 11px}.algorithm-product-body h3{font-size:12px;min-height:36px}.algorithm-product-body p{font-size:9px}.algorithm-product-body small{font-size:8px}.algorithm-chips button{font-size:9px;padding:8px 11px}.algorithm-bottom{flex-direction:column;align-items:stretch}.algorithm-bottom a{white-space:normal}.box40-audit{padding:12px}.box40-audit-actions button{flex:1}}
