/* Token lấy từ Figma "Vicko UI v3" */
:root{
  --ink:#111111; --ink-2:#6b6e70; --ink-3:#9a9d9f; --surface:#ffffff; --surface-2:#f5f5f3; --bg:#ecedea; --dark:#151515;
  --accent:#ffd900; --accent-d:#f0cc00; --accent-l:#fff6c2; --primary:#1f6feb; --danger:#e5484d; --danger-l:#fde8e8;
  --line:#e6e6e2; --r-card:24px; --r-full:999px; --r-field:14px;
  --safe-b:env(safe-area-inset-bottom,0px); --safe-t:env(safe-area-inset-top,0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:var(--bg);color:var(--ink);font:400 15px/1.45 "Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;overscroll-behavior:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
svg{flex:none}
#app{position:fixed;inset:0;display:flex;flex-direction:column;max-width:1100px;margin:0 auto;background:var(--bg)}
.banner{background:var(--accent-l);color:#6b5700;font-size:12px;padding:5px 14px;text-align:center}
/* Chữ */
.t-title{font-size:26px;line-height:32px;font-weight:500;letter-spacing:-.52px}
.t-display{font-size:44px;line-height:48px;font-weight:300;letter-spacing:-1.32px}
.t-heading{font-size:18px;line-height:24px;font-weight:600;letter-spacing:-.18px}
.t-body{font-size:16px;line-height:22px;font-weight:500}
.t-label{font-size:13px;line-height:18px;font-weight:500}
.t-cap{font-size:13px;line-height:18px;color:var(--ink-2)}
.t-micro{font-size:11px;line-height:14px;font-weight:500;color:var(--ink-2)}
.muted{color:var(--ink-2)} .red{color:var(--danger)} .b{font-weight:600}
.ell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.row{display:flex;align-items:center;gap:10px}
.col{display:flex;flex-direction:column}
.grow{flex:1;min-width:0}
/* TopBar / SubHeader */
header.top{display:flex;align-items:center;gap:8px;height:64px;padding:0 20px;flex:none;margin-top:var(--safe-t)}
header.top h1{flex:1;margin:0;font-size:26px;line-height:32px;font-weight:500;letter-spacing:-.52px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
header.top.sub{padding:0 16px;gap:12px}
header.top.sub .tt{flex:1;min-width:0;text-align:center}
header.top.sub h1{font-size:18px;line-height:24px;font-weight:600;letter-spacing:-.18px}
header.top.sub small{display:block;font-size:13px;line-height:18px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
header.top.sub.left .tt{text-align:left}
.cbtn{width:44px;height:44px;border-radius:50%;border:0;background:var(--surface);display:inline-flex;align-items:center;justify-content:center;position:relative;flex:none;color:var(--ink);padding:0}
.cbtn svg{width:22px;height:22px}
.cbtn.soft{background:var(--surface-2)} .cbtn.accent{background:var(--accent)} .cbtn.sm{width:36px;height:36px} .cbtn.sm svg{width:20px;height:20px}
.cbtn.ghost{background:transparent}
.cbtn .badge{position:absolute;left:26px;top:-2px}
.spacer44{width:44px;flex:none}
.badge{min-width:18px;height:18px;border-radius:9px;background:var(--danger);color:#fff;font-size:11px;line-height:14px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}
main{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:8px 16px 24px}
#app.hasfoot main{padding-bottom:112px}
.wrap{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
/* Thanh dưới: viên thuốc nổi + nút Giao việc tách riêng */
#foot{position:absolute;left:0;right:0;bottom:calc(16px + var(--safe-b));display:flex;justify-content:center;gap:14px;padding:0 16px;pointer-events:none;z-index:5}
#foot>*{pointer-events:auto}
nav.bottom{background:var(--surface);height:64px;border-radius:var(--r-full);box-shadow:0 8px 24px rgba(0,0,0,.08);display:flex;align-items:center;justify-content:space-between;padding:0 6px;width:280px;max-width:calc(100% - 78px)}
#foot.nofab nav.bottom{width:358px;max-width:100%}
nav.bottom button{height:52px;border:0;background:none;border-radius:var(--r-full);display:flex;align-items:center;justify-content:center;gap:8px;padding:0 12px;color:var(--ink);position:relative}
nav.bottom button svg{width:22px;height:22px}
nav.bottom button span{display:none;font-size:13px;line-height:18px;font-weight:500;color:#fff;white-space:nowrap}
nav.bottom button.on{background:var(--dark);padding:0 18px 0 16px;color:var(--accent)}
nav.bottom button.on span{display:inline}
nav.bottom .badge{position:absolute;top:4px;right:2px}
.fab{width:64px;height:64px;border-radius:50%;border:0;background:var(--accent);color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-shadow:0 8px 20px rgba(0,0,0,.12);flex:none;font-size:11px;line-height:14px;font-weight:500}
.fab svg{width:22px;height:22px}
/* Thẻ */
.card{background:var(--surface);border-radius:var(--r-card);padding:18px 20px;display:block;width:100%;border:0;text-align:left}
.card.tight{padding:14px 16px}
.card.flat{padding:0;overflow:hidden}
.card.soft{background:var(--surface-2)}
.card.dark{background:var(--dark);color:#fff}
.card.yellow{background:var(--accent-l)}
.card.dashed{background:transparent;border:1.5px dashed #bdbdb7}
button.card{cursor:pointer}
.card.row{display:flex}
.card.col{display:flex}
.tile{background:var(--surface-2);border-radius:16px;padding:12px 14px}
.sechd{display:flex;align-items:flex-end;gap:8px;margin:6px 0 -2px}
.sechd .t-heading{flex:1}
.grp{font-size:11px;line-height:14px;font-weight:500;color:var(--ink-2);text-transform:uppercase;letter-spacing:.02em;margin:6px 4px -4px}
.kvrow{display:flex;align-items:center;gap:10px;padding:5px 0;font-size:16px;line-height:22px}
.kvrow .k{flex:1;color:var(--ink-2)} .kvrow .v{font-weight:500;text-align:right}
.divider{height:1px;background:var(--line);margin:10px 0}
.thumb{background:#fafaf7 center/cover no-repeat;flex:none}
/* Tiến độ: thanh vàng */
.prog{height:8px;border-radius:4px;background:var(--surface-2);overflow:hidden;width:100%}
.prog i{display:block;height:100%;background:var(--accent);border-radius:4px}
.sbar{display:flex;height:8px;border-radius:4px;overflow:hidden;background:var(--surface-2)}
.sbar span{display:block;height:100%}
.legend{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:13px;color:var(--ink-2)}
.legend i,.cdot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;vertical-align:1px;flex:none}
/* Nút */
.btn{border:0;border-radius:var(--r-full);height:56px;padding:0 24px;background:var(--accent);color:var(--ink);font-size:16px;line-height:22px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;white-space:nowrap}
.btn:active{background:var(--accent-d)}
.btn.sec{background:var(--surface);color:var(--ink)}
.btn.dark{background:var(--dark);color:#fff}
.btn.danger{background:var(--surface);color:var(--danger)}
.btn.block{width:100%}
.btn.sm{height:36px;padding:0 14px;font-size:13px;line-height:18px;gap:6px}
.btn.md{height:44px;padding:0 18px;font-size:15px}
.btn svg{width:20px;height:20px} .btn.sm svg{width:16px;height:16px}
.btn:disabled{opacity:.45}
.bottomcta{position:absolute;left:0;right:0;bottom:0;padding:40px 16px calc(16px + var(--safe-b));background:linear-gradient(to bottom,rgba(236,237,234,0),var(--bg) 40%);display:flex;gap:10px;z-index:4}
#app.hascta main{padding-bottom:110px}
.linkbtn{border:0;background:none;color:var(--primary);font-weight:500;padding:4px 2px;font-size:13px;line-height:18px}
/* Chip lọc, segmented, nhãn */
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px;flex:none}
.chips::-webkit-scrollbar{display:none}
.chip{border:0;background:var(--surface);border-radius:var(--r-full);padding:9px 16px;font-size:13px;line-height:18px;font-weight:500;white-space:nowrap;flex:none;color:var(--ink);display:inline-flex;align-items:center;gap:6px}
.chip.on{background:var(--dark);color:#fff}
.seg{display:flex;background:var(--surface);border-radius:var(--r-full);padding:4px;gap:4px}
.seg button{flex:1;border:0;background:none;height:38px;border-radius:var(--r-full);font-size:13px;line-height:18px;font-weight:500;color:var(--ink-2);display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
.seg button svg{width:18px;height:18px}
.seg button.on{background:var(--dark);color:#fff}
.pill{display:inline-flex;align-items:center;gap:4px;border-radius:var(--r-full);padding:4px 10px;font-size:11px;line-height:14px;font-weight:500;white-space:nowrap;background:var(--surface-2);color:var(--ink)}
.pill.red{background:var(--danger-l);color:var(--danger)} .pill.green{background:#ddf3e2;color:#2e9b57} .pill.blue{background:#dce8ff;color:#2f6fdb} .pill.dark{background:var(--dark);color:#fff} .pill.yellow{background:var(--accent);color:var(--ink)} .pill.white{background:#fff}
/* Trạng thái cửa */
.st{display:inline-flex;align-items:center;gap:6px;border-radius:var(--r-full);padding:5px 12px 5px 10px;font-size:13px;line-height:18px;font-weight:500;color:var(--ink);white-space:nowrap;border:0}
.st i{width:8px;height:8px;border-radius:50%;flex:none}
.st.pick{outline:2px solid transparent}
.st.pick.on{outline-color:var(--ink);outline-offset:0;box-shadow:inset 0 0 0 0}
.stwrap{display:flex;flex-wrap:wrap;gap:6px}
.codebadge{width:48px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:500;flex:none}
/* Ô nhập */
.field{display:block}
.field>span{display:block;font-size:11px;line-height:14px;font-weight:500;color:var(--ink-2);margin-bottom:6px}
.inp{width:100%;border:0;border-radius:var(--r-field);padding:14px;background:var(--surface-2);font-size:16px;line-height:22px;min-height:50px;outline:none;color:var(--ink)}
.inp:focus{box-shadow:inset 0 0 0 1.5px var(--ink)}
.inp.white{background:var(--surface)}
textarea.inp{min-height:96px;resize:vertical}
select.inp{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:40px}
.unit{position:relative}.unit .inp{padding-right:48px}.unit em{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-style:normal;font-size:13px;color:var(--ink-2)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.search{display:flex;align-items:center;gap:10px;background:var(--surface);border-radius:var(--r-full);height:48px;padding:0 16px}
.search input{border:0;background:none;outline:none;flex:1;font-size:16px}
.search svg{width:20px;height:20px;color:var(--ink-2)}
.selrow{display:flex;align-items:center;gap:10px;background:var(--surface);border-radius:var(--r-full);height:52px;padding:0 16px;position:relative}
.selrow select{position:absolute;inset:0;opacity:0;width:100%}
.txtsel{display:inline-flex;align-items:center;gap:6px;position:relative;font-size:16px;line-height:22px;font-weight:500}
.txtsel select{position:absolute;inset:0;opacity:0}
/* Ảnh */
.photos{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.photos::-webkit-scrollbar{display:none}
.photos img,.ph-add{width:80px;height:80px;border-radius:16px;object-fit:cover;flex:none;background:#dcdad3}
.ph-add{border:1.5px dashed #bdbdb7;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;line-height:14px;font-weight:500;color:var(--ink)}
.ph-add.yellow{background:var(--accent);border:0}
.ph-add svg{width:22px;height:22px}
.av{width:40px;height:40px;border-radius:50%;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:500;flex:none;color:var(--ink)}
.av.sm{width:28px;height:28px;font-size:11px} .av.md{width:32px;height:32px;font-size:12px} .av.y{background:var(--accent)}
/* Danh sách dòng */
.lrow{display:flex;align-items:center;gap:12px;padding:12px 0;border:0;background:none;width:100%;text-align:left;color:var(--ink)}
.lrow+.lrow{border-top:1px solid var(--line)}
.lrow>svg{width:20px;height:20px;color:var(--ink-2)}
/* Cần chú ý */
.attn .it{display:flex;align-items:center;gap:12px;border:0;background:none;color:#fff;width:100%;text-align:left;padding:10px 0}
.attn .it+.it{border-top:1px solid #2a2a2a}
.attn .num{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:600;flex:none;color:#fff}
.attn .it svg{width:20px;height:20px;color:#8c9097}
/* Bản vẽ */
.viewer{position:fixed;inset:0;z-index:20;background:var(--bg);display:flex;flex-direction:column;max-width:1100px;margin:0 auto}
.vtools{display:flex;flex-direction:column;gap:10px;padding:0 16px 10px}
.vbody{flex:1;display:flex;min-height:0;position:relative}
#vp{flex:1;position:relative;overflow:hidden;touch-action:none;background:#fafaf7}
#vp.framed{margin:0 16px;border-radius:var(--r-card)}
#vside{width:390px;flex:none;background:var(--bg);overflow-y:auto;display:none;padding:0 16px 30px}
#vside.on{display:block}
#stage{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform}
#stage img{display:block;user-select:none;-webkit-user-drag:none;pointer-events:none}
.dpin{position:absolute;transform:translate(-50%,-50%) scale(var(--inv,1));display:flex;align-items:center;gap:5px;background:#fff;border-radius:var(--r-full);padding:4px 9px 4px 4px;box-shadow:0 2px 6px rgba(0,0,0,.18);font-size:11px;line-height:14px;font-weight:600;white-space:nowrap;color:var(--ink)}
.dpin i{width:14px;height:14px;border-radius:50%;flex:none}
.dpin.err{box-shadow:0 0 0 2px var(--danger),0 2px 6px rgba(0,0,0,.18)}
#stage.far .dpin{padding:3px}
#stage.far .dpin .n{display:none}
#stage.far .dpin i{width:12px;height:12px}
.dpin.note::after{content:"";position:absolute;right:-3px;top:-3px;width:8px;height:8px;border-radius:50%;background:var(--accent);border:1.5px solid #fff}
.dpin.hl{box-shadow:0 0 0 10px rgba(255,217,0,.55),0 2px 6px rgba(0,0,0,.18)}
.dpin.sel{box-shadow:0 0 0 3px var(--dark)}
.dpin.dim{opacity:.2}
.dpin.drag{box-shadow:0 0 0 6px rgba(31,111,235,.35)}
.pop{position:absolute;right:20px;top:40px;width:220px;background:#fff;border-radius:20px;padding:14px 16px;box-shadow:0 12px 32px rgba(0,0,0,.14);z-index:6}
.vfloor{position:absolute;right:16px;top:50%;transform:translateY(-50%);background:#fff;border-radius:var(--r-full);padding:6px;display:flex;flex-direction:column;align-items:center;gap:2px;box-shadow:0 4px 12px rgba(0,0,0,.08);z-index:5}
.vfloor b{font-size:16px;line-height:22px;font-weight:500;max-width:54px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vfloor button{width:36px;height:36px;border-radius:50%;border:0;background:var(--surface-2);display:flex;align-items:center;justify-content:center}
.vfloor button:disabled{opacity:.3}
.vzoom{position:absolute;right:12px;top:12px;background:#fff;border-radius:var(--r-full);padding:4px;display:flex;flex-direction:column;gap:4px;box-shadow:0 4px 12px rgba(0,0,0,.08);z-index:5}
.vzoom button{width:36px;height:36px;border-radius:50%;border:0;background:var(--surface-2);display:flex;align-items:center;justify-content:center}
.vsum{background:var(--dark);color:#fff;border-radius:var(--r-card) var(--r-card) 0 0;padding:12px 22px calc(18px + var(--safe-b));flex:none}
.vsum .grab{width:40px;height:4px;border-radius:2px;background:#3a3a3a;margin:0 auto 14px}
.vinfo{background:#dce8ff;color:#1d4fa8;border-radius:16px;padding:10px 14px;font-size:13px;line-height:18px;display:flex;gap:8px}
.vinfo svg{width:18px;height:18px}
.vcodes{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:10px 16px 0;flex:none}
.vcodes::-webkit-scrollbar{display:none}
.vcode{flex:none;min-width:110px;border:0;background:#fff;border-radius:16px;padding:10px 14px;text-align:left}
.vcode b{display:block;font-size:16px;line-height:22px;font-weight:500}
.vcode span{font-size:11px;line-height:14px;color:var(--ink-2)}
.vcode.on{background:var(--dark);color:#fff}.vcode.on span{color:#bdbdb7}
.vcode.over span{color:var(--danger)}
.placehint{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);background:rgba(17,17,17,.85);color:#fff;font-size:13px;padding:7px 14px;border-radius:999px;white-space:nowrap;pointer-events:none;max-width:92%;overflow:hidden;text-overflow:ellipsis;z-index:5}
.vfoot{padding:10px 16px calc(14px + var(--safe-b));flex:none;display:flex;gap:10px}
/* Lưới bản vẽ */
.dgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dcard{background:#fff;border-radius:var(--r-card);overflow:hidden;border:0;padding:0 0 14px;text-align:left;display:flex;flex-direction:column;gap:8px;position:relative}
.dcard .thumb{height:104px;width:100%}
.dcard .bd{padding:0 14px;display:flex;flex-direction:column;gap:6px}
.dcard .menu{position:absolute;top:8px;right:8px}
@media (min-width:700px){ .dgrid{grid-template-columns:repeat(3,1fr)} }
/* Bài đăng */
.post .phg{display:grid;gap:6px;margin-top:12px;border-radius:16px;overflow:hidden}
.post .phg.n1{grid-template-columns:1fr}
.post .phg.n2{grid-template-columns:1fr 1fr}
.post .phg.n3,.post .phg.n4{grid-template-columns:202fr 110fr;grid-template-rows:1fr 1fr}
.post .phg.n3 div:first-child,.post .phg.n4 div:first-child{grid-row:span 2}
.post .phg div{background:#dcdad3 center/cover no-repeat;min-height:87px;position:relative}
.post .phg.n1 div{aspect-ratio:16/10}.post .phg.n2 div{height:110px}
.post .phg.n3,.post .phg.n4{height:180px}
.post .phg .more{position:absolute;inset:0;background:rgba(80,80,74,.75);color:#fff;font-size:18px;font-weight:600;display:flex;align-items:center;justify-content:center}
.ptag{border:0;background:var(--surface-2);color:var(--ink);font-weight:500;font-size:11px;line-height:14px;border-radius:999px;padding:4px 10px;white-space:nowrap}
.tt{white-space:pre-wrap;margin:12px 0 0;font-size:16px;line-height:22px;word-wrap:break-word}
.share{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:12px;font-size:13px;color:var(--ink-2);border:0;background:none;width:100%}
.share svg{width:18px;height:18px}
.autoline{display:flex;align-items:center;gap:10px;background:#fff;border-radius:16px;padding:10px 8px 10px 14px;border:0;width:100%;text-align:left;font-size:13px;line-height:18px}
.autoline>svg{width:18px;height:18px}
/* Việc */
.taskc .top{display:flex;align-items:center;gap:8px}
.taskc .txt{font-size:16px;line-height:22px;font-weight:500;margin:10px 0}
.taskc .meta{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-2)}
.taskc .meta svg{width:18px;height:18px}
.ckbox{display:flex;align-items:center;gap:12px;background:var(--surface-2);border-radius:16px;padding:14px;border:0;width:100%;text-align:left}
.ckbox i{width:26px;height:26px;border-radius:8px;border:2px solid var(--ink);flex:none;display:flex;align-items:center;justify-content:center}
.ckbox.on i{background:var(--ink);color:var(--accent)}
.ckbox i svg{width:18px;height:18px}
.cmt{display:flex;gap:10px}
.cmt .bub{background:#fff;border-radius:18px;padding:12px 14px;flex:1;min-width:0}
.cbar{display:flex;gap:10px;align-items:center;padding:12px 16px calc(14px + var(--safe-b));background:var(--bg);flex:none}
.cbar textarea{flex:1;min-height:44px;max-height:120px;border:0;border-radius:22px;padding:11px 16px;background:#fff;resize:none;outline:none;font-size:16px}
.cbtn.send{background:var(--primary);color:#fff}
/* Giao việc */
.wave{display:flex;align-items:center;justify-content:center;gap:3px;height:32px}
.wave i{width:3px;border-radius:2px;background:var(--ink);height:8px}
.wave.on i{animation:wv 1s ease-in-out infinite}
.wave i:nth-child(3n){animation-delay:.15s}.wave i:nth-child(3n+1){animation-delay:.3s}.wave i:nth-child(4n){animation-delay:.45s}
@keyframes wv{50%{height:28px}}
.micbig{width:92px;height:92px;border-radius:50%;border:0;background:var(--accent);display:flex;align-items:center;justify-content:center;margin:0 auto;box-shadow:0 0 0 18px rgba(255,217,0,.22)}
.micbig svg{width:30px;height:30px}
.micbig.on{animation:pulse 1.4s infinite}
@keyframes pulse{50%{box-shadow:0 0 0 26px rgba(255,217,0,.12)}}
/* Lịch */
.cal .wd,.cal .days{display:grid;grid-template-columns:repeat(7,1fr);text-align:center}
.cal .wd span{font-size:11px;line-height:14px;font-weight:500;color:var(--ink-2)}
.cal .wk{position:relative;padding-bottom:4px}
.cal .day{border:0;background:none;height:30px;display:flex;align-items:center;justify-content:center;padding:0}
.cal .day span{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:500}
.cal .day.out span{color:var(--ink-3)}
.cal .day.today span{background:var(--dark);color:var(--accent)}
.cal .day.sel:not(.today) span{box-shadow:inset 0 0 0 1.5px var(--ink)}
.cal .bars{position:relative}
.cal .barx{position:absolute;height:18px;border-radius:6px;color:var(--ink);font-size:11px;font-weight:500;padding:0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:18px;border:0;text-align:left}
.itemrow{display:flex;gap:10px;align-items:stretch;border:0;background:none;width:100%;text-align:left;padding:4px 0}
.itemrow i{width:6px;border-radius:3px;flex:none}
.week7{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.week7 button{border:0;background:#fff;border-radius:16px;padding:8px 0;display:flex;flex-direction:column;align-items:center;font-size:11px;color:var(--ink-2);position:relative}
.week7 button b{font-size:16px;font-weight:500;color:var(--ink)}
.week7 button.on{background:var(--dark);color:#bdbdb7}.week7 button.on b{color:var(--accent)}
.week7 button.has::after{content:"";width:5px;height:5px;border-radius:50%;background:var(--accent-d);position:absolute;bottom:4px}
.sct{display:flex;gap:6px}
.sct button{border:0;background:var(--surface-2);border-radius:999px;height:36px;padding:0 14px;font-size:13px;font-weight:500}
.sct button.on{background:var(--accent)}
.colors{display:flex;gap:10px;flex-wrap:wrap}
.colors button{width:34px;height:34px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1.5px var(--line)}
.colors button.on{box-shadow:0 0 0 2.5px var(--ink)}
/* Tài liệu */
.fic{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;flex:none}
.fic.pdf{background:#fde8e8;color:#e5484d}.fic.xls{background:#ddf3e2;color:#2e9b57}.fic.doc{background:#dce8ff;color:#2f6fdb}.fic.img{background:#fdebd0;color:#e08a00}.fic.oth{background:var(--surface-2);color:var(--ink-2)}
.mapbox{height:120px;background:#e2e6dd;position:relative;overflow:hidden}
.mapbox::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 30%,#fff 30%,#fff 33%,transparent 33%,transparent 70%,#fff 70%,#fff 73%,transparent 73%),linear-gradient(0deg,transparent 45%,#fff 45%,#fff 50%,transparent 50%)}
.mapbox .mpin{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:36px;height:36px;border-radius:50%;background:var(--dark);color:var(--accent);display:flex;align-items:center;justify-content:center}
.mapbox .mpin svg{width:20px;height:20px}
/* Thông báo */
.nitem{display:flex;gap:12px;align-items:flex-start;background:#fff;border-radius:20px;padding:14px 16px;border:0;width:100%;text-align:left}
.nitem.read{background:var(--surface-2)}
.nitem .ic{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none}
.nitem .ic svg{width:20px;height:20px}
.nitem .dot{width:8px;height:8px;border-radius:50%;background:var(--accent-d);flex:none;margin-top:6px}
/* Stepper tạo dự án */
.stepper{background:#fff;border-radius:var(--r-card);padding:14px 20px 12px}
.stepper .line{display:flex;align-items:center}
.stepper .line i{width:12px;height:12px;border-radius:50%;background:#e1e1dc;flex:none}
.stepper .line i.done{background:var(--ink)}
.stepper .line i.cur{width:18px;height:18px;background:var(--accent);box-shadow:0 0 0 2px var(--ink)}
.stepper .line b{flex:1;height:2px;background:#e1e1dc}.stepper .line b.done{background:var(--accent)}
.stepper .lbl{display:flex;justify-content:space-between;margin-top:8px;font-size:11px;color:var(--ink-3);font-weight:500}
.stepper .lbl span.cur{color:var(--ink)}
.bigcheck{width:96px;height:96px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;margin:10px auto 0}
.bigcheck svg{width:44px;height:44px}
.drop{border:1.5px dashed #bdbdb7;border-radius:var(--r-card);padding:24px 16px;text-align:center;background:transparent;width:100%}
.drop .ic{width:52px;height:52px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;margin:0 auto 10px}
.drop .ic svg{width:24px;height:24px}
.warnc{background:var(--accent-l);border-radius:20px;padding:14px 16px;font-size:13px;line-height:18px}
.warnc ul{margin:6px 0 0;padding-left:18px}
.statt{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.statt>div{background:#fff;border-radius:20px;padding:12px 14px}
.statt b{display:block;font-size:26px;line-height:32px;font-weight:500;letter-spacing:-.5px}
/* Trang chi tiết */
.pagecard{background:#fff;border-radius:var(--r-card);padding:12px}
.pagecard.on{box-shadow:inset 0 0 0 1.5px var(--primary)}
.pagecard canvas{width:64px;height:auto;border-radius:8px;background:#fff;border:1px solid var(--line)}
.trashbtn{width:40px;height:40px;border-radius:12px;border:0;background:var(--danger-l);color:var(--danger);display:flex;align-items:center;justify-content:center}
.trashbtn svg{width:18px;height:18px}
/* Sheet */
.scrim{position:fixed;inset:0;background:rgba(17,17,17,.4);z-index:50;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}
.scrim.center{align-items:center}
.sheet{background:var(--bg);width:100%;max-width:640px;max-height:92%;border-radius:28px 28px 0 0;display:flex;flex-direction:column;animation:up .2s ease-out}
.scrim.center .sheet{border-radius:28px;max-height:86%}
.sheet.full{height:100%;max-height:100%;border-radius:0;padding-top:var(--safe-t)}
.sheet .grab{width:40px;height:4px;border-radius:2px;background:#c9c9c4;margin:10px auto 0;flex:none}
.sheet.full .grab{display:none}
.sheet .sh{display:flex;align-items:center;gap:10px;padding:12px 16px 8px 20px;flex:none}
.sheet .sh h3{margin:0;flex:1;min-width:0;font-size:22px;line-height:28px;font-weight:500;letter-spacing:-.4px}
.sheet .sh h3 small{display:block;font-size:13px;line-height:18px;color:var(--ink-2);font-weight:400;letter-spacing:0}
.sheet.full .sh{padding:10px 16px}
.sheet .sb{overflow-y:auto;padding:4px 16px 18px;-webkit-overflow-scrolling:touch;flex:1;display:flex;flex-direction:column;gap:12px}
.sheet .sf{padding:10px 16px calc(14px + var(--safe-b));display:flex;gap:10px;flex:none}
@keyframes up{from{transform:translateY(40px);opacity:.4}}
@keyframes fade{from{opacity:0}}
.menu-pop{position:fixed;z-index:60;background:#fff;border-radius:20px;padding:6px 0;box-shadow:0 12px 32px rgba(0,0,0,.16);min-width:220px}
.menu-pop button{display:flex;align-items:center;gap:12px;width:100%;border:0;background:none;padding:12px 16px;font-size:16px;line-height:22px;text-align:left}
.menu-pop button svg{width:20px;height:20px}
.menu-pop button.danger{color:var(--danger)}
.toast{position:fixed;left:50%;bottom:calc(96px + var(--safe-b));transform:translateX(-50%);background:var(--dark);color:#fff;border-radius:16px;padding:12px 16px;z-index:90;display:flex;gap:14px;align-items:center;font-size:14px;box-shadow:0 8px 24px rgba(0,0,0,.2);max-width:92%}
.toast button{border:0;background:none;color:var(--accent);font-weight:600;white-space:nowrap}
.lightbox{position:fixed;inset:0;background:#000;z-index:80;display:flex;flex-direction:column}
.lightbox .lv{flex:1;overflow:auto;display:flex;align-items:center;justify-content:center}
.lightbox .lv.colv{flex-direction:column;justify-content:flex-start;gap:8px;padding:8px}
.lightbox img{max-width:100%;max-height:100%}
.lightbox .lv.colv img{max-height:none}
.lightbox .lh{display:flex;justify-content:space-between;align-items:center;color:#fff;padding:calc(8px + var(--safe-t)) 8px 8px 16px;gap:8px}
.lightbox .cbtn{background:#222;color:#fff}
.spin{width:24px;height:24px;border:3px solid #e1e1dc;border-top-color:var(--ink);border-radius:50%;animation:sp .8s linear infinite;display:inline-block}
@keyframes sp{to{transform:rotate(360deg)}}
.empty{text-align:center;padding:30px 20px;color:var(--ink-2);font-size:15px}
.empty .btn{margin-top:14px}
body.kb #foot{display:none!important}
@media (min-width:700px){ main{padding:8px 24px 24px} }
