@font-face{font-family:Inter;font-weight:100 900;font-display:swap;src:url(chu/inter-latin.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:100 900;font-display:swap;src:url(chu/inter-viet.woff2) format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}
:root{--brand:#ad0606;--brand-dark:#8a0505;--soft:#fbeaea;--ink:#1f2430;--muted:#565e6c;--line:#e9ebf0;--vien:#d5d9e1;--canvas:#f4f5f8;--ok:#1f9d55;--warn:#d97706;--ok-chu:#146b3a;--warn-chu:#8f4d00;--bong:0 1px 3px rgba(16,24,40,.06),0 1px 2px rgba(16,24,40,.04)}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--canvas);color:var(--ink);font:16px/1.5 Inter,"Segoe UI",system-ui,sans-serif;-webkit-font-smoothing:antialiased}
#app{max-width:520px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column}
#app.nen{background:linear-gradient(180deg,#fbeaea 0%,#f8f0f1 30%,#f4f5f8 62%)}
.ic{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dau{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:6px;min-height:56px;padding:6px 110px 6px 8px;background:#fff;border-bottom:1px solid var(--line)}
.dau h1{font-size:17px;font-weight:700;margin:0;padding-left:8px}
.web .dau{padding-right:12px}
.lui{border:0;background:none;width:44px;height:44px;display:grid;place-items:center;color:var(--ink);border-radius:10px}
main{flex:1;display:flex;flex-direction:column;gap:14px;padding:16px 16px 28px;outline:none}
.logo{display:block;width:230px;max-width:70%;height:auto;margin:12px auto 6px}
.to{font-size:27px;font-weight:800;letter-spacing:-.5px;line-height:1.2;margin:4px 0 2px;text-wrap:balance}
.do{color:var(--brand)}
.the{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:var(--bong)}
.the h2{margin:0 0 4px;font-size:17px;font-weight:700}
.the p{margin:0;color:var(--muted)}
.chao{border-left:4px solid var(--brand);background:linear-gradient(90deg,rgba(251,234,234,.6),#fff)}
button{font:inherit;cursor:pointer;touch-action:manipulation}
.nut{display:flex;width:100%;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:13px 14px;font-weight:600;line-height:1.25;min-height:50px;text-decoration:none;color:inherit;transition:background-color .15s}
.chinh{background:var(--brand);color:#fff}.chinh:active{background:var(--brand-dark)}
.phu{background:#fff;border-color:var(--vien)}
.lien{background:none;color:var(--brand)}
.nut:disabled{opacity:.55}
:focus-visible{outline:3px solid rgba(173,6,6,.4);outline-offset:2px}
.hang{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.meta{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:8px;font-size:15px;color:var(--muted)}
.meta span{display:inline-flex;align-items:center;gap:6px}.meta .ic{width:16px;height:16px;color:#868d9a}
.bd{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 11px;font-size:14px;font-weight:600}
.bd::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
.bd.cho{background:#fef4e6;color:var(--warn-chu)}.bd.cho::before{background:var(--warn)}
.bd.xong{background:#e7f6ee;color:var(--ok-chu)}.bd.xong::before{background:var(--ok)}
.bd.het{background:#eef0f4;color:#4d5563}.bd.het::before{background:#9aa1ad}
.bd.dang{background:var(--soft);color:var(--brand)}
fieldset{border:0;margin:0;padding:0;min-width:0}
legend,.nhan{display:block;font-weight:600;margin:0 0 7px;padding:0}
.sao{color:var(--brand)}
input.o,textarea.o,select.o{width:100%;border:1px solid var(--vien);border-radius:10px;background:#fff;padding:12px;font:inherit;color:inherit;min-height:50px}
textarea.o{min-height:110px;resize:vertical}
.o:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px rgba(173,6,6,.15)}
.ma{letter-spacing:5px;font-size:22px!important;font-weight:700;text-align:center}
.doan{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#eceef3;border-radius:12px;padding:4px}
.doan button{border:0;background:none;min-height:46px;border-radius:9px;font-weight:700;color:#4d5563;display:flex;align-items:center;justify-content:center;gap:6px}
.doan [aria-pressed=true],.doan [aria-selected=true]{background:#fff;color:var(--brand);box-shadow:var(--bong)}
.loai{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.loai button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid var(--vien);border-radius:10px;background:#fff;min-height:68px;padding:4px 2px;font-size:15px;font-weight:600;color:#4d5563}
.loai [aria-pressed=true]{border-color:var(--brand);background:var(--soft);color:var(--brand)}
.anh{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.anh div{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:#e4e7ed;display:grid;place-items:center;font-size:14px;color:var(--muted);text-align:center}
.anh img{width:100%;height:100%;object-fit:cover}
.anh label,.anh .them{font:inherit;aspect-ratio:1;border:1.5px dashed #9aa1ad;border-radius:10px;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;background:#fff;color:var(--muted);font-size:15px;cursor:pointer}
.anh label:focus-within{outline:3px solid rgba(173,6,6,.4)}
.hoilai{display:grid;gap:10px;padding:12px;border-radius:12px;background:var(--soft,#fdf0f0)}
.hoilai p{margin:0;font-weight:600;color:var(--ink)}
.hang-nut{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.an{position:absolute;opacity:0;width:1px;height:1px}
.nhac{display:flex;gap:10px;border-radius:10px;padding:12px;border:1px solid rgba(217,119,6,.3);background:#fef4e6;color:var(--warn-chu)}
.nhac.gap{background:var(--soft);border-color:rgba(173,6,6,.3);color:var(--brand-dark)}
.nhac.xam{background:#eef0f4;border-color:var(--vien);color:#39414f}
.nhac ul{margin:4px 0 0;padding-left:18px}
.tick{display:flex;gap:12px;align-items:flex-start;padding:4px 0;cursor:pointer}
.tick input{width:24px;height:24px;margin:0;accent-color:var(--brand);flex:none}
.day{margin-top:auto}
ol.buoc{list-style:none;margin:0;padding:0}
ol.buoc li{display:flex;gap:12px}
ol.buoc .cot{display:flex;flex-direction:column;align-items:center}
ol.buoc .cot i{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eef0f4;color:#868d9a;flex:none}
ol.buoc .cot .ic{width:16px;height:16px}
ol.buoc .cot::after{content:"";width:2px;flex:1;background:var(--line);margin:3px 0}
ol.buoc li:last-child .cot::after{display:none}
ol.buoc .nd{padding-bottom:16px;color:var(--muted);font-size:15px}
ol.buoc li:last-child .nd{padding-bottom:0}
ol.buoc .nd b{display:block;color:var(--ink);font-size:16px}
ol.buoc .x i{background:#e7f6ee;color:var(--ok)}
ol.buoc .d i{background:var(--brand);color:#fff;box-shadow:0 0 0 4px var(--soft)}
.dan{display:flex;align-items:center;gap:12px;width:100%;text-align:left;color:inherit}
.dan>div{flex:1;min-width:0}
.dan .tron{width:42px;height:42px;border-radius:12px;background:var(--soft);color:var(--brand);display:grid;place-items:center;flex:none}
.giua{margin:auto 0;display:flex;flex-direction:column;gap:14px;text-align:center}
.giua p{margin:0;color:#4d5563}
.vong{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;margin:0 auto}
.vong .ic{width:38px;height:38px}
.tieu{font-size:14px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;color:var(--muted);margin:6px 0 -4px}
.tab{position:sticky;bottom:0;display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-top:1px solid var(--line);padding:4px 0 max(8px,env(safe-area-inset-bottom))}
.tab button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 2px;font-size:14px;font-weight:600;color:var(--muted);min-height:54px}
.tab [aria-current=page]{color:var(--brand)}
.tab .ic{width:22px;height:22px}
.loi{color:var(--brand);font-weight:600;margin:0}
.nho{font-size:15px;color:var(--muted);margin:0}
.quay{width:30px;height:30px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--brand);margin:60px auto;animation:q .8s linear infinite}
@keyframes q{to{transform:rotate(1turn)}}
@media (prefers-reduced-motion:reduce){.quay{animation-duration:3s}.nut{transition:none}}

/* ---------- Trang đầu trực quan ---------- */
#app.nen main{gap:20px;padding-top:0}
.chaodau{padding:14px 110px 0 0;min-height:56px}
.chaodau .logo{margin:10px 0 0;width:196px;max-width:100%}
.chaodau .nhoxiu{width:150px;margin-top:8px}
h1.to,h2.to{margin:0}
.nho-hon{font-size:22px}
.phu-de{margin:4px 0 0;color:#5b4a4e}
.muc{font-size:17px;font-weight:700;margin:0}
.tron{width:44px;height:44px;border-radius:14px;background:var(--soft);color:var(--brand);display:grid;place-items:center;flex:none}
.tron .ic,.than-nha .ic{width:24px;height:24px;fill:rgba(173,6,6,.1)}
.tron.xong{background:#e7f6ee;color:var(--ok-chu)}.tron.xong .ic{fill:rgba(31,157,85,.12)}
.tron.cho{background:#fef4e6;color:var(--warn-chu)}.tron.cho .ic{fill:rgba(217,119,6,.14)}
.tron.het{background:#eef0f4;color:#4d5563}.tron.het .ic{fill:rgba(77,85,99,.08)}

.hinh{width:40px;height:40px;flex:none;fill:none;stroke-linecap:round;stroke-linejoin:round}
.hinh .n{fill:#f4c9c9}.hinh .k{stroke:currentColor;stroke-width:2.6}.hinh .m{stroke:#e3a5a5;stroke-width:1.6}.hinh .d{fill:currentColor}
.tron .hinh{width:30px;height:30px}.cho .hinh .n{fill:#fbd9a5}.cho .hinh .m{stroke:#e0ab5f}.xong .hinh .n{fill:#bfe5cf}.xong .hinh .m{stroke:#8ccba6}.het .hinh .n{fill:#d5d9e1}.het .hinh .m{stroke:#b6bcc7}
.vong .hinh{width:46px;height:46px}.loai .hinh{width:36px;height:36px}
.nhahinh{margin-top:16px;filter:drop-shadow(0 12px 20px rgba(138,5,5,.12))}
.mai{position:relative;height:104px}
.mai .khoi{position:absolute;right:19%;top:18px;width:24px;height:62px;background:#7a1717;border-radius:3px 3px 0 0;box-shadow:0 -5px 0 0 #5d0f0f}
.mai .noc{position:absolute;inset:0;background:linear-gradient(180deg,#b51212,#8f0707);clip-path:polygon(50% 0,100% 84%,100% 100%,0 100%,0 84%)}
.mai .noc::after{content:"";position:absolute;left:0;right:0;bottom:0;height:16%;background:#6d0404}
.mai .tron-mai{position:absolute;left:50%;top:23px;width:44px;height:44px;margin-left:-22px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 2px 6px rgba(60,0,0,.25)}
.mai .tron-mai img{width:32px;height:32px;display:block}
.than-nha{display:grid;grid-template-columns:repeat(4,1fr);gap:14px 10px;background:linear-gradient(180deg,#fffaf8,#fff);padding:18px 12px 16px;margin:0 12px}
.than-nha button{display:flex;flex-direction:column;align-items:center;gap:9px;border:0;background:none;padding:0;min-height:100px;font-size:15px;font-weight:600;color:var(--ink)}
.than-nha span{position:relative;width:100%;height:70px;border-radius:8px;background:#fff;border:2px solid #ecd3d1;color:var(--brand);display:grid;place-items:center;transition:background-color .15s,transform .15s}
.than-nha span::after{content:"";position:absolute;left:-5px;right:-5px;bottom:-7px;height:5px;border-radius:2px;background:#d9bcb9}
.than-nha button:active span{background:var(--soft);border-color:var(--brand);transform:scale(.96)}
.than-nha button:disabled{opacity:.5}
.nen-nha{height:9px;border-radius:5px;background:linear-gradient(90deg,#d7c3c3,#c7adad,#d7c3c3)}

.thenha{padding:18px}
.tennha{display:flex;gap:12px;align-items:center;margin-bottom:16px}
.tennha h1{font-size:20px;font-weight:700;line-height:1.25;margin:0}
.bh-to{display:flex;align-items:center;gap:8px;color:var(--ok-chu)}
.bh-to b{font-size:17px;font-weight:700}
.bh-to strong{font-size:28px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.bh.sap .bh-to{color:var(--warn-chu)}.bh.qua .bh-to{color:#4d5563}
.vach{height:10px;border-radius:6px;background:#e7f6ee;overflow:hidden;margin:10px 0 6px}
.vach i{display:block;height:100%;border-radius:6px;background:#b9ddc8}
.bh.sap .vach{background:#fdeccb}.bh.sap .vach i{background:var(--warn)}
.bh.qua .vach{background:#e5e8ee}.bh.qua .vach i{background:#b6bcc7}
.bh-moc{display:flex;flex-wrap:wrap;margin-top:6px;justify-content:space-between;gap:8px;font-size:14px;color:var(--ink)}
.bh .nho{margin-top:8px}

.the.can{background:#fff8ec;border-color:#f3cf93}
.xem{border:0;background:none;color:var(--brand);font-weight:600;min-height:44px;padding:0 4px}
.dsviec{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.the.viec{display:flex;gap:12px;text-align:left;width:100%;color:inherit;padding:14px}
.viec>div{flex:1;min-width:0}.viec b{font-size:17px;font-weight:700}
.viec em{font-style:normal;font-size:14px;color:#fff;background:var(--brand);border-radius:6px;padding:1px 7px;margin-left:8px}
.viec .hang{gap:4px 10px}.viec .nho{margin-top:6px;color:var(--ink)}
.nac{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-top:10px}
.nac i{height:7px;border-radius:4px;background:#e5e8ee}
.nac .x{background:#8ccba6}.nac .d{background:var(--brand)}
.nac.cho .d{background:var(--warn)}.nac.xong .d{background:var(--ok)}.nac.het .d{background:#9aa1ad}
.tinhhinh{padding:18px}.tinhhinh .viec{display:flex;gap:12px;align-items:center}.tinhhinh .nac i{height:9px}
.the .tiep{font-size:17px;font-weight:600;color:var(--ink);margin:14px 0 6px}
.yen{display:flex;gap:12px;align-items:center;color:var(--ok-chu)}.yen b{display:block;color:var(--ink)}.yen .ic{width:28px;height:28px}

.quytrinh{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;position:relative}
.quytrinh::before{content:"";position:absolute;top:22px;left:16%;right:16%;border-top:2px dashed #d9b9b9}
.quytrinh li{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;font-size:15px;color:var(--muted)}
.quytrinh b{color:var(--ink);margin-top:6px}
.quytrinh .tron{border-radius:50%;box-shadow:0 0 0 5px #f6f3f5}
.loitat{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.loitat>*{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;text-decoration:none;color:var(--muted);font-size:15px;border:0;border-radius:16px;background:#fff;padding:14px;min-height:118px}
.loitat b{color:var(--ink);font-size:16px;margin-top:8px}
.mocua{display:inline-flex;align-items:center;gap:6px;font-size:15px;color:#4d5563}.mocua::before{content:"";width:8px;height:8px;border-radius:50%;background:#9aa1ad;flex:none}
.mocua.mo{color:var(--ok-chu)}.mocua.mo::before{background:var(--ok)}
.giua .mocua{justify-content:center}
@media (max-width:340px){.than-nha{gap:8px;padding:12px 8px;margin:0 6px}.than-nha button{font-size:14px}}
.loai-nho{display:block;font-size:15px;color:var(--muted)}
.tt{display:block;line-height:1.3}.tt.cho{color:var(--warn-chu)}.tt.dang{color:var(--brand)}.tt.xong{color:var(--ok-chu)}.tt.het{color:#4d5563}
.the.viec{align-items:center}.the.viec>.ic{color:#9aa1ad}
.can .tron{background:#fdebcb}
.buocform{display:grid;grid-template-columns:1fr 1fr;gap:6px}.buocform i{height:6px;border-radius:4px;background:#e5e8ee}.buocform .x{background:var(--brand)}
.dangbao{display:flex;align-items:center;gap:12px}.dangbao>div{flex:1}.dangbao b{display:block;font-size:18px}.dangbao em{font-style:normal;font-size:14px;color:#fff;background:var(--brand);border-radius:6px;padding:1px 7px;margin-left:8px}
.henlon{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;box-shadow:var(--bong);color:var(--muted)}
.henlon strong{font-size:44px;font-weight:700;line-height:1.15;color:var(--ink);font-variant-numeric:tabular-nums}.henlon b{color:var(--ink);font-size:17px}
.giua .quytrinh{margin:8px 0}.quytrinh .tron.xong .ic{width:26px;height:26px;fill:none}
.tuan{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin:14px 0 12px}
.tuan span{height:40px;border-radius:10px;display:grid;place-items:center;font-size:15px;font-weight:600;background:#e7f6ee;color:var(--ok-chu)}
.tuan .nghi{background:#eef0f4;color:#4d5563}.tuan .nay{outline:2.5px solid var(--brand);outline-offset:1px}
.ca{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ca div{background:var(--canvas);border-radius:12px;padding:10px 12px}.ca span{display:block;font-size:15px;color:var(--muted)}.ca b{font-size:18px;font-variant-numeric:tabular-nums}
