.hce-soft-wrapper{--hce-border:#1e293b;max-width:1080px;margin:0 auto;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#1e293b;box-sizing:border-box}
.hce-soft-wrapper *{box-sizing:border-box}
.hce-grid{display:grid;grid-template-columns:6fr 6fr;gap:16px;align-items:start}
.hce-card{background:#fff;border:2.5px solid var(--hce-border);border-radius:20px;padding:20px;box-shadow:4px 4px 0 var(--hce-border);margin-bottom:16px}
.hce-card-title{margin:0 0 6px;font-size:18px;font-weight:900}
.hce-sub{font-size:15px;font-weight:900;margin:16px 0 8px}
.hce-label{display:block;font-weight:800;font-size:13.5px;margin:11px 0 5px}
.hce-inp{width:100%;border:2px solid var(--hce-border);border-radius:12px;padding:9px 11px;font-size:15px;font-weight:700;background:#fffef5;font-variant-numeric:tabular-nums;font-family:inherit}
.hce-grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.hce-range{width:100%;accent-color:#e04e1a}
.hce-calc{width:100%;margin-top:12px;border:3px solid var(--hce-border);background:#fdba74;border-radius:16px;padding:13px;font-weight:900;font-size:16.5px;cursor:pointer;box-shadow:3px 3px 0 var(--hce-border)}
.hce-calc:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--hce-border)}
.hce-error{color:#dc2626;font-weight:800;font-size:14px;min-height:19px;margin:10px 0 0}
.hce-note{font-size:13.5px;color:#64748b;line-height:1.55;margin:12px 0 0}
.hce-placeholder{border-style:dashed;background:#fffbeb;text-align:center}
.hce-ph-icon{font-size:38px}
.hce-ph-text{font-weight:700;color:#475569}
.hce-ph-list{text-align:left;font-size:14.5px;line-height:1.65;color:#334155;margin:8px 0 4px;padding-left:20px}
.hce-hero{background:linear-gradient(135deg,#f0fdf4,#bbf7d0);border:2.5px solid var(--hce-border);border-radius:16px;padding:15px;box-shadow:3px 3px 0 var(--hce-border);text-align:center}
.hce-hero-cap{display:block;font-size:12.5px;font-weight:800;color:#166534}
.hce-hero-val{display:block;font-size:30px;font-weight:900;margin-top:2px;font-variant-numeric:tabular-nums}
.hce-hero-sub{display:block;font-size:13.5px;font-weight:800;color:#475569;margin-top:2px}
.hce-table-wrap{overflow-x:auto}
.hce-table{width:100%;border-collapse:collapse;font-size:13.5px;min-width:440px}
.hce-table th,.hce-table td{border:1.6px solid #cbd5e1;padding:7px 8px;text-align:right;font-variant-numeric:tabular-nums}
.hce-table th{background:#fef9c3;font-weight:900;text-align:center}
.hce-table td:first-child{text-align:left;font-weight:700}
.hce-table tr.hce-total-row td{background:#f0fdf4;font-weight:900}
.hce-bar-row{margin-bottom:10px}
.hce-bar-head{display:flex;justify-content:space-between;font-size:13.5px;font-weight:800;gap:8px}
.hce-bar-head span:last-child{font-variant-numeric:tabular-nums;color:#0369a1;white-space:nowrap}
.hce-bar{background:#f1f5f9;border:2px solid var(--hce-border);border-radius:999px;height:13px;overflow:hidden;margin-top:4px}
.hce-bar-fill{height:100%;background:linear-gradient(90deg,#4ade80,#0ea5e9)}
@media (max-width:900px){.hce-grid{grid-template-columns:1fr}}
.hce-details{margin-top:12px;border:2px dashed #94a3b8;border-radius:13px;padding:9px 13px;background:#f8fafc}
.hce-details summary{font-weight:900;font-size:14px;cursor:pointer;color:#0369a1}
.hce-details .hce-note{margin-top:7px}

/* — Mobile guard 2026-10-24: chống tràn ngang (grid/flex blowout) và chống zoom khi chạm ô nhập — */
.hce-soft-wrapper{overflow-x:clip}
.hce-soft-wrapper *{min-width:0}
.hce-soft-wrapper input,.hce-soft-wrapper select,.hce-soft-wrapper textarea{font-size:16px !important;max-width:100%}
