:root{--red:#4F46E5;--deep:#111113;--gold:#4F46E5;--cream:#FAFAFA;--ink:#111113;--mut:#6B6B73;--line:#E7E7EA;--ok:#17692F}
*{box-sizing:border-box}
body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.55 Inter,'Segoe UI',Roboto,system-ui,sans-serif;-webkit-text-size-adjust:100%}
p,h1,h2,h3{margin:0}
a{color:var(--ink)}
.wrap{max-width:560px;margin:0 auto;padding:24px 16px}
.member-page #member-edit{margin-top:16px}
.member-page #member-edit .member-picker-row{display:flex;align-items:center;gap:16px;min-width:0}
.member-page #member-edit .member-picker-row[hidden]{display:none}
.member-page #member-edit label{flex:0 1 auto;max-width:55%;margin:0;font-size:clamp(11px,2.8vw,16px);line-height:1.4}
.member-page #member-edit .member-picker-control{position:relative;flex:1 1 0;min-width:0}
.member-page #member-edit input{width:100%;min-width:0}
#edit-member-options{position:absolute;z-index:30;left:0;right:0;bottom:calc(100% + 6px);max-height:240px;overflow-y:auto;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #0002;padding:4px}
#edit-member-options button{display:block;width:100%;border:0;border-radius:8px;padding:10px 12px;text-align:left;font:inherit;white-space:normal;overflow-wrap:anywhere;color:var(--ink);background:#fff;cursor:pointer}
#edit-member-options button:hover,#edit-member-options button[aria-selected="true"]{background:#F1F1F3}
#edit-member-options .member-empty{padding:10px;color:var(--mut);font-size:13px}
.wide{max-width:1100px}
.top{background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:10px 20px;flex-wrap:wrap}
.top img{height:36px}
.top .sp{flex:1}
.top a,.top button.lnk{font-weight:500;text-decoration:none;color:var(--mut);background:none;border:0;font-size:15px;cursor:pointer;padding:8px 10px}
.card-box{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;margin:16px 0}
h1{font-size:24px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
h2{font-size:13px;font-weight:600;color:var(--mut);letter-spacing:.06em;text-transform:uppercase;margin-bottom:14px}
label{display:block;font-weight:500;font-size:14px;margin:14px 0 6px;color:var(--ink)}
input,select,textarea{width:100%;font:inherit;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:#fff}
input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
input[type=checkbox]{width:auto}
button.btn,.btn{display:inline-block;font:inherit;font-weight:500;border:1px solid var(--ink);border-radius:8px;padding:12px 18px;background:var(--ink);color:#fff;cursor:pointer;text-align:center;text-decoration:none}
.btn.alt{background:#fff;color:var(--ink);border-color:var(--line)}
.btn.gold{background:var(--red);border-color:var(--red);color:#fff}
.btn.sm{padding:7px 12px;font-size:14px}
.btn.big{width:100%;font-size:18px;padding:18px}
.btn:disabled{background:#E7E7EA;border-color:#E7E7EA;color:#9A9AA2;cursor:not-allowed}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.row>*{flex:1}
.msg{margin-top:10px;font-weight:500}
.msg.e{color:var(--red)}.msg.o{color:var(--ok)}
.tabs{display:flex;gap:4px;flex-wrap:wrap;margin:16px 0}
.tabs button{flex:none;font:inherit;font-weight:500;padding:9px 16px;border-radius:99px;border:1px solid var(--line);background:#fff;color:var(--mut);cursor:pointer}
.tabs button.on{background:var(--ink);border-color:var(--ink);color:#fff}
.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.photos .ph1{text-align:center;font-size:13px;color:var(--mut)}
.photos .sq{aspect-ratio:1;border-radius:10px;border:1px solid var(--line);background:#F1F1F3 center/cover;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.badge{position:absolute;left:0;right:0;bottom:0;background:rgba(17,17,19,.8);color:#fff;font-size:12px;font-weight:500;padding:3px}
table{border-collapse:collapse;width:100%}
th,td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--line);font-size:14px;vertical-align:middle}
.pill{display:inline-block;padding:2px 10px;border-radius:99px;font-size:12px;font-weight:500;background:#F1F1F3;color:var(--ink)}
.pill.late{background:#FDE8EA;color:var(--red)}
.hint{font-size:13px;color:var(--mut)}
.pay{text-align:center}
.pay img{width:260px;max-width:100%;border-radius:8px;border:1px solid var(--line)}
.edit-wrap{position:relative;width:100%;overflow:hidden;border-radius:8px;border:1px solid var(--line)}
.edit-wrap .s{transform-origin:0 0}
dialog{border:0;border-radius:12px;padding:24px;width:min(520px,92vw)}
dialog::backdrop{background:rgba(0,0,0,.4)}
.s{width:1920px;height:1080px;position:relative;overflow:hidden;background:#FAFAFA;color:#111113;font-family:Inter,'Segoe UI',Roboto,system-ui,sans-serif}
.s .a{position:absolute}
.s .card{position:absolute;background:#fff;border:1px solid #E7E7EA;border-radius:24px;overflow:hidden}
.s .k{font-size:24px;font-weight:800;letter-spacing:4px;color:#4F46E5}
.s .ph{background:repeating-linear-gradient(45deg,#F3E6D8,#F3E6D8 14px,#F8EFE4 14px,#F8EFE4 28px);border:3px dashed #C9A97A;display:flex;align-items:center;justify-content:center;text-align:center;color:#8A6A3F;font-weight:700;font-size:24px;border-radius:20px;overflow:hidden}
.s .ph img{width:100%;height:100%;border-radius:inherit}
.s .bul{display:flex;gap:14px;align-items:flex-start;font-size:30px;font-weight:700;line-height:1.25}
.s .bul i{flex:none;width:14px;height:14px;border-radius:50%;background:#4F46E5;margin-top:11px}
.s .st{flex:1;text-align:center;border-top:8px solid #E2A93B;background:#FFF7EE;border-radius:16px;padding:14px 6px}
.s .st b{display:block;font-size:56px;font-weight:900;color:#111113;line-height:1}
.s .st span{font-size:22px;font-weight:700;color:#6B6B73}
.s .empty{color:#B9A58C;font-weight:600}
.s [data-f],.s [data-i]{cursor:default}
.edit-wrap .s [data-f],.edit-wrap .s [data-i]{cursor:pointer;outline:2px dashed transparent}
.edit-wrap .s [data-f]:hover,.edit-wrap .s [data-i]:hover{outline-color:#E2A93B}
.s .tag{position:absolute;left:330px;top:34px;background:#E2A93B;color:#111113;font-weight:900;font-size:28px;letter-spacing:2px;padding:10px 24px;border-radius:99px}
/* trang chiếu */
.show-body{margin:0;background:#0E0E10;color:#fff;height:100vh;display:flex;flex-direction:column}
.show-main{flex:1;display:flex;min-height:0}
.queue{width:280px;overflow:auto;background:#17171A;padding:10px;flex:none}
.queue button{display:flex;gap:8px;width:100%;text-align:left;font:inherit;font-weight:700;color:#fff;background:#222226;border:2px solid transparent;border-radius:8px;padding:10px;margin-bottom:6px;cursor:pointer}
.queue button.cur{border-color:#fff}
.queue button.done{opacity:.5}
.queue small{display:block;font-weight:500;color:#A0A0A8}
.stage{flex:1;position:relative;display:flex;align-items:center;justify-content:center;min-width:0}
.stage .s{transform-origin:0 0;position:absolute;left:0;top:0}
.count{flex:none;display:flex;align-items:center;justify-content:center;min-width:48px;background:#222226;border:2px solid #fff;border-radius:7px;font-size:22px;font-weight:900;padding:0 12px}
.count.zero{animation:bl 1s steps(2,start) infinite;background:var(--red)}
@keyframes bl{50%{opacity:.15}}
@media (prefers-reduced-motion:reduce){.count.zero{animation:none}}
.stop{height:65px;box-sizing:border-box;display:flex;gap:8px;align-items:stretch;padding:7px;background:#17171A;position:relative;z-index:10}
.stop .btn{padding:0 12px;font-size:13px}
.show-controls{display:flex;align-items:center;gap:4px;flex:none}
.stop .show-controls .btn{display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;min-width:0;padding:0;border-radius:6px;text-decoration:none}
.show-controls svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.show-controls .btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
.show-update-status{position:absolute;top:100%;left:7px;max-width:calc(100vw - 14px);padding:5px 8px;background:#17171A;color:#fff;border-radius:4px;font-size:12px;pointer-events:none}
.show-update-status:empty{display:none}
.menu{position:relative;display:flex}
.ctl{display:none;position:absolute;left:0;top:100%;margin-top:4px;gap:6px;align-items:center;padding:8px;font-size:13px;background:#17171A;border:1px solid #333;border-radius:8px;flex-wrap:wrap;width:max-content;max-width:92vw}
.menu.open .ctl{display:flex}
@media (hover:hover){.menu:hover .ctl{display:flex}}
.ctl input{width:56px;padding:4px}
.ctl .btn{padding:6px 12px;font-size:13px}
.info{position:absolute;top:8px;left:50%;transform:translateX(-50%);font-size:14px;color:#A0A0A8}
@media (max-width:800px){.show-main{flex-direction:column-reverse}.queue{width:auto;max-height:30vh}}

/* cai dat: 2 o mot dong */
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}
.grid2 .full{grid-column:1/-1}
.top{position:sticky;top:0;z-index:10}
.top a,.top button.lnk{border-radius:8px}
.top a:hover,.top button.lnk:hover{background:#F1F1F3;color:var(--ink)}
.btn{transition:opacity .15s}.btn:hover:not(:disabled){opacity:.85}
tr:hover td{background:#FAFAFA}
th{color:var(--mut);font-size:12px;text-transform:uppercase;letter-spacing:.06em;font-weight:500}
/* dien thoai */
@media (max-width:640px){
 .wrap{padding:12px 10px}
 .card-box{padding:16px;margin:10px 0}
 .top{padding:6px 10px;gap:4px}.top img{height:30px}
 .top a,.top button.lnk{font-size:14px;padding:8px 6px}
 .grid2{grid-template-columns:1fr}
 .row>*{flex:1 1 100%}
 .btn.big{font-size:18px;padding:16px}
 input,select,textarea{font-size:16px}
 .tabs button{flex:1 1 auto;padding:10px 8px;font-size:14px}
 .photos{gap:6px}.photos .ph1{font-size:12px}
 table{min-width:560px}
 dialog{padding:16px}
}

/* dang nhap: 3 nut deu nhau, cai app noi bat */
.tabs.three{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tabs.three button{border-radius:8px;text-align:center}
.inst{display:block;width:100%;margin:12px 0;background:var(--red);border-color:var(--red);font-size:18px;padding:16px}
.inst-ios{background:#FDE8EA;color:var(--ink);border-radius:8px;padding:12px;text-align:center;font-weight:500}
/* trinh chieu */
.next3{flex:1;display:flex;gap:8px;align-items:stretch;min-width:0}
.next3 .n{flex:1;display:flex;gap:7px;align-items:center;background:#222226;border-radius:7px;padding:6px;min-width:0;font-size:11px;height:51px;box-sizing:border-box}
.next3 .n.empty{background:#1c1c1f}
.next3 .n b{font-size:15px;color:var(--red);background:#fff;border-radius:50%;width:22px;height:22px;display:flex;align-items:center;justify-content:center;flex:none}
.next3 img,.next3 .av{width:39px;height:39px;border-radius:6px;object-fit:cover;flex:none;background:#333}
.next3 .nm{flex:1;min-width:0;display:flex;flex-direction:column}
.next3 span,.next3 small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.next3 span{font-weight:700;font-size:24px;line-height:1.1}
.next3 small{font-size:10px;color:#A0A0A8}
.next3 .note{flex:none;padding:6px 12px;justify-content:center;font-weight:900;letter-spacing:1px;font-size:13px;white-space:nowrap;text-align:center}
.ctl .ic{padding:5px 9px;font-size:15px;line-height:1;text-decoration:none}
.queue.off{display:none}
@media (max-width:640px){.stop{height:auto;min-height:65px;flex-wrap:wrap}.next3{order:1;flex:1 0 100%;flex-wrap:nowrap;overflow-x:auto}.next3 .n{flex:0 0 290px}.next3 .note{flex:0 0 auto}}

/* lich diem danh: 3 cot, ban lich hien san */
.cal3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;align-items:stretch}
.calbox{border:1px solid var(--line);border-radius:10px;padding:8px;display:flex;flex-direction:column}
.calh{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font-size:14px}
.calh button{background:none;border:0;font-size:20px;cursor:pointer;padding:0 8px}
.calg{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:minmax(32px,1fr);flex:1;gap:2px;text-align:center;font-size:12px}
.calg span{color:var(--mut);font-weight:700;display:grid;place-items:center}
.calg button{background:none;border:0;border-radius:6px;padding:5px 0;cursor:pointer;font:inherit;display:grid;place-items:center;min-width:0}
.calg button.sel{background:var(--red);color:#fff;font-weight:700}
.early{border:1px solid var(--line);border-radius:10px;padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px;min-width:0}
.early .av{width:72px;height:72px;border-radius:10px;background:#eee;overflow:hidden}
.early img{width:100%;height:100%;object-fit:cover}
.early small{color:var(--mut)}.early em{font-style:normal;font-weight:700;color:var(--red)}
.callist{list-style:none;padding:0;margin:12px 0 0}
.callist li{padding:6px 0;border-bottom:1px solid var(--line);font-size:14px}
.callist em{font-style:normal;font-weight:700;color:var(--red)}
@media (max-width:640px){.cal3{grid-template-columns:1fr}}

/* ===== SKIN V2: dashboard "soft" (nen am, the bo tron lon, sidebar toi, the gradient) =====
   Tham chieu: mau Analytics (the cam-hong, sidebar navy, nut pill den). Chi doi giao dien, khong dong vao logic.
   Khong doi .s (the chieu 1920x1080) de khoi lech bo cuc trinh chieu. */
:root{--ink:#10121C;--mut:#6B6862;--line:#E4E1DB;--canvas:#EEECE8;--panel:#F7F6F3;--peach:#F6CFC8;--grad:linear-gradient(135deg,#2563EB 0%,#6366F1 58%,#8B5CF6 100%);--ok:#17692F}
body{background:var(--canvas);font-family:'Plus Jakarta Sans',Inter,'Segoe UI',Roboto,system-ui,sans-serif;letter-spacing:-.005em}
h1{font-size:34px;font-weight:700;letter-spacing:-.03em}
h2{font-size:17px;font-weight:600;color:var(--ink);letter-spacing:-.01em;text-transform:none;margin-bottom:16px}
.card-box{background:var(--panel);border:0;border-radius:32px;padding:28px;margin:18px 0;box-shadow:0 1px 0 #fff inset,0 10px 30px rgba(16,18,28,.04)}
/* sidebar toi noi (desktop) */
@media (min-width:900px){
 body:not(.show-body){padding-left:244px}
 .top{position:fixed;left:14px;top:14px;bottom:14px;width:204px;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:6px;padding:20px 14px;background:var(--ink);border:0;border-radius:32px;box-shadow:0 20px 40px rgba(16,18,28,.25)}
 .top img{height:44px;width:auto;align-self:flex-start;background:#fff;border-radius:14px;padding:6px 10px;margin-bottom:14px}
 .top b{color:#fff;font-size:15px;padding:0 10px 10px}
 .top a,.top button.lnk{text-align:left;padding:12px 16px;border-radius:99px}
 .wrap.wide{max-width:1180px;margin:0;padding:28px 28px 40px}
}
.top{background:var(--ink);border:0}
.top b{color:#fff}
.top a,.top button.lnk{color:#A5A7B5;font-weight:500;border-radius:99px;transition:background .15s,color .15s}
.top a:hover,.top button.lnk:hover{background:rgba(255,255,255,.1);color:#fff}
@media (max-width:899px){.top{border-radius:0 0 28px 28px;padding:10px 14px}.top img{background:#fff;border-radius:10px;padding:3px 8px}}
/* nut pill */
.btn{border-radius:99px;padding:13px 24px;background:var(--ink);border-color:var(--ink);font-weight:600}
.btn.alt{background:#fff;border-color:transparent;box-shadow:0 0 0 1px var(--line) inset}
.btn.gold,.btn.inst{background:var(--grad);border:0;color:#fff}
.btn.sm{padding:8px 16px}
.btn:disabled{background:#E4E1DB;border-color:transparent;color:#A09D96}
.btn:hover:not(:disabled){opacity:1;transform:translateY(-1px);box-shadow:0 8px 18px rgba(16,18,28,.18)}
.btn{transition:transform .15s,box-shadow .15s}
@media (prefers-reduced-motion:reduce){.btn,.btn:hover:not(:disabled){transition:none;transform:none}}
/* o nhap */
input,select,textarea{border:0;border-radius:18px;background:#fff;padding:13px 16px;box-shadow:0 0 0 1px var(--line) inset}
input:focus,select:focus,textarea:focus{outline:2px solid var(--ink);outline-offset:1px}
label{font-weight:600;font-size:13px;color:var(--mut)}
/* the Diem danh = hero gradient */
#ck{background:var(--grad);color:#fff;position:relative;overflow:hidden;box-shadow:0 18px 40px rgba(232,52,78,.28)}
#ck::after{content:"";position:absolute;right:-60px;top:-80px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.28),transparent 70%);pointer-events:none}
#ck h2,#ck .msg,#ck .msg.o{color:#fff}
#ck .btn.big{background:#fff;color:var(--ink);border:0;font-size:22px;font-weight:700;padding:22px;box-shadow:0 10px 24px rgba(0,0,0,.14)}
#ck .btn.big:disabled{background:rgba(255,255,255,.28);color:#fff;box-shadow:none}
/* tab pill */
.tabs button{border:0;background:#fff;box-shadow:0 0 0 1px var(--line) inset;font-weight:600;padding:10px 20px}
.tabs button.on{background:var(--ink);color:#fff;box-shadow:none}
.tabs.three button{border-radius:99px}
/* anh, lich */
.photos .sq{border-radius:24px;border:0;background-color:#fff;box-shadow:0 0 0 1px var(--line) inset}
.badge{background:rgba(16,18,28,.75);padding:5px;font-weight:600}
.calbox,.early{background:#fff;border:0;border-radius:24px;padding:14px;box-shadow:0 0 0 1px var(--line) inset}
.calg button.sel{background:var(--grad);border-radius:10px}
.early .av{border-radius:18px;background:var(--peach)}
.early em,.callist em{color:#D12A44}
.callist li{border-bottom-color:var(--line)}
/* bang + chip */
table{border-collapse:separate;border-spacing:0 6px}
th{border:0;padding:4px 14px}
td{border:0;background:#fff;padding:12px 14px}
td:first-child{border-radius:18px 0 0 18px}td:last-child{border-radius:0 18px 18px 0}
tr:hover td{background:#fff;box-shadow:0 6px 16px rgba(16,18,28,.06)}
.pill{background:#E3F2E7;color:var(--ok);font-weight:600;padding:3px 12px}
.pill.late{background:#FBE0DD;color:#B02A20}
.edit-wrap{border-radius:24px;border:0;box-shadow:0 0 0 1px var(--line) inset}
.pay img{border-radius:24px;border:0}
dialog{border-radius:32px;background:var(--panel);box-shadow:0 30px 70px rgba(16,18,28,.3)}
dialog::backdrop{background:rgba(16,18,28,.5)}
.inst-ios{background:var(--peach);border-radius:20px}
.msg.e{color:#B02A20}
/* dang nhap (khong co sidebar): card trung tam */
@media (min-width:900px){.wrap:not(.wide){padding-top:40px}}

/* ===== V3: thong ke, huy chuong top 1-2, BXH, bang diem danh 4 cot ===== */
.rowh{display:flex;justify-content:space-between;align-items:center;gap:10px}
.stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 14px}
.stats div{background:#fff;border-radius:20px;padding:12px 14px;box-shadow:0 0 0 1px var(--line) inset;display:flex;flex-direction:column}
.stats b{font-size:22px;font-weight:700;letter-spacing:-.02em}
.stats small{color:var(--mut);font-size:12px}
.stats div:first-child{background:var(--grad);color:#fff;box-shadow:none}.stats div:first-child small{color:rgba(255,255,255,.85)}
.early{position:relative}
.medal{position:absolute;top:10px;right:10px;width:38px;height:38px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:22px;box-shadow:0 4px 12px rgba(16,18,28,.18)}
.rost{margin-top:14px;display:grid;gap:6px}
.rh,.rr{display:grid;grid-template-columns:56px 110px 120px 1fr;gap:10px;align-items:center;padding:10px 16px;font-size:14px}
.rh{color:var(--mut);font-weight:600;font-size:12px;padding-bottom:2px}
.rr{background:#fff;border-radius:16px}
.rr span:nth-child(2){font-variant-numeric:tabular-nums;font-weight:600}
.st{font-style:normal;font-weight:600;font-size:12px;padding:3px 12px;border-radius:99px;white-space:nowrap}
.st.ok{background:#E3F2E7;color:var(--ok)}.st.late{background:#FBE0DD;color:#B02A20}.st.off{background:#ECEAE5;color:#6F6C66}.st.wait{background:#FCEFD2;color:#7A5200}.st.guest{background:#E4EDFB;color:#2456A6}
.bxh{display:grid;gap:8px}
.member-page .bxh2 .bxh + .hint{margin:16px 0 0;line-height:1.5}
.bx{display:grid;grid-template-columns:44px 1fr auto auto auto;gap:14px;align-items:center;background:#fff;border-radius:18px;padding:12px 16px;font-size:14px}
.bx:first-child{background:var(--grad);color:#fff}.bx:first-child em{color:#fff}
.bk{font-size:22px;text-align:center;font-weight:700}
.bx em{font-style:normal;font-weight:700;color:#D12A44}
@media (max-width:640px){.rh,.rr{grid-template-columns:34px 56px 84px 1fr;gap:6px;padding:10px;font-size:13px}.bx{grid-template-columns:34px 1fr;row-gap:2px}.bx span:nth-child(n+3){grid-column:2;font-size:12px}}
@media (max-width:899px){.member-page .stats{grid-template-columns:repeat(6,minmax(0,1fr))}.member-page .stats>div{grid-column:span 2;min-width:0;padding:12px 10px}.member-page .stats>div:nth-child(-n+2){grid-column:span 3}}

/* ===== V4: chia doi o Diem danh: menu den (anh TV dang nhap) ben trai, o Diem danh ben phai ===== */
.mphoto{display:none}
@media (min-width:900px){
 body:not(.show-body){padding-left:0}
 .hero{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:1180px;margin:28px 28px 0}
 .hero .top{position:relative;left:auto;top:auto;bottom:auto;width:auto;min-height:440px}
 .hero #ck{margin:0;display:flex;flex-direction:column;justify-content:center}
 .mphoto{display:block;flex:1;min-height:160px;margin:4px 10px 12px;border-radius:24px;background:var(--peach) center/cover no-repeat}
 .top .sp{display:none}
}
@media (max-width:899px){.hero #ck{margin:14px 10px 0}}

/* ===== V5: danh sach 3 cot, huy chuong top 1-2 to + lap lanh ===== */
.rhs,.rcols{display:grid;grid-template-columns:repeat(3,1fr);gap:6px 14px}
.rcols{grid-auto-flow:column;margin-top:6px}
.rhs .rh:nth-child(n+2){display:none}
.rhs{margin-top:14px}
.rh,.rr{grid-template-columns:30px 46px 78px 1fr;gap:6px;padding:8px 10px;font-size:13px}
.rr .st{font-size:11px;padding:2px 8px}
.rr span:last-child{overflow-wrap:anywhere}
.early{overflow:hidden}
.medal{width:auto;height:auto;top:-8px;right:4px;background:none;box-shadow:none;font-size:110px;line-height:1;border-radius:0;pointer-events:none;animation:glint 2s ease-in-out infinite;filter:drop-shadow(0 0 8px rgba(255,200,40,.9))}
.medal::before,.medal::after{content:"º8";position:absolute;font-size:30px;animation:twink 1.4s ease-in-out infinite}
.medal::before{left:-4px;top:12px}
.medal::after{right:0;bottom:6px;animation-delay:.7s}
@keyframes glint{0%,100%{transform:scale(1) rotate(-4deg);filter:drop-shadow(0 0 6px rgba(255,200,40,.7))}50%{transform:scale(1.06) rotate(4deg);filter:drop-shadow(0 0 22px rgba(255,220,80,1))}}
@keyframes twink{0%,100%{opacity:0;transform:scale(.4)}50%{opacity:1;transform:scale(1.2)}}
@media (prefers-reduced-motion:reduce){.medal,.medal::before,.medal::after{animation:none}.medal::before,.medal::after{opacity:1}}
@media (max-width:899px){.rhs,.rcols{grid-template-columns:1fr}.rhs .rh:nth-child(n+2){display:none}.rcols{grid-auto-flow:row;grid-template-rows:none!important}.medal{font-size:70px}}
/* ===== V6: gon lai (hero thap nhu o Diem danh cu, anh nho) ===== */
@media (min-width:900px){
 .hero .top{min-height:0;flex-direction:row;flex-wrap:wrap;align-items:center;align-content:space-between;gap:4px 6px;padding:18px 20px}
 .hero .top img{margin-bottom:0}
 .hero .top b{flex:1;padding:0 8px;font-size:16px}
 .mphoto{flex:none;order:2;width:84px;height:84px;min-height:0;margin:0;border-radius:50%}
 .hero .top a,.hero .top button.lnk{order:3;padding:7px 14px;font-size:14px}
 .hero #ck{padding:20px 28px}
 .hero #ck .btn.big{padding:16px;font-size:20px}
}

/* ===== V7: can le, huy chuong khong de len anh, sao lap lanh bang CSS, BXH chia doi ===== */
@media (min-width:900px){.hero{max-width:1124px}}
.medal{top:6px;right:14px;font-size:92px;line-height:1.1}
.medal::before,.medal::after{content:"";width:22px;height:22px;background:#FFD23F;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);font-size:0}
.medal::before{left:-6px;top:8px}.medal::after{right:-4px;bottom:10px}
.bxh2{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.bxh2 .card-box{margin:10px 0}
.bx.bg{grid-template-columns:44px 1fr auto}
@media (max-width:899px){.bxh2{grid-template-columns:1fr}}

/* anh dai dien: nut xoa, o tich to theo mau app */
.pact{display:flex;gap:6px;justify-content:center;margin:8px 0}
.pact .del{color:var(--red);border-color:var(--red)}
.photos .use{display:flex;align-items:center;justify-content:center;gap:10px;margin:0;font-weight:600;font-size:14px;color:var(--ink);cursor:pointer;text-align:left}
.photos .use input{appearance:none;-webkit-appearance:none;flex:none;width:32px;height:32px;margin:0;border:2px solid #C9C9CF;border-radius:10px;background:#fff;display:grid;place-items:center;cursor:pointer;transition:background .15s,border-color .15s}
.photos .use input:checked{background:var(--red);border-color:var(--red)}
.photos .use input:checked::after{content:"";width:9px;height:17px;border:solid #fff;border-width:0 4px 4px 0;transform:rotate(45deg) translate(-1px,-2px)}
.photos .use input:focus-visible{outline:3px solid #F5B8BD;outline-offset:2px}
.photos .use input:disabled{opacity:.4;cursor:not-allowed}

#crc{display:block;width:min(80vw,360px);height:auto;aspect-ratio:1;margin:0 auto;border-radius:12px;border:2px solid var(--red);touch-action:none;cursor:grab;background:#fff}
.photos .cap{display:block;font-size:13px;color:var(--ink)}

/* ===== V8: header trang trắng: logo + Menu, ảnh dưới logo, tên + số năm bên phải; Cài app cạnh Điểm danh ===== */
.hero .top{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"logo menu" "photo who";align-items:center;gap:14px 18px;background:#fff;color:var(--ink);border-radius:32px;padding:18px 22px;min-height:0;box-shadow:0 10px 30px rgba(16,18,28,.06)}
.hero .top img{grid-area:logo;justify-self:center;padding:0;margin:0;height:44px}
.hero .mphoto{display:block;grid-area:photo;justify-self:center;order:0;flex:none;width:112px;height:112px;min-height:0;margin:0;border-radius:50%}
.hero .who{grid-area:who;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.hero .top .who b{color:var(--ink);font-size:22px;line-height:1.2;padding:0;flex:none}
.yrs{background:var(--grad);color:#fff;font-weight:800;font-size:16px;padding:7px 16px;border-radius:99px;box-shadow:0 6px 14px rgba(232,52,78,.28)}
/* Icon trái tim đập cạnh "Uniki" trên nhãn thâm niên, nằm trong dòng chữ như cũ (không phóng to, không chàn ra ngoài). */
/* Viền trắng mảnh và ĐỀU quanh tim: 4 lớp bóng trắng nhoè 0.5px không lệch, loang đều mọi phía theo đúng hình tim (kể cả chỗ lõm); cộng một bóng trắng cố định phía dưới loang rộng 10px mờ dần. */
.yrs-heart{display:inline-block;position:relative;margin:0 4px;font-size:.9em;line-height:1;filter:drop-shadow(0 0 .5px #fff) drop-shadow(0 0 .5px #fff) drop-shadow(0 0 .5px #fff) drop-shadow(0 0 .5px #fff) drop-shadow(0 3px 10px rgba(255,255,255,.65));animation:yrs-beat 1.2s ease-in-out infinite;transform-origin:center}
@keyframes yrs-beat{0%,100%{transform:scale(1)}25%{transform:scale(1.25)}40%{transform:scale(1)}55%{transform:scale(1.18)}}
/* Bầy tim nhỏ bay lên từ trái tim trên nhãn rồi tan dần: mọc tại tâm tim, trôi chéo lên, mờ dần đến mất. */
.yrs-puff{position:absolute;left:50%;top:50%;font-size:.75em;line-height:1;pointer-events:none;opacity:0;animation:yrs-float var(--t,1200ms) ease-out forwards;animation-delay:var(--d,0ms)}
@keyframes yrs-float{0%{transform:translate(-50%,-50%) scale(.3) rotate(0deg);opacity:0}15%{opacity:1}60%{opacity:.85}100%{transform:translate(calc(-50% + var(--dx,0px)),calc(-50% + var(--dy,-30px))) scale(1.1) rotate(var(--rot,0deg));opacity:0}}
@media (prefers-reduced-motion:reduce){.yrs-heart{animation:none}.yrs-puff{display:none}}
/* Chưa có ngày tham gia: nhãn thành lời nhắc bấm được, mở thẳng menu cập nhật. */
.yrs.need{background:#fff;color:var(--red,#4F46E5);font-weight:700;box-shadow:0 0 0 2px var(--red,#4F46E5) inset;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.yrs.need::before{content:"\1F4C5"}
.yrs.need:hover{background:#FFF1F2}
.yrs.need:focus-visible{outline:3px solid #F5B8BD;outline-offset:2px}
.mn{grid-area:menu;justify-self:end;align-self:start;position:relative}
.mbtn{font:inherit;font-weight:600;font-size:15px;color:var(--ink);background:#fff;border:0;box-shadow:0 0 0 1px var(--line) inset;border-radius:99px;padding:10px 20px;cursor:pointer}
.mbtn:hover{background:#F1F1F3}
.mdrop{display:none;position:absolute;right:0;top:100%;margin-top:6px;z-index:20;flex-direction:column;min-width:190px;padding:8px;background:#fff;border-radius:24px;box-shadow:0 0 0 1px var(--line) inset,0 18px 40px rgba(16,18,28,.18)}
.mn.open .mdrop{display:flex}
.hero .top .mdrop a,.hero .top .mdrop button.lnk{order:0;color:var(--ink);text-align:left;padding:11px 16px;font-size:15px;border-radius:99px}
.hero .top .mdrop a:hover,.hero .top .mdrop button.lnk:hover{background:#F1F1F3;color:var(--ink)}
.mdrop [hidden]{display:none}
.ckrow{display:flex;gap:10px}
.ckrow .btn.big{flex:1}
#ck #install{flex:none;width:auto;background:transparent;color:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.85) inset;padding:22px 26px;font-size:18px}
#ck #install:hover:not(:disabled){box-shadow:0 0 0 2px #fff inset,0 8px 18px rgba(16,18,28,.18)}
@media (max-width:640px){.hero .mphoto{width:84px;height:84px}.hero .top .who b{font-size:18px}.yrs{font-size:14px}.hero .top{padding:14px 16px}#ck #install{padding:16px 18px;font-size:16px}}

/* ===== V9: can giua toan trang, rong rai, 2 the dau trang cao bang nhau ===== */
.hero,.wrap.wide{box-sizing:border-box;width:100%;max-width:1236px;margin-left:auto;margin-right:auto}
@media (min-width:900px){
 .hero{margin:32px auto 0;padding:0 28px;gap:24px;align-items:stretch}
 .wrap.wide{margin:0 auto;padding:28px 28px 48px}
 .hero .top{padding:28px 36px;gap:20px 28px;align-content:center}
 .hero .mphoto{width:128px;height:128px}
 .hero .top img{height:52px}
 .hero .top .who b{font-size:26px}
 .hero #ck{padding:32px 40px}
}

.jd{font-size:14px;color:var(--mut);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.jd input{font:inherit;color:var(--ink);border:1px solid var(--line);border-radius:99px;padding:6px 12px;background:#fff}

/* ===== V10: logo vuông góc, menu hiện hết, ngày tham gia xuống cuối trang ===== */
.hero .top img{border-radius:0;background:none;padding:0}
.mbtn{display:none}
.hero .top .mdrop{display:flex;position:static;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;gap:8px;min-width:0;padding:0;margin:0;background:none;box-shadow:none;border-radius:0}
.hero .top .mdrop a,.hero .top .mdrop button.lnk{padding:9px 16px;font-size:14px;font-weight:600;background:#fff;box-shadow:0 0 0 1px var(--line) inset;border-radius:99px}
.mn{align-self:center}
#jcard .jd{font-size:15px;color:var(--ink);font-weight:600}

/* ===== V11: 3 nhóm: thanh logo + menu + cài app, ô hồ sơ, nút điểm danh ===== */
.hero{display:block;max-width:1236px;margin:24px auto 0;padding:0 28px;box-sizing:border-box}
.bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#fff;border-radius:32px;padding:14px 28px;box-shadow:0 10px 30px rgba(16,18,28,.06)}
.bar img{height:48px;width:auto;border-radius:12px;background:none;padding:0}
.bar .home-logo{display:inline-flex;align-items:center;flex:none;line-height:1}
.bar .home-logo:focus-visible{outline:3px solid var(--red);outline-offset:5px;border-radius:4px}
.bar .mn{align-self:center}
.bar .mdrop{align-items:center}
.bar #install{background:var(--grad);color:#fff;box-shadow:0 6px 14px rgba(232,52,78,.28)}
.duo{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px;align-items:stretch}
.prof{display:flex;align-items:center;gap:28px;background:#fff;border-radius:32px;padding:28px 36px;box-shadow:0 10px 30px rgba(16,18,28,.06);min-width:0}
.prof .mphoto{display:block;flex:none;width:128px;height:128px;min-height:0;margin:0;border-radius:50%;background:var(--peach) center/cover no-repeat}
.prof .who{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0}
.prof .who b{color:var(--ink);font-size:26px;line-height:1.2}
#ck{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;background:none;box-shadow:none;border-radius:0}
#ck .btn.big{flex:1;display:flex;align-items:center;justify-content:center;gap:14px;min-height:170px;font-size:28px;font-weight:800;border:0;border-radius:32px;background:var(--grad);color:#fff;box-shadow:0 18px 40px rgba(232,52,78,.28)}
#ck .btn.big:not(:disabled)::before{content:"👆";font-size:40px}
#ck .btn.big:disabled{background:#E4E1DB;color:#A09D96;box-shadow:none}
#ck .msg{color:var(--ink);text-align:center;margin:0}
#ck .msg.e{color:var(--red)}
@media (max-width:899px){.hero{padding:0 14px}.duo{grid-template-columns:1fr;gap:14px}.bar{border-radius:24px;padding:12px 16px}.prof{padding:18px 20px;gap:18px}.prof .mphoto{width:84px;height:84px}.prof .who b{font-size:20px}#ck .btn.big{min-height:110px;font-size:22px}.bar .mdrop{justify-content:flex-start}}
.bar .mdrop{display:flex;position:static;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;gap:8px;min-width:0;padding:0;background:none;box-shadow:none;border-radius:0}
.bar .mdrop a,.bar .mdrop button.lnk{padding:9px 16px;font-size:14px;font-weight:600;background:#fff;color:var(--ink);text-decoration:none;box-shadow:0 0 0 1px var(--line) inset;border-radius:99px;border:0;cursor:pointer}
.bar .mdrop a:hover,.bar .mdrop button.lnk:hover{background:#F1F1F3}
.bar .mdrop #install{background:var(--grad);color:#fff;box-shadow:0 6px 14px rgba(232,52,78,.28)}
.bar .mdrop [hidden]{display:none}

/* ===== V12: menu cân hàng, 2 ô gọn và cao bằng nhau ===== */
.bar .mdrop a,.bar .mdrop button.lnk{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:42px;line-height:1;margin:0;padding:0 18px;font-family:inherit;font-size:14px}
.bar .mdrop{align-items:center}
.hero .duo{grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}
.hero .prof{padding:22px 32px;gap:24px;min-height:150px}
.hero .prof .mphoto{width:100px;height:100px}
.hero .prof .who b{font-size:24px}
.hero .duo #ck{padding:0;margin:0;overflow:visible;background:none;box-shadow:none;border-radius:0;display:flex;flex-direction:column;justify-content:stretch}
.hero .duo #ck::after{display:none}
.hero .duo #ck .btn.big{flex:1;min-height:150px;padding:0 24px;font-size:26px}
.hero .duo #ck .msg{position:static;margin:8px 0 0}
.hero .duo #ck .msg:empty{display:none}
@media (max-width:899px){.hero .duo{grid-template-columns:1fr}.hero .prof .mphoto{width:84px;height:84px}.hero .duo #ck .btn.big{min-height:100px;font-size:22px}}
.prof .ind{font-size:16px;font-weight:600;color:var(--mut);margin-top:-4px}

/* ===== V13: khoảng cách đều 20px giữa mọi vùng ===== */
@media (min-width:900px){
 .hero{margin-top:20px}
 .hero .duo{margin-top:20px}
 .wrap.wide{padding-top:0;padding-bottom:40px}
}
.wrap.wide .card-box{margin:20px 0 0}
.wrap.wide .bxh2 .card-box{margin:0}
.wrap.wide .bxh2{margin-top:20px;gap:20px}
.wrap.wide .hint#ios{margin:20px 0 0}
@media (max-width:899px){.hero{margin-top:14px}.hero .duo{margin-top:14px}.wrap.wide .card-box,.wrap.wide .bxh2{margin-top:14px}}

/* V14: ngày tham gia là nút trên menu; ô ngày ẩn, chỉ dùng để mở lịch */
.bar .mdrop{position:relative}
#jd{position:absolute;left:0;bottom:0;width:1px;height:1px;box-sizing:border-box;opacity:0;pointer-events:none;border:0}

/* V15: 3 cột danh sách đều có tiêu đề STT, Giờ, Trạng thái, Họ và tên */
@media (min-width:900px){.rhs .rh:nth-child(n+2){display:grid}}

/* V16: bo margin-top 6px thua cua .mdrop (rule dropdown cu) lam menu lech xuong */
.bar .mdrop{margin:0}

/* ===== V14: dung chung thanh .bar cua /app cho Dang nhap va Quan tri ===== */
.bar .bt{flex:1;font-size:18px;font-weight:700;color:var(--ink)}
.hero.narrow{max-width:588px;padding:0 16px;margin-top:20px}
.hero.narrow .bar{justify-content:flex-start}
@media (min-width:900px){body:not(.show-body){padding-left:0}}

/* V17: ảnh cách đều trên/trái/dưới; chiều cao khối tên+năm tham gia quyết định cỡ ảnh (ảnh vuông, cao bằng khối chữ) */
.hero .prof{padding:28px;min-height:0;align-items:stretch}
.hero .prof .mphoto{width:auto;height:auto;align-self:stretch;aspect-ratio:1}
.hero .prof .who{justify-content:space-between}
@media (max-width:899px){.hero .prof{padding:18px}}

/* V18: ô nhập Người mời có danh sách gợi ý */
.sg{position:relative}
.sgl{position:absolute;left:0;right:0;top:100%;z-index:20;margin:4px 0 0;padding:6px;list-style:none;background:#fff;border-radius:16px;box-shadow:0 10px 30px rgba(16,18,28,.16),0 0 0 1px var(--line) inset;max-height:260px;overflow:auto}
.sgl li{padding:10px 12px;border-radius:10px;cursor:pointer;color:var(--ink)}
.sgl li:hover{background:#F1F1F3}
.sgl li.no{color:var(--mut);cursor:default}

/* Thẻ giới thiệu mẫu mới (02/11/2026) */
.s .kband{left:24px;top:136px;width:1872px;height:180px;background:#4F46E5;border:0;padding:16px 24px;display:flex;gap:24px;align-items:stretch;color:#fff}
.s .target-label{flex:0 0 260px;border-right:2px solid rgba(255,255,255,.4);display:flex;flex-direction:column;justify-content:center;font-size:30px;font-weight:700;line-height:1.4}
.s .target-grid{flex:1;min-width:0;display:grid;grid-auto-flow:column;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(var(--target-rows,3),minmax(0,1fr));gap:8px 16px}
.s .target-cell{min-width:0;min-height:0;display:flex;align-items:center;gap:12px;margin:0;padding:3px 12px;border:1px solid rgba(255,255,255,.35);border-radius:8px;background:rgba(255,255,255,.08);color:#fff;font:inherit;text-align:left;box-shadow:none}
.s button.target-cell{cursor:pointer}.s button.target-cell:focus-visible{outline:3px solid #F6D58E;outline-offset:2px}
.s .target-number{flex:none;width:24px;font-size:var(--target-font,28px);font-weight:700;line-height:1}
.s .target-text{flex:1;min-width:0;white-space:pre-line;overflow-wrap:anywhere;font-size:var(--target-font,28px);font-weight:700;line-height:1.15}
.s .target-grid[data-target-overflow] .target-cell{overflow:auto;align-items:flex-start}
.s .target-empty{color:#F6D58E;border-style:dashed}
/* Không để focus vào nút trong slide đã thu nhỏ tự cuộn lệch khung. */
.edit-wrap{overflow:clip}
.s .r{display:flex;gap:14px;align-items:flex-start;margin-top:16px}
.s .r .l{flex:none;width:100px;font-size:17px;font-weight:700;letter-spacing:.1em;color:#111113;padding-top:6px}
.s .r .v{font-size:26px;font-weight:600;line-height:1.3;word-break:break-word}
.s .sptext{white-space:pre-line;font-size:27px;line-height:1.3;font-weight:600;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.s .spgallery .ph img{object-fit:contain!important}
.s .card{border-color:#D5D9E0;box-shadow:0 5px 14px rgba(24,35,52,.12),0 1px 3px rgba(24,35,52,.08)}
.s .spgallery{overflow:hidden}
.s .spgallery-edit{display:grid;grid-template-rows:minmax(0,1fr)}
.s .product-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px;width:100%;height:100%}
.s .product-track{display:flex;width:max-content;height:300px;animation:product-scroll var(--product-duration,36s) linear infinite}
.s .product-track.product-static{animation:none}
.s .product-group{display:flex;gap:12px;padding-right:12px;flex:none}
.s .product-frame{flex:none;display:flex;width:max-content;height:300px;border:1px solid #D5D9E0;border-radius:24px;background:#E7E7EA;overflow:hidden}
.s .product-frame img{display:block;flex:none;width:auto;max-width:none;height:100%;border-radius:inherit}
@keyframes product-scroll{to{transform:translateX(-50%)}}
.s .companycard{display:flex;flex-direction:column;gap:16px}
.s .companyhead{flex:none;height:110px;min-width:0}
.s .companyhead>div:last-child{min-width:0}
.s .companyhead h2{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.s .member-title,.s .companyhead h2,.s .section-title{font-size:26px;font-weight:800;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;color:#111113}
.s .companyinfo,.s .sptext{color:#111113}
.s .member-name{white-space:nowrap;overflow:hidden}
.s .companyinfo{flex:none;min-width:0}
.s .companyinfo .r{margin-top:10px}
.s .companyinfo .r:first-child{margin-top:0}
.s .companyinfo .r .v{flex:1;min-width:0;font-size:22px;line-height:1.3;overflow-wrap:anywhere}
.s .companyphotos{position:absolute;inset:0;overflow:hidden}
.s .company-track{display:flex;width:max-content;height:100%;padding-left:28px;animation:product-scroll var(--product-duration,18s) linear infinite}
.s .company-track.product-static{animation:none}
.s .company-track .product-frame{height:100%}
.s .companyphotos-edit{inset:20px;overflow:hidden}
.s .company-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%;height:100%}
.s .company-photo-grid .ph img{width:100%;height:auto;max-height:none;flex:none;object-fit:contain!important;object-position:center}
.s .partner-logo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px;padding:0 20px;width:100%;height:100%;box-sizing:border-box}
.s .member-title{width:292px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s .member-title .empty{font-size:18px;letter-spacing:0}
.s .company-fade{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:inherit;opacity:0;animation-timing-function:linear;animation-iteration-count:infinite}
.s .company-fade-1{opacity:1;animation:none}
.s .company-fade-2{animation-name:company-fade-two;animation-duration:6s}
.s .company-fade-3{animation-name:company-fade-three;animation-duration:9s}
@keyframes company-fade-two{0%{opacity:0}10%,50%{opacity:1}60%,100%{opacity:0}}
@keyframes company-fade-three{0%{opacity:0}6.6667%,33.3333%{opacity:1}40%,100%{opacity:0}}
.s .mq{display:flex;gap:28px;width:max-content;animation:mq 18s linear infinite}.s .mq.mq-static{animation:none;width:auto;padding:0 28px}
.s .lgc{flex:none;width:200px;height:110px;border:1px solid #E7E7EA;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center}
.s .lgc{padding:14px 20px;box-sizing:border-box}
.s .lgc img{max-width:100%;max-height:100%;object-fit:contain}
@keyframes mq{to{transform:translateX(-50%)}}

#trial{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:12px;border:0;border-radius:0;background:#17171A;color:#fff;box-sizing:border-box}
#trial[open]{display:flex;flex-direction:column;gap:12px}
#trial .trialbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;flex:none}
#trial .trialbar span{flex:1;font-size:13px;min-width:160px}
#trial .trialbar button{flex:none;width:auto}
#trialstage{position:relative;flex:1;min-height:0;overflow:hidden}
#trialstage .s{position:absolute;transform-origin:0 0}

/* Trinh chieu: font luu noi bo, du dau tieng Viet, hai do dam. */
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/BeVietnamPro-Regular.ttf') format('truetype')}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/BeVietnamPro-Bold.ttf') format('truetype')}
.s{font-family:'Be Vietnam Pro',sans-serif;letter-spacing:0;font-synthesis:none}
.s .slide-heading{font-size:34px;font-weight:700;line-height:1.25;letter-spacing:0}
.s .member-title,.s .companyhead h2,.s .section-title{font-size:26px;font-weight:700;line-height:1.25;letter-spacing:.01em}
/* Chua du dau tieng Viet trong khung cat tran cua chuc danh va ten cong ty. */
.s .member-title,.s .companyhead h2{line-height:1.5;padding-block:4px}
.s .member-name{font-weight:700;line-height:1.6;padding-block:4px;letter-spacing:0}
.s .member-title,.s .member-name{width:292px;text-align:center}
.s .companyinfo .r{gap:14px;margin-top:12px;align-items:baseline}
.s .companyinfo .r:first-child{margin-top:0}
.s .companyinfo .r .l{width:110px;padding-top:0;font-size:22px;font-weight:700;line-height:1.4;letter-spacing:0}
.s .companyinfo .r .v{font-size:22px;font-weight:400;line-height:1.4;letter-spacing:0}
.s .sptext{font-size:22px;font-weight:400;line-height:1.4;letter-spacing:0}

/* Check-in label, clock and feedback stay inside one action. */
.member-page .hero .duo #ck .btn.big{flex-direction:column;gap:6px;padding:18px 20px;white-space:normal;text-align:center}
.member-page #ck .btn.big:not(:disabled)::before{content:"👆";font-size:36px;line-height:1}
.member-page #ck .ck-time{font-size:.8em;font-weight:600;font-variant-numeric:tabular-nums}
.member-page #ck .ck-detail{font-size:14px;font-weight:500;line-height:1.45;white-space:normal;overflow-wrap:anywhere;max-width:100%}
.member-page #ck #cklabel{white-space:normal;max-width:100%}
.member-page #ck .ck-detail:empty{display:none}
.member-page .hero .duo #ck .btn.big.ck-done{background:var(--ok);color:#fff;opacity:1}
.member-page .hero .duo #ck .btn.big.ck-error{background:#fff1f2;color:#a20f20;box-shadow:inset 0 0 0 2px #4F46E5}

/* Mobile attendance: fixed action dock and ten rows per expansion. */
.attendance-more{display:block;margin:14px auto 0}
.attendance-more[hidden]{display:none}
@media (max-width:899px){
 body.member-page{padding-bottom:calc(var(--checkin-dock-height,100px) + 16px);scroll-padding-bottom:calc(var(--checkin-dock-height,100px) + 16px)}
 .member-page .hero .duo #ck{position:fixed;left:0;right:0;bottom:0;z-index:1000;box-sizing:border-box;gap:8px;padding:12px max(14px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));background:#fff;border-radius:20px 20px 0 0;box-shadow:0 -6px 24px rgba(16,18,28,.12)}
 .member-page .hero .duo #ck .btn.big{flex:none;width:100%;min-height:56px;padding:12px 8px;font-size:clamp(13px,3.7vw,18px);line-height:1.4;white-space:nowrap;border-radius:18px;box-sizing:border-box}
 .member-page #ck .btn.big{position:relative}
 .member-page #ck .btn.big:not(:disabled)::before{content:"👆";position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:22px;line-height:1}
 .member-page .hero .duo #ck .msg{order:-1;margin:0;max-height:25dvh;overflow:auto;overflow-wrap:anywhere;font-size:14px;line-height:1.4}
 body.member-page .help-fab{bottom:calc(var(--checkin-dock-height,100px) + 12px)}
 .member-page .attendance-more{max-width:100%;white-space:normal}
}

/* Mobile member header: compact navigation and naturally sized profile. */
@media (max-width:899px){
 .member-page .bar{flex-wrap:nowrap;gap:12px}
 .member-page .bar .mn{position:relative;flex:none}
 .member-page .bar .mbtn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px}
 .member-page .bar .mdrop{display:none;position:absolute;right:0;top:calc(100% + 8px);z-index:50;box-sizing:border-box;flex-direction:column;align-items:stretch;gap:4px;width:min(268px,calc(100vw - 60px));max-height:calc(100dvh - var(--checkin-dock-height,100px) - 110px);overflow-y:auto;padding:8px;margin:0;background:#fff;border-radius:18px;box-shadow:0 0 0 1px var(--line) inset,0 12px 32px rgba(16,18,28,.18)}
 .member-page .bar .mn.open .mdrop{display:flex}
 .member-page .bar .mdrop a,.member-page .bar .mdrop button.lnk{justify-content:flex-start;flex-shrink:0;height:auto;min-height:44px;line-height:1.4;padding:10px 12px;border-radius:10px;text-align:left;white-space:normal}
 .member-page .bar .mdrop [hidden]{display:none}
 .member-page .hero .prof{display:flex;align-items:flex-start;gap:14px;padding:18px;min-height:0;height:auto}
 .member-page .hero .prof .mphoto{width:64px;height:64px;aspect-ratio:1;align-self:flex-start;flex:0 0 64px}
 .member-page .hero .prof .who{flex:1;min-width:0;justify-content:flex-start;gap:8px;overflow-wrap:anywhere}
 .member-page .hero .prof .who b{font-size:20px;line-height:1.3}
 .member-page .prof .ind{margin:0;font-size:14px;line-height:1.45}
 .member-page .prof .yrs{box-sizing:border-box;max-width:100%;padding:6px 10px;font-size:13px;line-height:1.4;border-radius:12px;white-space:normal}
 .member-page .bar :is(a,button):focus-visible{outline:3px solid var(--red,#4F46E5);outline-offset:3px}
}
/* Keep all three photo slots and their controls within the member card. */
.member-page .photos{grid-template-columns:repeat(3,minmax(0,1fr))}
.member-page .photos .ph1{min-width:0}
.member-page .photos .pact{display:flex;flex-wrap:wrap;gap:8px}
.member-page .photos .pact .btn{flex:1;min-width:0;min-height:44px;white-space:normal;padding:10px 12px}
@media(max-width:599px){
 .member-page .photos{grid-template-columns:minmax(0,1fr);gap:24px}
 .member-page .photos .ph1{width:100%;max-width:320px;margin-inline:auto}
 .member-page .photos .sq{width:100%;box-sizing:border-box}
}
.member-page .header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.member-page .header-install{flex:none;min-height:44px;padding:10px 16px;white-space:nowrap;font-size:14px}
.member-page .header-install[hidden]{display:none}
@media(max-width:599px){
 .member-page .bar{padding:12px;gap:8px}
 .member-page .header-actions{gap:6px}
 .member-page .header-install{padding:10px;font-size:13px}
 .member-page .bar .mbtn{padding:10px 12px;font-size:14px}
}
.member-page #cal .rowh{align-items:center;margin-bottom:16px}
.member-page #cal .rowh h2{margin:0;line-height:1.3;min-width:0}
.member-page #dl{flex:none;min-height:40px;white-space:nowrap;margin:0}
.member-page #dl[hidden]{display:none}
.member-page .header-install{border-radius:99px}
@media(max-width:599px){.member-page #dl{font-size:13px;padding:8px 10px}}
/* One shared pill radius for every action, on mobile and desktop. */
button,.btn,input[type="button"],input[type="submit"],input[type="reset"]{border-radius:999px!important}
.bar .mdrop a{border-radius:999px}
#pendnote:empty{display:none}
.s .partner-mode{position:absolute;left:32px;top:10px;border:0;margin:0;padding:0;display:flex;align-items:center;gap:28px;min-width:0;height:36px}
.s .partner-mode label{display:inline-flex;align-items:center;gap:10px;margin:0;cursor:pointer;font-size:23px;line-height:32px;font-weight:700;color:#111113}
.s .partner-mode input{width:22px;height:22px;margin:0;accent-color:#4F46E5}
.s .review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 20px;height:128px}
.s .review-card{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0;height:128px;padding:8px 12px;border:1px solid #E7E7EA;border-radius:10px!important;background:#fff;color:#111113;text-align:left;font-family:inherit;font-weight:400;overflow:hidden;box-sizing:border-box}
.s button.review-card{cursor:pointer}
.s .review-quote{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:22px;line-height:1.4;font-style:italic;font-synthesis:style;white-space:pre-line}
.s .review-author{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:16px;line-height:18px;font-weight:700;color:#4F46E5}
.s .review-empty{border-style:dashed;color:#6B6B73}
.s .review-card:focus-visible{outline:3px solid #4F46E5;outline-offset:-3px}
.s .review-reel{height:130px;padding:0 20px;overflow:hidden}
.s .review-track .review-card{height:130px;width:100%;padding:8px 16px}
.s .review-track .review-quote{font-size:22px;line-height:1.4;-webkit-line-clamp:3}
.s .review-track .review-author{font-size:20px;line-height:24px;-webkit-line-clamp:1}
.s .review-count-2{animation:review-rise-2 6s linear infinite}
.s .review-count-3{animation:review-rise-3 9s linear infinite}
@keyframes review-rise-2{0%,43.333333%{transform:translateY(0)}50%,93.333333%{transform:translateY(-130px)}100%{transform:translateY(-260px)}}
@keyframes review-rise-3{0%,28.888889%{transform:translateY(0)}33.333333%,62.222222%{transform:translateY(-130px)}66.666667%,95.555556%{transform:translateY(-260px)}100%{transform:translateY(-390px)}}
@media(prefers-reduced-motion:reduce){.s .review-count-2,.s .review-count-3{animation-timing-function:steps(1,end)}}
#review-dialog{width:min(540px,calc(100vw - 32px));box-sizing:border-box}
#review-dialog label{display:block;margin:14px 0 6px}
#review-dialog input,#review-dialog textarea{width:100%;box-sizing:border-box}
/* Reserve a separate medal column so badges never cover the early-arrival text. */
.member-page .early{align-items:flex-start;text-align:left;padding:16px 72px 16px 16px;min-height:96px}
.member-page .early :is(b,small,em){max-width:100%;overflow-wrap:anywhere}
.member-page .early-title{margin:0 0 6px;font-size:14px;line-height:1.4;color:var(--red);overflow-wrap:anywhere}
.member-page .early .medal{top:12px;right:12px;width:44px;height:48px;font-size:36px;line-height:1.2;animation:none;filter:none;display:grid;place-items:center}
.member-page .early .medal::before,.member-page .early .medal::after{display:none}
/* On mobile the next ranking card peeks in to invite a horizontal swipe. */
@media(max-width:899px){
 .member-page .wrap.wide .bxh2{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;min-width:0;padding:0 0 8px;scrollbar-width:thin}
 .member-page .wrap.wide .bxh2>.card-box{flex:0 0 calc(100% - 36px);min-width:0;margin:0;scroll-snap-align:start;scroll-snap-stop:always}
 .member-page .bxh2 h2,.member-page .bxh2 .hint{overflow-wrap:anywhere}
 .member-page .bxh2:focus-visible{outline:2px solid var(--red);outline-offset:3px;border-radius:24px}
}@media(max-width:899px){
 .member-page .bxh2 .bx{grid-template-columns:34px minmax(0,1fr);gap:4px 10px}
 .member-page .bxh2 .bx b{min-width:0;overflow-wrap:anywhere}
 .member-page .bxh2 .bx span:nth-child(n+3){grid-column:2;font-size:12px}
}
@media(max-width:899px){
 .member-page .early{padding-top:88px;padding-right:16px;min-height:220px}
 .member-page .early-heading{container-type:inline-size;position:absolute;top:16px;left:16px;right:16px;text-align:left}
 .member-page .early-title{position:static;margin:0;white-space:nowrap;font-size:clamp(12px,7cqi,20px)}
 .member-page .early .av{margin-bottom:8px}
 .member-page .early small{font-size:14px;font-weight:600;line-height:1.45}
 .member-page .early .medal{z-index:2;width:96px;height:105px;font-size:84px;top:56px;right:14px;animation:glint 2s ease-in-out infinite;filter:drop-shadow(0 0 8px rgba(255,200,40,.9))}
 .member-page .early .medal::before,.member-page .early .medal::after{display:block;width:21px;height:21px}
}
@media(min-width:900px){
 .member-page .early{container-type:inline-size;align-items:center;align-self:stretch;text-align:center;padding:100px 18px 24px;justify-content:flex-start;gap:10px}
 .member-page .early-heading{position:absolute;top:24px;left:20px;right:20px;text-align:left}
 .member-page .early-title{position:static;margin:0;font-size:clamp(12px,5cqi,20px);line-height:1.4;white-space:nowrap;overflow-wrap:normal}
 .member-page .early .av{width:144px;height:144px;border-radius:24px;flex:none}
 .member-page .early b{font-size:22px;line-height:1.35}
 .member-page .early small{font-size:16px;font-weight:600;line-height:1.45}
 .member-page .early em{font-size:24px;line-height:1.3}
 .member-page .early .medal{position:absolute;top:100px;right:14px;width:110px;height:121px;font-size:110px;line-height:1.1;animation:glint 2s ease-in-out infinite;filter:drop-shadow(0 0 8px rgba(255,200,40,.9))}
 .member-page .early .medal::before,.member-page .early .medal::after{display:block}
}
@media(prefers-reduced-motion:reduce){
 .member-page .early .medal,.member-page .early .medal::before,.member-page .early .medal::after{animation:none}
}
.member-page .early-heading{container-type:inline-size}
.member-page .early .early-title.yrs{display:flex;align-items:center;justify-content:center;gap:.4em;max-width:100%;margin:0;padding:7px 10px;border-radius:99px;background:var(--grad);color:#fff;box-shadow:0 6px 14px rgba(232,52,78,.28);font-size:clamp(10px,4.5cqi,16px);font-weight:800;line-height:1.4;white-space:nowrap;overflow-wrap:normal}
.member-page .early .early-time{flex:none;font:inherit;color:inherit;white-space:nowrap}
.member-page .early .early-title.early-secondary{background:#fff;color:var(--ink);box-shadow:0 0 0 1px var(--line) inset;font-weight:600}
.member-page .early .av{display:grid;place-items:center;flex:none}
.member-page .early .early-avatar-icon{width:75%;height:75%;color:#b9aaa3}
.member-page .early :is(b,small){display:block;width:100%;min-height:1.4em;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:899px){
 .member-page .early{padding-top:55px}
 .member-page .early .av{width:105px;height:105px}
 .member-page .early .medal{top:55px}
}
@media(min-width:641px) and (max-width:899px){
 .member-page .early{--early-photo-size:min(105px,calc((100vw - 180px)/6));padding-left:8px;padding-right:8px;justify-content:flex-start}
 .member-page .early .av{width:var(--early-photo-size);height:var(--early-photo-size);margin-bottom:calc(113px - var(--early-photo-size))}
 .member-page .early .medal{right:8px;width:var(--early-photo-size);height:var(--early-photo-size);font-size:min(84px,calc((100vw - 180px)/7.5))}
}
/* Early-arrival metrics share one full-width row below the member name. */
.bxmetrics{display:contents}
@media(max-width:899px){
 .member-page #bxhl .bx{gap:6px 10px;padding:12px 10px}
 .member-page #bxhl .bxmetrics{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0}
 .member-page #bxhl .bxmetrics>span{font-size:clamp(10px,2.8vw,12px);white-space:nowrap}
}
/* Member tenure fills a separate row below the avatar on mobile. */
@media(max-width:899px){
 .member-page .hero .prof{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px 14px;align-items:start}
 .member-page .hero .prof .mphoto{grid-column:1;grid-row:1 / 3}
 .member-page .hero .prof .who{display:contents}
 .member-page .hero .prof .who b{grid-column:2;grid-row:1}
 .member-page .hero .prof .ind{grid-column:2;grid-row:2}
 .member-page .hero .prof .yrs{grid-column:1 / -1;grid-row:3;width:100%;text-align:center;margin-top:6px;border-radius:99px}
}

/* Admin member controls keep consistent dimensions in every row. */
.member-table-scroll{overflow-x:auto}
.member-table{min-width:860px;table-layout:fixed}
.member-table th:nth-child(1){width:22%}
.member-table th:nth-child(2){width:19%}
.member-table th:nth-child(3){width:16%}
.member-table th:nth-child(4){width:19%}
.member-table th:nth-child(5){width:16%}
.member-table th:nth-child(6){width:8%}
.member-table td{vertical-align:middle;overflow-wrap:anywhere;padding:12px 10px}
.member-table select,.member-table input{min-width:0;width:100%;box-sizing:border-box;height:44px;margin:0;padding:8px 10px}
.member-table .member-edit{height:44px;white-space:nowrap;padding:8px 16px}
.member-switch{display:inline-flex;align-items:center;gap:8px;background:transparent;border:0;padding:4px 0;min-height:44px;font:inherit;font-size:14px;color:var(--ink,#171922);white-space:nowrap;cursor:pointer}
.member-switch-track{display:block;position:relative;flex:none;width:38px;height:22px;border-radius:999px;background:#c4c7cc;transition:background .15s}
.member-switch-track::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .15s}
.member-switch[aria-checked="true"] .member-switch-track{background:#21864b}
.member-switch[aria-checked="true"] .member-switch-track::after{transform:translateX(16px)}
.member-switch:focus-visible{outline:2px solid #4F46E5;outline-offset:4px;border-radius:6px}
.member-switch:disabled{opacity:.6;cursor:wait}
#identity-dialog{max-height:calc(100dvh - 32px);overflow-y:auto;box-sizing:border-box}
#identity-dialog label{display:block;margin:12px 0 6px}
#identity-dialog input{width:100%;box-sizing:border-box}
@media(prefers-reduced-motion:reduce){.member-switch-track,.member-switch-track::after{transition:none}}
:root .search-choice{position:relative;min-width:0;flex:1}
:root .search-choice input{width:100%;box-sizing:border-box;min-height:46px;margin:0;font-size:16px;background:#fff}
.search-choice-list{position:fixed;z-index:10000;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #d6dce5;border-radius:12px;box-shadow:0 12px 28px #11182726;padding:5px;box-sizing:border-box}
.search-choice-list[hidden]{display:none}
.search-choice-list button{display:block;width:100%;min-height:44px;padding:11px 12px;text-align:left;border:0;border-radius:8px;background:#fff;color:#172033;font:inherit;white-space:normal;cursor:pointer}
.search-choice-list button:hover,.search-choice-list button[aria-selected="true"]{background:#eef2f6}
.search-choice-empty{padding:12px;color:#64748b}
select[data-search-ready][hidden]{display:none!important}

/* ===== 05/11/2026: giao diện di động mới (chỉ số 3x3, dòng ngày, thẻ kéo ngang, Sự kiện, nút nổi) ===== */
.dateline,.fab-bar{display:none}
.cal-swipe{display:contents}
.listcard{grid-column:1/-1}
.member-page .stats{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
.member-page .stats>div:first-child{background:#fff;color:inherit;box-shadow:0 0 0 1px var(--line) inset}.member-page .stats>div:first-child small{color:var(--mut)}
.ev-swipe{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding:0 0 8px;scrollbar-width:thin}
.evc{flex:0 0 170px;aspect-ratio:9/16;scroll-snap-align:start;box-sizing:border-box;border-radius:20px;padding:14px 12px;background:#fff;box-shadow:0 0 0 1px var(--line) inset;display:flex;flex-direction:column;gap:6px;overflow:hidden;min-width:0}
.evc.bd .evp{flex:none}
.evc.bd{background:var(--grad);color:#fff;box-shadow:none;align-items:center;text-align:center}
.evc .evd{align-self:flex-start;font-size:12px;font-weight:700;color:var(--red)}.evc.bd .evd{align-self:center;color:#fff}
.evc b{font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.evc small{color:var(--mut)}.evc p{margin:0;font-size:13px;line-height:1.4;overflow:hidden;overflow-wrap:anywhere}
.evp{width:72px;height:72px;border-radius:50%;overflow:hidden;background:rgba(255,255,255,.25);display:grid;place-items:center;font-size:36px}.evp img{width:100%;height:100%;object-fit:cover}
.evrow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
@media (max-width:899px){
 .member-page .stats{grid-template-columns:repeat(3,minmax(0,1fr))}
 .member-page .stats>div,.member-page .stats>div:nth-child(-n+2){grid-column:auto!important;padding:10px 8px}
 .member-page .stats b{font-size:20px}.member-page .stats small{font-size:11px}
 .dateline{display:flex;align-items:center;gap:8px;margin:0 0 12px}
 .dateline button{border:0;background:#fff;box-shadow:0 0 0 1px var(--line) inset;border-radius:99px;height:44px;font:inherit;font-weight:600;cursor:pointer}
 .dateline #dprev,.dateline #dnext{flex:0 0 44px;font-size:22px}.dateline #dpick{flex:1}
 .member-page .calbox{display:none;margin-bottom:12px}
 .member-page #cal.cal-open .calbox{display:flex}
 .member-page .cal3{display:block}
 .cal-swipe{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding:0 0 8px;scrollbar-width:thin}
 .cal-swipe>*{flex:0 0 calc(100% - 36px);min-width:0;scroll-snap-align:start;scroll-snap-stop:always;box-sizing:border-box}
 .cal-swipe:focus-visible,.ev-swipe:focus-visible{outline:2px solid var(--red);outline-offset:3px;border-radius:24px}
 .listcard{background:#fff;border-radius:24px;padding:14px;box-shadow:0 0 0 1px var(--line) inset}.listcard .rost{margin-top:0}
 .evc{flex-basis:calc((100% - 48px)/2.5)}
 .fab-bar{display:flex;gap:16px;position:fixed;left:16px;right:84px;bottom:calc(var(--checkin-dock-height,100px) + 12px);height:52px;z-index:9998}
 .fab-b{flex:1 1 0;min-width:0;height:52px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border:0;border-radius:99px;font-family:inherit;font-weight:600;font-size:14px;line-height:1.1;gap:6px;white-space:nowrap;text-decoration:none;cursor:pointer;color:#fff;background:var(--grad);box-shadow:0 4px 14px rgba(0,0,0,.3)}
 .fab-b:last-child{background:var(--ink)}
}
.edit-page{padding-bottom:90px}
body.edit-page .help-fab{bottom:16px}
.edit-page #jd{position:static;width:100%;height:46px;opacity:1;pointer-events:auto}
#pf h3{margin:18px 0 0}

/* ===== 05/11/2026 (đợt 2): chỉ số căn giữa, thẻ sự kiện ảnh, avatar nhỏ + viền, nút nổi, tách ô tài khoản ===== */
.member-page .stats>div{align-items:center;justify-content:center;text-align:center}
.member-page .stats>div.hl,.member-page .stats>div:first-child.hl{background:var(--grad);color:#fff;box-shadow:none}
.member-page .stats>div.hl small{color:rgba(255,255,255,.9)}
.member-page .stats>div.hl2{background:#FDECEF;box-shadow:0 0 0 1.5px #D12A44 inset}
.member-page .stats>div.hl2 b{color:#4F46E5;font-size:24px}
.evc.evimg{padding:0;gap:0;aspect-ratio:540/1170;flex-basis:150px;background:none;box-shadow:none}
.evc.evimg img{width:100%;height:100%;object-fit:cover;display:block;border-radius:20px;box-shadow:0 0 0 1px var(--line)}
.member-page .early .av,.member-page .mphoto,.evp{box-shadow:0 0 0 2px #D9D3CF,0 3px 10px rgba(16,18,28,.14)}
.member-page .early .av{width:115px;height:115px}
.acc-grid{display:grid;grid-template-columns:1fr;gap:20px}
.acc-grid>.card-box{margin:0}
@media (min-width:900px){
 .acc-grid{grid-template-columns:1fr 1fr;align-items:start}
 .wrap.wide .acc-grid{margin-top:20px}
}
@media (max-width:899px){
 .member-page .stats{grid-template-columns:repeat(6,minmax(0,1fr))}
 .member-page .stats>div{grid-column:span 2!important}
 .member-page .stats>div.hl,.member-page .stats>div.half{grid-column:span 3!important}
 .member-page .stats>div.hl b{font-size:26px}
 .evc.evimg{flex-basis:calc((100% - 72px)/3.5)}
 .member-page .early .av{width:84px;height:84px}
 .member-page .hero .prof .mphoto{width:52px;height:52px;flex:0 0 52px}
 .member-page .hero .prof{grid-template-columns:52px minmax(0,1fr)}
 .member-page .early{padding-top:48px}
 .member-page .early .medal{top:48px}
 .member-page .early .early-title.yrs{font-size:13px}
 .member-page .early b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow-wrap:anywhere;font-size:18px;line-height:1.3;min-height:2.6em}
 .cal-swipe{align-items:flex-start}
 .fab-b:last-child{flex:0 0 auto;padding:0 22px}
 body.member-page{padding-bottom:calc(var(--checkin-dock-height,100px) + 96px)}
}
@media (min-width:641px) and (max-width:899px){
 .member-page .early{--early-photo-size:84px}
}
@media (min-width:900px){
 .member-page .early .av{width:115px;height:115px}
}

/* Khoảng cách chuẩn trên di động = 10px: khung cách mép màn hình (lấy từ khối Lịch điểm danh) và nội dung cách viền khung. */
@media (max-width:899px){
 .member-page{--sp:10px}
 body.member-page .hero{padding-left:var(--sp);padding-right:var(--sp)}
 body.member-page .wrap.wide{padding-left:var(--sp);padding-right:var(--sp)}
 body.member-page .bar{padding:var(--sp)}
 body.member-page .hero .prof{padding:var(--sp)}
 body.member-page .card-box,body.member-page .listcard,body.member-page .calbox{padding:var(--sp)}
 body.member-page .early{padding-left:var(--sp);padding-right:var(--sp)}
 body.member-page .hero .duo #ck{padding-left:max(var(--sp),env(safe-area-inset-left));padding-right:max(var(--sp),env(safe-area-inset-right))}
 .fab-bar{left:var(--sp);gap:var(--sp)}
}


/* ===== 05/11/2026 (đợt 3) ===== */
.bxh2,.cal-swipe,.ev-swipe{scrollbar-width:none}
.bxh2::-webkit-scrollbar,.cal-swipe::-webkit-scrollbar,.ev-swipe::-webkit-scrollbar{display:none}
.evimg img{cursor:zoom-in}
.lbx{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.82);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:16px}
.lbx img{max-width:100%;max-height:80vh;object-fit:contain;border-radius:12px}
.lbx-bar{display:flex;gap:12px}
.lbx-bar a,.lbx-bar button{border:0;border-radius:99px;padding:12px 26px;font:inherit;font-weight:600;background:#fff;color:#111;text-decoration:none;cursor:pointer}
.lbx-bar a{background:var(--grad);color:#fff}
.member-page .stats>div.hl2{background:#fff;box-shadow:0 0 0 1px var(--line) inset}
.member-page .stats>div.hl2 b{color:inherit;font-size:inherit}
/* bảng điểm danh: cột TT/Giờ/Trạng thái gọn, Họ và tên rộng nhất và không xuống dòng */
.rh,.rr{grid-template-columns:22px 40px 72px minmax(0,1fr);gap:4px;padding:8px 6px;font-size:13px}
.rr span:last-child{overflow-wrap:normal;white-space:nowrap}
.rr .st{padding:2px 6px;white-space:nowrap}
@media (max-width:899px){
 .member-page .early-heading{top:16px;left:16px;right:16px}
 .member-page .early{padding-top:60px}
 .member-page .early .medal{top:60px}
}
@media (max-width:899px){
 .member-page .early{gap:6px;padding-bottom:16px}
 .member-page .early .av{margin-bottom:14px}
 .member-page .early .medal{filter:none}
 .member-page .early em{font-size:14px;line-height:1.35;text-align:left;width:100%}
}

/* tiêu đề khung cách mép bo tròn bên trái */
@media (max-width:899px){body.member-page .card-box>h2,body.member-page .card-box>.rowh>h2{padding-left:12px}}

/* thanh logo: bỏ khung nền trắng, chỉ còn logo và nút Menu */
@media (max-width:899px){body.member-page .bar{background:none;box-shadow:none;border-radius:0}}

/* phone: danh sách điểm danh ẩn, bấm nút "Danh sách thành viên" mới hiện */
.listtoggle{display:none}
@media (max-width:899px){
 .listtoggle{display:block;width:100%;margin-top:10px;min-height:44px}
 .member-page .cal3 .listcard{display:none;margin-top:10px}
 .member-page .cal3.list-open .listcard{display:block}
}

/* phone: chỉ thẻ đến sớm nhất, chiếm trọn hàng; PC vẫn đủ nhất và nhì */
@media (max-width:899px){
 #cal2{display:none}
 .member-page .cal-swipe{display:block;overflow:visible}
 .member-page .cal-swipe>#cal1{width:100%}
}
.member-page .listtoggle{background:var(--grad);color:#fff;border:0;font-weight:800;font-size:16px;box-shadow:0 6px 14px rgba(232,52,78,.28)}

/* 05/11/2026 (đợt 5): hiện lại thẻ đến sớm nhì, bảng xếp hạng xếp dọc, nút điểm danh loang màu */
@media (max-width:899px){
 #cal2{display:flex}
 .member-page .cal-swipe{display:flex;overflow-x:auto}
 .member-page .cal-swipe>#cal1{width:auto}
 .member-page .wrap.wide .bxh2{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--sp);overflow:visible;padding:0}
 .member-page .wrap.wide .bxh2>.card-box{flex:none}
}
@keyframes ck-flow{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
.member-page .hero .duo #ck .btn.big:not(:disabled):not(.ck-done):not(.ck-error){background:linear-gradient(120deg,#C9461E,#D12A44,#C22A6B,#7A45D6,#C22A6B,#D12A44,#C9461E) 0 50%/300% 300%;animation:ck-flow 6s ease-in-out infinite;box-shadow:0 8px 22px rgba(232,52,78,.4)}
@media (prefers-reduced-motion:reduce){.member-page .hero .duo #ck .btn.big{animation:none!important}}

/* hướng dẫn cài App trên iPhone */
.ios-card{background:#fff;border-radius:24px;padding:20px;max-width:360px;width:100%;max-height:90vh;overflow:auto;display:flex;flex-direction:column;gap:12px}
.ios-card h3{margin:0;font-size:18px}
.ios-step{display:grid;grid-template-columns:28px 1fr 56px;gap:10px;align-items:center;padding:10px;border-radius:16px;background:var(--panel)}
.ios-step p{margin:0;font-size:14px;line-height:1.45}
.ios-n{width:28px;height:28px;border-radius:50%;background:var(--grad);color:#fff;display:grid;place-items:center;font-weight:800;font-size:14px}

/* 05/11/2026 (đợt 7): dòng bảng xếp hạng = avatar trái (cao hết dòng), tên + chỉ số giữa, huy chương mép phải */
.member-page :is(#bxhl,#bxgl) .bx{grid-template-columns:72px minmax(0,1fr) auto;grid-template-areas:"av name medal" "av info medal";gap:4px 12px;align-items:center;padding:10px;min-height:92px}
.member-page :is(#bxhl,#bxgl) .bav{grid-area:av;width:72px;height:72px;border-radius:16px;overflow:hidden;background:var(--peach);display:grid;place-items:center;box-shadow:0 0 0 2px #D9D3CF,0 3px 10px rgba(16,18,28,.14)}
.member-page :is(#bxhl,#bxgl) .bx:first-child .bav{box-shadow:0 0 0 2px rgba(255,255,255,.9),0 3px 10px rgba(16,18,28,.2)}
.bav img{width:100%;height:100%;object-fit:cover;display:block}
.bav svg{width:70%;height:70%;color:#b9aaa3}
.member-page :is(#bxhl,#bxgl) .bx b{grid-area:name;align-self:end;min-width:0;overflow-wrap:anywhere;line-height:1.3}
.member-page :is(#bxhl,#bxgl) .bk{grid-area:medal;justify-self:end;font-size:30px;line-height:1}
.member-page #bxhl .bxmetrics{grid-area:info;grid-column:auto;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:2px 10px;align-self:start}
.member-page #bxhl .bxmetrics>span{font-size:12px}
.member-page #bxgl .bx>span:last-child{grid-area:info;grid-column:auto;align-self:start;font-size:12px}
@media (min-width:900px){.member-page :is(#bxhl,#bxgl) .bx{grid-template-columns:84px minmax(0,1fr) auto;min-height:104px}.member-page :is(#bxhl,#bxgl) .bav{width:84px;height:84px}}

/* 05/11/2026 (đợt 8): phone, thẻ đến sớm nhì nằm dưới thẻ nhất, bỏ kiểu trượt ngang */
@media (max-width:899px){
 .member-page .cal-swipe{flex-direction:column;overflow:visible;gap:var(--sp);padding:0 0 var(--sp)}
 .member-page .cal-swipe>*,.member-page .cal-swipe>#cal1{flex:none;width:100%}
}

/* 05/11/2026 (đợt 9): hạng 1 không tô nổi, họ tên một dòng */
.member-page :is(#bxhl,#bxgl) .bx:first-child{background:#fff;color:var(--ink)}
.member-page :is(#bxhl,#bxgl) .bx:first-child em{color:var(--red)}
.member-page :is(#bxhl,#bxgl) .bx:first-child .bav{box-shadow:0 0 0 2px #D9D3CF,0 3px 10px rgba(16,18,28,.14)}
.member-page :is(#bxhl,#bxgl) .bx b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;font-size:clamp(13px,3.9vw,15px)}
.member-page :is(#bxhl,#bxgl) .bx{grid-template-areas:"av name medal" "av info medal"}
.member-page :is(#bxhl,#bxgl) .bx b{font-size:clamp(12px,3.6vw,15px)}
.member-page :is(#bxhl,#bxgl) .bk{align-self:center;justify-self:end}
/* đợt 10: avatar bảng xếp hạng nhỏ lại ~15% */
.member-page :is(#bxhl,#bxgl) .bx{grid-template-columns:60px minmax(0,1fr) auto;min-height:80px}
.member-page :is(#bxhl,#bxgl) .bav{width:60px;height:60px;border-radius:14px}
@media (min-width:900px){.member-page :is(#bxhl,#bxgl) .bx{grid-template-columns:68px minmax(0,1fr) auto;min-height:88px}.member-page :is(#bxhl,#bxgl) .bav{width:68px;height:68px}}

/* Chuẩn khoảng cách (05/11/2026): phone: mép màn hình, mép khung đến chữ, giữa các khung, giữa các ô trong khung đều = 10px (--sp).
   PC: giữa các khung = 20px, giữa các ô trong khung = 10px. */
.member-page .bxh,.member-page .stats{gap:10px}
.member-page .ev-swipe{gap:24px}
@media (max-width:899px){
 body.member-page .hero,body.member-page .hero .duo{margin-top:var(--sp)}
 body.member-page .hero .duo{gap:var(--sp)}
 body.member-page .hero #ck{margin:var(--sp) 0 0}
 body.member-page .wrap.wide .card-box,body.member-page .wrap.wide .bxh2{margin-top:var(--sp)}
 body.member-page .wrap.wide .bxh2>.card-box{margin-top:0}
 .dateline{margin-bottom:var(--sp)}
 .member-page .calbox{margin-bottom:var(--sp)}
}
.member-page #ck .ck-time{font-size:max(.8em,11px)}
.member-page .stats>div.hl small{color:#fff}

/* ===== 05/11/2026 (đợt 11): thang khoảng cách 16px trên phone, nút điểm danh nổi không viền trắng ===== */
@media (max-width:899px){
 .member-page{--sp:16px}
 /* tiêu đề khung: cùng khoảng cách tới nội dung ở mọi khung (trước: Lịch 0px, còn lại 16px) */
 .member-page .card-box>h2,.member-page .card-box .rowh{margin-top:0;margin-bottom:var(--sp)}
 .member-page .card-box .rowh h2{margin:0}
 body.member-page .wrap.wide{padding-top:0}
 .member-page .early-heading{top:var(--sp);left:var(--sp);right:var(--sp)}
 .member-page .early{padding-left:var(--sp);padding-right:var(--sp)}
 /* nút điểm danh: bỏ nền trắng và viền bao quanh dock, nút nổi trên nội dung */
 .member-page .hero .duo #ck{background:none;box-shadow:none;border-radius:0;pointer-events:none}
 .member-page .hero .duo #ck>*{pointer-events:auto}
 .member-page .hero .duo #ck .msg:not(:empty){background:#fff;border-radius:14px;padding:8px 12px;box-shadow:0 4px 14px rgba(16,18,28,.14)}
}
.member-page .hero .duo #ck .btn.big{border:0;outline:0}
.member-page .hero .duo #ck .btn.big:not(:disabled):not(.ck-done):not(.ck-error){box-shadow:0 18px 36px -6px rgba(194,42,107,.6),0 6px 12px rgba(16,18,28,.28),0 0 0 0 rgba(209,42,68,.55);animation:ck-flow 6s ease-in-out infinite,ck-pulse 2.4s ease-out infinite}
@keyframes ck-pulse{0%{box-shadow:0 18px 36px -6px rgba(194,42,107,.6),0 6px 12px rgba(16,18,28,.28),0 0 0 0 rgba(209,42,68,.55)}70%,100%{box-shadow:0 18px 36px -6px rgba(194,42,107,.6),0 6px 12px rgba(16,18,28,.28),0 0 0 14px rgba(209,42,68,0)}}
@media (prefers-reduced-motion:reduce){.member-page .hero .duo #ck .btn.big{animation:none!important}}

/* ===== 05/11/2026 (đợt 12) ===== */
/* Nút điểm danh: mọi trạng thái đều nổi và có vòng sáng; màu theo trạng thái */
.member-page .hero .duo #ck .btn.big{--glow:209,42,68;--glow2:194,42,107;animation:ck-pulse 2.4s ease-out infinite;box-shadow:0 18px 36px -6px rgba(var(--glow2),.6),0 6px 12px rgba(16,18,28,.28),0 0 0 0 rgba(var(--glow),.55);opacity:1}
.member-page .hero .duo #ck .btn.big:not(:disabled):not(.ck-done):not(.ck-error){animation:ck-flow 6s ease-in-out infinite,ck-pulse 2.4s ease-out infinite}
.member-page .hero .duo #ck .btn.big.ck-done{--glow:23,105,47;--glow2:23,105,47;background:linear-gradient(120deg,#17692F,#1F8A43,#17692F) 0 50%/300% 300%;animation:ck-flow 6s ease-in-out infinite,ck-pulse 2.4s ease-out infinite}
.member-page .hero .duo #ck .btn.big.ck-error{--glow:205,20,36;--glow2:205,20,36}
.member-page .hero .duo #ck .btn.big:disabled:not(.ck-done):not(.ck-error){--glow:120,116,110;--glow2:120,116,110}
@keyframes ck-pulse{0%{box-shadow:0 18px 36px -6px rgba(var(--glow2),.6),0 6px 12px rgba(16,18,28,.28),0 0 0 0 rgba(var(--glow),.55)}70%,100%{box-shadow:0 18px 36px -6px rgba(var(--glow2),.6),0 6px 12px rgba(16,18,28,.28),0 0 0 14px rgba(var(--glow),0)}}
@media (prefers-reduced-motion:reduce){.member-page .hero .duo #ck .btn.big{animation:none!important}}

@media (max-width:899px){
 /* Bảng xếp hạng: tên hiện đủ, không cắt "...", được phép đè lên cột huy chương; huy chương căn giữa dòng, nằm sau tên */
 .member-page :is(#bxhl,#bxgl) .bx{grid-template-areas:"av name medal" "av info medal"}
 .member-page :is(#bxhl,#bxgl) .bx b{grid-column:2/4;position:relative;z-index:1;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:15px;line-height:1.3}
 .member-page :is(#bxhl,#bxgl) .bk{position:relative;z-index:0}
}
@media (max-width:640px){
 /* Thẻ đến sớm: ảnh cao bằng huy chương, cách tiêu đề 16px; ngành nghề sát tên */
 .member-page .early{padding-top:calc(var(--sp) + 36px + var(--sp))}
 .member-page .early .av{width:105px;height:105px;margin-bottom:12px}
 .member-page .early .medal{top:calc(var(--sp) + 36px + var(--sp));height:105px;width:96px}
 .member-page .early b{min-height:0;margin:0}
 .member-page .early small{margin:2px 0 0}
}

/* ===== 05/11/2026 (đợt 13) ===== */
/* khung ảnh đại diện mảnh như nút "Tải báo cáo": viền 1px màu --line, không bóng */
.member-page .early .av,.member-page .mphoto,.member-page .evp,.member-page :is(#bxhl,#bxgl) .bav,.member-page :is(#bxhl,#bxgl) .bx:first-child .bav{box-shadow:0 0 0 1px var(--line)}
/* Xem thêm sự kiện */
.evall{align-items:stretch;justify-content:center;padding:16px}
.evall-box{background:#fff;border-radius:24px;padding:16px;max-width:760px;width:100%;margin:auto;max-height:90vh;overflow:auto;box-sizing:border-box}
.evall-box h3{margin:0}
.evall-grid{display:flex;flex-wrap:wrap;gap:16px;margin-top:16px;justify-content:center}
.evall-grid .evc{flex:0 0 150px}
.evall-grid .evc.evimg{flex-basis:150px}

/* ===== 05/11/2026 (đợt 14) ===== */
/* PC: bỏ nút "Danh sách điểm danh" (danh sách đã hiện sẵn) */
@media (min-width:900px){.member-page .listtoggle{display:none}}
/* nút "Về trang chủ" ở trang con cùng cỡ, cùng kiểu với các nút menu trang chủ (42px, chữ 14px đậm, bo tròn) */
.bar .header-actions>a.btn.alt.sm{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:42px;line-height:1;margin:0;padding:0 18px;font-family:inherit;font-size:14px;font-weight:600;border-radius:999px;text-decoration:none}
/* hàng nút trang con: cùng kiểu nút trang chủ; phone chỉ giữ "Về trang chủ" */
.bar .header-actions>.nav-x{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:42px;line-height:1;margin:0;padding:0 18px;font-family:inherit;font-size:14px;font-weight:600;border-radius:999px;text-decoration:none;cursor:pointer;color:var(--ink)}
.bar .header-actions{flex-wrap:wrap;gap:8px}
.bar .mdrop>.nav-x{display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 18px;font-size:14px;font-weight:600;border-radius:999px;text-decoration:none;background:#fff;color:var(--ink);box-shadow:0 0 0 1px var(--line) inset;border:0;cursor:pointer}
@media (max-width:899px){.bar .nav-x:not(.nav-home){display:none!important}}
/* 06/11/2026: giới hạn bản sửa ở tài khoản và màn xem/sửa bài giới thiệu. */
.gender-options{border:0;padding:0;margin:16px 0;display:flex;gap:24px;min-width:0}
.gender-options legend{padding:0;margin-bottom:8px;font-weight:600}
.gender-options label{display:flex;align-items:center;gap:8px;min-height:44px;margin:0;cursor:pointer}
.gender-options input[type=radio]{appearance:auto;width:20px;height:20px;margin:0;accent-color:var(--red)}
@media(min-width:900px){
 .member-page :is(.calbox,.early,.ls-calbox){border:1px solid var(--line);box-shadow:none}
 .member-page .ls-d.ev::before{border:1px solid var(--line)}
}
@media(max-width:899px){
 .edit-page .acc-grid>*{min-width:0}
 .edit-page #trial .trialbar{gap:8px}
 .edit-page #trial .trialbar span{flex-basis:100%;min-width:0}
 .edit-page #trial .trialbar button{min-height:44px}
 .edit-page #trialfull{flex:1;white-space:nowrap}
}
/* 06/11/2026 (làm rõ của Sếp): thẻ sự kiện sinh nhật trên trang chủ bỏ khung gradient đỏ; thiệp hiện to, kín bề ngang thẻ, không viền nổi bật. */
.evc.bd{background:none;color:var(--ink);box-shadow:none;padding:0;gap:6px;aspect-ratio:auto;flex:0 0 150px;overflow:visible}
.evc.bd .evd{color:var(--ink);align-self:center}
.evc.bd .evp{width:150px;border-radius:12px;box-shadow:none;background:none}
/* 06/11/2026: sự kiện điện thoại cùng khổ thiệp, thu nhỏ 20%, ngày nằm ngoài. */
.ev-content{display:contents}
.ev-text{cursor:pointer}
#evlist{--poster-width:150px;padding-left:max(0px,calc(50% - var(--poster-width)/2));scroll-snap-type:none}
#evlist .evc{flex:0 0 var(--poster-width);aspect-ratio:auto;padding:0;gap:6px;background:none;box-shadow:none;border-radius:0;overflow:visible}
#evlist .evc .evd{align-self:center;color:var(--ink);font-size:12px;line-height:18px;flex:none}
#evlist .ev-name{display:none}
#evlist .ev-content{display:flex;flex-direction:column;flex:none;gap:6px;height:325px;box-sizing:border-box;padding:14px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
#evlist .ev-content b,#evlist .ev-content small,#evlist .ev-content p{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
#evlist .ev-content b{-webkit-line-clamp:2;flex:none;font-size:16px;line-height:1.3}
#evlist .ev-content small{-webkit-line-clamp:2;flex:none;font-size:13px;line-height:1.4}
#evlist .ev-content p{-webkit-line-clamp:8;font-size:13px;line-height:1.4}
.event-today{display:flex;align-items:baseline;gap:7px;margin:0 0 4px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.event-next{margin-bottom:14px}
.event-today-dot{display:inline-block;flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:var(--red);align-self:flex-start;margin-top:7px;animation:event-today-blink 1.4s ease-in-out infinite}
.event-next-dot{background:#16803c}
@keyframes event-today-blink{0%,100%{opacity:1}50%{opacity:.25}}
@media(prefers-reduced-motion:reduce){.event-today-dot{animation:none}}
#evlist .evc:focus-visible{outline:2px solid var(--red);outline-offset:3px}
@media(max-width:899px){
 #evlist{--poster-width:120px}
 #evlist .evc{flex:0 0 var(--poster-width)}
 #evlist .evc .evd{align-self:center;color:var(--ink);font-size:12px;line-height:18px;flex:none}
 #evlist .ev-name{display:none}
 #evlist .ev-content{gap:5px;height:260px;padding:12px 10px}
 #evlist .ev-content b,#evlist .ev-content small,#evlist .ev-content p{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
 #evlist .ev-content b{-webkit-line-clamp:2;flex:none;font-size:14px;line-height:1.3}
 #evlist .ev-content small{-webkit-line-clamp:2;flex:none;font-size:11px;line-height:1.4}
 #evlist .ev-content p{-webkit-line-clamp:8;font-size:12px;line-height:1.4}
}
.member-context{display:flex;align-items:center;gap:16px}.member-context h2{margin:0}.member-context .hint{margin:6px 0 0}.editing-photo{width:56px;height:56px;flex:0 0 56px;border-radius:50%;overflow:hidden;background:var(--peach);display:grid;place-items:center;font-size:24px}.editing-photo img{width:100%;height:100%;object-fit:cover}.edit-page #account-title{margin-top:0}.edit-page #account-details .acc-grid{margin-top:16px}.edit-page #member-info .gender-options{flex-wrap:wrap;gap:16px}.edit-page #account-details section{min-width:0}.edit-page #member-info button,.edit-page #account-details form button{margin-top:16px}.edit-page #admin-access{margin:0;padding:0}.edit-page #member-info .grid2>div{min-width:0}.edit-page #member-info input{box-sizing:border-box;max-width:100%}@media(max-width:600px){.member-context{gap:12px}.member-context h2{font-size:19px}.edit-page #member-info .grid2{grid-template-columns:1fr}.edit-page #account-details .acc-grid{grid-template-columns:1fr}.edit-page #unsaved-dialog .row{flex-wrap:wrap}}

@media(min-width:900px){.edit-page #account-details .acc-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.edit-page #account-details .acc-grid>section>h2{margin-top:0}.edit-page #account-details .acc-grid:not(:has(>#admin-access:not([hidden]))){grid-template-columns:repeat(2,minmax(0,1fr))}}

/* One member card: information first, two photo controls beside it. */
.edit-page .member-overview{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:28px;align-items:start}
.edit-page .member-overview>div{min-width:0}
.edit-page .member-overview .member-context{margin:0 0 24px;min-height:56px}
.edit-page .member-overview .member-context>div:last-child{min-width:0;overflow-wrap:anywhere}
.edit-page .member-overview #photos-title{font-size:18px;margin:0 0 20px;overflow-wrap:anywhere}
.edit-page .member-overview .photos{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.edit-page .member-overview .photos .ph1{max-width:none;margin:0;width:100%}
.edit-page .member-overview .hint{line-height:1.5}
@media(max-width:899px){
 .edit-page .member-overview{grid-template-columns:minmax(0,1fr);gap:24px}
 .edit-page .member-overview #photos{border-top:1px solid var(--line);padding-top:24px}
}

/* Compact member rows with a shared label column and expanded photo area. */
.edit-page .member-fields{display:grid;gap:12px}
.edit-page .member-field{display:grid;grid-template-columns:136px minmax(0,1fr);gap:12px;align-items:center;min-width:0}
.edit-page .member-field>label,.edit-page .member-field-label{margin:0;font-size:14px;line-height:1.4;color:var(--mut);font-weight:500}
.edit-page .member-field>label small{display:block;font-size:11px;font-weight:400;margin-top:4px}
/* Mọi ô nhập và ô chọn cùng một cỡ: cao 46px, cùng bo góc, cùng chữ. */
.edit-page .member-field>input,.edit-page .member-field>select,.edit-page .member-field>.search-choice>input{
  width:100%;min-width:0;height:46px;box-sizing:border-box;padding:0 16px;font:inherit;font-size:15px;line-height:1.2;
  border:0;border-radius:16px;background:#fff;box-shadow:0 0 0 1px var(--line) inset;color:var(--ink);
}
/* Ô ngày (sinh nhật, tham gia) hiển thị y như ô chọn: cùng lề trái và cùng mũi tên xuống.
   Icon lịch mặc định của trình duyệt được ẩn đi, cả vùng 44px bên phải vẫn bấm được để mở lịch. */
.edit-page .member-field>input[type=date]{
  position:relative;padding:0 44px 0 12px;appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236B6862' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 16px center;
  text-align:left;color-scheme:light;
}
.edit-page .member-field>input[type=date]::-webkit-calendar-picker-indicator{
  position:absolute;right:0;top:0;width:44px;height:100%;margin:0;padding:0;opacity:0;cursor:pointer;
}
.edit-page .member-field>input[type=date]::-webkit-inner-spin-button,
.edit-page .member-field>input[type=date]::-webkit-clear-button{display:none}
.edit-page .member-field>select{
  appearance:none;-webkit-appearance:none;padding-right:44px;cursor:pointer;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236B6862' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 16px center;
}
.edit-page .member-field>input:focus,.edit-page .member-field>select:focus,.edit-page .member-field>.search-choice>input:focus{outline:2px solid var(--ink);outline-offset:1px}
.edit-page .member-field>select:disabled{background-color:#F1EFEC;color:var(--mut);cursor:not-allowed;opacity:1}
.edit-page .member-field>.search-choice{flex:1 1 auto;min-width:0;display:block}
.edit-page .member-field>.search-choice>input{box-shadow:0 0 0 1px var(--line) inset}
.edit-page .member-note{margin:0;font-size:13px;line-height:1.5}
/* Ô "Người cần sửa" dùng chung lưới nhãn và cùng cỡ ô với khối hồ sơ. */
.edit-page #member-edit{margin-top:20px}
.edit-page #member-edit .member-picker-row{display:grid;grid-template-columns:136px minmax(0,1fr);gap:12px;align-items:center}
.edit-page #member-edit .member-picker-row>label{max-width:none;margin:0;font-size:14px;font-weight:500;line-height:1.4;color:var(--mut)}
.edit-page #member-edit .member-picker-control{position:relative;min-width:0}
.edit-page #member-edit input{width:100%;min-width:0;height:46px;box-sizing:border-box;padding:0 16px;font-size:15px;line-height:1.2;border:0;border-radius:16px;box-shadow:0 0 0 1px var(--line) inset}
@media(min-width:900px){.edit-page #member-edit .member-picker-row{grid-template-columns:110px minmax(0,1fr)}}
@media(max-width:599px){
 .edit-page #member-edit .member-picker-row{grid-template-columns:96px minmax(0,1fr);gap:8px}
 .edit-page #member-edit .member-picker-row>label{font-size:13px}
 .edit-page #member-edit input{height:44px;padding:0 10px;font-size:14px}
 .edit-page #member-edit label{font-size:13px}
}
.edit-page .member-overview #photos:not([hidden]){display:flex;flex-direction:column}
.edit-page .member-overview #photos>.hint{margin-top:10px}
@media(min-width:900px){
 .edit-page .member-field{grid-template-columns:110px minmax(0,1fr)}
 .edit-page .member-overview .photos .sq{width:100%;aspect-ratio:1;min-height:0;flex:none}
}
@media(max-width:599px){
 .edit-page .member-field{grid-template-columns:96px minmax(0,1fr);gap:8px}
 .edit-page .member-field>label,.edit-page .member-field-label{font-size:13px}
 .edit-page .member-field>input,.edit-page .member-field>select,.edit-page .member-field>.search-choice>input{height:44px;padding:0 10px;font-size:14px}
 .edit-page #jd{height:44px}
 .edit-page .member-field>input[type=date]{padding:0 34px 0 6px;background-position:right 10px center}
 .edit-page .member-field>select{background-position:right 10px center;padding-right:34px}
}

/* Thẻ tài khoản: gộp tên đăng nhập và mật khẩu, nút Lưu nằm trong thẻ. */
.edit-page .account-card{margin-top:24px;border-top:1px solid var(--line);padding-top:20px}
.edit-page .account-card>summary{cursor:pointer;font-size:18px;font-weight:600;color:var(--ink);min-height:44px;display:flex;align-items:center;gap:10px;list-style:none}
.edit-page .account-card>summary::-webkit-details-marker{display:none}
.edit-page .account-card>summary::after{content:"";width:9px;height:9px;border-right:2px solid var(--mut);border-bottom:2px solid var(--mut);transform:rotate(-45deg);margin-left:auto;transition:transform .15s}
.edit-page .account-card[open]>summary::after{transform:rotate(45deg)}
.edit-page .account-card[open]>summary{margin-bottom:16px}
@media (prefers-reduced-motion:reduce){.edit-page .account-card>summary::after{transition:none}}
.edit-page .account-card button[type=submit]{margin-top:16px}
.edit-page #account-details .acc-grid{grid-template-columns:minmax(0,1fr)}
.edit-page .access-lock{display:flex;align-items:center;gap:8px;min-height:44px;margin:0}
.edit-page .access-lock input{width:22px;height:22px;margin:0;accent-color:var(--red);flex:none}
.edit-page .photos .pact{margin-top:8px;flex-wrap:nowrap}
@media(min-width:900px){.edit-page #account-details .acc-grid:has(>#admin-access:not([hidden])){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

/* Hướng dẫn sửa slide: to chữ, có icon, dễ nhìn */
.profile-guide{margin:16px 0 4px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:#fff;line-height:1.5}
.profile-guide .pg-title{margin:0 0 12px;font-size:17px;font-weight:700;color:var(--ink)}
.profile-guide .pg-steps{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.profile-guide .pg-steps li{display:flex;align-items:flex-start;gap:12px;font-size:16px;color:var(--ink)}
.profile-guide .pg-ico{flex:none;width:26px;height:26px;display:grid;place-items:center;font-size:18px;background:var(--peach);border-radius:8px;line-height:1}
.profile-guide .pg-steps li b{font-weight:700}
@media(max-width:599px){.profile-guide .pg-steps li{font-size:15px}}

/* Nút "Xem thử khi chiếu": thêm icon và nổi bật bằng nền gradient + bóng đỏ */
.btn.trial{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:700;white-space:nowrap}
.btn.trial .trial-ico{flex:none;font-size:1.05em;line-height:1}
.btn.trial:not(:disabled){background:var(--grad);border:0;color:#fff;box-shadow:0 8px 22px rgba(232,52,78,.35)}
.btn.trial:not(:disabled):hover{box-shadow:0 12px 26px rgba(232,52,78,.5)}
@media (prefers-reduced-motion:reduce){.btn.trial:not(:disabled):hover{box-shadow:0 8px 22px rgba(232,52,78,.35)}}

/* ===== 06/11/2026: một menu duy nhất toàn app, có icon, tô sáng mục đang mở ===== */
/* Icon nét mảnh, cùng màu chữ để đổi màu theo mục đang mở. */
.bar .mdrop .nav-i{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;height:42px;padding:0 16px;font:inherit;font-size:14px;font-weight:600;line-height:1;color:var(--ink);background:#fff;border:0;border-radius:999px;box-shadow:0 0 0 1px var(--line) inset;text-decoration:none;white-space:nowrap;cursor:pointer}
.bar .mdrop .nav-i svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bar .mdrop .nav-i:hover{background:#F1F1F3}
.bar .mdrop .nav-i[hidden]{display:none}
/* Mục đang mở: tô đỏ để biết đang đứng ở trang nào. */
.bar .mdrop .nav-i.on{background:var(--grad);color:#fff;box-shadow:0 6px 14px rgba(232,52,78,.28)}
.bar .mdrop .nav-i.on:hover{background:var(--grad);filter:brightness(1.06)}
.bar .mbtn:focus-visible,.bar .mdrop .nav-i:focus-visible{outline:3px solid var(--red);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.bar .mdrop .nav-i.on:hover{filter:none}}

/* Máy tính: nút ☰ ẩn, menu hiện thẳng thành một hàng nút. */
@media(min-width:900px){
 .bar .mbtn{display:none}
 .bar .mdrop{display:flex;position:static;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;min-width:0;padding:0;margin:0;background:none;box-shadow:none;border-radius:0;max-height:none;overflow:visible}
}

/* 900-1140px: thu gọn nhịp để 7 mục vẫn nằm gọn một hàng, không xuống dòng. */
@media(min-width:900px) and (max-width:1140px){
 .bar{padding:12px 18px;gap:10px}
 .bar img{height:42px}
 .bar .mdrop{gap:6px}
 .bar .mdrop .nav-i{padding:0 12px;font-size:13.5px;gap:6px}
 .bar .mdrop .nav-i svg{width:16px;height:16px}
}

/* Điện thoại: Menu thu thành nút ☰, danh sách xổ dọc, mục đang mở tô đỏ cả dòng. */
@media(max-width:899px){
 .bar{flex-wrap:nowrap;gap:10px}
 .bar .mn{position:relative;flex:none;margin-left:auto}
 .bar .mbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 14px;font:inherit;font-size:14px;font-weight:600;color:var(--ink);background:#fff;border:0;border-radius:999px;box-shadow:0 0 0 1px var(--line) inset;cursor:pointer}
 .bar .mbtn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .bar .mdrop{display:none;position:absolute;right:0;top:calc(100% + 8px);z-index:60;box-sizing:border-box;flex-direction:column;align-items:stretch;gap:4px;width:min(268px,calc(100vw - 44px));max-height:calc(100dvh - 120px);overflow-y:auto;padding:8px;margin:0;background:#fff;border-radius:18px;box-shadow:0 0 0 1px var(--line) inset,0 12px 32px rgba(16,18,28,.18)}
 .bar .mn.open .mdrop{display:flex}
 .bar .mdrop .nav-i{justify-content:flex-start;width:100%;height:auto;min-height:46px;padding:10px 12px;border-radius:14px;box-shadow:none;background:none;font-size:15px;text-align:left;white-space:normal}
 .bar .mdrop .nav-i svg{width:20px;height:20px}
 .bar .mdrop .nav-i.on{background:var(--grad);color:#fff;box-shadow:none}
 .bar .mdrop .nav-i.on svg{stroke:#fff}
}

/* ===== 06/11/2026: tiêu đề trang gọn trong một khung, phần "Người cần sửa" nằm chung khung ===== */
.page-head{display:flex;flex-direction:column;gap:16px;padding:20px 24px;margin:18px 0 0}
.page-head h1{margin:0;font-size:24px;font-weight:700;letter-spacing:-.02em;line-height:1.25;color:var(--ink)}
.page-head #member-edit{margin:0}
.page-head .member-picker-row{display:grid;grid-template-columns:136px minmax(0,1fr);gap:12px;align-items:center;min-width:0}
.page-head .member-picker-row[hidden]{display:none}
.page-head .member-picker-row>label{max-width:none;margin:0;font-size:14px;font-weight:500;line-height:1.4;color:var(--mut)}
.page-head .member-picker-control{position:relative;min-width:0}
.page-head .member-picker-control input{width:100%;min-width:0;height:46px;box-sizing:border-box;padding:0 16px;font:inherit;font-size:15px;line-height:1.2;border:0;border-radius:16px;background:#fff;box-shadow:0 0 0 1px var(--line) inset;color:var(--ink)}
.page-head .msg{margin:0}
.page-head ~ .member-overview{margin-top:18px}
@media(min-width:900px){.page-head{padding:22px 28px}.page-head h1{font-size:26px}.page-head .member-picker-row{grid-template-columns:110px minmax(0,1fr)}}
@media(max-width:599px){
 .page-head{padding:16px 18px;gap:12px}
 .page-head h1{font-size:21px}
 .page-head .member-picker-row{grid-template-columns:96px minmax(0,1fr);gap:8px}
 .page-head .member-picker-row>label{font-size:13px}
 .page-head .member-picker-control input{height:44px;padding:0 10px;font-size:14px}
}

/* toi-uu 20261107: giu cho danh sach su kien truoc khi co du lieu, tranh nhay bo cuc */
#evlist{min-height:357px}
@media(max-width:899px){#evlist{min-height:292px}}

/* Chuông ngoài menu điện thoại; thông báo trạng thái thu lại sau 3 giây. */
@media(max-width:899px){
 .bar .header-actions{display:flex;align-items:center;flex-wrap:nowrap}
 .push-shortcut-slot{position:relative;flex:0 0 44px;width:44px;height:44px}
 .bar .push-shortcut-slot #push-toggle{position:absolute;right:0;top:0;z-index:5;display:flex;flex-direction:row-reverse;align-items:center;justify-content:flex-start;gap:0;box-sizing:border-box;width:44px;height:44px;margin:0;padding:0 11px;border:0;border-radius:999px;background:#f1f2f4;color:#667085;box-shadow:0 0 0 1px #d5d9e0 inset;cursor:pointer;font:inherit;font-size:13px;font-weight:600;white-space:nowrap;overflow:visible;transition:width .2s ease,background-color .2s ease,color .2s ease}
 .bar .push-shortcut-slot #push-toggle svg{flex:0 0 22px;width:22px;height:22px}
 .bar .push-shortcut-slot #push-toggle .push-bell-label{max-width:0;opacity:0;overflow:hidden;transition:opacity .15s ease,max-width .2s ease}
 .bar .push-shortcut-slot #push-toggle:disabled{cursor:wait;opacity:.6}
 .bar .push-shortcut-slot #push-toggle[aria-busy=true]{opacity:1}
 .bar .push-shortcut-slot #push-toggle:focus-visible{outline:3px solid var(--red);outline-offset:3px}
}
@media(prefers-reduced-motion:reduce){.bar .push-shortcut-slot #push-toggle,.bar .push-shortcut-slot #push-toggle .push-bell-label{transition:none}}
#push-inbox{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-height:80dvh;margin:auto;padding:20px;border:1px solid #d5d9e0;border-radius:20px;background:#fff;color:#344054;box-shadow:0 20px 60px #10182830;overflow:auto}
#push-inbox::backdrop{background:#10182855}
.push-inbox-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.push-inbox-head h2{margin:0;font-size:20px}
.push-inbox-head button{border:0;background:#f1f2f4;border-radius:50%;width:40px;height:40px;color:#667085;cursor:pointer}
.push-inbox-tools{display:flex;align-items:center;gap:12px;margin:16px 0}
.push-inbox-tools button,.push-inbox-footer button{min-height:42px;padding:8px 12px;border:1px solid #d5d9e0;border-radius:12px;background:#f7f8fa;color:#475467;font:inherit;font-size:13px;cursor:pointer}
.push-inbox-tools button:disabled,.push-inbox-footer button:disabled{opacity:.55;cursor:wait}
#push-inbox-status{font-size:13px;line-height:1.5;margin:10px 0;overflow-wrap:anywhere}
#push-inbox-status:empty{display:none}
.push-inbox-item{display:block;position:relative;padding:14px;margin:8px 0;border:1px solid #e4e7ec;border-radius:12px;background:#fff;color:#667085;text-decoration:none;overflow-wrap:anywhere}
.push-inbox-item.is-unread{background:#eef2f6;border-color:#c4cdd8;box-shadow:inset 3px 0 #667085;color:#344054}
.push-inbox-item strong{display:block;font-size:14px;font-weight:500;line-height:1.5}
.push-inbox-item.is-unread strong{font-weight:750}
.push-inbox-item p{margin:6px 0;font-size:13px;line-height:1.5;white-space:pre-wrap}
.push-inbox-item time{font-size:11px;color:#667085}
.push-inbox-empty{padding:24px 8px;text-align:center;color:#667085;font-size:14px}
#push-inbox button:focus-visible,.push-inbox-item:focus-visible{outline:3px solid #667085;outline-offset:2px}

/* B?ng th?ng b?o: c?ng t?c on/off v? s? ch?a ??c tr?n chu?ng. */
#push-toggle .push-bell-icon{position:relative;display:inline-flex;flex:0 0 22px;width:22px;height:22px;overflow:visible}
#push-toggle .push-bell-icon>svg{width:22px;height:22px}
.bar .push-shortcut-slot #push-toggle .push-bell-icon{position:static}
#push-toggle .push-unread-badge{position:absolute;right:0;top:0;transform:translate(0,0);display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:17px;height:17px;padding:0 4px;border:1px solid #fff;border-radius:999px;background:#667085;color:#fff;font-size:10px;font-weight:700;line-height:1;pointer-events:none}
#push-setting{display:inline-flex;align-items:center;justify-content:center;flex:none;width:60px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.push-switch-icon{width:60px;height:37px;flex:none}
#push-setting-state{min-width:0;font-size:14px;line-height:1.5;color:#475467;overflow-wrap:anywhere}
#push-setting-state.is-error{color:#b42318}
.push-inbox-footer{display:flex;justify-content:flex-start;margin-top:16px;padding-top:12px;border-top:1px solid #e4e7ec}
#push-toggle.push-has-unread{color:#b42318}
.bar .push-shortcut-slot #push-toggle.push-has-unread{background:#fef3f2;color:#b42318;box-shadow:0 0 0 1px #fecdca inset}
#push-toggle.push-has-unread .push-unread-badge{background:#b42318}

/* Khung chờ dùng cùng cấu trúc với nội dung thật, có sẵn từ HTML. */
.member-page .bar>.header-actions>.push-shortcut-slot{display:none}
@media(max-width:899px){.member-page .bar>.header-actions>.push-shortcut-slot{display:block}}
.member-page .load-text{color:transparent!important;background:#e9e7e4;border-radius:6px;box-shadow:none;pointer-events:none;user-select:none}
.member-page .load-block{background:#e9e7e4!important}
.member-page :is(#bxhl,#bxgl) .bx{min-height:88px}
.member-page .prof #who,.member-page .prof #ind{display:block;min-width:0;width:100%;box-sizing:border-box;white-space:nowrap;overflow:hidden;overflow-wrap:normal;align-self:start}
.member-page .prof #who{--profile-font:20px;height:26px;min-height:26px;line-height:26px;font-size:var(--profile-font)}
.member-page .prof #ind{--profile-font:14px;height:21px;min-height:21px;line-height:21px;font-size:var(--profile-font);margin:0}
.member-page .hero .prof .mphoto{box-sizing:border-box;min-width:52px;max-width:52px;min-height:52px;max-height:52px;width:52px;height:52px;aspect-ratio:1;align-self:start}
@media(min-width:641px) and (max-width:899px){.member-page .hero .prof .mphoto{min-width:64px;max-width:64px;min-height:64px;max-height:64px;width:64px;height:64px}}
.member-page .prof #ind[hidden]{display:block;visibility:hidden}
.member-page .prof #yrs{min-height:1.4em;line-height:1.4;box-sizing:border-box}
.member-page .prof #yrs.load-text{min-width:min(100%,270px)}
.member-page .event-today{min-height:1.5em}
@media(min-width:900px){
 .member-page .hero .prof{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px 24px;align-items:start}
 .member-page .hero .prof .mphoto{grid-column:1;grid-row:1 / 3;min-width:100px;max-width:100px;min-height:100px;max-height:100px;width:100px;height:100px;align-self:start}
 .member-page .hero .prof .who{display:contents}
 .member-page .hero .prof #who{grid-column:2;grid-row:1;--profile-font:24px;height:32px;min-height:32px;line-height:32px}
 .member-page .hero .prof #ind{grid-column:2;grid-row:2;--profile-font:16px;height:24px;min-height:24px;line-height:24px}
 .member-page .hero .prof #yrs{grid-column:1 / -1;grid-row:3;width:100%;text-align:center}
 .member-page .bar{display:grid;grid-template-columns:48px minmax(0,1fr)}
 .member-page .bar .header-actions{min-height:104px;flex-wrap:nowrap}
 .member-page .bar .mn{flex:1;min-width:0}
 .member-page #callist{min-height:280px}
}

/* 07/11/2026: thanh menu chung, ??c l?p v?i l?p n?i dung t?ng trang. */
body .hero.app-nav-shell{max-width:1236px;margin:20px auto 0;padding:0 28px}
.app-nav-shell .bar{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:16px;padding:14px 28px;background:#fff;border-radius:32px;box-shadow:0 10px 30px rgba(16,18,28,.06)}
.app-nav-shell .bar .header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;min-height:104px;flex-wrap:nowrap}
.app-nav-shell .bar .mn{flex:1;min-width:0;align-self:center}
.app-nav-shell .bar img{display:block;width:48px;height:48px;object-fit:contain;border-radius:12px}
@media(min-width:900px) and (max-width:1140px){
 .app-nav-shell .bar{padding:12px 18px;gap:10px}
 .app-nav-shell .bar img{width:42px;height:42px}
}
@media(max-width:899px){
 body .hero.app-nav-shell{margin-top:16px;padding:0 16px}
 body .app-nav-shell .bar{display:flex;flex-wrap:nowrap;gap:8px;padding:16px;background:transparent;border-radius:0;box-shadow:none}
 .app-nav-shell .bar .header-actions{min-height:48px;gap:8px}
 .app-nav-shell .bar .mn{flex:none;margin-left:auto}
 .app-nav-shell .bar .mbtn{padding:10px 12px;font-size:14px}
 .app-nav-shell .bar .mdrop{width:min(268px,calc(100vw - 60px));max-height:calc(100dvh - var(--checkin-dock-height,100px) - 110px);z-index:60}
 .app-nav-shell .bar .mdrop .nav-i{flex-shrink:0;min-height:46px;line-height:1.4}
}

.role-preview-banner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 20px;background:#fff4dc;color:#714a00;border-bottom:1px solid #e9cd86}.role-preview-banner .btn{white-space:nowrap}.role-preview-actions{display:flex;justify-content:flex-end;margin:16px 0}.role-preview-dialog{width:480px;max-width:calc(100vw - 32px);border:1px solid #ddd;border-radius:16px;padding:24px;color:#344054}.role-preview-dialog::backdrop{background:#0006}.role-preview-dialog select{width:100%}.role-preview-dialog p{line-height:1.6}.role-preview-dialog #preview-error{color:#a22525}

/* Chức danh và nhiệm kỳ ngang nhau, phía trên tên thành viên. */
.member-page .hero .prof .uniki-titles{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 5px;width:100%;min-width:0;color:#4F46E5;font-size:13px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.member-page .hero .prof .uniki-title{min-width:0}
.member-page .hero .prof .uniki-title-divider{font-weight:400}
.member-page .hero .prof #uniki-titles{grid-column:2;grid-row:1}
.member-page .hero .prof #who{grid-row:2}
.member-page .hero .prof #ind{grid-row:3}
.member-page .hero .prof #yrs{grid-row:4}
.member-page .hero .prof .mphoto{grid-row:1 / 4}
@media(min-width:900px){
 .member-page .hero .prof #uniki-titles{grid-column:2;grid-row:1;font-size:15px}
 .member-page .hero .prof #who{grid-row:2}
 .member-page .hero .prof #ind{grid-row:3}
 .member-page .hero .prof #yrs{grid-row:4}
 .member-page .hero .prof .mphoto{grid-row:1 / 4}
}

/* Gom ba dòng nhận diện để chiều cao avatar không kéo giãn khoảng cách chữ. */
.member-page .hero .prof .profile-identity{grid-column:2;grid-row:1 / 4;display:flex;flex-direction:column;align-self:start;gap:2px;min-width:0;width:100%}

/* Ngành nghề và chức danh dùng cùng cỡ chữ, ảnh và khối chữ cùng mép trên. */
.member-page .hero .prof #ind{--profile-font:13px;font-size:var(--profile-font)}
@media(min-width:900px){.member-page .hero .prof #ind{--profile-font:15px}}

/* Ba dòng cố định vừa chiều cao avatar, giữ một dòng và thu chữ khi dài. */
.member-page .hero .prof{grid-template-columns:72px minmax(0,1fr)}
.member-page .hero .prof .mphoto{width:72px;height:72px;min-width:72px;max-width:72px;min-height:72px;max-height:72px}
.member-page .hero .prof .profile-identity{display:grid;grid-template-rows:20px 28px 20px;gap:2px;height:72px;align-self:start}
.member-page .hero .prof #uniki-titles,.member-page .hero .prof #who,.member-page .hero .prof #ind{grid-column:1;width:100%;min-width:0;white-space:nowrap;overflow:hidden;overflow-wrap:normal;box-sizing:border-box;margin:0;padding:0}
.member-page .hero .prof #uniki-titles{display:block;grid-row:1;--profile-font:14px;font-size:var(--profile-font);height:20px;min-height:20px;line-height:20px}
.member-page .hero .prof #who{grid-row:2;--profile-font:20px;font-size:var(--profile-font);height:28px;min-height:28px;line-height:28px}
.member-page .hero .prof #ind{grid-row:3;--profile-font:14px;font-size:var(--profile-font);height:20px;min-height:20px;line-height:20px}
.member-page .hero .prof .uniki-title,.member-page .hero .prof .uniki-title-divider{display:inline;font-size:inherit;white-space:nowrap}
@media(min-width:900px){
 .member-page .hero .prof{grid-template-columns:84px minmax(0,1fr)}
 .member-page .hero .prof .mphoto{width:84px;height:84px;min-width:84px;max-width:84px;min-height:84px;max-height:84px}
 .member-page .hero .prof .profile-identity{grid-template-rows:24px 32px 24px;height:84px}
 .member-page .hero .prof #uniki-titles,.member-page .hero .prof #ind{--profile-font:16px;height:24px;min-height:24px;line-height:24px}
 .member-page .hero .prof #who{--profile-font:24px;height:32px;min-height:32px;line-height:32px}
}
