/* Giao dien 18/11/2026 theo hai anh mau Kiet gui: nen toi, chu tieu de to dam, the pastel xep chong, nut bo tron xanh chanh, dieu huong day.
   Mau lay tu diem anh cua anh mau (hop 12x12, trung vi): nen #0F0E10, chanh #DFFFAC, hong #FED3E4, chanh nhat #DDF6AC, bac ha #ABFEE9,
   tim nhat #E0DCF4, tim #BB74FF, vang #EFFA81. Font Be Vietnam Pro (do co dau tieng Viet). 14 cap mau deu dat >= 4.5:1.
   File nay nap SAU app.css va them.css: chi ghi de, khong sua file goc. */
:root:root{
  --bg:#0F0E10; --surface:#1B1A1E; --ink:#FFFFFF; --muted:#A2A1A8; --line:#2C2B30; --fill:#2C2B30;
  --bar:rgba(15,14,16,.86); --seg-on:#3A393F; --sw-off:#3A393F; --sw-on:#DFFFAC; --on-accent:#0F0E10;
  --jade:#DFFFAC; --jade-soft:#2C2B30; --ok:#9BE15D; --seal:#FF7A6B; --seal-soft:#3A1F1C;
  --grid:#4A3533; --cell:#1B1A1E;
  --t1:#FF7A7A; --t2:#FFB547; --t3:#7EE081; --t4:#6FB2FF; --t0:#8E8D94;
  --hong:#FED3E4; --chanh:#DDF6AC; --bacha:#ABFEE9; --timnhat:#E0DCF4; --tim:#BB74FF; --vang:#EFFA81; --cam:#FFB59E;
  --toi:#0F0E10; --toi-phu:#4A4950;
  --f-body:"Be Vietnam Pro",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  --f-pin:"Be Vietnam Pro",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  --r-the:26px; color-scheme:dark;
}
body{background:var(--bg);font-family:var(--f-body);letter-spacing:-.005em;padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
body::before{display:none}
.wrap{gap:14px;padding:0 16px}

/* ---------- dau trang: chao + chuoi ngay, bo thanh tab tren ---------- */
header{position:static;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;padding:10px 0 0;border:0;box-shadow:none;margin:0}
header .top,header .bar,.hrow,#roleLine:empty{display:none!important}
.gd-dau{display:flex;align-items:center;gap:12px;padding:6px 0 2px}
.gd-dau img{width:44px;height:44px;border-radius:50%;flex:none}
.gd-dau .ten{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.gd-dau .ten b{font-size:19px;font-weight:700;letter-spacing:-.02em}
.gd-dau .chi{display:flex;gap:12px;font-size:14px;color:var(--muted);align-items:center}
.gd-dau .chi span{display:inline-flex;align-items:center;gap:4px}
.gd-dau .chi svg{width:16px;height:16px}
.gd-dau .lua{color:#FFB547} .gd-dau .cau{color:var(--jade)}
.gd-dau .dong{width:8px;height:8px;border-radius:50%;background:var(--ok);flex:none}
.gd-dau .dong.off{background:var(--seal)}
.gd-tron{width:44px;height:44px;border-radius:50%;border:0;background:var(--fill);color:var(--ink);display:grid;place-items:center;flex:none;cursor:pointer}
.gd-tron svg{width:22px;height:22px}
#roleLine{font-size:13px;color:var(--jade);font-weight:600}

/* ---------- dieu huong day (dung lai #tabs) ---------- */
#tabs.tabs{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:20;display:flex;gap:6px;
  background:rgba(27,26,30,.94);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);padding:8px;border-radius:999px;box-shadow:0 10px 30px rgba(0,0,0,.5);width:auto;max-width:calc(100vw - 24px)}
#tabs.tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:62px;height:58px;border-radius:999px;background:transparent;color:var(--muted);font-size:11px;font-weight:600;padding:0;box-shadow:none}
#tabs.tabs button svg{width:24px;height:24px}
#tabs.tabs button[aria-selected="true"]{background:var(--jade);color:var(--toi);box-shadow:none}
@media (max-width:370px){ #tabs.tabs button{width:56px} #tabs.tabs{gap:3px;padding:6px} }

/* ---------- chu va khoi chung ---------- */
.panel{background:var(--surface);border-radius:var(--r-the);padding:20px;gap:14px}
.panel h2{font-size:13px;letter-spacing:.04em;color:var(--muted);font-weight:600}
.gtitle{font-size:24px!important;font-weight:800;letter-spacing:-.03em;line-height:1.15}
.gnote{font-size:15px;line-height:1.5;color:var(--muted)}
.abtn{border-radius:999px;background:var(--fill);color:var(--ink);font-weight:600;padding:15px 18px;min-height:52px}
.abtn.on{background:var(--jade);color:var(--toi)}
.abtn.big{border-radius:999px;padding:17px;font-size:17px}
.ghost{color:var(--jade);font-weight:600}
.tabs,.seg{background:var(--fill);border-radius:999px;padding:4px}
.seg button{border-radius:999px;color:var(--muted);font-size:14px;padding:9px 6px}
.seg button[aria-pressed="true"]{background:var(--jade);color:var(--toi);box-shadow:none}
.banner{background:var(--surface);border:0;border-radius:var(--r-the);color:var(--ink)}
.cd-nhap,input[type=time],input[type=date],select{background:var(--fill)!important;color:var(--ink)!important;border:0!important;border-radius:16px!important}
input[type=checkbox]{accent-color:var(--jade)}
.pa-th{background:var(--fill);border-radius:18px}
.pa-de{background:var(--bg);border-radius:20px;padding:18px}
.sheetx{background:var(--bg)}
.toast,#toast{background:var(--jade)!important;color:var(--toi)!important;border-radius:999px!important}

/* ---------- tieu de lon kieu anh mau 1 ---------- */
.gd-to{font-size:clamp(40px,11.5vw,60px);font-weight:800;line-height:.98;letter-spacing:-.045em;margin:6px 0 0}
.gd-to .gd-mo{color:#6E6D74}
.gd-so{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:4px}
.gd-so .nho{font-size:14px;line-height:1.35;color:var(--muted)} .gd-so .nho b{color:var(--ink);font-weight:700;display:block;font-size:15px}
.gd-so .lon{font-size:64px;font-weight:800;letter-spacing:-.05em;line-height:.9;display:flex;align-items:flex-start;gap:4px}
.gd-so .lon small{font-size:13px;font-weight:600;color:var(--muted);letter-spacing:0;margin-top:4px}

/* ---------- the pastel xep chong (anh mau 2) ---------- */
.gd-chong{display:flex;flex-direction:column;padding-top:6px}
.gd-the{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:6px;text-align:left;border:0;border-radius:var(--r-the);padding:20px 20px 22px;min-height:118px;color:var(--toi);
  font:inherit;cursor:pointer;box-shadow:0 -6px 18px rgba(0,0,0,.35);transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.gd-chong .gd-the+.gd-the{margin-top:-22px}
.gd-chong .gd-the:nth-child(odd){transform:rotate(-1.6deg)} .gd-chong .gd-the:nth-child(even){transform:rotate(1.4deg)}
@media (hover:hover) and (pointer:fine){ .gd-chong .gd-the:hover{transform:rotate(0) translateY(-4px)} }
.gd-the:active{transform:scale(.98)!important}
.gd-the .tt{font-size:21px;font-weight:800;letter-spacing:-.03em;line-height:1.15;max-width:68%;position:relative;z-index:1}
.gd-the .mt{font-size:14px;line-height:1.4;color:var(--toi-phu);max-width:64%;position:relative;z-index:1}
.gd-the .chu{position:absolute;right:-6px;bottom:-26px;font-family:var(--f-han);font-size:132px;line-height:1;color:rgba(15,14,16,.13);pointer-events:none}
.gd-the .dau-tick{position:absolute;top:16px;right:16px;width:30px;height:30px;border-radius:50%;background:var(--toi);color:var(--jade);display:grid;place-items:center;z-index:1}
.gd-the .dau-tick svg{width:16px;height:16px}
.gd-the .so{position:absolute;top:18px;right:20px;font-size:13px;font-weight:700;color:var(--toi-phu);z-index:1}
.gd-the.xong{filter:saturate(.55) brightness(.82)}
.gd-the.xong .tt{text-decoration:line-through;text-decoration-thickness:2px}
.gd-the.ke{box-shadow:0 0 0 3px var(--jade),0 -6px 18px rgba(0,0,0,.35)}
.gd-hong{background:var(--hong)} .gd-chanh{background:var(--chanh)} .gd-bacha{background:var(--bacha)} .gd-timnhat{background:var(--timnhat)} .gd-tim{background:var(--tim)} .gd-vang{background:var(--vang)} .gd-cam{background:var(--cam)}
.gd-luoi{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.gd-luoi .gd-the{min-height:190px;transform:none!important;box-shadow:none}
.gd-luoi .gd-the .tt,.gd-luoi .gd-the .mt{max-width:100%}
.gd-luoi .gd-the .chu{font-size:110px;bottom:-18px}
.gd-luoi .rong{grid-column:1/-1;min-height:150px}
.gd-luoi .rong .tt,.gd-luoi .rong .mt{max-width:66%}
.gd-hang{display:flex;flex-direction:column;gap:8px}
.gd-dong{display:flex;align-items:center;gap:14px;width:100%;background:var(--fill);border:0;border-radius:999px;padding:8px 18px 8px 8px;color:var(--ink);font:inherit;font-size:16px;font-weight:600;cursor:pointer;min-height:60px;text-align:left}
.gd-dong .ic{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex:none;color:var(--toi)}
.gd-dong .ic svg{width:22px;height:22px}
.gd-dong .bn{flex:1;display:flex;flex-direction:column;gap:1px} .gd-dong small{font-size:13px;font-weight:500;color:var(--muted)}
.gd-dong>svg{width:16px;height:16px;color:var(--muted)}
.gd-dong input{margin-left:auto}
.gd-loi{background:var(--surface);border-radius:var(--r-the);padding:18px 20px;display:flex;flex-direction:column;gap:6px}
.gd-loi .tieu{font-size:13px;font-weight:600;color:var(--jade)}
.gd-loi p{margin:0;font-size:16px;line-height:1.45}
.gd-ve{display:inline-flex;align-items:center;gap:6px;border:0;background:var(--fill);color:var(--ink);border-radius:999px;padding:9px 16px 9px 12px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;align-self:flex-start}
.gd-ve svg{width:16px;height:16px}

/* ---------- cac man cu: doi sang toi, nut tron ---------- */
.step{background:var(--fill)!important;border-radius:20px!important}
.kh-bai,.choi-o,.bang-py button,.kh-thanh button,.kh-16 button,.kh-vd button,.kh-cap button{background:var(--fill)}
.kh-bai{border-radius:22px}
.kh-bai.ke{border-color:var(--jade)} .kh-bai.ke .sn{background:var(--jade);color:var(--toi)}
.kh-buoc span.on{background:var(--jade);color:var(--toi)}
.choi-op{background:var(--fill);border:0;border-radius:18px;min-height:68px;color:var(--ink)}
.choi-op.dung{background:var(--jade);color:var(--toi)} .choi-op.dung small{color:var(--toi-phu)}
.choi-op.sai{background:#5A2420;color:#fff}
.choi-vach{background:var(--fill)} .choi-vach i{background:var(--jade)}
.choi-o{border-radius:22px}
.choi-o:nth-child(1){background:var(--hong);color:var(--toi)} .choi-o:nth-child(2){background:var(--chanh);color:var(--toi)}
.choi-o:nth-child(3){background:var(--bacha);color:var(--toi)} .choi-o:nth-child(4){background:var(--timnhat);color:var(--toi)}
.choi-o:nth-child(n) span{color:var(--toi-phu)} .choi-o:nth-child(n) i{color:var(--toi)}
.vo-cau{border-top-color:var(--line)}
.vo-nhom{border-radius:var(--r-the)}
.vo-nhom summary b{font-size:17px}
.vo-cham .abtn{border-radius:18px}
.vd{background:var(--surface)!important;border-radius:22px!important}
.vd.goiy{box-shadow:0 0 0 2px var(--jade)!important}
.vd-loc button{background:var(--fill);color:var(--ink)} .vd-loc button[aria-pressed="true"]{background:var(--jade);color:var(--toi)}
.vd-g{color:var(--cam)}
.vo-dg path.anh{stroke:var(--jade)}
.pa-chu i{border-top-color:var(--jade)}
.dg-gan{color:#FFB547}
@media (prefers-reduced-motion:reduce){ .gd-the{transition:none} .gd-chong .gd-the:nth-child(n){transform:none} }
@media (min-width:700px){ .gd-to{font-size:64px} }
.gd-to .gd-mo{padding:0!important;background:none!important;border:0!important;font-family:var(--f-body)!important;font-weight:800!important;font-size:inherit!important;margin-left:0!important;color:#6E6D74!important}
/* nhom cau to mau pastel, chu toi */
.vo-mau{color:var(--toi)}
.vo-mau summary b{color:var(--toi)} .vo-mau .pa-ghichu,.vo-mau .gnote,.vo-mau .vv,.vo-mau .tag{color:var(--toi-phu)!important}
.vo-mau .vo-cau{color:var(--toi);border-top-color:rgba(15,14,16,.12)}
.vo-mau .hz2{color:var(--toi)}
.vo-mau .dg-chuan{color:#1E7A2E!important} .vo-mau .dg-gan{color:#9A5B00!important} .vo-mau .dg-chua{color:#B3261E!important}

/* ---------- 19/11/2026: hang "them neu con suc" o Hom nay, man Go chu ---------- */
.gd-them{display:flex;flex-direction:column;gap:8px;margin-top:2px}
.gd-them .nhan{font-size:13px;font-weight:600;color:var(--muted)}
.gd-them .hang{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.gd-nho{display:flex;align-items:center;gap:8px;border:0;border-radius:18px;padding:12px 14px;min-height:52px;color:var(--toi);font:inherit;font-weight:700;font-size:15px;text-align:left;cursor:pointer}
.gd-nho .chu{font-family:var(--f-han);font-size:24px;line-height:1;color:rgba(15,14,16,.55)}
.gd-nho .tt{flex:1;min-width:0}
.gd-nho svg{width:16px;height:16px;flex:none}
.gd-nho.xong{filter:saturate(.55) brightness(.82)}
.go-bai{gap:12px}
.go-nghia{font-size:22px;font-weight:700;letter-spacing:-.02em;line-height:1.3}
.go-loa{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:999px;background:var(--fill);color:var(--ink);font:inherit;font-weight:600;font-size:14px;padding:8px 14px;cursor:pointer}
.go-loa svg{width:18px;height:18px}
.go-cau{display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px 8px;min-height:64px;padding:10px 0}
.go-cau .h{display:flex;font-family:var(--f-han);font-size:32px;line-height:1.1}
.go-cau .p{display:block;font-size:13px;color:var(--muted);text-align:center;min-height:16px;white-space:nowrap}
.go-o-xong,.go-o-cho{display:flex;flex-direction:column;align-items:center;gap:2px}
.go-o-cho .h i{display:block;width:30px;height:35px;border-bottom:3px solid var(--toi-phu);margin:0 1px}
.go-o-cho.dang .h i{border-color:var(--jade)}
.go-o-cho.dang .p{color:var(--jade)}
.go-dau{font-family:var(--f-han);font-size:28px;color:var(--muted);align-self:flex-end;padding-bottom:18px}
.go-o{width:100%;box-sizing:border-box;border:2px solid var(--line);border-radius:16px;background:var(--fill);color:var(--ink);font:inherit;font-size:20px;padding:14px 16px;outline:none}
.go-o:focus{border-color:var(--jade)}
.go-ung{display:flex;flex-wrap:wrap;gap:8px;min-height:58px;align-items:flex-start}
.go-u{position:relative;border:0;border-radius:14px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);color:var(--ink);padding:8px 14px 8px 12px;min-width:52px;min-height:52px;cursor:pointer}
.go-u .h{font-family:var(--f-han);font-size:28px;line-height:1.2}
.go-u .s{position:absolute;top:3px;right:5px;font-size:10px;color:var(--muted)}
.go-u:active{background:var(--fill)}
.go-goi{font-size:14px;color:var(--muted);line-height:1.4}
.go-tt{font-size:15px;line-height:1.45;min-height:1.45em}
.go-han{font-family:var(--f-han);font-size:1.25em}
.go-hang{display:flex;gap:8px;flex-wrap:wrap}
.go-kq{font-size:15px;font-weight:700;color:var(--seal)} .go-kq.ok{color:var(--ok)}
.go-full .z{font-family:var(--f-han);font-size:30px;line-height:1.3}
.go-full .p{font-size:16px;margin-top:4px} .go-full .v{font-size:15px;color:var(--muted);margin-top:4px}
.go-hv{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:15px}
.go-hv .nhan{flex-basis:100%;font-size:13px;font-weight:600;color:var(--muted)}
.go-huong summary{cursor:pointer;font-size:15px}
body.dang-go #tabs.tabs{display:none!important}
body.dang-go{padding-bottom:24px}
