/* Tiện ích Việt 3.8 — lean enhancement */
.tiv-v38-intro{margin:15px 0 28px;max-width:810px;color:#4e6475;line-height:1.7}
.tiv-v38-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}
.tiv-v38-panel{background:#fff;border:1px solid #d9e7e5;border-radius:18px;padding:23px;box-shadow:0 4px 24px #092b3410}
.tiv-v38-panel h2{margin:0 0 15px;color:#12243a;font-size:25px}
.tiv-v38-field{display:flex;flex-direction:column;gap:7px;font-weight:700;color:#334b5b;font-size:14px;margin:0 0 16px}
.tiv-v38-field input,.tiv-v38-field select,.tiv-v38-field textarea{width:100%;min-width:0;min-height:46px;border-radius:11px;padding:10px 13px;border:1px solid #bfcfd9;background:white;color:#193049;font-size:16px}
.tiv-v38-field input:focus-visible,.tiv-v38-field select:focus-visible{outline:2px solid #16a77d;outline-offset:2px}
.tiv-v38-field small{font-weight:400;color:#687f8d;line-height:1.5}
.tiv-v38-money{display:flex;align-items:center;border-radius:11px;border:1px solid #bfcfd9;background:#fff;overflow:hidden}
.tiv-v38-money input{border:0;border-radius:0;flex:1}
.tiv-v38-money span{font-weight:650;color:#137a63;padding:0 12px;white-space:nowrap}
.tiv-v38-action{border:0;border-radius:11px;background:#0e9974;color:#fff;font-size:16px;font-weight:800;padding:13px 18px;width:100%;min-height:48px}
.tiv-v38-action:hover{background:#07795c}
.tiv-v38-result{border-radius:18px;background:#e7f8f1;border:1px solid #a8dcc9;padding:22px;margin-top:20px;line-height:1.65;color:#294a49}
.tiv-v38-result h2{font-size:16px;letter-spacing:.5px;margin:0 0 5px}
.tiv-v38-result strong[data-tiv-main]{font-size:clamp(24px,3.5vw,36px);display:block;color:#057a59;overflow-wrap:anywhere}
.tiv-v38-result .tiv-v38-breakdown{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:15px;padding-top:15px;border-top:1px solid #bddfd2;font-size:14px}
.tiv-v38-result .tiv-v38-breakdown b{white-space:nowrap}
.tiv-v38-alert{border-left:4px solid #ca9140;background:#fff8ec;padding:12px 16px;border-radius:8px;color:#66502d;line-height:1.65;font-size:14px;margin:18px 0}
.tiv-v38-source{font-size:13px;color:#637586;line-height:1.8;margin-top:14px}
.tiv-v38-source a{color:#087b61;text-decoration:underline;overflow-wrap:anywhere}
.tiv-v38-section{padding:14px 0 20px;line-height:1.85;color:#394e60;max-width:930px}
.tiv-v38-section h2{font-size:24px;margin:26px 0 8px;color:#17253d}
.tiv-v38-related{display:flex;flex-wrap:wrap;gap:9px;padding:12px 0 24px}
.tiv-v38-related a{background:#edf7f4;border:1px solid #cfece2;padding:9px 13px;border-radius:999px;color:#057b60;font-weight:650;font-size:13px}
.tiv-v38-qr{display:block;max-width:290px;width:100%;height:auto;background:#fff;border-radius:12px;margin:12px auto 8px;border:1px solid #d5e5e2}
.tiv-share-result-bar{margin:18px 0;padding:17px;border-radius:15px;border:1px solid #d8e7e2;background:#fff}
.tiv-share-result-bar h3{margin:0 0 5px;font-size:17px;color:#173149}
.tiv-share-result-bar p{font-size:13px;line-height:1.6;color:#627589;margin:7px 0 12px}
.tiv-share-buttons{display:flex;flex-wrap:wrap;gap:8px}
.tiv-share-buttons button{border:1px solid #b9ded0;background:#f4fbf7;color:#087758;font-weight:650;padding:9px 12px;border-radius:9px;font-size:13px;cursor:pointer}
.tiv-export-status{color:#07795b;font-weight:650}
.tiv-v38-badge{display:inline-flex;background:#dff5ec;color:#0b855f;padding:7px 12px;border-radius:100px;font-size:11px;letter-spacing:.06em;font-weight:800}
.tiv-v38-note{font-size:13px;line-height:1.6;color:#617485}
.tiv-v38-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}
.tiv-v38-tiles a{background:#fff;border:1px solid #daebe4;border-radius:12px;padding:15px;text-decoration:none;color:#14573f;font-weight:700;line-height:1.5}
@media(max-width:720px){.tiv-v38-grid{grid-template-columns:1fr}.tiv-v38-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.tiv-v38-panel{padding:16px}.tiv-share-result-bar{padding:13px}.tiv-v38-result .tiv-v38-breakdown{font-size:13px}.tiv-v38-result .tiv-v38-breakdown b{white-space:normal;text-align:right}}
@media print{
 body.tiv-print-result *{visibility:hidden!important}
 body.tiv-print-result [data-tiv-result],body.tiv-print-result [data-tiv-result] *,body.tiv-print-result #result,body.tiv-print-result #result *{visibility:visible!important}
 body.tiv-print-result [data-tiv-result],body.tiv-print-result #result{position:absolute!important;left:0!important;top:0!important;width:100%!important;border:0!important;box-shadow:none!important;background:white!important;color:black!important}
 body.tiv-print-result [data-tiv-result] strong,body.tiv-print-result #result strong{color:black!important}
}
