:root {
  /* Bộ nhận diện SEONGON 7.2026: Prosperous Blue, Future Green, Breakthrough Yellow, Transform Cyan; phông Google Sans. */
  --brand: #004aef;
  --brand-2: #004aef;
  --brand-soft: #e8efff;
  --green: #07ef9c;
  --yellow: #ffce00;
  --cyan: #0fd6f7;
  --accent: #ffce00;
  --ok: #007550;
  --ok-soft: #e2fbf1;
  --bg: #f5f7fc;
  --card: #ffffff;
  --line: #e2e7f2;
  --text: #1f2430;
  --muted: #586274;
  --faint: #667085;
  --accent-text: #004aef;
  --thaw: #ffce00;
  --change: #004aef;
  --refreeze: #07ef9c;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 40, 130, .06), 0 4px 16px rgba(0, 40, 130, .06);
  --side: 232px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Google Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-2); }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 80% -10%, #dfe8ff 0, transparent 60%), var(--bg); }
.login { width: 100%; max-width: 380px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 32px 28px; }
.login h1 { font-size: 20px; margin: 16px 0 4px; }
.login p { color: var(--muted); margin: 0 0 20px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input, textarea.input, select.input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(0, 74, 239, .15); }
textarea.input { resize: vertical; min-height: 64px; }
.btn { border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 600; background: var(--brand); color: #fff;
  transition: background .15s, transform .05s; }
.btn:hover { background: #003bc0; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.block { width: 100%; }
.err { color: #c0392b; font-size: 13px; min-height: 18px; margin: 4px 0 8px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--brand); letter-spacing: .2px; }
.logo img { height: 20px; display: block; }
.logo .ai { white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.logo .mark { font-size: 18px; }
.logo .mark b { color: var(--accent-text); }
.logo small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.side .logo { padding: 4px 8px 18px; }
.nav-sec { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); padding: 14px 10px 6px; }
.nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text);
  text-decoration: none; font-weight: 500; transition: background .12s; }
.nav:hover { background: var(--bg); }
.nav.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav.off { color: var(--faint); cursor: not-allowed; pointer-events: none; }
.nav .ic { width: 18px; text-align: center; opacity: .85; }
.nav .soon { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--bg); color: var(--faint); border-radius: 6px; padding: 1px 6px; }
.side .me { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 8px 0; font-size: 13px; }
.side .me b { display: block; }
.side .me span { color: var(--muted); font-size: 12px; }
.side .me .row { display: flex; gap: 6px; margin-top: 8px; }

.main { min-width: 0; padding: 24px 28px 64px; }
.topbar { display: none; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-h h1 { font-size: 22px; margin: 0; }
.page-h p { margin: 4px 0 0; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- gantt ---------- */
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.gantt { overflow: auto; position: relative; -webkit-overflow-scrolling: touch; }
.g-grid { position: relative; min-width: max-content; }
.g-head { position: sticky; top: 0; z-index: 3; background: #fff; display: flex; border-bottom: 1px solid var(--line); }
.g-label-h, .g-label { position: sticky; left: 0; z-index: 2; background: #fff; width: 280px; min-width: 280px; border-right: 1px solid var(--line); }
.g-label-h { z-index: 4; padding: 10px 14px; font-weight: 700; font-size: 12px; color: var(--muted); display: flex; align-items: flex-end; }
.g-scale { position: relative; height: 52px; }
.g-month { position: absolute; top: 0; height: 26px; line-height: 26px; padding-left: 8px; font-size: 12px; font-weight: 700; color: var(--text); border-left: 1px solid var(--line); }
.g-week { position: absolute; top: 26px; height: 26px; line-height: 26px; font-size: 11px; color: var(--faint); border-left: 1px solid #f0f2f7; padding-left: 4px; }
.g-lane-h { display: flex; background: var(--bg); border-bottom: 1px solid var(--line); }
.g-lane-h .g-label { background: var(--bg); padding: 8px 14px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.g-row { display: flex; border-bottom: 1px solid #f0f2f7; cursor: pointer; transition: background .1s; }
.g-row:hover, .g-row:hover .g-label { background: #fafbfe; }
.g-row .g-label { padding: 9px 14px; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.g-row .g-label .nm { flex: 1; min-width: 0; white-space: normal; line-height: 1.3; text-wrap: balance; }
.g-track { position: relative; height: 40px; }
.g-bar { position: absolute; top: 9px; height: 22px; border-radius: 6px; background: var(--change);
  transition: transform .12s, box-shadow .12s; display: flex; align-items: center; padding: 0 8px; color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.g-row:hover .g-bar { box-shadow: 0 2px 8px rgba(0, 40, 130, .25); transform: translateY(-1px); }
.g-bar.thaw { background: var(--thaw); color: #1f2430; }
.g-bar.change { background: var(--change); }
.g-bar.refreeze { background: var(--refreeze); color: #1f2430; }
.g-bar.done { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 6px, transparent 6px 12px); }
.g-vline { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--faint); pointer-events: none; z-index: 1; }
.g-today { border-left: 2px solid var(--accent); }
.g-today::before { content: 'Hôm nay'; position: absolute; top: 2px; left: 4px; font-size: 11px; font-weight: 700; color: var(--accent-text); background: #fff; padding: 0 4px; border-radius: 4px; white-space: nowrap; }
.g-break { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(-45deg, #fff6cc 0 6px, #fffbe6 6px 12px); pointer-events: none; }
.g-break span { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--accent-text); }
.g-ms { position: absolute; top: 12px; width: 14px; height: 14px; transform: translateX(-7px) rotate(45deg); background: var(--accent); border-radius: 2px; }
.g-ms-label { position: absolute; top: 9px; font-size: 11px; font-weight: 600; color: var(--text); white-space: nowrap; padding-left: 12px; }
.g-ms-label.left { transform: translateX(-100%); padding-left: 0; padding-right: 12px; }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 7px; background: var(--bg); color: var(--muted); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.cm { background: var(--brand-soft); color: var(--brand); }

/* ---------- tick ---------- */
.tick { width: 22px; height: 22px; min-width: 22px; border-radius: 6px; border: 2px solid #c9d2e3; background: #fff;
  display: inline-grid; place-items: center; transition: background .12s, border-color .12s, transform .08s; padding: 0; }
.tick:hover { border-color: var(--ok); }
.tick:active { transform: scale(.9); }
.tick.on { background: var(--ok); border-color: var(--ok); }
.tick svg { width: 14px; height: 14px; opacity: 0; transition: opacity .1s; }
.tick.on svg { opacity: 1; }

/* ---------- week ---------- */
.goal { padding: 14px 18px; border-left: 4px solid var(--accent); margin-bottom: 18px; }
.goal b { color: var(--accent-text); }
.steps { display: grid; gap: 16px; }
.step { padding: 0; overflow: hidden; }
.step-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.step-h .num { width: 30px; height: 30px; border-radius: 50%; background: var(--thaw); color: #1f2430; display: grid; place-items: center; font-weight: 800; }
.step-h h3 { margin: 0; font-size: 15px; flex: 1; }
.step-h .when { color: var(--muted); font-size: 12px; }
.task { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 12px 18px; border-bottom: 1px solid #f0f2f7; transition: background .1s; }
.task:last-child { border-bottom: 0; }
.task:hover { background: #fafbfe; }
.task .tx { cursor: pointer; }
.task .tx b { font-weight: 500; display: block; }
.task.done .tx b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.task .meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 3px; }
.task .side-pills { display: flex; gap: 6px; align-items: center; }
.progress { height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; width: 120px; }
.progress i { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .25s; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15, 25, 50, .25); opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 40; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; box-shadow: -8px 0 32px rgba(15, 25, 50, .15);
  transform: translateX(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); z-index: 41; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-h { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.drawer-h .x { float: right; border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); }
.drawer-h h2 { font-size: 17px; margin: 0 30px 6px 0; }
.drawer-h .dt { font-size: 12px; color: var(--muted); }
.drawer-b { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-b .desc { margin: 0 0 16px; }
.detail { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; margin: 0 0 16px; background: #fbfcfe; }
.detail .dl { padding: 10px 0; border-bottom: 1px solid #eef1f6; }
.detail .dl:last-child { border-bottom: 0; }
.detail .dl b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 4px; }
.detail ul { margin: 0; padding-left: 18px; }
.detail li { margin: 2px 0; }
.detail p { margin: 0; }
.g-out { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.agree { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; cursor: pointer; user-select: none; }
.agree.on { border-color: #b8e3cd; background: var(--ok-soft); }
.agree .who { font-size: 12px; color: var(--muted); }
.cm-h { font-weight: 700; font-size: 13px; margin: 0 0 10px; }
.cmt { display: grid; grid-template-columns: 30px 1fr; gap: 10px; margin-bottom: 14px; animation: fadein .2s; }
.cmt.pending { opacity: .55; }
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.av.admin { background: #e8efff; color: var(--accent-text); }
.cmt .hd { font-size: 12px; color: var(--muted); }
.cmt .hd b { color: var(--text); font-size: 13px; margin-right: 6px; }
.cmt .bd { white-space: pre-wrap; word-wrap: break-word; margin-top: 2px; }
.cmt .del { border: 0; background: transparent; color: var(--faint); font-size: 12px; padding: 0 4px; }
.cmt .del:hover { color: #c0392b; }
.drawer-f { border-top: 1px solid var(--line); padding: 12px 20px 16px; }
.drawer-f textarea { min-height: 56px; }
.drawer-f .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--faint); }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- slides ---------- */
.sl-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.sl-form { padding: 16px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.sl-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sl-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 9px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sl-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sl-tabs button.filled::after { content: ' •'; color: var(--ok); }
.sl-tabs button.on.filled::after { color: #9fe0bf; }
.sl-status { font-size: 12px; color: var(--muted); margin-top: 8px; min-height: 18px; }
.sl-preview { display: grid; gap: 14px; }
/* Slide theo bộ nhận diện SEONGON 7.2026: slide bìa nền Prosperous Blue, chữ trắng, nhấn Future Green, mũi tên lớn bên phải;
   slide nội dung nền trắng, tiêu đề xanh, chữ #434343, logo góc phải, mũi tên nhỏ góc trái. Phông Google Sans. */
.slide { --sg-title: #004aef; --sg-text: #434343; --sg-label: #004aef; --sg-num: #004aef; --sg-dot: #004aef;
  aspect-ratio: 16 / 9; width: 100%; background: #fff; border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--line);
  position: relative; overflow: hidden; container-type: inline-size; cursor: pointer; font-family: 'Google Sans', system-ui, sans-serif; color: var(--sg-text);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.slide.cur { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.slide .dc { position: absolute; pointer-events: none; display: block; }
.slide .dc-logo { right: 3cqw; top: 2.6cqw; width: 14cqw; }
.slide .dc-mt { left: 3cqw; top: 2.4cqw; width: 4.2cqw; }
.slide .in { position: absolute; inset: 0; padding: 9cqw 7cqw 7cqw; display: flex; flex-direction: column; }
.slide .foot { position: absolute; left: 3cqw; right: 3cqw; bottom: 2.6cqw; display: flex; justify-content: space-between; font-size: max(11px, 1.3cqw); color: var(--sg-text); font-weight: 600; }
.slide .foot span:first-child { color: var(--sg-title); }
.slide h2 { font-size: 3.8cqw; margin: 0 0 3cqw; color: var(--sg-title); line-height: 1.2; font-weight: 600; }
.slide .tx { font-size: max(11px, 2.1cqw); color: var(--sg-text); line-height: 1.5; }
.slide .tx.lst { font-size: max(11px, 2.2cqw); line-height: 1.6; }
.slide .tx p, .slide .tx div, .slide .q div { margin: 0; }
.slide ol { margin: 0; padding-left: 2.6cqw; font-size: max(11px, 2.2cqw); line-height: 1.6; color: var(--sg-text); }
.slide .tx ul, .slide .tx ol { font-size: inherit; line-height: inherit; }
.slide .in img { max-width: 100%; max-height: 28cqw; object-fit: contain; display: block; margin: .6cqw 0; }
.slide .ph { color: var(--faint); font-style: italic; }
.slide ul { margin: 0; padding-left: 2.6cqw; font-size: max(11px, 2.2cqw); line-height: 1.6; color: var(--sg-text); }
.slide li::marker { color: var(--sg-dot); }
.slide.cover { --sg-title: #fff; --sg-text: #fff; background: #004aef; border-color: #004aef; }
.slide.cover .dc-logo { left: 7cqw; right: auto; top: 6cqw; width: 24cqw; }
.slide.cover .dc-mt { left: auto; right: -3cqw; top: 50%; transform: translateY(-50%); width: 38cqw; }
.slide.cover.sl-sq .dc-mt { display: none; }
.slide.cover .in { justify-content: center; padding-top: 16cqw; padding-right: 38cqw; }
.slide.cover h2 { font-size: 5cqw; }
.slide.cover .tx { font-size: max(11px, 2.3cqw); }
.slide.cover .ph { color: rgba(255, 255, 255, .72); }
.slide.cover .foot { color: rgba(255, 255, 255, .85); }
.slide.cover .kicker { font-size: max(11px, 1.5cqw); letter-spacing: .25cqw; text-transform: uppercase; color: #07ef9c; font-weight: 700; margin-bottom: 1.6cqw; }
.slide.quote .in { justify-content: center; align-items: flex-start; }
.slide.quote .q { font-size: 4cqw; font-weight: 600; line-height: 1.3; color: var(--sg-title); border-left: .8cqw solid #07ef9c; padding-left: 3cqw; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(18cqw, 1fr)); gap: 2cqw; margin-bottom: 2.5cqw; }
.stat { background: #eef3ff; border-radius: 1.2cqw; padding: 2cqw; }
.stat b { display: block; font-size: 4cqw; color: var(--sg-num); line-height: 1.1; }
.stat span { font-size: max(11px, 1.7cqw); color: var(--sg-text); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.cols h4 { margin: 0 0 1cqw; font-size: max(11px, 1.6cqw); text-transform: uppercase; letter-spacing: .2cqw; color: var(--sg-label); }
.st3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; margin-top: 1cqw; }
.st3 > div { border-top: .6cqw solid #004aef; padding-top: 1.6cqw; font-size: max(11px, 1.9cqw); }
.st3 > div:nth-child(2) { border-top-color: #07ef9c; }
.st3 > div:nth-child(3) { border-top-color: #0fd6f7; }
.st3 > div > b { display: block; font-size: max(11px, 2.4cqw); color: var(--sg-title); margin-bottom: .8cqw; }
/* Ô soạn thảo chữ có định dạng */
.rte { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.rte:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(0, 74, 239, .15); }
.rte-bar { display: flex; gap: 4px; padding: 5px; border-bottom: 1px solid var(--line); background: var(--bg); border-radius: 10px 10px 0 0; }
.rte-bar button { min-width: 30px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 13px; color: var(--text); padding: 0 6px; }
.rte-bar button:hover { background: var(--brand-soft); }
.rte-body { min-height: 76px; max-height: 280px; overflow-y: auto; padding: 8px 10px; font-size: 14px; line-height: 1.5; outline: none; }
.rte-body:empty::before { content: attr(data-ph); color: var(--faint); pointer-events: none; }
.rte-body ul, .rte-body ol { margin: 0; padding-left: 22px; }
.rte-body img { max-width: 100%; max-height: 160px; object-fit: contain; display: block; }
.present { position: fixed; inset: 0; background: #0b1328; z-index: 60; display: grid; place-items: center; }
.present .slide { width: min(100vw, calc(100vh * 16 / 9)); border-radius: 0; border: 0; cursor: default; box-shadow: none; }
.present .pnav { position: fixed; bottom: 14px; right: 18px; color: #8fa0c4; font-size: 12px; }

/* ---------- admin ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 600; }
.tbl tr.inactive td { color: var(--faint); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; padding: 16px; }
.notice { background: #fffbe6; border: 1px solid #f5df85; border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: 13px; }
.notice code { font-size: 14px; background: #fff; padding: 2px 6px; border-radius: 6px; user-select: all; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: #15213a; color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 13px; opacity: 0; transition: opacity .18s, transform .18s; z-index: 80; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; z-index: 50; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: 8px 0 24px rgba(0,0,0,.08); }
  .side.open { transform: none; }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .topbar .burger { border: 0; background: transparent; font-size: 22px; padding: 0 4px; }
  .main { padding: 16px 16px 64px; }
  .g-label-h, .g-label { width: 170px; min-width: 170px; }
  .sl-wrap { grid-template-columns: 1fr; }
  .sl-form { position: static; max-height: none; }
}
@media print {
  body { background: #fff; }
  .side, .topbar, .sl-form, .page-h .btns, .toast { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  .sl-wrap { display: block; }
  .slide { break-after: page; box-shadow: none; border: 0; border-radius: 0; outline: none !important; }
  @page { size: 297mm 167mm; margin: 0; }
}

.g-bar.narrow { overflow: visible; padding: 0; }
.g-bar.narrow::after { content: attr(data-lbl); position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; font-size: 11px; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--muted); transition: background .12s, color .12s; }
.seg button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0,40,130,.12); }
@media (max-width: 900px) {
  .g-row .g-label .nm { font-size: 13px; line-height: 1.3; }
  .g-row .g-label .pill { display: none; }
  .page-h > div:last-child { align-items: flex-start !important; }
}
.shell > div { min-width: 0; }

/* ---------- Cổng Rã đông ---------- */
.gate { border: 1px solid #f2d65a; background: #fffcef; padding: 16px 18px; margin-bottom: 18px; }
.gate-h h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--text); }
.gate-h p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.gate-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.gate-item { background: #fff; border: 1px solid #f5df85; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.gate-item .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.gate-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.gate-top b { font-size: 14px; }
.gate-tg { font-weight: 700; color: var(--text); }
.gate-meta, .gate-rs .muted { color: var(--muted); }
.gate-st { background: #eceff3; color: var(--muted); white-space: nowrap; }
.gate-st.ok { background: var(--ok-soft); color: var(--ok); }
.gate-st.fail { background: #fde8e8; color: #b42318; }
.gate-rule { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent-text); }

/* ---------- lịch tuần theo ngày giờ ---------- */
.wk-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.wk-who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.wk-who select { width: auto; min-width: 180px; }
.wk-note { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.wk-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: start; }
.wk-day { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wk-day-h { font-weight: 800; font-size: 14px; color: var(--text); }
.wk-empty { font-size: 12px; margin: 0; }
.wk-task { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; font-size: 13px; }
.wk-task .tx { cursor: pointer; min-width: 0; }
.wk-task.done .tx b { color: var(--muted); text-decoration: line-through; }
.wk-time { font-weight: 800; color: var(--accent-text); white-space: nowrap; }
.wk-task .chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chip { font-size: 11px; font-weight: 600; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 1px 8px; }
.wk-done { font-size: 12px; color: var(--ok); margin-top: 4px; }
.wk-meet { border: 2px solid #ffce00; background: #fffbe6; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.wk-meet-h { font-size: 13px; }
.wk-att { font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) { .wk-days { grid-template-columns: 1fr; } }

/* ---------- khảo sát ---------- */
.sv-wrap { min-height: 100vh; display: flex; justify-content: center; padding: 24px 16px; background: var(--bg); }
.sv { width: 100%; max-width: 560px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 24px 20px; height: fit-content; }
.sv h1 { font-size: 21px; margin: 14px 0 6px; }
.sv .muted, .sv-res .muted, .gate .muted { color: var(--muted); }
.sv-q { margin: 18px 0; }
.sv-t { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.sv-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sv-scale button { min-height: 48px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 17px; font-weight: 700; color: var(--text); cursor: pointer; }
.sv-scale button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sv-res { padding: 18px; margin-bottom: 16px; }
.sv-res-h { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.sv-res-h h2 { margin: 0 0 4px; font-size: 17px; }
.sv-link { display: flex; gap: 8px; margin-top: 8px; max-width: 520px; }
.sv-qr { width: 140px; height: 140px; flex: none; }
.sv-qr svg { width: 100%; height: 100%; }
.sv-dist { margin-top: 16px; }
.bars { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; height: 120px; align-items: end; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 12px; }
.bar i { display: block; width: 100%; background: var(--brand-2); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar b { font-size: 12px; margin-top: 2px; }
.bar span { color: var(--muted); }
.sv-texts { margin-top: 16px; font-size: 14px; }
.sv-texts ul { margin: 0; padding-left: 20px; }
.sv-res-h > div:first-child { flex: 1; min-width: 0; }
.sv-link .input { flex: 1; min-width: 0; }
.gate-link summary { cursor: pointer; font-weight: 600; color: var(--brand); font-size: 13px; }
.gate-qr { width: 150px; margin-top: 8px; }
.gate-qr svg { width: 100%; height: auto; display: block; }
.slide .ph-e { display: none; }
.present .slide .ph-h { display: none; }
.present .slide .ph-e { display: inline; }
@media print { .slide .ph-h { display: none; } .slide .ph-e { display: inline; } }

/* Xuống dòng tiếng Việt: không để dòng cuối trơ 1 chữ, tiêu đề chia dòng cân. Từ ghép giữ liền nhờ ngat-dong.js. */
p, li, .desc, .tx, .meta, .gate-rs, .gate-tg, .gate-meta, .wk-att, .who, .sv-t, .dl p, td { text-wrap: pretty; }
h1, h2, h3, h4, .slide h2, .slide .q, .gate-h h2, .step-h h3 { text-wrap: balance; }

/* Mã QR khảo sát trên slide "Trên thang điểm 10…" */
.slide .sq-qr { position: absolute; right: 5cqw; top: 15cqw; width: 24cqw; text-align: center; background: #fff; padding: 1.4cqw; border-radius: 1.2cqw; }
.slide .sq-qr svg { width: 100%; height: auto; display: block; }
.slide .sq-cap { white-space: nowrap; font-size: max(11px, 1.3cqw); font-weight: 700; color: #004aef; margin-top: .6cqw; }
.slide .sq-url { font-size: max(11px, 1.05cqw); color: #434343; word-break: break-all; }
.slide .sq-none { font-size: max(11px, 1.3cqw); color: #434343; border: 1px dashed var(--line); padding: 1.5cqw; border-radius: 1cqw; }

/* Lịch theo ngày giờ: chữ thường, việc dài rút 2 dòng (bấm mở xem đủ), tô nổi hôm nay */
.wk-task .wk-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 400; color: var(--text); }
.wk-task.done .wk-text { color: var(--muted); text-decoration: line-through; }
.wk-day.today { border: 2px solid var(--brand-2); background: var(--brand-soft); }
.wk-today { font-size: 11px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
.chk-mail { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); white-space: nowrap; }

/* ---------- Góc làm việc (22/10/2026) ---------- */
.muted { color: var(--muted); }
.lnk { border: 0; background: none; padding: 0; color: var(--brand); font-size: 12px; font-weight: 600; cursor: pointer; }
.lnk:hover { text-decoration: underline; }
.lnk-a { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; text-decoration: none; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sec-h { font-size: 16px; margin: 24px 0 10px; }
.notice.ok { background: var(--ok-soft); border-color: #9fe3c7; }
.pill.tre { background: #fdecea; color: #b42318; }
.pill.ok { color: #00704c; } /* #00845a trên nền xanh nhạt chỉ đạt 4.3:1, chữ 11px cần 4.5:1 */
.nv-xt .bad { color: #b42318; }
.nv-xt .ok { color: var(--ok); }

/* Việc tuần */
.vt-tuans { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.vt-tuan { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.vt-tuan.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.vt-task { grid-template-columns: 22px 1fr auto; }
.vt-task .side-pills .btn { padding: 4px 10px; font-size: 12px; }
.vt-ls { grid-column: 2 / -1; font-size: 12px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.vt-ls-ds { flex-basis: 100%; border-left: 2px solid var(--line); margin: 4px 0 2px; padding-left: 12px; display: grid; gap: 8px; }
.vt-ls-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; color: var(--muted); }
.vt-ls-row b { font-weight: 600; color: var(--text); }
.vt-ls-gt { margin-top: 2px; color: var(--text); }
.vt-ls-gt .cu { color: var(--faint); text-decoration: line-through; }
.vt-ls-row .btn { padding: 3px 9px; font-size: 12px; white-space: nowrap; }
.vt-them { padding: 8px 18px 12px 52px; }
.vt-ngay-h { cursor: default; }
.vt-trong { padding: 22px; color: var(--muted); text-align: center; }
.vt-xoa { margin-top: 16px; font-size: 13px; }
.vt-xoa-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; color: var(--muted); }
.vt-mini { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.vt-editing { display: block; background: #fafbfe; }
.vt-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; }
.vt-form .field { margin-bottom: 10px; min-width: 0; }
.vt-full { grid-column: 1 / -1; }
.vt-form-f { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.vt-form-f .err { margin: 0 auto 0 0; min-height: 0; }
.vt-form-f .vt-del { color: #b42318; margin-right: 0; }
.vt-tuan-form { padding: 16px 18px 6px; margin-bottom: 16px; }
.vt-tuan-form h3 { margin: 0 0 12px; font-size: 15px; }
.vt-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px 8px; min-height: 40px; cursor: text; }
.vt-chips .chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 4px 2px 10px; }
.vt-chips .chip .x { border: 0; background: none; color: var(--brand); font-size: 15px; line-height: 1; padding: 0 4px; }
.vt-chip-in { flex: 1; min-width: 220px; border: 0; outline: 0; padding: 4px; background: transparent; }

/* Góc làm việc */
.goc-so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.td-so { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .td-so { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.so { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.so > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.so > b { font-size: 24px; line-height: 1.25; color: var(--text); }
.so > i { font-style: normal; font-size: 12px; color: var(--muted); }
.so.xong { border-color: #9fe3c7; background: var(--ok-soft); }
.goc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.goc-grid > section { padding: 16px 18px; }
.goc-grid h2 { font-size: 16px; margin: 0 0 12px; }
.goc-grid h3 { font-size: 13px; color: var(--muted); margin: 18px 0 6px; }
.goc-ag { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.goc-ag-b { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 13px; color: var(--text); }
.goc-ag-b.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 2px rgba(0, 74, 239, .15); }
.goc-ghi-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 10px; align-items: end; }
.goc-ghi-row .field { margin: 0; }
.goc-tinh { font-size: 13px; color: var(--muted); margin-top: 8px; min-height: 20px; }
.goc-tinh b { color: var(--ok); }
.goc-log { display: grid; gap: 2px; }
.goc-log-r { display: grid; grid-template-columns: 96px minmax(0, 1fr) 64px 132px 32px; gap: 8px; align-items: center; font-size: 13px; padding: 6px 0; border-bottom: 1px solid #f0f2f7; }
.goc-log-r b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goc-log-r .tk { color: var(--ok); font-weight: 600; text-align: right; }
.goc-log-r .lau { color: #b42318; font-weight: 600; text-align: right; }
.goc-viec .task { padding: 10px 0; }

/* Agent của tôi */
.ag-form { padding: 16px 18px 6px; margin-bottom: 16px; }
.ag-form h2 { font-size: 16px; margin: 0 0 12px; }
.ag-form .vt-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ag-ds { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ag { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ag.dang { border-color: #9fe3c7; }
.ag-h { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ag-h b { font-size: 15px; }
.ag p { margin: 0; color: var(--muted); font-size: 13px; }
.ag .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }

/* Check-in */
.ck-form { max-width: 720px; padding: 18px 20px; }
.ck-form small { display: block; margin-top: 6px; font-size: 12px; }

/* Bảng theo dõi */
.td-tuan { display: flex; align-items: center; gap: 10px; }
.td-sec { padding: 14px 16px; margin-bottom: 16px; overflow-x: auto; }
.td-sec h2 { font-size: 16px; margin: 0 0 8px; }
.td-sec-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.td-pb { font-size: 12px; }
.td-sec .tbl td:first-child b { white-space: nowrap; }
.td-act { white-space: nowrap; text-align: right; }
.td-act .lnk { margin-right: 10px; }
.td-ct td { background: #fafbfe; }
.td-ct-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; font-size: 13px; }
.td-ct-g p { margin: 4px 0 0; color: var(--muted); white-space: pre-line; }
.td-bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; align-items: end; height: 170px; margin: 8px 0 10px; }
.td-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; font-size: 12px; color: var(--muted); }
.td-bar b { color: var(--text); font-size: 13px; }
.td-bar.cur span { color: var(--brand); font-weight: 700; }
.td-cot { flex: 1; width: 100%; display: flex; gap: 4px; align-items: flex-end; justify-content: center; }
.td-cot i { display: block; width: 38%; max-width: 26px; min-height: 2px; border-radius: 4px 4px 0 0; }
.td-cot .ck { background: var(--brand); }
.td-cot .nk { background: var(--cyan); }

/* Nhập nhân viên + Tài khoản */
.nv-dan { padding: 16px; margin-bottom: 16px; }
.nv-dan textarea { font-family: ui-monospace, Menlo, monospace; font-size: 13px; margin-bottom: 10px; }
.nv-xt { padding: 16px; display: grid; gap: 12px; }
.nv-tong { font-size: 14px; }
.nv-loi td { background: #fff6f5; }
.nv-f { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.nv-f .btn { margin-left: auto; }
.nv-xt code { font-size: 13px; background: var(--bg); padding: 2px 6px; border-radius: 6px; user-select: all; }
.ad-ds { overflow: hidden; }
.ad-tim { display: flex; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.ad-tim .input { max-width: 360px; }
.ad-sua td { background: #fafbfe; }
.ad-sua .input { padding: 6px 8px; font-size: 13px; margin: 2px 0; min-width: 120px; }

/* 13 KR */
.kr-ds { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.kr { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.kr-h { display: flex; gap: 8px; align-items: baseline; }
.kr-h b { color: var(--brand); white-space: nowrap; font-size: 13px; }
.kr-h span { font-weight: 600; }
.kr-pct { display: flex; align-items: center; gap: 10px; }
.kr-pct b { font-size: 24px; min-width: 64px; }
.kr-bar { flex: 1; height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.kr-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.kr-so { font-size: 13px; color: var(--text); }
.kr-cach { font-size: 12px; color: var(--muted); }
.kr-duong { width: 100%; max-width: 260px; height: auto; display: block; }
.kr-duong text { font-size: 9px; fill: var(--faint); }
.kr-luoi { stroke: var(--line); stroke-width: 1; }
.kr-line { fill: none; stroke: var(--brand); stroke-width: 2; }
.kr-dot { fill: var(--brand); }
.kr-trong { font-size: 12px; color: var(--faint); }
.kr-note { font-size: 12px; color: var(--muted); margin: 12px 0 16px; }
.kr-nhap-pill { background: #fff4cc; color: #6b5200; font-size: 12px; padding: 4px 10px; }
.kr-form { padding: 16px 18px; margin-bottom: 16px; }
.kr-form h2 { font-size: 16px; margin: 0 0 12px; }
.kr-form .row .field { margin: 0; }
.kr-form .row select { min-width: 220px; max-width: 520px; }
.kr-truong { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; margin-top: 12px; }
.kr-f { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Nhập nhân viên: tải mẫu, kéo thả file, link Google Sheet */
.nv-mau { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.nv-tha { display: block; border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; cursor: pointer; background: var(--bg); transition: border-color .15s, background .15s; }
.nv-tha:hover, .nv-tha.on { border-color: var(--brand); background: var(--brand-soft); }
.nv-sheet { display: flex; gap: 10px; margin-top: 12px; }
.nv-sheet .input { flex: 1; }
.nv-hoac { margin: 14px 0 6px; }

/* Phân quyền */
.pq-bang td:not(:first-child), .pq-bang th:not(:first-child) { text-align: center; }
.pq-note { font-size: 12px; margin: 10px 0 0; }
.pq-form { margin: 4px 0 12px; }
.pq-form select { width: auto; min-width: 240px; }

/* Bản đồ việc của tôi */
.bd { margin-bottom: 28px; }
.bd-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 8px 0 12px; }
.bd-h h2 { font-size: 16px; margin: 0; }
.bd-h p { margin: 2px 0 0; font-size: 13px; }
.bd-ds { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.bd-v { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.bd-ag, .bd-xn { font-size: 12px; }
.bd-xn { margin-right: auto; }
.bd-chua { font-size: 12px; margin: 0; }
.bd-do { margin: 0; display: grid; gap: 4px; font-size: 13px; }
.bd-do div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; }
.bd-do dt { color: var(--muted); }
.bd-do dd { margin: 0; }
.pill.bd-giao { background: var(--ok-soft); color: #00704c; }
.pill.bd-cung { background: var(--brand-soft); color: var(--brand); }
.pill.bd-tu { background: var(--bg); color: var(--muted); }
.bd-form { padding: 16px 18px; margin-bottom: 12px; grid-column: 1 / -1; }
.bd-form h3 { margin: 0 0 12px; font-size: 15px; }
.bd-cach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.bd-cach-o { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.bd-cach-o input { margin: 3px 0 0; grid-row: span 2; }
.bd-cach-o span { font-size: 12px; color: var(--muted); }
.bd-cach-o:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.bd-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 12px; }
.bd-mat { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.bd-mat > span { font-size: 12px; color: var(--muted); }
.bd-mat .row { flex-wrap: wrap; }
.bd-mat .row .input { min-width: 0; flex: 1 1 0; }
.bd-mat .row .input[name=kl_don_vi] { flex-basis: 100%; }

/* ---------- Bản đồ việc vẽ lại 4/11 (bdv-*: tab 1, 2; bdm-*: tab 3 việc mới) ---------- */
.bdv { --l1: #00845a; --l2: #0b7fa8; --l3: #004aef; --l4: #6b4bd8; --m-claude: #b45309; --m-agent: #c2410c; --m-skill: #0b7fa8; --m-workflow: #6b4bd8; display: grid; gap: 16px; margin-bottom: 28px; }
.bdv > * { min-width: 0; } /* bảng tab 2 cuộn trong khung, không đẩy cả trang rộng ra */
.bdv h2 { font-size: 16px; margin: 0 0 4px; }
.bdv h3 { font-size: 15px; margin: 0 0 4px; }
.bdv p { margin: 0 0 8px; }
.bdv-p { padding: 16px; }
.bdv-nho { font-size: 12px; }
.bdv-k1, .bdv-c1, .bdv-l1 { --c: var(--l1); } .bdv-k2, .bdv-c2, .bdv-l2 { --c: var(--l2); }
.bdv-k3, .bdv-c3, .bdv-l3 { --c: var(--l3); } .bdv-k4, .bdv-c4, .bdv-l4 { --c: var(--l4); } .bdv-c0 { --c: var(--line); }
.bdv-tong { padding: 16px; display: grid; gap: 10px; }
.bdv-so { display: flex; gap: 24px; flex-wrap: wrap; }
.bdv-so b { display: block; font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.bdv-so span { font-size: 12px; color: var(--muted); }
.bdv-so .tach { border-left: 1px solid var(--line); padding-left: 24px; }
.bdv-tay { color: var(--muted); } .bdv-thu { color: var(--brand); } .bdv-xong { color: var(--ok); }
.bdv-thanh { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; display: flex; }
.bdv-thanh i { display: block; height: 100%; background: var(--c); }
.bdv-chu { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; }
.bdv-chu span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 5px; vertical-align: -1px; }
.bdv-moc { display: flex; gap: 8px; flex-wrap: wrap; }
.bdv-moc span { font-size: 12px; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; }
.bdv-moc span.dang { background: var(--brand); color: #fff; border-color: var(--brand); }
.bdv-gon { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; }
.bdv-the { padding: 16px; }
.bdv-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bdv-bon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.bdv-loai { border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.bdv-loai > b { color: var(--c); font-size: 14px; }
.bdv-en { font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.bdv-sai { font-size: 12px; background: var(--bg); border-radius: 6px; padding: 4px 8px; margin-top: 6px; }
.bdv-loai ul { margin: 6px 0 0; padding-left: 18px; }
.bdv-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.bdv-tabs button { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 8px 16px; font-weight: 600; }
.bdv-tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.bdv-khai { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, .8fr) auto; gap: 8px; margin-top: 8px; }
.bdv-ds { margin-top: 12px; }
.bdv-dong { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, .7fr) auto 28px; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); align-items: center; }
.bdv-dau { font-size: 12px; color: var(--muted); font-weight: 600; border-top: 0; }
.bdv-dau span { padding-left: 12px; }
.bdv-o { border-color: transparent; background: transparent; }
.bdv-o:hover, .bdv-o:focus { border-color: var(--line); background: #fff; }
.bdv-o.da-luu { border-color: var(--ok); }
.bdv-xoa { border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; padding: 4px; }
.bdv-xoa:hover { color: #b42318; }
.bdv-vong { display: flex; gap: 4px; }
.bdv-vong button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--c); background: #fff; color: var(--c); font-weight: 700; font-size: 12px; padding: 0; }
.bdv-vong button.on { background: var(--c); color: #fff; }
.bdv-trong { margin-top: 12px; }
.bdv-hai { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bdv-hai textarea { margin-bottom: 8px; }
.bdv-mau { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.bdv-mau li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.bdv-bang { overflow-x: auto; }
.bdv-bang table { width: 100%; border-collapse: collapse; }
.bdv-bang th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.bdv-bang td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bdv-bang th:first-child { width: 30%; } .bdv-bang th:nth-child(2) { width: 22%; }
.bdv-ten b { display: block; }
.bdv-bang td, .bdv-loai, .bdm-the { text-wrap: wrap; }
.bdv-ten span { font-size: 12px; color: var(--muted); }
.bdv-bang .bdv-nho { margin-top: 4px; }
.bdv-tt { width: auto; min-width: 180px; font-weight: 600; font-size: 13px; padding: 5px 10px; }
.bdv-tt-xong { border-color: var(--ok); background: var(--ok-soft); color: #00704c; }
.bdv-tt-thu { border-color: var(--brand); color: var(--brand); }
.bdv-chuyen { margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, .7fr); gap: 6px; font-size: 12px; }
.bdv-chuyen span { display: block; color: var(--muted); }
.bdv-chuyen .bdv-o { border-color: var(--line); background: #fff; }
.bdv-xn { font-size: 12px; color: var(--muted); margin-top: 4px; }
.bdv-xn.ok { color: #00704c; }
.bdm-dau-trang { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.bdm-goi-y { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.bdm-goi-y b { font-weight: 500; color: var(--text); background: var(--bg); border-radius: 99px; padding: 3px 10px; }
.bdm-dem { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 24px; }
.bdm-dem b { display: block; font-size: 22px; line-height: 1.2; color: var(--c, var(--text)); }
.bdm-dem span { font-size: 12px; color: var(--muted); }
.bdm-m-claude { --c: var(--m-claude); } .bdm-m-agent { --c: var(--m-agent); } .bdm-m-skill { --c: var(--m-skill); } .bdm-m-workflow { --c: var(--m-workflow); }
.bdm-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.bdm-the { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 10px; align-content: start; font-size: 13px; }
.bdm-dau { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bdm-nhan-loai { font-size: 11px; font-weight: 700; border-radius: 99px; padding: 2px 10px; color: var(--c); border: 1px solid var(--c); }
.bdm-the h3 { margin: 0; font-size: 16px; }
.bdm-lenh { background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.bdm-nhan { display: block; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.bdm-chan { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.bdm-bc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bdm-anh { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.bdm-anh span { position: relative; }
.bdm-anh img { width: 96px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.bdm-anh .bdv-xoa { position: absolute; top: -6px; right: -6px; background: var(--card); border-radius: 50%; font-size: 14px; width: 20px; height: 20px; padding: 0; box-shadow: var(--shadow); }
.bdm-link-o { display: inline-flex; align-items: center; }
.bdm-link { font-size: 12px; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; text-decoration: none; background: var(--card); }
.bdm-them { border: 2px dashed var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; align-content: start; }
.bdm-them h3 { margin: 0; }
.bdm-them > .btn { justify-self: start; }
.bdm-chon { display: flex; gap: 6px; flex-wrap: wrap; }
.bdm-chon button { border: 1px solid var(--c); color: var(--c); background: var(--card); border-radius: 99px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.bdm-chon button.on { background: var(--c); color: #fff; }
.bdm-bc-them { display: grid; gap: 6px; }
.bdm-row { display: flex; gap: 6px; align-items: center; }
.bdm-row .input { flex: 1; min-width: 0; }
.bdm-row .dis { opacity: .6; pointer-events: none; }
@media (max-width: 900px) {
  .bdv-bon { grid-template-columns: 1fr 1fr; }
  .bdv-hai, .bdm-dau-trang { grid-template-columns: 1fr; }
  .bdv-khai, .bdv-dong { grid-template-columns: 1fr 1fr; }
  .bdv-dau { display: none; }
}
.ck-bd { margin-top: 16px; }
.ck-bd .bd-h { margin-top: 0; }
.ck-bd-v { padding: 10px 0; border-top: 1px solid #f0f2f7; display: grid; gap: 6px; }

/* Bảng theo dõi: 3 loại + bản đồ việc */
.td-3 { display: flex; gap: 16px; }
.td-3 span { display: flex; flex-direction: column; line-height: 1.1; }
.td-3 small { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.td-vl { margin-top: 14px; display: grid; gap: 10px; font-size: 13px; }
.td-vl-v { display: grid; gap: 6px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; justify-items: start; }
.goc-ag-b small { font-size: 11px; color: var(--muted); font-weight: 600; }
.pq-so { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pq-so .input { width: 90px; }
.pq-so input[type=date] { width: 150px; }

/* Bài học + showcase */
.bh-the { cursor: pointer; }
.bh-the:hover { border-color: var(--brand); }
.bh-xem { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bh-ds { display: grid; gap: 14px; margin: 6px 0 12px; }
.bh-sua { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 8px; background: #fff; }
.bh-sua-h { display: flex; justify-content: space-between; align-items: center; }
.bh-sua-h .lnk { margin-left: 8px; }
.bh-sua-h .lnk:disabled { color: var(--faint); cursor: default; text-decoration: none; }

/* 4 câu hỏi phản xạ */
.bon-cau { border-left: 4px solid var(--accent); background: #fffbe6; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; font-size: 14px; }
.bon-cau ol { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 2px; }
.bon-cau .lnk-a { margin-top: 6px; }

/* Chế độ chờ */
.login.cho h1 { margin-bottom: 8px; }
.login.cho .btn { margin-top: 12px; text-align: center; text-decoration: none; display: block; }
.cho-ghi { font-size: 12px; margin: 6px 0 0; text-align: center; }
.cho-bat { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; margin-bottom: 16px; }
.cho-bat p { margin: 4px 0 0; font-size: 13px; }

/* ---------- Việc tháng 11, 12 ---------- */
.vt-the { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.vt-vl { padding: 14px 14px 12px; border-top: 4px solid var(--m); display: flex; flex-direction: column; gap: 6px; }
.vt-vl-h { font-weight: 700; font-size: 15px; line-height: 1.3; text-wrap: balance; }
.vt-vl p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; flex: 1; }
.vt-vl-m { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.vt-vl-m b { color: var(--text); }
.vt-vl-p { display: flex; align-items: center; gap: 8px; }
.vt-vl-p .kr-bar { flex: 1; }
.vt-vl-p b { font-size: 18px; }
.vt-vl-s { font-size: 12px; color: var(--muted); }
.vt-do { color: #b42318; font-weight: 700; }
.vt-cong { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.vt-khung { overflow-x: auto; }
.vt-ma { flex: none; font-size: 11px; font-weight: 700; color: var(--faint); min-width: 30px; }
.vt-tbl td { font-size: 13px; vertical-align: top; }
.vt-tbl tbody tr[data-t], .vt-tbl tbody tr[data-hv] { cursor: pointer; }
.vt-tbl tbody tr[data-t]:hover, .vt-tbl tbody tr[data-hv]:hover { background: #fafbfe; }
.vt-tbl tr.con .vt-ten { padding-left: 28px; color: var(--muted); }
.vt-tbl td:nth-child(3), .vt-tbl td:nth-child(4) { white-space: nowrap; }
.vt-tr-nhom td { background: var(--bg); font-weight: 700; }
.vt-tr-nhom i { margin-right: 8px; }
.vt-sel { padding: 4px 6px; font-size: 12px; width: auto; min-width: 108px; }
.vt-sel.xong { color: var(--ok); } .vt-sel.tre { color: #b42318; } .vt-sel.dang { color: var(--brand); }
.vt-gc { max-width: 260px; color: var(--muted); }
.vt-gc-m { color: var(--text); margin-top: 4px; border-left: 2px solid var(--brand); padding-left: 6px; }
.vt-tt { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.vt-tt.dang { background: var(--brand-soft); color: var(--brand); }
.vt-tt.xong { background: var(--ok-soft); color: #00704c; }
.vt-tt.tre { background: #fdecea; color: #b42318; }
.vt-con { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid #f0f2f7; cursor: pointer; font-size: 13px; }
.vt-con span:nth-child(2) { flex: 1; }
.vt-seg { margin-top: 4px; }
.vt-sua { font-size: 12px; margin-top: 10px; }
.vt-duoi { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.vt-duoi section { padding: 16px 18px; }
.vt-duoi h2 { font-size: 15px; margin: 0 0 10px; }
.vt-li { display: flex; flex-direction: column; padding: 7px 0; border-bottom: 1px solid #f0f2f7; font-size: 13px; }
.vt-li span { font-size: 12px; }
.vt-mi { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; font-size: 13px; }
.vt-mi i { flex: none; width: 9px; height: 9px; transform: rotate(45deg); border: 2px solid #1f2430; border-radius: 1px; }
.vt-mi.lon i { background: #1f2430; }
.vt-mi.lon { font-weight: 700; }
.vt-mi .ng { flex: none; min-width: 40px; color: var(--muted); font-weight: 600; }
.vt-tbl th, .vt-tbl td { padding: 8px 8px; }
.vt-tbl th, .vt-tbl td:nth-child(6) { white-space: nowrap; }
.vt-tbl td:nth-child(5) { min-width: 78px; }
.vt-tbl .vt-ten { min-width: 200px; }
.vt-tbl td:nth-child(7) { min-width: 100px; }
.vt-vl p, .vt-gc { text-wrap: wrap; }
.vt-khung { max-width: 100%; }
@media (max-width: 900px) {
  .vt-the, .vt-duoi { grid-template-columns: 1fr; }
  .vt-trang { min-width: 0; overflow-x: hidden; }
}

.vt-cong select.input { width: auto; padding: 7px 10px; }
.vt-tab { margin-bottom: 16px; }
.vt-tab button { padding: 8px 18px; font-size: 14px; }
.vt-cong-h { font-size: 17px; margin: 0 8px 0 0; }
.vt-cong { margin-top: 20px; }
.vt-nd { padding: 20px 24px; margin-bottom: 14px; }
.vt-nd h2 { font-size: 18px; margin: 0 0 10px; }
.vt-nd p { margin: 0 0 10px; }
.vt-nd ul { margin: 0 0 10px; padding-left: 20px; }
.vt-nd li { margin-bottom: 6px; }
.vt-bang { overflow-x: auto; margin: 6px 0 12px; border: 1px solid var(--line); border-radius: 10px; }
.vt-bang .tbl th, .vt-bang .tbl td { padding: 8px 10px; font-size: 13px; vertical-align: top; }
.vt-bang .tbl th { background: var(--bg); }
.vt-bang .tbl tr:last-child td { border-bottom: 0; }
/* ---------- bình luận dùng chung ---------- */
.bl-c { font-size: 13px; }
.bl-dau { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bl-vai { font-size: 11px; font-weight: 600; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 0 7px; }
.bl-dau .muted { font-size: 12px; }
.bl-bd { white-space: pre-wrap; margin: 2px 0; text-wrap: pretty; }
.bl-x, .bl-tl { border: 0; background: transparent; padding: 0; font-size: 12px; color: var(--muted); }
.bl-tl { color: var(--brand); font-weight: 600; }
.bl-x:hover, .bl-tl:hover { text-decoration: underline; }
.bl-con { margin: 6px 0 0 18px; padding-left: 12px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.bl-f { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.bl-f textarea { min-height: 44px; flex: 1; }
.bl-hdk { padding: 20px 24px; margin-top: 18px; }
.bl-hdk-h { display: flex; align-items: center; gap: 10px; }
.bl-hdk h2 { font-size: 18px; margin: 0; }
.bl-hdk > p { margin: 6px 0 4px; }
.vt-tr-nhom i { width: 10px; height: 10px; border-radius: 3px; background: var(--m); display: inline-block; flex: none; }
.thanh-tren { position: sticky; top: 0; z-index: 20; display: flex; justify-content: flex-end; padding: 10px 28px 0; pointer-events: none; }
.thanh-tren .btn { pointer-events: auto; background: #fff; box-shadow: var(--shadow); }
#bl-nut b { background: #d92d20; color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.bl-pop { position: fixed; z-index: 60; }
.bl-pop > .btn { box-shadow: 0 4px 16px rgba(0, 40, 130, .25); }
.bl-o { width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 32px rgba(15, 25, 50, .2); padding: 12px; }
.bl-o blockquote, .bl-trich { margin: 0 0 8px; padding: 4px 10px; border-left: 3px solid var(--yellow); background: #fffbe6; font-size: 13px; color: var(--text); max-height: 96px; overflow: auto; }
.bl-o textarea { min-height: 72px; }
.bl-o-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
mark.bl-mark { background: #fff3bf; color: inherit; border-bottom: 2px solid var(--yellow); cursor: pointer; padding: 0; }
mark.bl-mark.xong { background: transparent; border-bottom: 2px dotted #c9ced8; }
mark.bl-mark.sang { background: var(--yellow); }
.bl-ngan { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: #fff; box-shadow: -8px 0 32px rgba(15, 25, 50, .15);
  transform: translateX(105%); transition: transform .2s; z-index: 55; display: flex; flex-direction: column; }
.bl-ngan.open { transform: none; }
.bl-loc { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.bl-loc select.input { width: auto; padding: 6px 8px; font-size: 13px; }
.bl-luong { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bl-luong.xong .bl-trich { border-left-color: #c9ced8; background: var(--bg); }
.bl-luong-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.bl-nhan { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.bl-trich { cursor: pointer; }
.bl-trich:hover { background: #fff3bf; }
.bl-doi { font-size: 12px; margin: -4px 0 6px; }
.bl-hdk .bl-luong:last-child { border-bottom: 0; }
@media (max-width: 900px) { .thanh-tren { padding: 8px 12px 0; } .bl-o { width: min(320px, calc(100vw - 16px)); } }
.vt-nd p, .vt-nd li, .bl-hdk > p { text-wrap: wrap; } /* anh Đạt 28/10: dùng hết bề ngang, không xuống dòng sớm */
.vt-gc { min-width: 170px; }
.nav.an { color: var(--faint); }
.nav.an.on { color: var(--brand); }
.tam-an-bao { margin: 12px 28px 0; padding: 8px 14px; border-radius: 10px; background: #fff6cc; color: #5c4a00; font-size: 13px; font-weight: 600; }
.tam-an-bao[hidden] { display: none; }
.vt-tbl tr.mo td, .vt-tbl tr.mo b { color: var(--faint); }
.vt-tbl tr.mo td { background: #fafbfe; }
.vt-chung-h td { background: var(--bg); padding: 10px 8px; }

/* ---------- Họp ---------- */
.hop-ds { display: grid; gap: 10px; }
.hop-the { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; text-decoration: none; color: var(--text); }
.hop-the:hover { border-color: var(--brand); }
.hop-tab { margin-bottom: 16px; }
.hop-tab button { padding: 8px 16px; font-size: 14px; }
.hop-k { padding: 18px 22px; margin-bottom: 14px; position: relative; }
.hop-k h2 { font-size: 16px; margin: 0 0 10px; }
.hop-luoi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.hop-ct td { vertical-align: top; }
.hop-ct td:nth-child(2) { width: 55%; }
.hop-ct textarea { min-height: 44px; }
.hop-phut { width: 70px; }
.hop-dd { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hop-dd-1 { display: flex; align-items: center; gap: 8px; }
.hop-muc { border-left: 4px solid var(--line); }
.hop-muc.chot { border-left-color: var(--ok); }
.hop-muc.sau { border-left-color: var(--yellow); }
.hop-muc.bo { border-left-color: #c9ced8; }
.hop-muc-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hop-muc-h h2 { margin: 0; }
.hop-tt { width: auto; padding: 6px 8px; }
.hop-ghi { min-height: 90px; }
.hop-viec ul { margin: 6px 0; padding-left: 20px; }
.hop-viec > b { display: block; font-size: 13px; color: var(--muted); }
.hop-them { display: grid; grid-template-columns: 1.6fr 1.5fr 1.5fr 150px auto auto; gap: 8px; margin-top: 8px; }
.hop-luu { position: absolute; bottom: 10px; right: 18px; font-size: 12px; }
.hop-k .hop-muc-h + .muted { margin: 4px 0 8px; }
.hop-luu.ok { color: var(--ok); }
.hop-bb { white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.6; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 10px 0; }
.hop-goi ul { margin: 0; padding-left: 20px; }
@media (max-width: 900px) { .hop-luoi, .hop-them { grid-template-columns: 1fr; } }
.hop-loi { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 70; background: #fdecea; color: #b42318; border: 1px solid #f5c2c0; border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.vt-tbl td.vt-ten-dai { white-space: normal; min-width: 90px; }
.vt-tu-hop { font-size: 12px; color: var(--faint); margin-top: 2px; }
.sv-dot { margin-bottom: 14px; }
.sv-tang { color: var(--ok); font-weight: 700; }
.sv-giam { color: #b42318; font-weight: 700; }
.vt-tg { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; align-items: end; margin-top: 4px; }
.vt-tg .field { margin-bottom: 8px; }
.vt-tg .btn { grid-column: 1 / -1; justify-self: start; }
.vt-ls { margin-top: 8px; font-size: 12px; color: var(--muted); }
.vt-ls summary { cursor: pointer; }
.vt-ls div { padding: 3px 0; }
.hop-bb-sua { min-height: 420px; font-size: 14px; line-height: 1.6; margin: 10px 0; }
.hop-bb-nut { gap: 8px; margin-bottom: 10px; }

/* ---------- Trao đổi, gọi tên (@), chuông thông báo (30/10/2026) ---------- */
.thanh-tren { gap: 8px; align-items: center; }
.thanh-tren a.btn { text-decoration: none; display: inline-block; }
.chuong { position: relative; pointer-events: auto; }
#chuong-nut b { background: #d92d20; color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 2px; }
.chuong-bang { position: absolute; right: 0; top: calc(100% + 6px); width: min(380px, calc(100vw - 16px)); max-height: min(70vh, 520px); display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 32px rgba(15, 25, 50, .2); overflow: hidden; }
.chuong-bang[hidden] { display: none; }
.chuong-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chuong-ds { overflow-y: auto; }
.chuong-mt { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 10px 14px 10px 24px; position: relative; font-size: 13px; }
.chuong-mt:hover { background: var(--bg); }
.chuong-mt.chua { background: var(--brand-soft); }
.chuong-mt.chua::before { content: ''; position: absolute; left: 10px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.chuong-tx { color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.chuong-mt .muted { font-size: 12px; }
.chuong-trong { padding: 14px; margin: 0; }
@media (max-width: 900px) { .chuong-bang { position: fixed; right: 8px; top: 52px; } }

.td-trang { max-width: 860px; }
.td-hoi { padding: 16px 20px; margin-bottom: 14px; }
.td-hoi h2 { font-size: 16px; margin: 0 0 8px; }
.td-hoi-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }
.td-loc { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.td-loc select.input { width: auto; max-width: 100%; padding: 6px 8px; font-size: 13px; }
.td-goi { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.td-dem { font-size: 12px; }
.td-luong { padding: 14px 18px; margin-bottom: 12px; }
.td-luong.xong .bl-trich { border-left-color: #c9ced8; background: var(--bg); }
.td-nut { margin-left: auto; display: inline-flex; gap: 12px; flex-wrap: wrap; }
.td-tieu { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.td-dong { font-size: 13px; color: var(--muted); }
.td-trich { margin-top: 8px; cursor: default; }
.td-trich:hover { background: #fffbe6; }
.td-mo { display: block; margin: 0 0 8px; }
.td-luong .bl-c { margin-top: 8px; }
.goi { background: var(--brand-soft); color: var(--brand); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.goi-ds { position: fixed; z-index: 80; width: min(300px, calc(100vw - 16px)); max-height: 280px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 32px rgba(15, 25, 50, .2); }
.goi-ds[hidden] { display: none; }
.goi-mt { display: flex; flex-direction: column; padding: 7px 12px; cursor: pointer; font-size: 13px; }
.goi-mt .muted { font-size: 11px; }
.goi-mt.on, .goi-mt:hover { background: var(--brand-soft); }
@media (max-width: 900px) { .td-luong { padding: 12px 14px; } .td-nut { margin-left: 0; } }

/* Dòng chữ không dài quá ~75 ký tự trên màn rộng (máy chấm thiết kế, 30/10/2026). */
#main p, #main li, #main blockquote, #main .vt-li span { max-width: 58ch; }
#main .bdv p, #main .bdv li, #main .bdv-trang p, #main .vt-nd p, #main .vt-nd li, #main .bl-hdk > p { max-width: none; text-wrap: wrap; } /* anh Đạt 4/11, 6/11: Bản đồ việc, Việc tháng 11-12 dùng hết bề ngang */
#main .okr-trang p, #main .okr-trang li { max-width: none; } /* OKRs: chữ trong ô dùng hết bề ngang, căn giữa đúng */

/* Tab gộp Trao đổi + Họp ("Bàn việc") */
.bv-tab { margin: 12px 28px 0; }
.bv-tab[hidden] { display: none; }
.bv-tab a { padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.bv-tab a.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0,40,130,.12); }
@media (max-width: 900px) { .bv-tab { margin: 10px 12px 0; } }
/* Trang OKRs Quý 4 */
.okr-nhan { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; background: #fff6cc; color: #5c4a00; font-size: 12px; font-weight: 700; }
/* OKRs (anh Đạt 6/11): mỗi bộ OKRs 1 khối có chủ sở hữu, O ở trên, các KR ngang hàng bên dưới.
   Bộ của CEO ở trên cùng, bộ các nhóm xếp 2-3 cột bên dưới, nối lên. */
.okr-tde { font-size: 18px; margin: 0 0 12px; }
.okr-bo { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.okr-chu { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.okr-chu b { color: var(--text); }
.okr-o { background: var(--brand); color: #fff; border-radius: 10px; padding: 12px 14px; text-align: center; }
.okr-o p { margin: 0; font-size: 16px; font-weight: 700; }
.okr-loai { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .85; margin-bottom: 2px; }
.okr-krs, .okrn-krs { display: grid; gap: 8px; margin-top: 8px; }
.okr-krs { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.okr-kr { background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; }
.okr-kr .okr-loai { color: var(--brand); opacity: 1; }
.okr-kr p { margin: 0; }
.okr-noi { display: flex; flex-direction: column; align-items: center; margin: 0 0 4px; }
.okr-noi::before { content: ''; width: 2px; height: 22px; background: var(--brand); }
.okr-noi span { border: 2px solid var(--brand); color: var(--brand); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; text-align: center; }
.okrn-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(280px, calc((100% - 24px) / 3)), 1fr)); gap: 12px; align-items: start; margin-bottom: 18px; }
.okrn-luoi .okr-o p { font-size: 14px; }
.okr-kr .okrn-tag { background: var(--card); }
.okrn-dang-sua { grid-column: 1 / -1; }
.okr-ghi { margin-top: 8px; font-size: 14px; }
.okr-ghi summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.okr-ghi ul { margin: 8px 0 0; padding-left: 20px; }
.okr-ghi li { margin-bottom: 4px; }
.vt-lk { display: block; margin-top: 4px; font-weight: 600; }

/* Check Agent theo người phụ trách (Bảng theo dõi) */
.ckag-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 10px; }
.ckag-khoi { border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 10px 12px; }
.ckag-khoi.cua-toi { border-color: var(--brand); background: var(--brand-soft); }
.ckag-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.ckag-h .pill:last-child { margin-left: auto; }
.ckag-ds { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.ckag-ds li { display: flex; gap: 6px; padding: 2px 0; }
.ckag-ds li.da span { color: var(--ok); }
.ckag-ds li.chua { color: #b42318; }
.ckag-trong { margin: 0; font-size: 13px; }
/* OKRs của từng nhóm (trang OKRs Quý 4) */
.okrn-gt { margin: 0 0 12px; text-align: center; }
.okrn-dau { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.okrn-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; }
.okrn-gan { display: block; margin-top: 4px; font-size: 12px; }
.okrn-ls { font-size: 12px; margin: 6px 0 0; }
.okrn-nhan { display: block; margin: 12px 0 4px; font-weight: 600; font-size: 13px; }
.okrn-mt-in, .okrn-chu { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.okrn-dong { padding: 10px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; }
.okrn-chon { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 6px 0; font-size: 13px; }
.okrn-chon label { cursor: pointer; }
.okrn-nut { display: flex; gap: 8px; margin-top: 10px; }
.okrn-nut .okrn-them { margin-right: auto; }

/* Bản đồ việc: 7 loại kết quả */
.bdv-mat { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.bdv-chip { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.bdv-chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.bdv-mat-o { margin-top: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bdv-mat-o .bdv-rong { grid-column: 1 / -1; }
.bdv-mat-o .bdv-tich { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.bdv-mat-o input.input, .bdv-mat-o select.input { max-width: 100%; min-width: 0; }

/* Điểm danh Zoom (trang-diem-danh.js) */
.dd > * { min-width: 0; }
.dd-buoi-ds { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.dd-buoi { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.dd-buoi p { margin: 4px 0 0; font-size: 13px; }
.dd-so strong { font-size: 24px; }
.dd-sec { padding: 16px; margin-bottom: 16px; min-width: 0; }
.dd-sec h2 { font-size: 18px; margin: 0 0 10px; }
.dd-nhom { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.dd-nhom > div { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.dd-loc { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.dd-loc .input { width: auto; min-width: 0; flex: 1 1 140px; min-height: 44px; }
.dd-chk { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; min-height: 44px; }
.dd-cuon { overflow-x: auto; max-width: 100%; }
.dd-bang { border-collapse: collapse; width: 100%; font-size: 13px; }
.dd-bang th, .dd-bang td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.dd-bang th { color: var(--muted); font-weight: 600; }
.dd-bang small { display: block; color: var(--muted); font-size: 12px; }
.dd-nhan { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 1px 8px; margin: 0 4px 2px 0; }
.dd-nhan.co { background: var(--ok-soft); color: var(--ok); }
.dd-nhan.muon { background: #fff4cc; color: #6b4f00; }
.dd-nhan.som { background: var(--brand-soft); color: var(--brand); }
.dd-nhan.vang { background: #fdecea; color: #b42318; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dd-nhan.muon { background: #4a3b00; color: #ffe27a; } :root:not([data-theme="light"]) .dd-nhan.vang { background: #4a1d19; color: #ff8a7a; } }
:root[data-theme="dark"] .dd-nhan.muon { background: #4a3b00; color: #ffe27a; }
:root[data-theme="dark"] .dd-nhan.vang { background: #4a1d19; color: #ff8a7a; }

/* Xem lại buổi Zoom (#/xem-lai) */
.xl-chon { margin-bottom: 14px; }
.xl-slide { padding: 18px; margin-bottom: 16px; }
.xl-slide h2 { margin: 0 0 6px; font-size: 18px; }
.xl-slide ul { margin: 0; padding-left: 20px; }
.xl-slide li { margin: 6px 0; line-height: 1.55; }
.xl-slide p { margin: 8px 0 0; font-size: 13px; }
.xl-video { padding: 18px; margin-bottom: 16px; }
.xl-video h2, .xl-hai h2 { margin: 0 0 4px; font-size: 18px; }
.xl-video video { display: block; width: 100%; max-height: 72vh; margin-top: 12px; border-radius: 10px; background: #000; }
.xl-hai { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.xl-tom-tat, .xl-anh { padding: 18px; }
.xl-tom-tat h3 { margin: 18px 0 6px; font-size: 15px; color: var(--brand); }
.xl-tom-tat ul { margin: 0; padding-left: 20px; }
.xl-tom-tat li { margin: 6px 0; line-height: 1.55; }
.xl-anh img { display: block; width: 100%; margin-top: 10px; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 860px) { .xl-hai { grid-template-columns: 1fr; } }
.td-thanh { width: 120px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.td-thanh i { display: block; height: 100%; background: var(--ok); }

/* Kiểm tra theo người phụ trách (trang-phu-trach.js) */
.tbl tr.pt-toi td { background: var(--brand-soft); }
.tbl tr.pt-tong td { font-weight: 600; border-top: 2px solid var(--line); }
.td-sec.pt-cua-toi { border-color: var(--brand); }
.tbl tr.pt-ct td { background: var(--bg); }
.pt-viec { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.pt-viec li span { display: block; font-size: 12px; }
.chk-mail.pt-loc { white-space: normal; margin-bottom: 10px; }
.pt-4tuan { display: flex; gap: 6px; margin-bottom: 4px; }
.pt-cham { display: inline-flex; flex-direction: column; align-items: center; min-width: 30px; font-weight: 700; font-size: 14px; line-height: 1.1; }
.pt-cham small { font-size: 11px; font-weight: 500; color: var(--muted); }
.pt-cham.da { color: var(--ok); }
.pt-cham.tre { color: #b54708; }
.pt-cham.chua { color: var(--faint); }
.pt-nhac { font-size: 12px; margin-bottom: 4px; }
.pt-nhac-form { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pt-nhac-form .input { min-width: 180px; flex: 1; }
.pt-bang td { min-width: 110px; }

/* Usecase AI (trang-usecase.js) */
.uc-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.uc-tab { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; }
.uc-tab button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.uc-tab button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.uc-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.uc-the { padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.uc-the:hover { border-color: var(--brand); }
.uc-the h3 { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.uc-nhan { display: flex; gap: 6px; flex-wrap: wrap; }
.uc-nhan:empty { display: none; }
.pill.uc-vd { background: #fff4d6; color: #8a5a00; }
.uc-nguoi { font-size: 12px; }
.uc-ts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; background: var(--bg); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.uc-ts.big { font-size: 18px; margin: 12px 0; }
.uc-sau { color: var(--ok); }
.uc-chan { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; font-size: 12px; }
.uc-vote { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: 13px; color: var(--muted); }
.uc-vote.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.uc-vote.dis { background: var(--bg); cursor: default; }
.uc-ct, .uc-form, .uc-claude { padding: 16px 18px; margin-bottom: 14px; }
.uc-ct h2 { margin: 8px 0 4px; overflow-wrap: anywhere; }
.uc-ct h4, .uc-form h4 { margin: 16px 0 6px; }
.uc-van { white-space: pre-wrap; margin: 0; overflow-wrap: anywhere; }
.uc-pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border-radius: 8px; padding: 10px 12px; margin: 6px 0; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.uc-bc { display: flex; flex-direction: column; gap: 8px; }
.uc-bc-o { position: relative; padding-right: 28px; min-width: 0; }
.uc-bc-o .bdv-xoa { position: absolute; top: 0; right: 0; }
.uc-anh { max-width: 160px; max-height: 120px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.uc-hanh { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.btn.uc-go { color: #b42318; }
.uc-fg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.uc-fg .field { min-width: 0; }
.uc-fg .uc-full { grid-column: 1 / -1; }
.uc-dem { font-weight: 500; margin-left: 6px; font-size: 12px; }
.uc-claude ol { padding-left: 20px; display: grid; gap: 12px; }
.uc-canh { margin: 6px 0 0; font-weight: 600; }
.uc-bang { padding: 4px 14px; }
.uc-dong { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.uc-dong:last-child { border-bottom: 0; }
.uc-hang { width: 28px; text-align: center; font-size: 18px; font-weight: 700; }
.uc-ten { flex: 1; min-width: 120px; }
@media (max-width: 600px) { .uc-fg { grid-template-columns: 1fr; } .uc-luoi { grid-template-columns: 1fr; } }

.uc-loai{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0}
.uc-chon{display:grid;gap:6px;margin-top:4px}
.uc-chon label{display:block;font-weight:500;cursor:pointer;line-height:1.4}
.uc-chon input{margin-right:6px;vertical-align:-2px}
.uc-loc{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 12px;font-size:13px}
.uc-loc select{width:auto;min-width:150px;flex:0 1 auto}
.uc-loc #uc-q{flex:1 1 220px;width:auto;min-width:200px}
.uc-nh{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.uc-nh small{font-weight:400}
.uc-so{margin:0 0 8px;font-size:13px}
.uc-lv{font-weight:600}
@media (max-width:600px){.uc-loc select{flex:1 1 100%}}
.uc-form .field small, .uc-form h4 small { font-size: 12px; }
.uc-claude ol li { margin-bottom: 12px; }
.uc-code { margin-top: 8px; }
.uc-code summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.uc-nhap { background: #FEF3C7; color: #92400E; }
.uc-nhap-ghi { background: #FEF3C7; color: #92400E; padding: 10px 12px; border-radius: 8px; margin: 12px 0; }
.xl-tai { padding: 14px 18px; margin-bottom: 16px; }
.xl-tai summary { cursor: pointer; font-weight: 600; }
.xl-tai-form { display: grid; gap: 10px; max-width: 520px; margin-top: 12px; }
.xl-tai-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.xl-tai-form button { justify-self: start; }


/* Slide Zoom 3 (#/zoom-3): máy chiếu, khung 1920×1080 thu phóng theo bề ngang */
.z3-san { background: #000; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; width: min(100%, max(520px, calc((100vh - 180px) * 16 / 9))); } /* co theo chiều cao để luôn thấy thanh nút bên dưới */
.z3-san:fullscreen { border-radius: 0; width: 100vw; height: 100vh; }
.z3-bao { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.z3-san:fullscreen .z3-bao { width: min(100vw, 177.78vh); }
.z3-man { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; box-sizing: border-box; background: #fff; color: #111; }
.z3-man.xanh { background: var(--brand); color: #fff; }
.z3-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.z3-bar b { min-width: 56px; text-align: center; }
.z3-bar-het { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.z3-che-do { display: inline-flex; gap: 6px; margin-left: 8px; }
.z3-che-do .btn.on { background: var(--brand); color: #fff; }
.z3-dang { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: #fdecec; color: #8a1c1c; font-size: 14px; line-height: 1.5; }
.z3-dang b { color: #c62828; }
.z3-thu { pointer-events: none; }
.z3-thu .z3-man { pointer-events: none; }
.z3-het { color: #fff; padding: 40px; text-align: center; }
/* phần tương tác trong khung 1920×1080: chữ 36–48px, nút cao ≥ 120px */
.z3-man .z3-cho { box-sizing: border-box; margin: 0 100px; display: flex; flex-direction: column; min-height: 0; font-size: 40px; }
.z3-man .z3-hoi { font-size: 44px; margin: 0 0 24px; line-height: 1.35; }
.z3-man .z3-lua { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.z3-man .z3-bc { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 140px; padding: 20px 32px; text-align: left; font-size: 40px; line-height: 1.3; cursor: pointer;
  background: #fff; color: #111; border: 4px solid var(--line); border-radius: 20px; font-family: inherit; }
.z3-man .z3-bc:hover:not(:disabled) { border-color: var(--brand); }
.z3-man .z3-bc:disabled { cursor: default; opacity: 1; }
.z3-man .z3-bc.on { border-color: var(--brand); background: var(--brand-soft); }
.z3-man .z3-bc b { font-size: 80px; line-height: 1; color: var(--brand); }
.z3-man .z3-nho { font-size: 34px; color: var(--muted); }
.z3-man .z3-yt-form { display: flex; gap: 20px; align-items: stretch; margin-bottom: 20px; }
.z3-man .z3-yt-form textarea { flex: 1; font: inherit; font-size: 40px; padding: 16px 20px; border: 3px solid var(--line); border-radius: 16px; resize: none; background: #fff; color: #111; }
.z3-man .z3-gui { font-size: 40px; min-height: 120px; padding: 0 48px; border-radius: 20px; }
.z3-man .z3-tieu { font-size: 40px; margin: 8px 0 12px; color: var(--brand); }
.z3-man .z3-tuong { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; align-content: start; }
.z3-man .z3-yt { padding: 14px 0; border-bottom: 2px solid var(--line); }
.z3-man .z3-yt b { font-size: 28px; }
.z3-xoay { display: none; }
@media (max-width: 600px) and (orientation: portrait) { .z3-xoay { display: block; margin: 12px 0 0; font-size: 15px; color: var(--muted); text-align: center; } }
.z3-man .z3-yt p { margin: 6px 0 0; font-size: 32px; white-space: pre-wrap; overflow-wrap: anywhere; }
.z3-man .z3-t-y-tuong, .z3-man .z3-t-do-vui { overflow: hidden; }
/* đố vui chơi chung: giảng viên bấm từng câu, cả lớp trả lời cùng lúc (màn Ôn tập) */
.z3-man.z3-dang-dv { padding: 100px 128px 56px; }
.z3-man.z3-dang-dv > .nhan, .z3-man.z3-dang-dv > .tieu { display: none; }
.z3-man .z3-dv { margin: 0; gap: 22px; }
.z3-man .z3-dv-so { font-size: 32px; font-weight: 700; color: var(--xanh); letter-spacing: 1px; }
.z3-man .z3-dv-hoi { font-size: 56px; font-weight: 700; line-height: 1.25; color: var(--chu); }
.z3-man .z3-dv-giua { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center; }
.z3-man .z3-dv-to { font-size: 220px; font-weight: 700; line-height: 1; color: var(--xanh); }
.z3-man .z3-dv-dem { font-size: 260px; font-weight: 700; line-height: 1; color: var(--xanh); }
.z3-man .z3-dv-nho { font-size: 40px; color: var(--chu-phu); }
.z3-man .z3-dv-nho b { color: var(--chu); }
.z3-man .z3-dv-chan { margin-top: auto; text-align: right; }
.z3-man .z3-dv-da { font-size: 48px; font-weight: 700; color: #22975A; }
.z3-man .z3-dv-ss { font-size: 52px; min-height: 140px; padding: 0 64px; border-radius: 24px; }
.z3-man .z3-dv-thanh { flex: none; height: 20px; border-radius: 999px; background: #E2E8F0; overflow: hidden; }
.z3-man .z3-dv-thanh i { display: block; height: 100%; background: var(--xanh); }
.z3-man .z3-dv-lua { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.z3-man .z3-dv-o { display: flex; align-items: center; gap: 24px; min-height: 150px; padding: 20px 32px; border: 0; border-radius: 20px; color: #fff; font: inherit; font-size: 40px; font-weight: 600; line-height: 1.25; text-align: left; }
.z3-man button.z3-dv-o { cursor: pointer; }
.z3-man button.z3-dv-o:hover { filter: brightness(1.08); }
.z3-man .z3-dv-o i { flex: none; font-style: normal; font-size: 48px; }
.z3-man .z3-dv-o span { flex: 1; min-width: 0; }
.z3-man .z3-dv-o b { flex: none; font-size: 64px; }
.z3-man .z3-dv-o0 { background: #D9483B; }
.z3-man .z3-dv-o1 { background: #2F6FDB; }
.z3-man .z3-dv-o2 { background: #B57B0E; }
.z3-man .z3-dv-o3 { background: #22975A; }
.z3-man .z3-dv-o.mo { background: #E2E8F0; color: var(--chu-phu); } /* đáp án sai: xám nhưng vẫn đọc được */
.z3-man .z3-dv-o.dung { outline: 8px solid var(--chu); outline-offset: 4px; }
.z3-man .z3-dv-chon { width: 1000px; max-width: 100%; justify-content: center; font-size: 52px; }
.z3-man .z3-dv-kq { font-size: 64px; font-weight: 700; text-align: center; }
.z3-man .z3-dv-kq.dung { color: #22975A; }
.z3-man .z3-dv-kq.sai { color: #D9483B; }
.z3-man .z3-dv-toi { font-size: 44px; text-align: center; color: var(--chu); }
.z3-man .z3-dv-toi b { color: var(--xanh); }
.z3-man .z3-dv-dk { display: flex; justify-content: flex-end; gap: 24px; margin-top: auto; }
.z3-man .z3-dv-dk .btn { font-size: 40px; min-height: 110px; padding: 0 56px; border-radius: 20px; }
.z3-man .z3-dv-tieu { font-size: 64px; font-weight: 700; color: var(--xanh); text-align: center; }
.z3-man .z3-dv-bang { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-template-rows: repeat(5, auto); grid-auto-columns: 1fr; gap: 0 64px; font-size: 40px; }
.z3-man .z3-dv-bang li { display: flex; align-items: center; gap: 24px; padding: 16px 0; border-bottom: 2px solid #E2E8F0; }
.z3-man .z3-dv-bang b { color: var(--xanh); }
.z3-man .z3-dv-h { flex: none; width: 64px; font-weight: 700; color: var(--xanh); }
.z3-man .z3-dv-ten { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z3-man .z3-dv-bucs { flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center; gap: 32px; }
.z3-man .z3-dv-buc { width: 440px; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 44px; text-align: center; }
.z3-man .z3-dv-buc .z3-dv-ten { max-width: 100%; flex: none; font-weight: 700; }
.z3-man .z3-dv-buc b { font-size: 36px; color: var(--chu-phu); }
.z3-man .z3-dv-buc div { width: 100%; padding-top: 24px; border-radius: 20px 20px 0 0; background: var(--xanh); color: #fff; font-size: 96px; font-weight: 700; }
.z3-man .z3-dv-buc1 div { height: 380px; }
.z3-man .z3-dv-buc2 div { height: 270px; background: var(--xanh-vua); }
.z3-man .z3-dv-buc3 div { height: 200px; background: var(--xanh-vua); }

/* cửa sổ ghi chú giảng viên */
.z3-gc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.z3-gc-top .btn { font-size: 22px; padding: 8px 20px; }
.z3-gc-top b { font-size: 22px; }
.z3-gc-gio { margin-left: auto; }
.z3-gc-luoi { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.z3-gc-luoi small { color: var(--muted); display: block; margin-bottom: 4px; }
.z3-gc-noi { font-size: 22px; line-height: 1.6; white-space: pre-wrap; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 700px) { .z3-gc-luoi { grid-template-columns: 1fr; } }

/* Thi lý thuyết (#/thi): dọc điện thoại, nút to */
.thi-wrap { max-width: 720px; margin: 0 auto; }
.thi-card { padding: 18px; margin-bottom: 14px; }
.thi-card h2 { margin: 0 0 8px; font-size: 19px; }
.thi-lon { font-size: 40px; font-weight: 800; margin: 6px 0; }
.thi-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.thi-gio { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.thi-gio.gap { color: #b42318; }
.thi-hoi { font-size: 18px; line-height: 1.45; margin: 0 0 14px; font-weight: 600; overflow-wrap: anywhere; }
.thi-chon { display: block; width: 100%; text-align: left; padding: 14px; margin-bottom: 10px; min-height: 52px; font-size: 16px; line-height: 1.4; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; overflow-wrap: anywhere; cursor: pointer; }
.thi-chon.on { border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.thi-nav { display: flex; gap: 10px; margin-top: 6px; }
.thi-nav .btn { flex: 1; min-height: 48px; font-size: 16px; }
.thi-cham { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.thi-cham button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-weight: 600; cursor: pointer; }
.thi-cham button.xong { background: var(--ok-soft); color: #00704c; }
.thi-cham button.hien { outline: 2px solid var(--brand); }
.thi-btn-lon { width: 100%; min-height: 54px; font-size: 17px; }
.thi-so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; text-align: center; }
.thi-so div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; }
.thi-so b { display: block; font-size: 24px; }
.thi-cuon { overflow-x: auto; }
@media (max-width: 600px) { .thi-lon { font-size: 34px; } }

/* Việc tuần: ô ghi kết quả sau khi tick, kết quả mới nhất, tiến độ nhiều người */
.vt-kq-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; cursor: default; }
.vt-kq-form .input { flex: 1 1 220px; min-width: 0; padding: 6px 10px; font-size: 13px; }
.vt-kq { margin-top: 4px; font-size: 12px; color: var(--muted); }
.vt-kq b { font-weight: 600; color: var(--text); }
.vt-tiendo { color: var(--muted); }
.vt-tiendo.ok { color: var(--ok); }
