.seg-root{max-width:960px;margin:0 auto;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#222;}
.seg-card{background:#fff;border:1px solid #ddd;border-radius:12px;padding:24px;box-shadow:0 2px 8px rgba(0,0,0,.06);}
.seg-btn{display:inline-block;background:#2e7d32;color:#fff;border:none;border-radius:8px;padding:12px 20px;font-size:16px;cursor:pointer;margin:6px 6px 0 0;}
.seg-btn:hover{background:#256428;}
.seg-btn.seg-secondary{background:#607d8b;}
.seg-btn.seg-secondary:hover{background:#4c626b;}
.seg-btn.seg-cart{background:#8e24aa;}
.seg-btn.seg-cart:hover{background:#6d1b81;}
.seg-btn.seg-danger{background:#c62828;padding:6px 12px;font-size:13px;}
.seg-btn:disabled{background:#aaa;cursor:not-allowed;}
.seg-hud{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;background:#f5f5f5;border-radius:8px;padding:10px 14px;margin-bottom:16px;font-size:14px;}
.seg-hud div span{font-weight:700;display:block;font-size:18px;}
.seg-list{list-style:none;margin:14px 0;padding:0;}
.seg-list li{background:#eef6ff;border-left:4px solid #1976d2;padding:10px 14px;margin-bottom:6px;border-radius:6px;font-size:16px;}
.seg-cart-row{display:flex;justify-content:space-between;align-items:center;background:#f3e5f5;border-left:4px solid #8e24aa;padding:8px 12px;margin-bottom:6px;border-radius:6px;font-size:15px;}
.seg-setup-row{margin:14px 0;display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.seg-setup-row input[type=number]{width:70px;padding:8px;font-size:16px;border:1px solid #ccc;border-radius:6px;}

.seg-storemap{position:relative;width:100%;height:460px;border:6px solid #2e7d32;border-radius:8px;background:#fbfbf9;margin:14px 0;overflow:hidden;}
.seg-storemap .seg-zone{position:absolute;box-sizing:border-box;border-radius:6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-weight:700;font-size:12px;line-height:1.2;padding:4px;gap:3px;transition:transform .15s ease, box-shadow .15s ease;overflow:hidden;}
.seg-storemap .seg-zone:hover{transform:scale(1.03);box-shadow:0 3px 10px rgba(0,0,0,.2);}
.seg-storemap .seg-aisle{background:#ffb877;border:2px solid #e08a3e;}
.seg-storemap .seg-wall{background:#c9e6c6;border:2px solid #7fb977;}
.seg-storemap .seg-checkout{background:#90caf9;border:2px solid #5a9bd8;}
.seg-storemap .seg-zone.seg-here{outline:3px solid #d32f2f;}
.seg-zone-img{width:28px;height:28px;border-radius:5px;object-fit:cover;border:1px solid rgba(0,0,0,.2);background:#fff;flex-shrink:0;}
.seg-aisle .seg-zone-label{writing-mode:vertical-rl;text-orientation:mixed;}
.seg-here-marker{position:absolute;transform:translate(-50%,-50%);z-index:5;transition:left .4s ease, top .4s ease;display:flex;flex-direction:column;align-items:center;pointer-events:none;}
.seg-here-marker .seg-pin{width:18px;height:18px;background:#d32f2f;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 2px #d32f2f;}
.seg-here-marker .seg-pin-label{background:#d32f2f;color:#fff;font-size:11px;font-weight:700;padding:2px 6px;border-radius:10px;margin-top:4px;white-space:nowrap;}
.seg-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;margin-top:8px;}
.seg-legend span{display:inline-flex;align-items:center;gap:6px;}
.seg-legend i{width:14px;height:14px;border-radius:3px;display:inline-block;}

.seg-dept-hero{width:100%;max-height:180px;object-fit:cover;border-radius:8px;margin-bottom:14px;border:1px solid #ddd;}
.seg-items{display:flex;flex-direction:column;gap:8px;margin:14px 0;}
.seg-item-row{display:flex;align-items:center;gap:10px;background:#f7f7f7;border-radius:6px;padding:10px 12px;}
.seg-item-row label{cursor:pointer;font-size:16px;flex:1;}
.seg-score-row{display:flex;justify-content:space-between;border-bottom:1px solid #eee;padding:8px 0;font-size:15px;}
.seg-final{font-size:38px;font-weight:800;color:#2e7d32;text-align:center;margin:10px 0;}
.seg-badge{display:inline-block;background:#fff3cd;color:#7a5b00;border-radius:6px;padding:4px 10px;font-size:13px;margin-left:8px;}
.seg-toast{background:#fff3cd;border:1px solid #ffe08a;border-radius:8px;padding:10px 14px;margin-bottom:14px;font-size:14px;}
.seg-h{margin-top:0;}
.seg-overlay{position:fixed;top:8%;left:50%;transform:translateX(-50%);z-index:9999;max-width:380px;width:90%;box-shadow:0 6px 24px rgba(0,0,0,.3);max-height:80vh;overflow-y:auto;}
