*{box-sizing:border-box} :root{--ink:#17334b;--blue:#12638f;--blue2:#eaf4fa;--teal:#128b83;--line:#dce7ee;--muted:#627d91;--bg:#f3f8fb;--white:#fff;--shadow:0 14px 36px rgba(20,55,80,.07)}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1240px)/2));position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.logo{width:44px;height:44px;border-radius:14px;background:linear-gradient(140deg,#1976a9,#0c8c7b);display:grid;place-items:center;color:white;font-weight:900}.brand b{display:block;font-size:18px}.brand small{display:block;color:var(--muted);font-size:12px}.menu-btn,.btn{border:0;border-radius:12px;padding:12px 18px;font-weight:750}.menu-btn{background:#edf5fa;color:var(--blue)}main{max-width:1240px;margin:auto;padding:0 24px 110px}.page{display:none}.page.active{display:block}.hero{margin:24px 0 58px;background:linear-gradient(115deg,#e8f4fa,#eff9f6);border-radius:28px;padding:58px clamp(24px,6vw,76px);display:grid;grid-template-columns:1.2fr .8fr;align-items:center;min-height:410px;overflow:hidden}.eyebrow{font-size:11px;letter-spacing:.14em;color:#10877f;font-weight:900}.hero h1{font-size:clamp(38px,5vw,62px);line-height:1.07;letter-spacing:-.04em;margin:14px 0}.hero h1 em{font-style:normal;color:#1678ac}.hero p{max-width:610px;color:#506f86;font-size:17px}.btn.primary{background:#125d86;color:#fff;box-shadow:0 10px 24px #135c8626}.btn.outline{background:#fff;color:var(--blue);border:1px solid var(--line)}.muted{color:var(--muted)}.block{display:block;margin-top:15px;font-size:12px}.hero-art{height:270px;position:relative;display:grid;place-items:center}.hero-orbit{position:absolute;width:280px;height:240px;border-radius:50%;background:linear-gradient(135deg,#cde8f1,#d6eee7);transform:rotate(-20deg)}.hero-paper{z-index:1;background:white;width:250px;height:205px;border-radius:22px;padding:26px;box-shadow:var(--shadow);transform:rotate(-5deg);display:flex;flex-direction:column;gap:8px}.check{width:42px;height:42px;border-radius:13px;background:#e1f5ee;color:#078568;display:grid;place-items:center;font-size:28px}.hero-paper small{color:var(--muted)}.fake-line{height:10px;background:#edf2f5;border-radius:20px;margin-top:10px}.fake-line.short{width:65%;margin-top:0}.tag{font-size:10px;letter-spacing:.12em;color:#1678ac;background:#eaf4fa;border-radius:30px;padding:7px 10px;align-self:flex-start;margin-top:auto;font-weight:900}.section-head,.page-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 4px 22px}.section-head h2,.page-head h1{margin:5px 0;font-size:30px;letter-spacing:-.03em}.section-head p,.page-head p{color:var(--muted);max-width:370px}.center-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.center-card{position:relative;text-align:left;background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;min-height:190px;color:var(--ink);display:flex;flex-direction:column;gap:9px;transition:.18s}.center-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#b9d6e5}.center-card b{font-size:17px}.center-card small{color:var(--muted);font-size:13px}.center-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:24px;font-weight:800}.blue{background:#e5f2fa;color:#1675a9}.teal{background:#e3f5ef;color:#138b77}.purple{background:#f0eafa;color:#7a58b4}.amber{background:#fff3df;color:#b87816}.arrow{position:absolute;right:18px;top:17px;color:#7a9ab0}.profile-strip,.notice{margin-top:24px;border-radius:18px;padding:20px 22px;display:flex;justify-content:space-between;align-items:center;gap:20px;background:#eaf4f9;border:1px solid #d7e9f2}.profile-strip p,.notice p{margin:4px 0 0;color:#5e788d;font-size:13px}.notice{display:block;background:#fff9ed;border-color:#f1dfbd}.notice b{color:#916019}.compact{margin-bottom:25px}.page-head{display:block;padding:36px 4px 12px}.page-head p{max-width:700px}.search{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:0 14px;margin:15px 0 22px}.search input{border:0;outline:0;padding:14px 0;width:100%}.workspace{background:#fff;border:1px solid var(--line);border-radius:22px;padding:clamp(18px,3vw,30px);box-shadow:var(--shadow);margin:24px 0}.workspace h2{margin:0 0 4px;font-size:25px}.workspace>p{color:var(--muted);margin:0 0 20px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.tab{border:1px solid var(--line);background:#f8fbfd;color:#45677e;border-radius:30px;padding:9px 14px;font-weight:700}.tab.active{background:#e7f3f9;color:#075e8b;border-color:#c4e0ed}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.field label{display:block;font-size:13px;font-weight:750;margin-bottom:6px}.field input,.field select{width:100%;padding:13px 14px;border:1px solid #d3e1e9;border-radius:12px;background:white;color:var(--ink);outline-color:#8ec4dc}.field .hint{display:block;color:var(--muted);font-size:11px;margin-top:4px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.result{margin-top:20px;border:1px solid #cfe4ed;border-radius:16px;background:#f0f8fb;padding:18px}.result-hero{background:#e9f5f8;border-radius:14px;padding:17px;margin-bottom:14px}.result-hero small{display:block;color:#58778d;font-weight:700}.result-hero strong{display:block;font-size:clamp(25px,4vw,34px);color:#12638f;line-height:1.25;margin:4px 0}.rows{display:grid;gap:0}.rowline{display:flex;justify-content:space-between;gap:15px;padding:11px 2px;border-bottom:1px solid #e7eef2;font-size:14px}.rowline span{color:#5b7487}.rowline b{text-align:right;font-variant-numeric:tabular-nums}.rowline.total{font-weight:850;background:#f4f8fa;padding:13px;border-radius:9px;margin-top:6px}.explain{margin-top:14px;padding:13px;border-radius:12px;background:#fff9ed;color:#775b2a;font-size:13px}.legal{font-size:12px;color:var(--muted);line-height:1.6;margin-top:16px}.payslip{background:#fff;border:1px solid #d9e5ec;border-radius:16px;padding:18px;margin-top:16px}.payslip-head{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:14px}.payslip h3{margin:0}.table-wrap{overflow:auto}.payslip table{width:100%;border-collapse:collapse;font-size:13px}.payslip td,.payslip th{padding:9px;border-bottom:1px solid #e7edf1;text-align:right}.payslip td:first-child,.payslip th:first-child{text-align:left}.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:center;gap:clamp(15px,8vw,100px);padding:8px 10px calc(8px + env(safe-area-inset-bottom));z-index:20}.bottom-nav button{border:0;background:transparent;color:#6a8498;display:flex;align-items:center;flex-direction:column;gap:1px;font-size:19px;min-width:55px}.bottom-nav small{font-size:10px}.bottom-nav button.active{color:#12638f;font-weight:900}.guide-list,.knowledge{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.guide,.knowledge-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:19px}.guide h3,.knowledge-card h3{margin:0 0 7px}.guide p,.knowledge-card p{color:var(--muted);font-size:13px}.guide ul{padding-left:20px;color:#4d687d;font-size:13px}.knowledge a{color:#12638f}.toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);background:#17334b;color:#fff;border-radius:30px;padding:10px 18px;opacity:0;pointer-events:none;transition:.2s;z-index:50}.toast.show{opacity:1}.empty{padding:20px;text-align:center;color:var(--muted)}@media(max-width:850px){.center-grid{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr;min-height:0}.hero-art{display:none}.section-head{display:block}.section-head p{margin:5px 0}}@media(max-width:560px){main{padding:0 14px 100px}.topbar{height:64px;padding:0 14px}.brand b{font-size:16px}.menu-btn{padding:9px 12px;font-size:12px}.hero{margin:14px 0 36px;padding:30px 22px;border-radius:20px}.hero h1{font-size:39px}.hero p{font-size:15px}.section-head h2,.page-head h1{font-size:25px}.center-grid{gap:10px}.center-card{padding:15px;min-height:174px;border-radius:16px}.center-card b{font-size:15px}.center-card small{font-size:12px}.center-icon{width:40px;height:40px}.form-grid{grid-template-columns:1fr}.workspace{padding:16px;border-radius:17px}.workspace h2{font-size:21px}.guide-list,.knowledge{grid-template-columns:1fr}.profile-strip{align-items:flex-start;flex-direction:column}.bottom-nav{justify-content:space-around;gap:0}.rowline{font-size:13px}.rowline b{max-width:55%}}

/* Money fields: readable thousands separators and explicit VND unit */
.money-input-wrap{position:relative;display:flex;align-items:center}
.field .money-input-wrap input{padding-right:72px;font-variant-numeric:tabular-nums}
.money-input-wrap>span{position:absolute;right:14px;color:#42647b;font-size:12px;font-weight:800;pointer-events:none}
.field input[readonly]{background:#e8eef3!important;color:#29465c!important;border-color:#cbd8e2!important;font-weight:800;cursor:not-allowed;box-shadow:inset 0 1px 2px rgba(20,50,70,.05)}
.field input[readonly]+.hint{color:#526f84}
