/* v1.7.61 – BS134 Lịch (Gemini Canvas): lưới tuần máy tính, danh sách ngày điện thoại, trạng thái có biểu tượng + chữ + viền (không chỉ màu) */
.lc-pg { display: grid; gap: 14px; }
.lc-load { padding: 40px; text-align: center; color: var(--muted); }
.lc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.lc-h h1 { margin: 0; font-size: 22px; } .lc-h p { margin: 2px 0 0; }
.lc-nav { display: flex; gap: 6px; margin-left: auto; }
.lc-ib { min-width: 44px; min-height: 44px; padding: 0; display: inline-grid; place-items: center; }
.lc-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.lc-acts .btn, .lc-nav .btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.lc-acts .lc-sw { flex: 0 0 auto; width: auto; }
.lc-sw { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 14px; }
.lc-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lc-sw span { width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.lc-sw span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.lc-sw input:checked + span { background: var(--accent); } .lc-sw input:checked + span::after { transform: translateX(16px); }
.lc-sw input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.lc-xem { display: flex; align-items: center; gap: 8px; font-size: 14px; } .lc-xem select { min-height: 44px; }
/* dải đang diễn ra trong trang */
.lc-live { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #047857, #0f766e 55%, #14b8a6); box-shadow: 0 10px 24px -12px rgba(4,120,87,.6); }
.lc-live small { opacity: .85; margin-left: 6px; }
.lc-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.lc-livb { margin-left: auto; background: #fff; color: #065f46; border: 0; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.lc-pulse { width: 10px; height: 10px; border-radius: 50%; background: #34d399; display: inline-block; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: lcPulse 1.8s ease-out infinite; }
@keyframes lcPulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.7); } 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.lc-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.lc-leg span { display: inline-flex; align-items: center; gap: 5px; } .lc-leg .ic { width: 15px; height: 15px; }
.lg-dang { color: #047857; } .lg-tt { color: #0f766e; } .lg-kt { color: #b45309; } .lg-su { color: #6d28d9; } .lg-bt { color: #475569; }
/* dải sự kiện nhiều ngày */
.lc-band { display: flex; flex-wrap: wrap; gap: 8px; }
.lc-bn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 44px; padding: 8px 14px; border-radius: 14px; border: 1px solid #ddd6fe; background: #f5f3ff; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.lc-bn .ic { color: #6d28d9; width: 18px; height: 18px; } .lc-bn small { color: var(--muted); }
/* nhãn trạng thái: biểu tượng + chữ + kiểu viền */
.lc-st { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1.5px solid currentColor; line-height: 1.5; white-space: nowrap; }
.lc-st .ic { width: 13px; height: 13px; }
.st-sap { color: #475569; border-style: dashed; } .st-mo, .st-hoc { color: #1d4ed8; } .st-dang { color: #047857; background: #ecfdf5; }
.st-cho { color: #b45309; border-style: dashed; } .st-dong { color: #64748b; } .st-diem { color: #6d28d9; } .st-xong { color: #64748b; } .st-huy { color: #b91c1c; } .st-nop { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
/* lưới tuần */
.lc-wk { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.lc-grid { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 980px; }
.lc-grid th, .lc-grid td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; padding: 6px; }
.lc-grid thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; font-weight: 600; font-size: 14px; text-align: center; padding: 10px 6px; }
.lc-grid thead th span { display: block; color: var(--muted); font-weight: 500; } .lc-grid thead th b { font-size: 16px; }
.lc-grid thead th em { display: block; font-style: normal; font-size: 12px; color: #fff; background: var(--accent); border-radius: 999px; padding: 1px 8px; margin: 4px auto 0; width: max-content; }
.lc-grid th.hom, .lc-grid td.hom { background: color-mix(in srgb, var(--accent-soft) 35%, transparent); }
.lc-g0 { width: 92px; text-align: left !important; font-size: 13px; } .lc-g0 b { display: block; } .lc-g0 small { color: var(--muted); }
.lc-gr th { background: var(--soft); text-align: left; font-size: 13px; padding: 6px 10px; color: var(--ink); } .lc-gr small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.lc-grid td { height: 58px; } .lc-trong td { height: 28px; }
.lc-ev { display: grid; gap: 3px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 7px 8px; margin-bottom: 5px; cursor: pointer; min-height: 44px; transition: transform .15s, box-shadow .15s; }
.lc-ev:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); } .lc-ev:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lc-ev b { font-size: 14px; line-height: 1.3; } .lc-ev small { color: var(--muted); font-size: 12.5px; } .lc-et { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; } .lc-et .ic { width: 13px; height: 13px; }
.ev-tkb { border-left-color: #94a3b8; background: var(--soft); } .ev-tt { border-left-color: #0f766e; } .ev-kt { border-left-color: #d97706; } .ev-su { border-left-color: #7c3aed; } .ev-bt { border-left-color: #64748b; }
.lc-ev.moc { border-style: dashed; border-left-style: solid; padding: 5px 8px; }
.lc-ev.st-dang { border: 2px solid #059669; border-left-width: 4px; background: #ecfdf5; color: var(--ink); }
.lc-ev.st-huy { opacity: .7; } .lc-ev.st-huy b { text-decoration: line-through; }
.lc-ev.st-xong, .lc-ev.st-dong { opacity: .78; }
/* danh sách ngày (điện thoại) */
.lc-ag { display: none; }
.lc-day { display: grid; gap: 8px; } .lc-day.trong { gap: 2px; }
.lc-dh { position: sticky; top: 56px; z-index: 2; margin: 6px 0 0; padding: 8px 4px; font-size: 15px; background: var(--bg); } .lc-dh.hom { color: var(--accent); }
.lc-day.trong .lc-dh { position: static; padding-bottom: 0; } .lc-day.trong p { margin: 0 4px 6px; }
.lc-now { position: relative; height: 2px; background: #f97366; margin: 6px 0; } .lc-now span { position: absolute; left: 0; top: -11px; background: #f97366; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.lc-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 28px 16px; } .lc-empty > .ic { width: 34px; height: 34px; color: var(--accent); }
@media (max-width: 767px) {
  .lc-wk { display: none; } .lc-ag { display: grid; gap: 4px; }
  .lc-top { padding: 12px; } .lc-nav { margin-left: 0; width: 100%; } .lc-nav #lchom { flex: 1; }
  .lc-acts .btn, .lc-sw { flex: 1 1 calc(50% - 8px); justify-content: center; } .lc-acts #lcadd { flex-basis: 100%; }
  .lc-livb { margin-left: 0; width: 100%; justify-content: center; }
  .lc-ev { padding: 10px 12px; } .lc-ev b { font-size: 15px; }
}
/* chi tiết: hộp giữa màn (máy tính), tấm trượt từ dưới (điện thoại) */
.lc-dt h2 { margin: 10px 0 4px; } .lc-dtb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lc-ty { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--soft); } .lc-ty .ic { width: 14px; height: 14px; }
.lc-ty.ev-tt { color: #0f766e; background: #ccfbf1; } .lc-ty.ev-kt { color: #b45309; background: #fef3c7; } .lc-ty.ev-su { color: #6d28d9; background: #ede9fe; }
.lc-gio { display: flex; align-items: center; gap: 6px; font-weight: 600; } .lc-gio .ic { width: 18px; height: 18px; color: var(--accent); }
.lc-dta { display: grid; gap: 8px; margin-top: 14px; } .lc-big { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
@media (max-width: 767px) { .modal.lc-sheet { align-items: flex-end; } .modal.lc-sheet > .card { width: 100%; max-width: none; border-radius: 20px 20px 0 0; margin: 0; animation: lcUp .25s ease-out; } }
@keyframes lcUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
/* biểu mẫu */
.lc-form, .lc-tkb { display: grid; gap: 12px; } .lc-form h2, .lc-tkb h2 { margin: 0; }
.lc-form label, .lc-tkb label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.lc-form input, .lc-form select, .lc-tkb select, .lc-tkb input { min-height: 44px; font-size: 16px; }
.lc-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } @media (max-width: 560px) { .lc-2 { grid-template-columns: 1fr; } }
.lc-lb { font-size: 14px; font-weight: 600; } .lc-chips { display: flex; gap: 8px; }
.lc-chip { min-height: 44px; flex: 1; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; font-weight: 600; cursor: pointer; }
.lc-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.modal.lc-wide > .card { max-width: 880px; width: calc(100% - 24px); }
.lc-cp { display: flex; gap: 6px; } .lc-cp select { flex: 1; } .lc-cp .btn { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; }
.lc-tkm { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.lc-tkm table { width: 100%; border-collapse: collapse; min-width: 560px; } .lc-tkm th, .lc-tkm td { border-bottom: 1px solid var(--line); padding: 4px; text-align: center; font-size: 13px; }
.lc-tkm th:first-child { text-align: left; padding-left: 10px; } .lc-tkm th small { display: block; color: var(--muted); font-weight: 400; }
.lc-cb { display: inline-grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.lc-cb input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lc-cb span { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #cbd5e1; display: grid; place-items: center; transition: all .15s; }
.lc-cb input:checked + span { background: var(--accent); border-color: var(--accent); }
.lc-cb input:checked + span::after { content: ''; width: 7px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.lc-cb input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.lc-h3 { margin: 6px 0 0; font-size: 15px; } .lc-toi { display: grid; gap: 8px; }
.lc-tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .lc-tr select { min-width: 110px; }
/* thanh trên: biểu tượng lịch + số + chấm đang học */
.lc-tb { position: relative; display: inline-grid; place-items: center; color: inherit; }
.lc-bdg { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--surface); }
.lc-livedot { position: absolute; bottom: 4px; right: 4px; width: 10px; height: 10px; border-radius: 50%; background: #10b981; border: 2px solid var(--surface); animation: lcPulse 1.8s ease-out infinite; }
#snav .lc-nb { margin-left: auto; }
/* dải nhắc dính dưới thanh trên (không tự tắt) */
.lc-ban { position: sticky; top: 60px; z-index: 25; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px;
  background: var(--surface); color: var(--ink); border: 1px solid #99f6e4; border-left: 5px solid var(--accent); border-radius: 14px; box-shadow: var(--shadow-md); }
.lc-ban.song { border-color: #6ee7b7; border-left-color: #059669; background: #ecfdf5; }
.lc-bi { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none; } .lc-ban.song .lc-bi { background: #d1fae5; }
.lc-bt { flex: 1; font-size: 14px; line-height: 1.4; } .lc-banb { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.lc-ban.song .lc-banb { background: #059669; color: #fff; border-color: #059669; }
.lc-x { min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 10px; } .lc-x:hover { background: var(--soft); }
/* thông báo nhỏ 6 giây + thẻ bắt kịp */
.lc-toast, .lc-bk { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 70; width: min(520px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: #0f172a; color: #fff; box-shadow: var(--shadow-lg); cursor: pointer; }
.lc-toast small, .lc-bk small { display: block; opacity: .8; font-size: 13px; } .lc-toast > span:nth-child(2), .lc-bk > span:nth-child(2) { flex: 1; font-size: 14px; }
.lc-ti { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(20,184,166,.22); color: #5eead4; flex: none; }
.lc-toast .lc-x, .lc-bk .lc-x { color: #cbd5e1; } .lc-toast .btn, .lc-bk .btn { min-height: 40px; }
.lc-bk { bottom: 24px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); } .lc-bk .lc-ti { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 767px) { .lc-toast, .lc-bk { bottom: 76px; } .lc-ban { top: 56px; } }
/* hộp hết giờ */
.lc-het { display: grid; gap: 8px; text-align: center; } .lc-het h2 { margin: 0; } .lc-hi { margin: 0 auto; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fef3c7; color: #b45309; } .lc-hi .ic { width: 26px; height: 26px; }
.lc-het .acts { justify-content: center; } .lc-het .btn { min-height: 48px; min-width: 140px; }
/* dải Tiết tiếp theo trên Hôm nay / Tổng quan */
.lc-next { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 14px; background: linear-gradient(90deg, var(--accent-soft), var(--surface)); border: 1px solid #99f6e4; color: var(--ink); text-decoration: none; min-height: 44px; }
.lc-next > .ic { color: var(--accent); flex: none; } .lc-next > span { flex: 1; font-size: 14px; } .lc-next em { font-style: normal; color: #c2410c; font-weight: 700; } .lc-next small { color: var(--muted); }
.lc-nx { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 14px; white-space: nowrap; } .lc-nx .ic { width: 16px; height: 16px; }
@media (max-width: 560px) { .lc-next small { display: block; } .lc-nx { display: none; } }
@media (prefers-reduced-motion: reduce) { .lc-pulse, .lc-livedot { animation: none; } .lc-ev { transition: none; } .modal.lc-sheet > .card { animation: none; } }
[data-theme="dark"] .ev-tkb { background: rgba(255,255,255,.04); } [data-theme="dark"] .lc-ev.st-dang, [data-theme="dark"] .lc-ban.song { background: rgba(16,185,129,.12); }

/* sự kiện cấp trường (anh Huu 27/11) */
.lc-tr { font-style: normal; font-size: 12px; font-weight: 700; color: #0f766e; background: #ccfbf1; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.lc-note { display: flex; gap: 8px; align-items: flex-start; background: #f1f5f9; border-radius: 12px; padding: 12px; margin: 8px 0 0; font-size: 14px; color: #334155; }
.lc-note .ic { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }

/* ===== v1.7.64 – Lịch đợt 2 (Gemini Canvas "LoopiClass Teacher Calendar"): lưới GIỜ 06–22, kéo chọn tạo lịch, lặp kiểu Teams ===== */
:root { --lk-tiet: #0f766e; --lk-tiet-bg: #f0fdfa; --lk-tiet-b: #ccfbf1; --lk-tt: #1d4ed8; --lk-tt-bg: #eff6ff; --lk-tt-b: #dbeafe; --lk-sk: #b45309; --lk-sk-bg: #fffbeb; --lk-sk-b: #fef3c7;
  --lk-nhac: #475569; --lk-nhac-bg: #f8fafc; --lk-nhac-b: #e2e8f0; --lk-kt: #be123c; --lk-kt-bg: #fff1f2; --lk-kt-b: #ffe4e6; --lk-su: #6d28d9; --lk-su-bg: #f5f3ff; --lk-su-b: #ede9fe;
  --lk-amber: #d97706; --lk-line: var(--line, #e2e8f0); }
.lk { display: grid; gap: 12px; }
:root[data-theme="dark"] { --lk-tiet-bg: rgba(20,184,166,.12); --lk-tiet-b: rgba(20,184,166,.22); --lk-tiet: #5eead4; --lk-tt-bg: rgba(59,130,246,.13); --lk-tt-b: rgba(59,130,246,.25); --lk-tt: #93c5fd;
  --lk-sk-bg: rgba(245,158,11,.12); --lk-sk-b: rgba(245,158,11,.24); --lk-sk: #fcd34d; --lk-nhac-bg: rgba(148,163,184,.1); --lk-nhac-b: rgba(148,163,184,.22); --lk-nhac: #cbd5e1;
  --lk-kt-bg: rgba(244,63,94,.12); --lk-kt-b: rgba(244,63,94,.24); --lk-kt: #fda4af; --lk-su-bg: rgba(139,92,246,.13); --lk-su-b: rgba(139,92,246,.25); --lk-su: #c4b5fd; }
.lk .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lk .ic { width: 18px; height: 18px; flex: none; }
.lk-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; background: var(--surface); border: 1px solid var(--lk-line); border-radius: 16px; padding: 12px 16px; }
.lk-top h1 { margin: 0 4px 0 0; font-size: 24px; letter-spacing: -.01em; }
.lk-top .btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.lk-nav { display: inline-flex; border: 1px solid var(--lk-line); border-radius: 12px; overflow: hidden; }
.lk-nav .lk-ib { border: 0; border-radius: 0; } .lk-nav .lk-ib + .lk-ib { border-left: 1px solid var(--lk-line); }
.lk-ib { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--lk-line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.lk-ib:hover { background: var(--soft, #f1f5f9); } .lk-ib.sm { min-width: 36px; min-height: 36px; border: 0; }
.lk-rg { font-size: 18px; min-width: 150px; } .lk-sp { flex: 1; }
.lk-seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--soft, #f1f5f9); border: 1px solid var(--lk-line); }
.lk-seg button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.lk-seg button[aria-selected="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.lk-sel select { min-height: 44px; border-radius: 12px; font-weight: 500; max-width: 220px; }
.lk-cta { background: var(--lk-amber) !important; border-color: var(--lk-amber) !important; color: #fff !important; padding: 0 18px; box-shadow: 0 6px 14px -8px rgba(217,119,6,.8); }
.lk-cta:hover { background: #b45309 !important; }
.lk-wrap { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
@media (min-width: 1600px) { .lk-wrap { grid-template-columns: 272px minmax(0, 1fr); } }
.lk-side { display: none; position: sticky; top: 76px; flex-direction: column; gap: 16px; padding: 16px; border: 1px solid var(--lk-line); border-radius: 16px; background: var(--surface); }
@media (min-width: 1600px) { .lk-side { display: flex; } .lk-lb2 { display: none !important; } }
.lk-mt { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .lk-mt span { display: inline-flex; }
.lk-mw, .lk-md { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.lk-mw span { font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 0 6px; }
.lk-md button { height: 32px; margin: 1px auto; width: 32px; border: 0; border-radius: 9px; background: none; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.lk-md button:hover { background: var(--soft, #f1f5f9); } .lk-md .ngoai { color: var(--muted); opacity: .55; }
.lk-md .trong-k { background: var(--lk-tiet-bg); color: var(--lk-tiet); font-weight: 600; } .lk-md .hom { background: var(--accent); color: #fff; font-weight: 700; }
.lk-loc h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lk-lt { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 6px 10px; margin-bottom: 6px; border-radius: 12px; border: 1px solid var(--lk-line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.lk-lt > span:nth-child(2) { flex: 1; } .lk-lt i { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: #fff; background: var(--c); } .lk-lt i .ic { width: 14px; height: 14px; }
.lk-lt.tat { opacity: .6; background: var(--soft, #f1f5f9); } .lk-lt.tat i { background: none; border: 1.5px solid var(--lk-line); }
.lk-li { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--bgc); color: var(--c); flex: none; } .lk-li .ic { width: 16px; height: 16px; }
.k-tiet, .k-tkb { --c: var(--lk-tiet); --bgc: var(--lk-tiet-b); --bg: var(--lk-tiet-bg); } .k-tt { --c: var(--lk-tt); --bgc: var(--lk-tt-b); --bg: var(--lk-tt-bg); }
.k-sk { --c: var(--lk-sk); --bgc: var(--lk-sk-b); --bg: var(--lk-sk-bg); } .k-nhac { --c: var(--lk-nhac); --bgc: var(--lk-nhac-b); --bg: var(--lk-nhac-bg); }
.k-kt, .k-goc, .k-bt { --c: var(--lk-kt); --bgc: var(--lk-kt-b); --bg: var(--lk-kt-bg); } .k-su { --c: var(--lk-su); --bgc: var(--lk-su-b); --bg: var(--lk-su-bg); }
.lk-gc, .lk-meo { margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; display: flex; gap: 8px; }
.lk-gc { background: var(--lk-kt-bg); color: var(--ink); border: 1px solid var(--lk-kt-b); } .lk-gc .ic { color: var(--lk-kt); width: 16px; height: 16px; margin-top: 1px; }
.lk-meo { display: block; background: var(--lk-tiet-bg); border: 1px solid var(--lk-tiet-b); color: var(--ink); }
/* lưới giờ – KHÔNG hộp cuộn riêng: cả lưới nằm trong trang, đầu ngày dính khi cuộn */
.lk-main { min-width: 0; border: 1px solid var(--lk-line); border-radius: 16px; background: var(--surface); }
.lk-grid { --g: 64px; }
.lk-dh { display: grid; grid-template-columns: var(--g) repeat(var(--n), minmax(0, 1fr)); position: sticky; top: 64px; z-index: 6; background: var(--surface); border-bottom: 1px solid var(--lk-line); border-radius: 16px 16px 0 0; box-shadow: 0 6px 10px -10px rgba(15,23,42,.4); }
.lk-gmt { font-size: 12px; color: var(--muted); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; border-right: 1px solid var(--lk-line); }
.lk-dc { padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; border-left: 1px solid var(--lk-line); } .lk-dc:nth-child(2) { border-left: 0; }
.lk-dc.hom { background: var(--lk-tiet-bg); }
.lk-dt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .lk-dt span { font-size: 14px; font-weight: 600; color: var(--muted); } .lk-dt b { font-size: 15px; }
.lk-dc.hom .lk-dt b { background: var(--accent); color: #fff; padding: 1px 8px; border-radius: 999px; } .lk-dt em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--lk-tiet-b); padding: 1px 8px; border-radius: 999px; }
.lk-pills { display: grid; gap: 4px; }
.lk-pill { display: flex; align-items: center; gap: 6px; min-height: 32px; width: 100%; padding: 4px 8px; border-radius: 9px; border: 1px solid var(--lk-kt-b); background: var(--lk-kt-bg); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; min-width: 0; }
.lk-pill .ic { width: 15px; height: 15px; color: var(--lk-kt); } .lk-pill span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-pill em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--lk-kt); flex: none; }
.lk-pill.su { border-color: var(--lk-su-b); background: var(--lk-su-bg); } .lk-pill.su .ic, .lk-pill.su em { color: var(--lk-su); }
.lk-more { min-height: 28px; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; padding: 2px 6px; }
.lk-body { display: grid; grid-template-columns: var(--g) repeat(var(--n), minmax(0, 1fr)); position: relative;
  background-image: linear-gradient(to bottom, var(--lk-line) 1px, transparent 1px), linear-gradient(to bottom, transparent calc(50% - .5px), color-mix(in srgb, var(--lk-line) 55%, transparent) calc(50% - .5px), color-mix(in srgb, var(--lk-line) 55%, transparent) calc(50% + .5px), transparent calc(50% + .5px));
  background-size: 100% 48px; background-position: 0 0; }
.lk-gut { border-right: 1px solid var(--lk-line); background: var(--surface); }
.lk-h { height: 48px; position: relative; } .lk-h span { position: absolute; right: 10px; top: -9px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; background: var(--surface); padding: 0 2px; }
.lk-col { position: relative; border-left: 1px solid var(--lk-line); cursor: crosshair; touch-action: pan-y; } .lk-col:nth-child(2) { border-left: 0; }
.lk-col.hom { background: color-mix(in srgb, var(--lk-tiet-bg) 55%, transparent); }
.lk-ev { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 5px 8px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--c) 18%, transparent); border-left: 4px solid var(--c);
  background: var(--bg); color: var(--ink); font: inherit; text-align: left; overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgba(15,23,42,.06); transition: box-shadow .15s; }
.lk-ev:hover, .lk-ev:focus-visible { box-shadow: 0 6px 14px -6px rgba(15,23,42,.3); z-index: 3; }
.lk-ev.gon { flex-direction: row; align-items: center; gap: 6px; padding: 2px 6px; }
.lk-et { display: flex; align-items: flex-start; gap: 4px; min-width: 0; } .lk-et b { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; color: var(--c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-et i { color: var(--c); opacity: .85; } .lk-et i .ic { width: 14px; height: 14px; }
.lk-ev small, .lk-ac small { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-variant-numeric: tabular-nums; }
.lk-ev.gon small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-ev em, .lk-ac em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--c); background: var(--bgc); padding: 0 6px; border-radius: 6px; }
.lk-ev.st-xong, .lk-ac.st-xong { opacity: .62; }
.lk-live { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #047857; }
.lk-vao { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; padding: 3px 9px; border-radius: 8px; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; } .lk-vao .ic { width: 14px; height: 14px; }
.lk-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--lk-amber); z-index: 4; pointer-events: none; } .lk-now i { position: absolute; left: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--lk-amber); box-shadow: 0 0 0 2px var(--surface); }
.lk-sel-b { position: absolute; left: 3px; right: 3px; z-index: 5; border-radius: 10px; background: color-mix(in srgb, var(--accent) 18%, transparent); border: 2px dashed var(--accent); color: var(--accent); font-size: 13px; font-weight: 700; padding: 4px 8px; pointer-events: none; }
.lk-trong { position: absolute; left: 0; right: 0; top: 120px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 16px; color: var(--muted); pointer-events: none; }
.lk-trong .ic { width: 40px; height: 40px; padding: 9px; border-radius: 14px; background: var(--soft, #f1f5f9); } .lk-trong b { color: var(--ink); font-size: 16px; }
.lk-trong.dt { position: static; padding: 18px 12px 6px; }
.lk-rong { margin: 0; padding: 12px 16px; border-top: 1px solid var(--lk-line); color: var(--muted); font-size: 14px; }
/* tháng */
.lk-mh, .lk-mg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); } .lk-mh span { padding: 10px; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--lk-line); }
.lk-mc { min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--lk-line); border-bottom: 1px solid var(--lk-line); cursor: pointer; min-width: 0; }
.lk-mc:nth-child(7n) { border-right: 0; } .lk-mc.ngoai { background: var(--soft, #f8fafc); } .lk-mc.ngoai .lk-mn { color: var(--muted); }
.lk-mn { align-self: flex-start; min-width: 32px; min-height: 32px; border: 0; border-radius: 9px; background: none; color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.lk-mc.hom .lk-mn { background: var(--accent); color: #fff; }
.lk-mi { display: flex; align-items: center; gap: 5px; min-height: 28px; padding: 2px 6px; border: 0; border-radius: 7px; background: var(--bg); color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-mi i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; } .lk-mi span { color: var(--muted); font-variant-numeric: tabular-nums; }
.lk-mc .lk-pill { min-height: 28px; padding: 2px 6px; }
/* điện thoại */
.lk.dt { gap: 10px; padding-bottom: 84px; }
.lk.dt .lk-top { flex-wrap: nowrap; padding: 10px 12px; gap: 8px; } .lk-tt { flex: 1; min-width: 0; }
.lk-tt h1 { font-size: 22px; display: flex; align-items: center; gap: 8px; } .lk-tt h1 em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--lk-tiet-b); padding: 2px 8px; border-radius: 999px; }
.lk-tt p { margin: 2px 0 0; color: var(--muted); font-size: 14px; } .lk-lb, .lk-hn { flex: none; }
.lk-strip { display: grid; grid-template-columns: 36px repeat(7, minmax(0, 1fr)) 36px; gap: 2px; align-items: center; background: var(--surface); border: 1px solid var(--lk-line); border-radius: 16px; padding: 6px 4px; }
.lk-strip .lk-ib { min-width: 36px; border: 0; }
.lk-sd { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.lk-sd span { font-size: 12px; color: var(--muted); } .lk-sd b { font-size: 17px; } .lk-sd i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.lk-sd.hom b { color: var(--accent); } .lk-sd.on { background: var(--accent); } .lk-sd.on span, .lk-sd.on b { color: #fff; } .lk-sd.on i { background: #fbbf24; }
.lk-dpills { display: grid; gap: 6px; } .lk-dpills .lk-pill { min-height: 44px; padding: 8px 12px; border-radius: 12px; }
.lk-tl { background: var(--surface); border: 1px solid var(--lk-line); border-radius: 16px; overflow: hidden; }
.lk-tr, .lk-ar { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: stretch; width: 100%; border: 0; border-bottom: 1px solid var(--lk-line); background: none; color: var(--ink); font: inherit; text-align: left; padding: 0; }
.lk-tr:last-child, .lk-ar:last-child { border-bottom: 0; } button.lk-tr { cursor: pointer; } button.lk-tr:active { background: var(--soft, #f1f5f9); }
.lk-tg { padding: 14px 0 0 12px; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; border-right: 1px solid var(--lk-line); }
.lk-tx { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 8px 12px; color: var(--muted); font-size: 14px; } .lk-tx .ic { width: 15px; height: 15px; }
.lk-ac { margin: 6px 8px; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 18%, transparent); border-left: 4px solid var(--c); background: var(--bg); color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-height: 56px; }
.lk-ac .lk-et b { white-space: normal; font-size: 15px; }
.lk-nowr { display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--lk-amber); background: color-mix(in srgb, var(--lk-amber) 8%, transparent); border-bottom: 1px solid var(--lk-line); }
.lk-nowr i { width: 10px; height: 10px; border-radius: 50%; background: var(--lk-amber); }
.lk-fab { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 30; width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--lk-amber); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 22px -8px rgba(217,119,6,.9); cursor: pointer; }
.lk-fab .ic { width: 26px; height: 26px; }
.lk-sheet h2 { margin-top: 0; } .lk-sheet .lk-sel { display: block; margin-bottom: 12px; } .lk-sheet .lk-sel select { width: 100%; max-width: none; } .lk-sheet .lk-gc { margin-bottom: 8px; }
/* bảng tạo / sửa */
.modal.lk-modal .lk-ib, .modal .lk-sheet .lk-ib { border: 0; }
.modal.lk-modal > .card { max-width: 480px; width: 100%; padding: 0; display: flex; flex-direction: column; max-height: 92vh; overflow: hidden; }
.lk-form { display: flex; flex-direction: column; min-height: 0; max-height: 92vh; }
.lk-fh { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px 20px; border-bottom: 1px solid var(--lk-line); } .lk-fh h2 { margin: 0; font-size: 20px; } .lk-fh .lk-ib { border: 0; }
.lk-fb { padding: 14px 20px; overflow-y: auto; display: grid; gap: 12px; }
.lk-ff { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--lk-line); } .lk-ff .btn { min-height: 44px; min-width: 96px; }
.lk-f { display: grid; gap: 6px; font-size: 14px; } .lk-f > span { font-weight: 600; } .lk-f .req { color: #dc2626; }
.lk-f input, .lk-f select, .lk-f textarea { min-height: 44px; width: 100%; font-size: 15px; border-radius: 12px; }
.lk-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lk-kieu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lk-kieu button { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; border: 1.5px solid var(--lk-line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.lk-kieu button.on { border-color: var(--c); background: var(--bg); color: var(--c); box-shadow: 0 0 0 1px var(--c) inset; } .lk-kieu button:disabled { opacity: .45; cursor: not-allowed; }
.lk-hint { color: var(--muted); font-size: 13px; min-height: 18px; }
.lk-lap { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: var(--soft, #f8fafc); border: 1px solid var(--lk-line); }
.lk-thu { display: flex; flex-wrap: wrap; gap: 6px; } .lk-thu button { min-width: 44px; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--lk-line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.lk-thu button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.lk-ket { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; } .lk-ket > span { font-weight: 600; width: 100%; }
.lk-ket label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; } .lk-ket input[type=date] { min-height: 44px; border-radius: 12px; flex: 1; min-width: 150px; }
.lk-pv { display: grid; gap: 10px; } .lk-pv h2 { margin: 0; } .lk-big { min-height: 48px; width: 100%; font-weight: 600; }
.lk-dta2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .lk-gc2 span { white-space: pre-wrap; }
@media (max-width: 767px) { .modal.lk-modal > .card { max-width: none; max-height: 94vh; } .lk-fb { padding: 12px 16px; } }
@media (max-width: 380px) { .lk-2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .lk-ev { transition: none; } }
.lk-top .lk-sel select { max-width: 170px; } .lk-rg { min-width: 0; white-space: nowrap; }
.lk-ev:not(.gon) small { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
@media (max-width: 1360px) { .lk-top { gap: 8px; } .lk-top h1 { font-size: 22px; } .lk-seg button { padding: 0 12px; } }
@media (max-width: 1500px) { .lk-top .lk-sel select { max-width: 150px; } .lk-seg button { padding: 0 10px; } .lk-top .btn { padding-left: 12px; padding-right: 12px; } .lk-rg { font-size: 17px; } }
.lk-mc .lk-pill em { display: none; }
.lk-pill .lk-tr { font-style: normal; font-size: 11px; font-weight: 700; color: var(--lk-su); background: var(--lk-su-b); padding: 1px 6px; border-radius: 6px; flex: none; }
body:has(#lcbk:not([hidden])) .lk-fab { bottom: calc(160px + env(safe-area-inset-bottom)); }   /* Gemini so bản: nút + không bị dải nhắc che */
