.home-only[hidden]{display:none!important}
.remaining-callout{margin:-10px 0 20px;padding:12px 14px;border:1px solid #cdd9f4;border-radius:12px;background:var(--brand-soft);color:#465674;font-size:.86rem;line-height:1.5}
.remaining-callout span{display:block;color:var(--brand);font-size:1rem;font-weight:900}
.order-progress{margin-top:20px;padding-top:20px;border-top:1px dashed #cfd6e2}
.progress-head{display:flex;align-items:end;justify-content:space-between;gap:12px}
.progress-head div span,.progress-head div strong{display:block}.progress-head div span{color:var(--muted);font-size:.74rem}.progress-head div strong{margin-top:2px;font-size:.96rem}.progress-head>b{color:var(--brand);font-size:.78rem;background:var(--brand-soft);padding:5px 8px;border-radius:999px}
.order-progress-track{height:8px;background:#e9edf4;border-radius:99px;margin:11px 0 14px;overflow:hidden}.order-progress-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--brand),#6084d8);border-radius:inherit;transition:width .3s ease}
.saved-pieces{display:flex;flex-direction:column;gap:9px}.saved-piece{display:grid;grid-template-columns:50px 1fr auto;align-items:center;gap:10px;padding:9px;border:1px solid var(--line);border-radius:11px;background:#fafbfc}.saved-piece-preview{width:50px;height:50px;display:grid;place-items:center;overflow:hidden;background:#fff;border:1px solid #e8ebf0}.saved-piece-preview.circle{border-radius:50%}.saved-piece-preview.rounded{border-radius:12px}.saved-piece-preview.square{border-radius:4px}.saved-piece-preview.contour{border-radius:10px;background:transparent}.saved-piece-preview img{width:100%;height:100%;object-fit:contain}.saved-piece-info{min-width:0}.saved-piece-info strong,.saved-piece-info span{display:block}.saved-piece-info strong{font-size:.79rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.saved-piece-info span{color:var(--muted);font-size:.69rem;margin-top:2px}.saved-piece-actions{display:flex;gap:3px}.saved-piece-actions button{border:0;background:transparent;color:var(--brand);font-size:.68rem;font-weight:800;padding:5px;cursor:pointer}.saved-piece-actions button[data-action="delete"]{color:#b42318}
.history-section{margin-top:28px;padding:30px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}.history-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}.history-heading h2{font-size:1.3rem;margin:5px 0}.history-heading p{color:var(--muted);font-size:.86rem;margin:0}.history-source{color:var(--muted);font-size:.72rem;background:#f3f5f8;border-radius:999px;padding:7px 10px}.history-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.history-card{display:grid;grid-template-columns:86px 1fr;gap:14px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fbfcfe}.history-preview{width:86px;height:86px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;line-height:1}.history-preview span{font-weight:900;letter-spacing:.04em}.history-preview small{font-size:.46rem;letter-spacing:.13em;margin-top:5px}.bean-logo{border-radius:50%;background:#a85b36}.mali-logo{border-radius:18px;background:#264e45}.history-info{min-width:0;align-self:center}.history-info strong,.history-info span,.history-info small{display:block}.history-info strong{font-size:.86rem}.history-info span{font-size:.74rem;color:var(--ink);margin-top:5px}.history-info small{font-size:.66rem;color:var(--muted);margin-top:3px}.history-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}.history-actions .button{min-height:39px;padding:8px;font-size:.74rem}
.sheet-allocation{padding:15px;border:1.5px solid #b8c8e9;background:#f7f9ff;border-radius:14px}.allocation-copy strong,.allocation-copy span{display:block}.allocation-copy strong{font-size:.9rem}.allocation-copy span{font-size:.72rem;color:var(--muted);margin-top:2px}.quantity-row{display:flex;align-items:center;margin-top:12px}.quantity-row button{width:44px;height:44px;border:1px solid #c8d1e1;background:#fff;color:var(--brand);font-size:1.4rem;font-weight:700;cursor:pointer}.quantity-row button:first-child{border-radius:10px 0 0 10px}.quantity-row button:nth-of-type(2){border-radius:0 10px 10px 0}.quantity-row button:disabled{color:#aeb6c5;background:#f3f5f8;cursor:not-allowed}.quantity-row input{width:58px;height:44px;border:1px solid #c8d1e1;border-left:0;border-right:0;text-align:center;font-weight:900;font-size:1.02rem;outline:0}.quantity-row>span{color:var(--muted);font-size:.78rem;margin-left:9px}.quick-qty{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.quick-qty button{border:1px solid #ccd5e5;background:#fff;color:var(--brand);border-radius:999px;padding:5px 9px;font-size:.68rem;font-weight:800;cursor:pointer}.quick-qty button.is-active{background:var(--brand);color:#fff;border-color:var(--brand)}.qty-error{color:#b42318;font-size:.72rem;margin-top:8px}.summary-card .final-warning{margin-top:13px}
.confirm-dialog{width:min(680px,calc(100vw - 32px));max-height:min(90vh,820px)}
.confirm-dialog form{max-height:min(90vh,820px);overflow-y:auto}
.dialog-designs{display:flex;flex-direction:column;gap:10px;margin:20px 0 12px;text-align:left;max-height:min(40vh,390px);overflow-y:auto;padding-right:4px}
.dialog-design{display:grid;grid-template-columns:78px minmax(0,1fr) auto;align-items:center;gap:14px;border:1px solid var(--line);background:#fff;border-radius:14px;padding:11px}
.dialog-design-preview{width:78px;height:78px;display:grid;place-items:center;overflow:hidden;background:#fff;border:1px solid #e7eaf0;box-shadow:0 5px 14px rgba(28,40,68,.08)}
.dialog-design-preview.circle{border-radius:50%}.dialog-design-preview.rounded{border-radius:18px}.dialog-design-preview.square{border-radius:5px}.dialog-design-preview.contour{border-radius:12px;background:transparent}
.dialog-design-preview img{display:block;width:100%;height:100%;object-fit:contain;transform-origin:center}
.dialog-design-info{min-width:0}.dialog-design-info strong,.dialog-design-info span{display:block}.dialog-design-info strong{font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dialog-design-info span{font-size:.74rem;color:var(--muted);margin-top:5px;line-height:1.45}
.dialog-design-sheets{min-width:78px;text-align:center;color:var(--brand);background:var(--brand-soft);border-radius:10px;padding:9px 8px;font-size:.82rem;font-weight:900}
.dialog-summary{margin:12px 0 10px}.dialog-warning{margin:0 0 16px;color:#825818;background:#fff7df;border:1px solid #f3dfa8;padding:10px 12px;border-radius:10px;font-size:.74rem;line-height:1.5;text-align:left}
@media(max-width:900px){.history-grid{grid-template-columns:1fr}}
@media(max-width:760px){.order-progress{margin-top:17px}.history-section{margin-top:16px;padding:22px 18px;border-radius:18px}.history-heading{display:block}.history-source{display:inline-block;margin-top:10px}.history-card{grid-template-columns:72px 1fr}.history-preview{width:72px;height:72px}.quantity-row input{width:54px}.progress-head{align-items:center}.confirm-dialog form{padding:26px 20px}.dialog-designs{max-height:36vh}.dialog-design{grid-template-columns:66px minmax(0,1fr) auto;gap:10px}.dialog-design-preview{width:66px;height:66px}.dialog-design-sheets{min-width:66px;padding:8px 6px;font-size:.76rem}}
@media(max-width:420px){.history-actions{grid-template-columns:1fr}.saved-piece{grid-template-columns:46px 1fr}.saved-piece-preview{width:46px;height:46px}.saved-piece-actions{grid-column:2;justify-content:flex-start}.dialog-design{grid-template-columns:58px minmax(0,1fr);align-items:start}.dialog-design-preview{width:58px;height:58px}.dialog-design-sheets{grid-column:2;min-width:0;width:max-content;padding:5px 8px}.dialog-summary{align-items:center}}
