/* Lane R1 "Ở lại và quay lại" (docs/HUONG_NANG_CAP.md mục 4; SPEC 4.14): lịch 7 ngày ở tâm cảnh (#lich7, nhiemvu_ui.js), thẻ nhiệm vụ ở
   dải 290–380 (.cd-nv, hud.js pushCard), chip "2/3" cạnh tên trên sân (.ts-nv, yard.js), bảng nhiệm vụ hai mục (.pn.k-nhiemvu, panels.js).
   Ảnh giao diện gốc: art/ui/lich7/*, art/ui/nhiemvu/* (tools/ui/cat_r1.mjs). Chữ cần đọc ≥ 22 px, trong vùng 120–1320. */

/* ---------- thẻ dải 290–380 ---------- */
.cd-nv.xong { background: linear-gradient(90deg, rgba(66, 46, 10, .92), rgba(26, 16, 6, .84)); }
.cd-nv.all { background: linear-gradient(90deg, rgba(130, 84, 10, .95), rgba(48, 26, 6, .88)); border-top-color: #ffd257; }
.cd-nv.all .cd-l1 b { color: #fff3c4; text-shadow: 0 0 10px rgba(255, 210, 90, .9), var(--ol); }
.cd-nv.tuan { background: linear-gradient(90deg, rgba(92, 22, 30, .93), rgba(34, 8, 14, .86)); border-top-color: #ff9a7a; }
.cd-nv .cd-l2 .go { color: #ffe08a; }
.nv-os .tt-o { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-os .tt-o.on { background: linear-gradient(180deg, #fff3c4, #ffc94a); color: #3a2200; box-shadow: 0 0 10px rgba(255, 210, 90, .6); }

/* ---------- chip nhiệm vụ cạnh tên trên sân ---------- */
.ts-nv { display: none; flex: none; margin-left: 2px; padding: 0 6px 0 22px; border-radius: 9px; font-size: 20px; line-height: 24px; font-weight: 800; color: #3a2200;
  background: url(../art/ui/nhiemvu/ruong.png) 2px 50% / 18px 18px no-repeat, linear-gradient(180deg, #fff3c4, #ffc94a); box-shadow: 0 0 8px rgba(255, 200, 70, .6); }
.ts.nv .ts-nv { display: inline-block; }
.ts.nv-all .ts-nv { background: url(../art/ui/nhiemvu/ruong_mo.png) 2px 50% / 18px 18px no-repeat, linear-gradient(180deg, #ffe08a, #ff9f2e); animation: tsNv 1.6s ease-in-out 3; }
@keyframes tsNv { 50% { box-shadow: 0 0 16px rgba(255, 210, 90, .95); } }

/* ---------- lịch 7 ngày ở tâm cảnh (380–900): khung 40–1040 × 404–776 ---------- */
#lich7 { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 26; pointer-events: none; }
.l7 { position: absolute; left: 40px; top: 404px; width: 1000px; height: 372px; box-sizing: border-box; padding: 10px 16px 0; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(60, 10, 16, .55), rgba(24, 6, 10, .8)), url(../art/ui/lich7/nen.png) center / cover no-repeat, #2a0a10;
  border: 3px solid rgba(255, 214, 122, .9); box-shadow: 0 0 0 2px rgba(80, 30, 6, .9), 0 10px 40px rgba(0, 0, 0, .6), inset 0 0 40px rgba(255, 180, 80, .2);
  animation: l7In .45s cubic-bezier(.2, 1.3, .4, 1); transition: opacity .4s; will-change: transform, opacity; contain: layout style; }
.l7.out { opacity: 0; }
.l7.hold { opacity: 0; transition: opacity .2s; }
@keyframes l7In { from { opacity: 0; transform: translateY(24px) scale(.92); } to { opacity: 1; transform: none; } }
.l7-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; }
.l7-tit { flex: none; font-family: var(--f-title); font-size: 34px; line-height: 40px; font-weight: 800; letter-spacing: 2px; color: #ffe08a; text-shadow: 0 0 12px rgba(255, 190, 70, .7), var(--ol); }
.l7-nm { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 28px; line-height: 34px; font-weight: 700; color: #fff6e0; text-shadow: var(--ol); white-space: nowrap; overflow: hidden; }
.l7-nm b { color: #ffe08a; font-weight: 800; }
.l7-nm .av { flex: none; box-shadow: 0 0 0 3px #ffd257; }
.l7-row { display: flex; justify-content: center; gap: 8px; height: 230px; margin-top: 8px; }
.l7-c { position: relative; flex: none; width: 128px; height: 200px; margin-top: 14px; display: flex; flex-direction: column; align-items: center; }
.l7-c.big { width: 140px; height: 218px; margin-top: 4px; }
.l7-bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.l7-glow { position: absolute; left: -10px; top: -12px; width: calc(100% + 20px); height: calc(100% + 24px); animation: l7Blink .7s ease-in-out infinite alternate; }
@keyframes l7Blink { from { opacity: .35; } to { opacity: 1; } }
.l7-c.today { animation: l7Pop .7s ease-in-out infinite alternate; }
@keyframes l7Pop { to { transform: scale(1.05); } }
.l7-c.big:not(.got) { filter: drop-shadow(0 0 10px rgba(255, 200, 80, .8)); }
.l7-d { position: relative; margin-top: 12px; height: 30px; font-size: 22px; line-height: 30px; font-weight: 800; color: #4a2a08; text-shadow: none; }
.l7-c.big .l7-d { margin-top: 14px; }
.l7-i { position: relative; width: 70px; height: 70px; margin-top: 2px; object-fit: contain; }
.l7-c.big .l7-i { width: 92px; height: 88px; margin-top: 0; filter: drop-shadow(0 0 6px rgba(255, 230, 140, .9)); }
.l7-t { position: relative; margin-top: 4px; padding: 0 6px; font-size: 22px; line-height: 25px; font-weight: 800; color: #3a2000; text-align: center; }
.l7-c.big .l7-t { color: #8a1a00; }
.l7-c.got .l7-i, .l7-c.got .l7-t { opacity: .75; }
.l7-ok { position: absolute; right: 6px; top: 34px; width: 40px; height: 40px; border-radius: 50%; font-style: normal; font-size: 30px; line-height: 40px; font-weight: 900; text-align: center;
  color: #fff; background: radial-gradient(circle at 40% 35%, #8dffb8, #18a060); box-shadow: 0 0 10px rgba(60, 220, 130, .8); }
.l7-f { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; margin: 6px -16px 0; padding: 0 20px;
  background: url(../art/ui/lich7/vach.png) center / 100% 100% no-repeat; font-size: 28px; line-height: 56px; font-weight: 700; color: #fff6e0; text-shadow: var(--ol); white-space: nowrap; overflow: hidden; }
.l7-f b { color: #8dffb8; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
body.rv-full #lich7 { opacity: 0; visibility: hidden; }

/* ---------- bảng nhiệm vụ (#panel .pn.k-nhiemvu, panels.js): hai mục đổi ở nửa thời gian hiện (--pnd) ---------- */
.nv-tabs { display: flex; gap: 12px; margin-bottom: 10px; }
.nv-tab { flex: 1; height: 44px; border-radius: 22px; font-family: var(--f-title); font-size: 28px; line-height: 44px; font-weight: 800; letter-spacing: 1px; text-align: center; color: #b9aed8;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 2px rgba(244, 212, 127, .3); }
.nv-tab.t1 { animation: nvTab1 var(--pnd, 10s) steps(1, end) forwards; }
.nv-tab.t2 { animation: nvTab2 var(--pnd, 10s) steps(1, end) forwards; }
@keyframes nvTab1 { 0% { color: #3a2200; background: linear-gradient(180deg, #fff3c4, #ffc94a); } 50%, 100% { color: #b9aed8; background: rgba(255, 255, 255, .06); } }
@keyframes nvTab2 { 0% { color: #b9aed8; background: rgba(255, 255, 255, .06); } 50%, 100% { color: #3a2200; background: linear-gradient(180deg, #fff3c4, #ffc94a); } }
.nv-ps { display: grid; }
.nv-p { grid-area: 1 / 1; min-width: 0; }
.nv-p.p1 { animation: nvP1 var(--pnd, 10s) steps(1, end) forwards; }
.nv-p.p2 { animation: nvP2 var(--pnd, 10s) steps(1, end) forwards; }
@keyframes nvP1 { 0% { visibility: visible; } 50%, 100% { visibility: hidden; } }
@keyframes nvP2 { 0% { visibility: hidden; } 50%, 100% { visibility: visible; } }
.pn.hold .nv-tab, .pn.hold .nv-p { animation-play-state: paused; }
.nv-r { display: flex; align-items: center; gap: 14px; height: 80px; margin-bottom: 6px; padding: 0 14px 0 8px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(70, 58, 130, .32), rgba(18, 14, 40, .5)); box-shadow: inset 0 0 0 1px rgba(244, 212, 127, .3); }
.nv-r.xong { background: linear-gradient(180deg, rgba(120, 84, 20, .45), rgba(50, 30, 8, .55)); box-shadow: inset 0 0 0 2px rgba(255, 210, 90, .7); }
.nv-ic { flex: none; width: 66px; height: 66px; object-fit: contain; }
.nv-m { flex: 1; min-width: 0; }
.nv-t { font-size: 32px; line-height: 38px; font-weight: 800; color: #fff6e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: var(--ol); }
.nv-bar { position: relative; height: 26px; margin-top: 3px; border-radius: 13px; overflow: hidden; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 2px rgba(244, 212, 127, .35); }
.nv-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 15px; background: linear-gradient(180deg, #b4ffd8, #3ad692); }
.nv-r.xong .nv-bar i { background: linear-gradient(180deg, #fff3c4, #ffc94a); }
.nv-bar span { position: relative; display: block; text-align: center; font-size: 24px; line-height: 26px; font-weight: 800; color: #fff; text-shadow: var(--ol); }
.nv-rw { flex: none; width: 260px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.nv-rw span { font-size: 28px; line-height: 34px; font-weight: 800; color: #ffe08a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; text-shadow: var(--ol); }
.nv-ok { font-size: 24px; line-height: 30px; font-weight: 900; color: #8dffb8; text-shadow: var(--ol); }
.nv-f { display: flex; align-items: center; gap: 14px; height: 62px; padding: 0 14px; border-radius: 14px; font-size: 30px; line-height: 36px; font-weight: 800; color: #fff6e0;
  background: linear-gradient(90deg, rgba(110, 30, 20, .7), rgba(40, 10, 8, .6)); box-shadow: inset 0 0 0 2px rgba(255, 160, 110, .6); text-shadow: var(--ol); white-space: nowrap; overflow: hidden; }
.nv-f.on { background: linear-gradient(90deg, rgba(130, 90, 10, .8), rgba(50, 30, 6, .7)); box-shadow: inset 0 0 0 2px #ffd257, 0 0 14px rgba(255, 200, 70, .5); }
.nv-f span { overflow: hidden; text-overflow: ellipsis; }
.nv-fi { flex: none; width: 54px; height: 54px; object-fit: contain; }
.nv-l7 { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.nv-l7c { position: relative; flex: 1; height: 200px; display: flex; flex-direction: column; align-items: center; background: center / 100% 100% no-repeat; }
.nv-l7c b { margin-top: 12px; font-size: 22px; line-height: 28px; font-weight: 800; color: #4a2a08; }
.nv-l7c span { margin-top: auto; margin-bottom: 18px; padding: 0 4px; font-size: 22px; line-height: 25px; font-weight: 800; color: #3a2000; text-align: center; }
.nv-l7i { width: 64px; height: 64px; object-fit: contain; margin-top: 4px; }
.nv-l7c.today { filter: drop-shadow(0 0 10px rgba(255, 220, 110, .9)); }

/* ---------- bảng toàn bộ lệnh (#panel .pn.k-lenh, panels.js, 29/11): hai mục như bảng nhiệm vụ ---------- */
.lh-p { min-width: 0; }
.lh-g { margin: 6px 0 0; font-family: var(--f-title); font-size: 24px; line-height: 30px; font-weight: 800; letter-spacing: 1px; color: #ffd98a; text-transform: uppercase; text-shadow: var(--ol); }
.lh-r { display: flex; align-items: baseline; gap: 14px; font-size: 27px; line-height: 37px; border-bottom: 1px solid rgba(244, 212, 127, .14); }
.lh-r b { flex: none; min-width: 236px; color: #fff3c4; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-r span { color: #e6dcff; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-lenh .pn-msg.sub { margin-top: 10px; font-size: 24px; color: #b9aed8; }
body.bc-v6 .pn.k-lenh { max-height: 760px; }

/* ---------- chip "thả tim" cho người mới im lặng (yard.js, 30/11): nhấp nháy nhẹ, cùng chỗ với chip nhiệm vụ ---------- */
.ts-hint { display: none; flex: none; margin-left: 4px; padding: 0 8px; border-radius: 10px; font-size: 20px; line-height: 26px; font-weight: 800; color: #3a0a14;
  background: linear-gradient(180deg, #ffd6e0, #ff5f8a); box-shadow: 0 0 10px rgba(255, 95, 138, .7); white-space: nowrap; animation: tsHint 1.1s ease-in-out infinite alternate; }
.ts.hint .ts-hint { display: inline-block; }
@keyframes tsHint { from { transform: scale(1); } to { transform: scale(1.12); } }
