/* eCentric Data — dựng trên token eCentric DS (ds/*.css) */
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface-lilac); color: var(--slate-600); font-family: var(--font-vn); font-size: 15px; line-height: 1.55; font-variant-numeric: tabular-nums; }
h1, h2, h3 { color: var(--navy-900); margin: 0; letter-spacing: var(--tracking-tight); line-height: 1.25; }
a { color: var(--navy-900); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--slate-500); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); font-size: 13px; }

.top { position: sticky; top: 0; z-index: 20; background: #fff; color: var(--navy-900); border-bottom: 1px solid var(--slate-200); }
.top .wrap { display: flex; align-items: center; height: var(--top-h, 56px); gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand b { display: block; color: var(--navy-900); font-size: 17px; font-weight: 800; }
.brand small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-500); }
.mark { width: 36px; height: 36px; border-radius: 10px; background: var(--yellow-500); color: var(--navy-900); display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.top-r { display: flex; gap: 8px; align-items: center; margin-left: auto; }

main.wrap { padding: 28px 20px 64px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--yellow-800); }
.section { margin-top: 28px; }
.section > h2 { font-size: 20px; margin: 4px 0 12px; }
.card { background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.kpi > span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); font-weight: 600; }
.kpi b { display: block; font-size: 22px; color: var(--navy-900); margin-top: 4px; font-weight: 800; word-break: break-all; }
.kpi small { display: block; margin-top: 4px; color: var(--slate-500); font-size: 12.5px; }
.kpi.dark { background: var(--navy-900); border-color: var(--navy-900); }
.kpi.dark > span, .kpi.dark small { color: rgba(255,255,255,.65); }
.kpi.dark b { color: var(--yellow-500); }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2; }
.btn-y { background: var(--yellow-500); color: var(--navy-900); }
.btn-y:hover { background: var(--yellow-700); }
.btn-n { background: var(--navy-900); color: #fff; }
.btn-o { background: #fff; color: var(--navy-900); border-color: var(--slate-200); }
.btn-o:hover { background: var(--surface-lilac); }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

input, select { font: inherit; font-size: 14px; padding: 9px 12px; border-radius: 6px; border: 1px solid var(--slate-200); background: #fff; color: var(--navy-900); }
input:focus, select:focus { outline: none; border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(0,10,64,.08); }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--navy-900); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ok { background: rgba(52,211,153,.15); color: #0D8A5F; }
.warn { background: var(--yellow-100); color: var(--yellow-800); }
.bad { background: #FEF2F2; color: var(--danger); }
.idle { background: var(--surface-lilac); color: var(--slate-600); }

.table-wrap { overflow-x: auto; border: 1px solid var(--slate-200); border-radius: 16px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { background: var(--surface-indigo-50); color: var(--slate-500); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 9px 10px; white-space: nowrap; }
td { border-top: 1px solid var(--slate-100); padding: 9px 10px; vertical-align: top; }
td b { color: var(--navy-900); }
.cell-ds { min-width: 118px; }
.cell-ds .d { font-size: 12px; color: var(--slate-500); }

.note { padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-top: 12px; }
.note.bad { display: block; }
.note.info { background: var(--surface-indigo-50); color: var(--slate-600); }
pre { background: var(--navy-900); color: #E6E9F5; border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; margin: 10px 0 0; }
.ds-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ds-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.ds-item b { color: var(--navy-900); display: block; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); z-index: 9; }
.gate { max-width: 420px; margin: 40px auto; }
.gate h1 { font-size: 24px; margin: 6px 0 8px; }
@media (max-width: 640px) { .top .wrap { min-height: var(--top-h, 56px); height: auto; padding: 8px 16px; flex-wrap: wrap; } main.wrap { padding: 20px 16px 48px; } .wrap { padding: 0 16px; } }

/* TAP: bước cấu hình + bảng hoa hồng theo PID */
.disabled-link { pointer-events: none; opacity: .45; }
#tap-pid { padding-bottom: 24px; }
.bulk { margin-top: 10px; padding: 10px 12px; background: var(--surface-indigo-50); border-radius: 8px; align-items: center; }
.pid-table td { vertical-align: middle; }
.pid-table .pid-name { min-width: 260px; max-width: 420px; }
.pid-table .pid-name b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pid-in { width: 128px; padding: 6px 8px; font-variant-numeric: tabular-nums; }
.pid-in.over { border-color: var(--danger); background: #FEF2F2; }
.pid-table tr.dirty td { background: var(--yellow-100); }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: var(--navy-900); color: #fff; padding: 12px 0; box-shadow: 0 -8px 24px rgba(0,10,64,.18); }
.savebar b { color: var(--yellow-500); font-size: 18px; }
.savebar .btn-o { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.sig-foot { border-top: 1px solid var(--slate-200); background: #fff; padding: 20px 0 96px; font-size: 13px; color: var(--slate-600); }
.sig-foot .wrap { display: flex; flex-direction: column; gap: 4px; }
.sig-foot b { color: var(--navy-900); }
.sig-foot a { color: var(--navy-900); font-weight: 600; }

/* ---------- trang (panel) ---------- */
.tb { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface-indigo-50); color: var(--navy-900); }
.tb.warn { background: var(--yellow-100); color: var(--yellow-800); }
.tb.bad { background: #FEF2F2; color: var(--danger); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-head h1 { font-size: 26px; }
.panel-head p { margin: 4px 0 0; max-width: 780px; }
.card h2 { font-size: 17px; margin: 0 0 6px; }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
a.kpi { text-decoration: none; transition: box-shadow .15s, transform .15s; }
a.kpi:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kpi b em { font-style: normal; font-size: 15px; color: var(--slate-500); font-weight: 600; }
.kpi.dark b em { color: rgba(255,255,255,.6); }
.kpi b.sm { font-size: 17px; }
.cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); margin-top: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }
.alerts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.alerts li { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; border-left: 4px solid; }
.alerts li.bad { background: #FEF2F2; border-color: var(--danger); color: #7F1D1D; }
.alerts li.warn { background: var(--yellow-100); border-color: var(--yellow-500); color: var(--slate-700); }
.alerts a { flex: none; font-weight: 700; font-size: 13px; }
.ok-line { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: rgba(52,211,153,.12); color: #0D8A5F; font-weight: 600; }
.job { padding: 10px 0; border-top: 1px solid var(--slate-100); }
.job:first-child { border-top: 0; padding-top: 2px; }
.job b { color: var(--navy-900); }
.bar { height: 8px; border-radius: 999px; background: var(--surface-indigo-50); overflow: hidden; margin: 6px 0 2px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow-500), var(--yellow-700)); border-radius: inherit; transition: width .4s; }
.approve.on { border-color: var(--yellow-500); }
.switch { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--navy-900); font-size: 13px; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--navy-900); }
.approve textarea { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--slate-200); border-radius: 6px; resize: vertical; }
.note-card { margin-bottom: 16px; }
.note-card.warn { border-color: var(--yellow-500); }
.step { border: 1px solid var(--slate-200); border-radius: 12px; padding: 14px; margin-top: 12px; }
.step b { color: var(--navy-900); }
.step p { margin: 6px 0 10px; }
.step.done { border-color: #34D399; background: #F3FCF8; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 16px 0 0; font-size: 13px; }
.facts dt { color: var(--slate-500); font-weight: 600; }
.facts dd { margin: 0; color: var(--navy-900); }
details summary { cursor: pointer; font-weight: 700; color: var(--navy-900); }
@media (max-width: 640px) { .panel-head h1 { font-size: 22px; } }
.approve form.row { flex-direction: column; align-items: stretch; }
.approve form.row .f input { width: 100% !important; max-width: 260px; }
.approve form.row textarea { width: 100%; }
.approve form.row .btn { align-self: flex-start; }

/* ---------- Chiến dịch creator (admin) ---------- */
.camp-admin { padding-top: 28px; padding-bottom: 96px; }
.tb:empty { display: none; }
.camp-list { display: grid; gap: 12px; }
.camp-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 14px; }
.camp-cover { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--surface-indigo-50); }
.camp-cover img { width: 100%; height: 100%; object-fit: cover; }
.camp-title { display: block; color: var(--navy-900); font-size: 16px; margin: 4px 0 2px; }
.camp-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.camp-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 320px; }
.camp-form { display: grid; gap: 16px; }
.fgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin-top: 10px; }
.fgrid .span2 { grid-column: 1 / -1; }
.fgrid input, .fgrid select, .fgrid textarea { width: 100%; }
.camp-form textarea { font: inherit; font-size: 14px; padding: 9px 12px; border-radius: 6px; border: 1px solid var(--slate-200); color: var(--navy-900); resize: vertical; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--navy-900); }
.pp-res, .pp-picked { display: grid; gap: 8px; margin-top: 10px; }
.pp-res { max-height: 360px; overflow: auto; }
.pp-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--slate-200); border-radius: 10px; background: #fff; }
.pp-item.on { border-color: var(--yellow-500); background: var(--yellow-100); }
.pp-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.pp-item b { display: block; color: var(--navy-900); font-size: 13.5px; }
.q-row { margin-top: 6px; align-items: center; }
.form-foot { position: sticky; bottom: 0; background: var(--surface-lilac); padding: 12px 0; }
.btn.danger { color: var(--danger); border-color: #FECACA; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.chip-f { border: 1px solid var(--slate-200); background: #fff; color: var(--navy-900); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip-f.on { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.bulk-bar { position: sticky; top: calc(var(--top-h, 56px) + 6px); z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--navy-900); color: #fff; }
.bulk-bar b { color: var(--yellow-500); }
.reg-table td { vertical-align: top; }
.reg-table .addr { min-width: 180px; max-width: 260px; }
.inl { width: 120px; padding: 6px 8px; font-size: 13px; }
.vid { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.vid a { display: inline-flex; gap: 6px; align-items: center; max-width: 220px; }
.vid img { width: 28px; height: 40px; object-fit: cover; border-radius: 4px; }
@media (max-width: 720px) { .camp-row { grid-template-columns: 64px 1fr; } .camp-cover { width: 64px; height: 64px; } .camp-act { grid-column: 1 / -1; justify-content: flex-start; max-width: none; } }
main.wrap.bare { padding-top: 0; padding-bottom: 0; }
.bulk-bar[hidden] { display: none; }

/* thành viên */
.hello { color: var(--slate-500); font-size: 13px; margin-right: 4px; }
.hello b { color: var(--navy-900); }
.invite-link { background: var(--surface-lilac); border: 1px dashed var(--slate-200); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; word-break: break-all; color: var(--navy-900); }
.mark-img { width: 36px; height: 36px; border-radius: 10px; display: block; }
.ok-note { background: rgba(52,211,153,.12); color: #0D8A5F; margin: 8px 0; }
.link-btn { background: none; border: 0; padding: 0; margin-left: 6px; color: var(--navy-900); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: underline; }
/* thành viên (members-ui.js): danh sách gọn + hộp thoại mời / sửa / chia sẻ */
.f-lbl { margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: var(--navy-900); }
.f-lbl small, .f-lbl .muted { font-weight: 400; }
.mem-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.mem-tools input[type=search] { flex: 1; min-width: 200px; max-width: 360px; padding: 7px 10px; }
.mem-mail { margin: 0 0 12px; color: var(--slate-500); }
.mem-list { padding: 4px 0; }
.ml-h, .ml-r { display: grid; grid-template-columns: minmax(220px, 1.3fr) minmax(200px, 1.5fr) minmax(120px, 1fr) 120px 96px; gap: 14px; align-items: center; padding: 10px 18px; }
.ml-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-500); border-bottom: 1px solid var(--slate-100); }
.ml-r { border-top: 1px solid var(--slate-100); }
.ml-h + .ml-r { border-top: 0; }
.ml-r:hover { background: var(--surface-lilac); }
.ml-r.off > :not(.ml-act) { opacity: .55; }
.ml-who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ml-who > div { min-width: 0; }
.ml-who b { color: var(--navy-900); font-size: 14px; }
.ml-who small, .sh-r small { display: block; font-size: 12.5px; color: var(--slate-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-k { display: none; }
.ml-sc { display: flex; flex-wrap: wrap; gap: 4px; }
.ml-act { display: flex; gap: 6px; justify-content: flex-end; }
.ml-empty { padding: 20px 18px; display: grid; gap: 10px; justify-items: start; }
.ml-empty p { margin: 0; }
.av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-indigo-100); color: var(--navy-900); font-size: 12px; font-weight: 800; }
.av.client { background: var(--yellow-100); color: var(--yellow-800); }
.av.own { background: var(--navy-900); color: var(--yellow-500); }
.kd { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--yellow-100); color: var(--yellow-800); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--surface-indigo-50); border: 1px solid #E4E8F6; color: var(--navy-900); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag.all { background: #fff; }
.more { position: relative; }
.more .menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 12; width: 270px; padding: 6px; background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; box-shadow: var(--shadow-lg); }
.more .menu[hidden] { display: none; }
.menu button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--navy-900); text-align: left; cursor: pointer; }
.menu button small { display: block; font-size: 12px; font-weight: 400; color: var(--slate-500); }
.menu button:hover, .menu button:focus-visible { background: var(--surface-lilac); outline: none; }
.menu button.danger { color: var(--danger); border-top: 1px solid var(--slate-100); border-radius: 0 0 8px 8px; }
@media (max-width: 900px) {
  .ml-h { display: none; }
  .ml-r { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 14px; }
  .ml-who { grid-column: 1; } .ml-act { grid-column: 2; grid-row: 1; }
  .ml-sc, .ml-sh, .ml-seen { grid-column: 1 / -1; }
  .ml-k { display: inline-block; width: 46px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500); }
}
/* hộp thoại */
.dlg { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--slate-200); border-radius: 16px; box-shadow: var(--shadow-lg); color: var(--slate-600); }
.dlg::backdrop { background: rgba(0,10,64,.4); }
.dlg-in { display: flex; flex-direction: column; max-height: calc(100vh - 34px); }
.dlg-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 18px 20px 12px; border-bottom: 1px solid var(--slate-100); }
.dlg-h h2 { font-size: 19px; margin: 2px 0 0; }
.dlg-h p { margin: 4px 0 0; }
.dlg-x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; font-size: 24px; line-height: 1; color: var(--slate-500); cursor: pointer; }
.dlg-x:hover { background: var(--surface-lilac); color: var(--navy-900); }
.dlg-b { flex: 1; overflow-y: auto; padding: 14px 20px 18px; }
.dlg-b > .note:first-child, .dlg-b > .res-list:first-child { margin-top: 0; }
.dlg-f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--slate-100); background: var(--surface-lilac); border-radius: 0 0 16px 16px; }
.dlg-f .sp { flex: 1; }
.dlg textarea { width: 100%; font: inherit; font-size: 14px; padding: 9px 12px; border-radius: 6px; border: 1px solid var(--slate-200); color: var(--navy-900); resize: vertical; }
.dlg textarea:focus { outline: none; border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(0,10,64,.08); }
.dlg label.f input { width: 100%; }
.perm-groups { display: grid; gap: 10px; }
.pg { margin: 0; padding: 4px 12px 8px; border: 1px solid var(--slate-200); border-radius: 12px; }
.pg legend { padding: 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-500); }
.perm { display: flex; gap: 10px; align-items: flex-start; padding: 7px 4px; border-radius: 8px; cursor: pointer; }
.perm + .perm { border-top: 1px solid var(--slate-100); }
.perm input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--navy-900); flex: none; }
.perm b { display: block; font-size: 14px; color: var(--navy-900); }
.perm small { display: block; font-size: 12.5px; line-height: 1.45; color: var(--slate-500); }
.perm:has(input:checked) { background: var(--yellow-100); }
.shop-scope[hidden], .sp-box[hidden], #mf-all[hidden] { display: none; }
.sp-box { display: grid; gap: 8px; margin-top: 10px; }
.sp-box input[type=search] { padding: 7px 10px; }
.sp-list { display: grid; gap: 6px; max-height: 220px; overflow: auto; padding: 8px 10px; border: 1px solid var(--slate-200); border-radius: 8px; background: var(--surface-lilac); }
.sp-list label[hidden] { display: none; }
#mf-all { margin: 8px 0 0; }
.sf-opt { margin-top: 12px; align-items: flex-start; }
.sf-opt input { margin-top: 4px; accent-color: var(--navy-900); }
.sh-list { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--slate-200); border-radius: 12px; }
.sh-r { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.sh-r + .sh-r { border-top: 1px solid var(--slate-100); }
.sh-r > div:not(.sh-act) { flex: 1; min-width: 0; }
.sh-r b { color: var(--navy-900); font-size: 14px; }
.sh-r.off { opacity: .6; }
.sh-act { display: flex; gap: 6px; flex: none; }
.sh-more { margin: 0; padding: 10px 12px; border-top: 1px solid var(--slate-100); }
.res-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.res-list li { padding: 8px 12px; border-radius: 8px; }
.res-list li.ok { background: rgba(52,211,153,.12); color: #0D8A5F; }
.res-list li.warn { background: var(--yellow-100); color: var(--slate-700); }
.res-list li.bad { background: #FEF2F2; color: var(--danger); }
@media (max-width: 640px) { .sh-r { flex-wrap: wrap; } .sh-act { width: 100%; padding-left: 44px; } .dlg-f > a { width: 100%; } .dlg-h, .dlg-b, .dlg-f { padding-left: 16px; padding-right: 16px; } }
/* trang đăng nhập: gửi link qua email */
.gate-mail { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--slate-100); }
.gate-mail b { color: var(--navy-900); font-size: 14px; }
.gate-mail p { margin: 2px 0 8px; }
#gm-msg { margin-top: 8px; }
/* Zalo OA: trạng thái tin xác nhận trong bảng đăng ký */
.oa-ok { color: #15803D; font-weight: 700; margin-top: 4px; }
.oa-bad { color: var(--danger); margin-top: 4px; }
/* Chiến dịch: ảnh bìa tải từ máy / kéo thả */
.f-cover { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--navy-900); }
.f-cover small { font-weight: 500; }
.cover-up { display: grid; gap: 8px; }
.cover-prev { width: min(100%, 420px); aspect-ratio: 16 / 9; border: 1.5px dashed var(--slate-200); border-radius: 10px; display: grid; place-items: center; text-align: center; padding: 8px; overflow: hidden; background: var(--surface-lilac); font-weight: 500; }
.cover-prev:has(img) { padding: 0; border-style: solid; }
.cover-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-prev.drag { border-color: var(--navy-900); background: var(--yellow-100); }
/* Chiến dịch: tin Zalo OA từng bước, thao tác nhanh, lịch sử creator, giao nhận CSV */
.zs-row { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; margin-top: 6px; max-width: 220px; }
.zs { display: inline-block; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; cursor: default; }
.row-acts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.hist { margin-top: 4px; color: var(--slate-500); }
.hist b { color: var(--navy-900); }
.ship-box { margin-top: 14px; }
.ship-box > summary { cursor: pointer; list-style: revert; }
.ship-steps { margin: 10px 0 6px; padding-left: 20px; line-height: 1.55; }
.ship-prev { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--slate-200); }
.ship-tbl { margin-top: 8px; max-height: 340px; overflow: auto; }
.tpl-row { padding: 8px 0; border-top: 1px dashed var(--slate-200); }
.tpl-row:first-of-type { border-top: 0; }
.ev-list { display: grid; gap: 4px; margin: 8px 0 4px 22px; }

/* ---------- Shop 360 (insights-ui.js) ---------- */
.s360 { padding-top: 28px; padding-bottom: 64px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.s3-filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; padding: 10px 12px; margin-bottom: 16px; position: sticky; top: calc(var(--top-h, 56px) + 8px); z-index: 6; }
.s3-filters select { width: 210px; max-width: 100%; padding: 7px 10px; font-weight: 600; }
.s3-custom { display: none; gap: 8px; align-items: center; flex-wrap: wrap; }
.s3-custom.on { display: flex; }
.s3-custom input { padding: 6px 8px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--surface-indigo-50); border-radius: 10px; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--slate-600); padding: 6px 8px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--navy-900); background: rgba(255,255,255,.6); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--navy-900); box-shadow: var(--shadow-xs); }
.seg.sm button { font-size: 12.5px; padding: 5px 9px; }
#s3-body { transition: opacity .2s; }
#s3-body.loading { opacity: .5; pointer-events: none; }
.s3-notes { margin: 0 0 14px; }
.s3-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
@media (max-width: 640px) { .s3-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .s3-tile { padding: 12px; } .s3-tile .tv { font-size: 20px; } .s3-tile .tl { font-size: 11px; } }
.s3-kpis.sm { margin-bottom: 14px; }
.s3-tile { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.s3-tile .tl { font-size: 12px; font-weight: 600; color: var(--slate-500); text-transform: uppercase; letter-spacing: .06em; }
.s3-tile .tv { font-size: 24px; font-weight: 800; color: var(--navy-900); font-variant-numeric: normal; line-height: 1.2; }
.s3-tile .tm { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 12.5px; }
.s3-tile .tm small { color: var(--slate-500); }
.s3-tile .spark { width: 100%; height: 30px; margin-top: 6px; }
.s3-tile.hero { background: var(--navy-900); border-color: var(--navy-900); grid-column: span 2; }
.s3-tile.hero .tl, .s3-tile.hero .tm small { color: rgba(255,255,255,.65); }
.s3-tile.hero .tv { color: var(--yellow-500); font-size: 48px; letter-spacing: -.02em; }
.s3-tile.hero .dl.good { color: #6EE7B7; }
.s3-tile.hero .dl.bad { color: #FCA5A5; }
.s3-tile.hero .dl.flat { color: rgba(255,255,255,.7); }
@media (max-width: 640px) { .s3-tile.hero .tv { font-size: 40px; } }
.dl { font-weight: 700; white-space: nowrap; }
.dl.good { color: #006300; }
.dl.bad { color: #B42318; }
.dl.flat { color: var(--slate-500); }
.s3-h { font-size: 20px; margin: 28px 0 10px; }
.s3-h3 { font-size: 13px; margin: 14px 0 6px; color: var(--navy-900); }
.s3-sub { margin: -4px 0 10px; }
.s3-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; align-items: start; }
.s3-grid > .card { min-width: 0; }
.s3-span2 { grid-column: span 2; }
.s3-span3 { grid-column: 1 / -1; }
@media (max-width: 960px) { .s3-grid { grid-template-columns: minmax(0, 1fr); } .s3-span2, .s3-span3 { grid-column: auto; } }
.s3-ch { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.s3-ch p { margin: 2px 0 0; }
.chart { width: 100%; margin-top: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--slate-600); margin: 8px 0 2px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend b { color: var(--navy-900); }
svg.viz { display: block; overflow: visible; font-family: var(--font-vn); }
svg.viz .gl { stroke: #E9ECF3; stroke-width: 1; }
svg.viz .gl.base { stroke: #C3C2B7; }
svg.viz text { font-size: 11px; fill: #898781; font-variant-numeric: tabular-nums; }
svg.viz .marks { pointer-events: none; }
svg.viz .hit { fill: transparent; cursor: crosshair; outline: none; }
svg.viz .hit:hover, svg.viz .hit:focus, svg.viz .hb:hover .hit, svg.viz .hb:focus .hit { fill: rgba(0,10,64,.045); }
svg.viz .hb { outline: none; }
svg.viz .xh { stroke: #898781; stroke-width: 1; opacity: 0; pointer-events: none; }
svg.viz .hb:hover .xh, svg.viz .hb:focus .xh { opacity: 1; }
svg.viz .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
svg.viz .wash { opacity: .1; }
svg.viz .dot { stroke: #fff; stroke-width: 2; }
.s360-tip { position: fixed; z-index: 50; pointer-events: none; background: #fff; border: 1px solid var(--slate-200); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 8px 10px; font-size: 12.5px; min-width: 150px; max-width: 320px; color: var(--slate-600); }
.s360-tip .tt-h { font-weight: 700; color: var(--navy-900); margin-bottom: 4px; }
.s360-tip .tt-r { display: grid; grid-template-columns: 12px auto 1fr; gap: 8px; align-items: center; line-height: 1.5; }
.s360-tip .tt-r i { width: 12px; height: 2px; border-radius: 1px; }
.s360-tip .tt-r i.none { background: transparent; }
.s360-tip .tt-r b { color: var(--navy-900); font-variant-numeric: tabular-nums; }
.s360-tip .tt-r span { color: var(--slate-500); }
.s360-tip .tt-f { margin-top: 4px; color: var(--slate-500); }
.mx { display: grid; gap: 14px; margin-top: 10px; }
.mx-h { display: flex; justify-content: space-between; gap: 8px; color: var(--navy-900); }
.mx-h span { display: inline-flex; gap: 8px; align-items: center; }
.mx-h i { width: 10px; height: 10px; border-radius: 3px; }
.mx-b { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--slate-500); margin: 2px 0 6px; }
.mx-b b { color: var(--navy-900); }
.meter { height: 8px; border-radius: 999px; background: #FDF0CF; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; }
.funnel { display: grid; gap: 6px; margin: 10px 0 4px; }
.fs { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-radius: 10px; background: var(--surface-indigo-50); }
.fs span { font-size: 13px; color: var(--slate-600); }
.fs b { font-size: 20px; color: var(--navy-900); font-variant-numeric: normal; }
.fa { font-size: 12.5px; color: var(--slate-500); padding-left: 14px; border-left: 2px solid var(--slate-200); margin-left: 14px; }
.fa b { color: var(--navy-900); }
.blist { display: grid; gap: 7px; margin-top: 8px; }
.bl-row { display: grid; grid-template-columns: minmax(80px, 46%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.bl-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--slate-700); }
.bl-bar { height: 10px; }
.bl-bar i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.bl-v { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bl-v b { color: var(--navy-900); }
.bl-v small { color: var(--slate-500); margin-left: 6px; }
.sbar { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; margin: 10px 0 4px; }
.sbar i { min-width: 2px; outline: none; }
.sbar i:hover, .sbar i:focus { filter: brightness(1.08); }
.sbar.mini { height: 8px; width: 90px; margin: 4px 0; }
.st-list { display: grid; gap: 4px; margin-top: 10px; font-size: 13px; }
.st-list div { display: grid; grid-template-columns: 1fr auto 52px; gap: 8px; }
.st-list b { color: var(--navy-900); text-align: right; }
.st-list small { color: var(--slate-500); text-align: right; }
.heat { display: grid; grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 2px; margin-top: 10px; font-size: 10.5px; color: #898781; }
.heat i { aspect-ratio: 1; border-radius: 3px; min-height: 10px; outline: none; }
.heat i:hover, .heat i:focus { box-shadow: 0 0 0 2px var(--navy-900); }
.heat .hd { align-self: center; }
.heat-scale { display: flex; align-items: center; gap: 3px; margin-top: 8px; font-size: 11px; color: #898781; }
.heat-scale i { width: 16px; height: 8px; border-radius: 2px; }
.heat-scale span { margin: 0 4px; }
.s3-t td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.s3-t th { white-space: nowrap; }
.s3-t.compact th, .s3-t.compact td { padding: 8px 7px; }
.s3-t.compact td:first-child { white-space: nowrap; }
.s3-t td.nm { min-width: 220px; max-width: 380px; }
.s3-t td.nm b, .s3-t td.nm a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s3-t td.nm span { display: block; font-size: 11.5px; }
.ib { display: block; height: 4px; margin-top: 4px; min-width: 60px; }
.ib i { display: block; height: 100%; border-radius: 2px 0 0 2px; margin-left: auto; }
.wf { display: grid; gap: 6px; margin-top: 10px; }
.wf-r { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 92px; gap: 10px; align-items: center; font-size: 13px; }
.wf-r.tot .wf-l { font-weight: 700; color: var(--navy-900); }
.wf-l { color: var(--slate-700); }
.wf-t { position: relative; height: 18px; }
.wf-t i { position: absolute; top: 0; bottom: 0; border-radius: 4px; outline: none; }
.wf-t i:focus, .wf-t i:hover { box-shadow: 0 0 0 2px var(--navy-900); }
.wf-v { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wf-v b { color: var(--navy-900); }
.wf-v small { display: block; color: var(--slate-500); font-size: 11.5px; }
@media (max-width: 640px) {
  .wf-r { grid-template-columns: 1fr 80px; }
  .wf-t { grid-column: 1 / -1; order: 3; }
  .bl-row { grid-template-columns: minmax(70px, 34%) 1fr auto; }
  .s3-filters { position: static; }
}

/* ---------- Mời shop kết nối (invites-ui.js) ---------- */
#invites-box h2 { display: flex; align-items: center; gap: 8px; }
.inv-sum { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 10px 0; }
.inv-tools { margin-bottom: 10px; align-items: center; }
.inv-tools input { padding: 7px 10px; }
.inv-t td { vertical-align: middle; }
.inv-t td:first-child { min-width: 180px; }

/* ---------- khung kiểu desk team.ecentric.vn: cột icon (mục chính) + sidebar + vùng nội dung ---------- */
:root { --rail-w: 60px; --side-w: 240px; --top-h: 56px; }
.rail, .side, .scrim, .menu-btn, .crumb { display: none; }
body.has-nav .rail { display: flex; position: fixed; top: 0; bottom: 0; left: 0; z-index: 30; width: var(--rail-w); flex-direction: column; align-items: center; gap: 6px; padding: 12px 0 14px; background: var(--navy-900); }
body.has-nav .side { display: flex; position: fixed; top: 0; bottom: 0; left: var(--rail-w); z-index: 29; width: var(--side-w); flex-direction: column; padding: 10px 10px 14px; background: #EFF1F9; border-right: 1px solid var(--slate-200); }
.side-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; } /* menu chọn mục tràn ra ngoài sidebar, chỉ phần này cuộn */
body.has-nav .main { margin-left: calc(var(--rail-w) + var(--side-w)); }
body.has-nav .crumb { display: flex; }
body.has-nav .top .brand { display: none; }
.rail-logo img { display: block; width: 36px; height: 36px; border-radius: 10px; }
.rail-sep { width: 28px; height: 1px; margin: 6px 0; background: rgba(255,255,255,.14); }
.rail-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: rgba(255,255,255,.62); cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.rail-btn:hover { color: #fff; background: rgba(255,255,255,.09); }
.rail-btn[aria-current="true"] { color: var(--navy-900); background: var(--yellow-500); }
.rail-btn .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #F87171; box-shadow: 0 0 0 2px var(--navy-900); }
.rail-help { margin-top: auto; }
.rail-help + .rail-av { margin-top: 6px; }
.rail-av { margin-top: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow-100); color: var(--yellow-800); font-size: 12px; font-weight: 800; }
.side-head { position: relative; margin-bottom: 4px; }
.mod-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border: 1px solid transparent; border-radius: 10px; background: none; font: inherit; color: var(--navy-900); text-align: left; cursor: pointer; }
.mod-btn > span { font-size: 15px; font-weight: 800; line-height: 1.3; }
.mod-btn small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); }
.mod-btn:hover, .mod-btn[aria-expanded="true"] { background: #fff; border-color: var(--slate-200); box-shadow: var(--shadow-xs); }
.mod-btn .ic { flex: none; color: var(--slate-500); transition: transform .15s; }
.mod-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.mod-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; width: 300px; max-width: calc(100vw - 24px); padding: 6px; background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; box-shadow: var(--shadow-lg); }
.mod-menu[hidden] { display: none; }
.mod-opt { width: 100%; display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: inherit; color: var(--navy-900); text-align: left; text-decoration: none; cursor: pointer; }
.mod-opt:hover, .mod-opt:focus-visible { background: var(--surface-lilac); outline: none; }
.mod-opt > .ic { flex: none; margin-top: 2px; color: var(--slate-500); }
.mod-opt[aria-checked="true"] { background: var(--surface-indigo-50); }
.mod-opt[aria-checked="true"] > .ic { color: var(--navy-900); }
.mod-opt > span { flex: 1; }
.mod-opt b { display: block; font-size: 14px; }
.mod-opt small { display: block; font-size: 12px; line-height: 1.4; color: var(--slate-500); }
.mod-menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--slate-100); }
.side-label { padding: 14px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); }
.si { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; color: var(--slate-600); font-size: 14px; font-weight: 600; text-decoration: none; }
.si > .si-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si .ic { flex: none; color: var(--slate-500); }
.si:hover { background: rgba(0,10,64,.05); color: var(--navy-900); }
.si[aria-current="page"] { background: #fff; border-color: var(--slate-200); box-shadow: var(--shadow-xs); color: var(--navy-900); }
.si[aria-current="page"] .ic { color: var(--navy-900); }
.si-guide { margin-top: auto; }
.si-guide + .side-foot { margin-top: 8px; }
.side-foot { margin-top: auto; padding: 12px 10px 0; display: grid; gap: 1px; border-top: 1px solid var(--slate-200); font-size: 12px; color: var(--slate-500); }
.side-foot b { color: var(--navy-900); font-size: 13px; }
.side-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-btn:focus-visible, .rail-logo:focus-visible, .si:focus-visible, .mod-btn:focus-visible, .menu-btn:focus-visible { outline: 2px solid var(--yellow-500); outline-offset: 2px; }
.crumb { align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: var(--slate-500); }
.crumb span { white-space: nowrap; }
.crumb i { font-style: normal; color: var(--slate-200); }
.crumb b { color: var(--navy-900); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { flex: none; width: 38px; height: 38px; place-items: center; border: 1px solid var(--slate-200); border-radius: 8px; background: #fff; color: var(--navy-900); cursor: pointer; }
body.has-nav .savebar { left: calc(var(--rail-w) + var(--side-w)); }
@media (max-width: 1023px) {
  body.has-nav .main { margin-left: 0; }
  body.has-nav .menu-btn { display: grid; }
  body.has-nav .rail { transform: translateX(-100%); transition: transform .2s ease; }
  body.has-nav .side { transform: translateX(calc(-100% - var(--rail-w))); transition: transform .2s ease; }
  body.nav-open .rail, body.nav-open .side { transform: none; }
  body.nav-open .side { box-shadow: var(--shadow-lg); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 28; background: rgba(0,10,64,.35); }
  body.has-nav .savebar { left: 0; }
  .crumb span, .crumb i, .hello { display: none; }
}
@media (max-width: 640px) { .s3-filters { position: static; } }

/* ---------- Hướng dẫn (guide-ui.js) ---------- */
/* Hướng dẫn › Quy trình chiến dịch creator: sơ đồ làn bơi (creator · creator-links · team · Zalo OA) */
.cf-h { font-size: 15px; color: var(--navy-900); margin: 18px 0 8px; }
.cf-h .muted { font-weight: 500; font-size: 13px; }
.cf-scroll { overflow-x: auto; border: 1px solid var(--slate-200); border-radius: 12px; background: #fff; }
.cf-lanes { display: grid; grid-template-columns: 124px repeat(8, minmax(150px, 1fr)); min-width: 1324px; }
.cf-lanes > div { padding: 9px; border-top: 1px solid var(--slate-100); min-width: 0; }
.cf-lanes > .cf-step, .cf-lanes > .cf-corner { border-top: 0; }
.cf-step { position: relative; padding-top: 12px !important; }
.cf-step::before { content: ""; position: absolute; left: 9px; right: -9px; top: 24px; height: 2px; background: var(--slate-200); }
.cf-step.last::before { right: 50%; }
.cf-n { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow-500); color: var(--navy-900); font-weight: 800; font-size: 12px; }
.cf-step b { display: block; margin-top: 5px; color: var(--navy-900); font-size: 13.5px; }
.cf-lane, .cf-corner { position: sticky; left: 0; z-index: 2; background: #fff; border-right: 1px solid var(--slate-200); }
.cf-lane { font-size: 13px; font-weight: 700; color: var(--navy-900); display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.cf-lane span { font-weight: 500; font-size: 12px; color: var(--slate-500); }
.cf-lane.zalo { color: #0068FF; }
.cf-c { font-size: 12.5px; line-height: 1.45; padding: 8px 9px; border-radius: 8px; background: var(--surface-lilac); border: 1px solid var(--slate-100); }
.cf-c b { color: var(--navy-900); }
.cf-c.team { background: var(--yellow-100); border-color: var(--yellow-200); }
.cf-c.zalo { background: #EEF4FF; border-color: #C7DAFF; }
.cf-tag { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0068FF; margin-bottom: 2px; }
.cf-st { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px; }
.cf-empty { color: var(--slate-500); font-size: 12px; }
.cf-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--slate-500); margin-top: 8px; }
.cf-sw { display: inline-block; width: 13px; height: 13px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; background: var(--surface-lilac); border: 1px solid var(--slate-200); }
.cf-sw.team { background: var(--yellow-100); border-color: var(--yellow-200); }
.cf-sw.zalo { background: #EEF4FF; border-color: #C7DAFF; }
.cf-tbl { min-width: 820px; }
.cf-tbl td { font-size: 13px; }
.cf-z { color: #0068FF; font-weight: 600; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }

.gd { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.gd-toc { position: sticky; top: calc(var(--top-h, 56px) + 12px); display: grid; gap: 2px; padding: 12px; max-height: calc(100vh - var(--top-h, 56px) - 24px); overflow-y: auto; }
.gd-toc button { border: 0; background: none; text-align: left; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--slate-600); padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.gd-toc button:hover, .gd-toc button:focus-visible { background: var(--surface-lilac); color: var(--navy-900); outline: none; }
.gd-k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); padding: 2px 8px 6px; }
.gd-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.gd-sec .mono { overflow-wrap: anywhere; }
.gd-check .gd-cl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 8px; margin-top: 10px; }
.gd-ci { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--slate-200); border-radius: 10px; text-decoration: none; color: var(--slate-600); font-size: 13.5px; }
.gd-ci:hover { border-color: var(--navy-900); }
.gd-ci span:not(.gd-dot) { flex: 1; }
.gd-ci b { color: var(--navy-900); font-size: 13px; white-space: nowrap; }
.gd-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--slate-200); }
.gd-dot.ok { background: #10B981; }
.gd-dot.warn { background: var(--yellow-500); }
.gd-dot.bad { background: var(--danger); }
.gd-dot.idle { background: #C3C2B7; }
.gd-sec { scroll-margin-top: calc(var(--top-h, 56px) + 16px); }
.gd-h { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.gd-h h2 { font-size: 19px; margin: 0; }
.gd-lead { margin: 6px 0 0; max-width: 820px; }
.gd-blks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 12px; margin-top: 14px; }
.gd-blks:empty { display: none; }
.gd-blk { padding: 12px 14px; border-radius: 12px; background: var(--surface-lilac); }
.gd-blk h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-500); margin: 0 0 8px; }
.gd-blk.gd-hl { background: var(--yellow-100); border: 1px solid var(--yellow-200); }
.gd-blk.gd-hl h3 { color: var(--yellow-800); }
.gd-ol, .gd-ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.55; }
.gd-ol li::marker { font-weight: 800; color: var(--navy-900); }
.gd-fix { margin-top: 12px; font-size: 14px; }
.gd-fix summary { font-size: 13.5px; }
.gd-fix dl { margin: 8px 0 0; display: grid; grid-template-columns: minmax(180px, 34%) 1fr; gap: 8px 16px; }
.gd-fix dt { font-weight: 700; color: var(--navy-900); }
.gd-fix dd { margin: 0; }
.gd-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: start; margin-top: 14px; }
.gd-arrow { align-self: center; }
.gd-col { display: grid; gap: 8px; }
.gd-col .gd-k { padding: 0 2px; }
.gd-node { padding: 10px 12px; border: 1px solid var(--slate-200); border-radius: 10px; background: #fff; }
.gd-node b { display: block; color: var(--navy-900); font-size: 13.5px; }
.gd-node small { display: block; font-size: 12px; color: var(--slate-500); line-height: 1.4; }
.gd-node.dark { background: var(--navy-900); border-color: var(--navy-900); }
.gd-node.dark b { color: var(--yellow-500); }
.gd-node.dark small { color: rgba(255,255,255,.7); }
.gd-arrow { font-size: 22px; color: var(--slate-500); font-weight: 700; }
@media (max-width: 960px) {
  .gd { grid-template-columns: minmax(0, 1fr); }
  .gd-toc { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 4px; }
  .gd-toc .gd-k { width: 100%; }
  .gd-toc button { border: 1px solid var(--slate-200); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; background: #fff; }
  .gd-flow { grid-template-columns: minmax(0, 1fr); }
  .gd-arrow { transform: rotate(90deg); justify-self: center; line-height: 1; }
  .gd-fix dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .gd-fix dd { margin-bottom: 8px; }
}
