/* =========================================================================
   Microads — Tiến độ dự án (help/tien-do.php)
   Hero tối dạng kính + các thẻ sáng để đọc lâu. Mọi khối con có min-width:0
   và chữ dài được bẻ dòng, để không trang nào bị tràn ngang trên điện thoại.
   ========================================================================= */

.pg { padding-block: 18px 60px; }
.pg *, .pg *::before, .pg *::after { min-width: 0; }
.pg h1, .pg h2, .pg h3, .pg h4, .pg p, .pg dd, .pg b, .pg span, .pg div { overflow-wrap: anywhere; }

.pg-muted { color: var(--ink-500); font-size: 13.5px; margin: 0; }

/* ── Cổng nhập mã ─────────────────────────────────────────────────────── */

.pg-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 56px;
  align-items: center;
  padding-top: 28px;
}

.pg-gate-copy .lede { max-width: 50ch; }

.pg-gate-feats {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pg-gate-feats li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(110, 160, 230, .2);
  background: linear-gradient(135deg, rgba(20, 56, 102, .5), rgba(10, 29, 56, .45));
}

.pg-gate-feats svg { width: 22px; height: 22px; color: var(--blue-300); margin-top: 2px; }
.pg-gate-feats b { display: block; color: #fff; font-size: 14.5px; margin-bottom: 2px; }
.pg-gate-feats span { color: #aac0de; font-size: 13.5px; line-height: 1.5; }

.pg-gate-card { padding: 30px 34px 30px; }
.pg-gate-card h2 { margin-top: 20px; }

.pg-code-input {
  font-family: var(--f-tech);
  font-size: 19px !important;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pg-code-input::placeholder { text-transform: none; letter-spacing: .02em; font-family: var(--f-body); font-weight: 400; font-size: 15px; }

.pg-gate-form .btn-submit { margin-top: 6px; }

/* Bộ chọn "Gửi yêu cầu hỗ trợ / Theo dõi tiến độ dự án" (dùng cả ở index.php) */
.pg-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: #eef2f8;
  border: 1px solid var(--line);
}

.pg-switch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: 600 14px/1.25 var(--f-body);
  color: var(--ink-700);
  text-align: center;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}

.pg-switch-btn svg { width: 18px; height: 18px; }
.pg-switch-btn:hover { color: var(--blue-600); }

.pg-switch-btn.on {
  background: #fff;
  color: var(--blue-600);
  box-shadow: 0 4px 14px -6px rgba(18, 87, 201, .45), 0 0 0 1px #d6e7ff;
}

.help-switch { margin: -6px 0 24px; }

.track-points {
  list-style: none;
  margin: 4px 0 22px;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
  border-radius: 14px;
  background: #f5f9ff;
  border: 1px solid #e0ecfb;
}

.track-points li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-700); }
.track-points svg { width: 18px; height: 18px; color: var(--blue-500); }

/* ── Hero dự án ───────────────────────────────────────────────────────── */

.pg-wrap { display: flex; flex-direction: column; gap: 18px; }

.pg-hero {
  position: relative;
  display: block;
  padding: 22px 28px 24px;
  border-radius: 20px;
  border: 1px solid rgba(120, 170, 240, .22);
  background:
    radial-gradient(600px 260px at 88% 0%, rgba(59, 147, 255, .22), transparent 70%),
    linear-gradient(140deg, rgba(20, 56, 102, .78), rgba(8, 24, 48, .82));
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}

.pg-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(110, 170, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 170, 255, .06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent 40%, #000);
  pointer-events: none;
}

.pg-hero > * { position: relative; z-index: 1; }

.pg-hero-top { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 14px; }
.pg-hero-top .pg-hero-actions { margin-left: auto; }

.pg-code-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #a9c3e6;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(146, 180, 235, .25);
}

.pg-code-tag svg { width: 14px; height: 14px; }
.pg-code-tag b { font-family: var(--f-tech); letter-spacing: .08em; color: #fff; }

.pg-tstat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

.pg-tstat i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.pg-tstat-active { color: #7fd0ff; background: rgba(59, 147, 255, .14); border: 1px solid rgba(111, 178, 255, .35); }
.pg-tstat-active i { animation: pulse 2.4s ease-in-out infinite; }
.pg-tstat-paused { color: #ffcf7a; background: rgba(217, 138, 11, .16); border: 1px solid rgba(255, 196, 92, .35); }
.pg-tstat-done { color: #8ff0bb; background: rgba(31, 164, 93, .16); border: 1px solid rgba(43, 208, 122, .38); }

.pg .pg-title {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
}

.pg-customer { display: flex; align-items: center; gap: 7px; margin: 0; color: #b3c6e2; font-size: 14px; }
.pg-customer svg { width: 16px; height: 16px; color: var(--blue-300); }
.pg-summary { margin: 6px 0 0; color: #9fb5d6; font-size: 13.5px; max-width: 80ch; }

.pg-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(146, 180, 235, .16);
  border: 1px solid rgba(146, 180, 235, .16);
}

.pg-facts > div { padding: 13px 16px; background: rgba(6, 21, 39, .55); }
.pg-facts dt { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #7f9cc6; margin-bottom: 4px; }
.pg-facts dd { margin: 0; color: #fff; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.pg-facts small { display: block; font-weight: 500; font-size: 12.5px; margin-top: 3px; }
.pg-muted-d { color: #8ea6c8; }

/* Bảng thông số dự án: 4 cột, hàng 2 là nhân sự — gọn, đủ thông tin */
.pg-sheet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(146, 180, 235, .15);
  border: 1px solid rgba(146, 180, 235, .18);
}
.pg-sheet > div { padding: 10px 16px 11px; background: rgba(6, 21, 39, .6); }
.pg-sheet-wide { grid-column: span 2; }
.pg-sheet dt { margin-bottom: 5px; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #7f9cc6; }
.pg-sheet dd { margin: 0; color: #fff; font-weight: 600; font-size: 14px; line-height: 1.45; }
.pg-of { color: #8ea6c8; font-weight: 500; }
.pg-ppl { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pg-ppl .pg-person, .pg-ppl .pg-person.is-lead { gap: 7px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 13.5px; }
.pg-ppl .pg-av { width: 22px; height: 22px; flex-basis: 22px; font-size: 9px; }
.pg-ppl .pg-person em { padding: 0 5px; font-size: 9.5px; line-height: 15px; color: #ffcf7a; background: none; border: 1px solid rgba(255, 196, 92, .5); }

.pg-people { display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px 34px; margin-top: 20px; }
.pg-person.is-lead { border-color: rgba(255, 196, 92, .55); background: rgba(217, 138, 11, .14); }
.pg-person em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; color: #2a1a00; background: #ffc45c; }
.pg-mini-people .pg-person.is-lead { background: #fff8ea; border-color: #f3d18f; }
.pg-label { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #7f9cc6; margin-bottom: 8px; }
.pg-people-list { display: flex; flex-wrap: wrap; gap: 8px; }

.pg-person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #e5efff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(146, 180, 235, .22);
}

.pg-av {
  --h: 210;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  font: 700 11px/1 var(--f-tech);
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(140deg, hsl(var(--h) 75% 58%), hsl(calc(var(--h) + 40) 70% 42%));
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25);
}

.pg-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.pg-btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(146, 180, 235, .32);
  background: rgba(255, 255, 255, .06);
  color: #e5efff;
  font: 600 13px/1.2 var(--f-body);
  cursor: pointer;
  transition: background .18s, border-color .18s;
}

.pg-btn-glass svg { width: 16px; height: 16px; }
.pg-btn-glass:hover { background: rgba(110, 170, 255, .16); border-color: var(--blue-400); }

/* ── Hoàn tất dự án / thông báo ───────────────────────────────────────── */

.pg-finish {
  display: flex;
  gap: 18px;
  padding: 24px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e9fbf1, #f6fffa);
  border: 1px solid #bfe6cd;
  color: var(--ink-900);
}

.pg-finish-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #2bd07a, #158a4c);
  box-shadow: 0 10px 22px -10px rgba(21, 138, 76, .8);
}

.pg-finish-ico svg { width: 24px; height: 24px; stroke-width: 2.4; }
.pg-finish h2 { margin: 2px 0 4px; font-size: 21px; color: #0f6b3a; }
.pg-finish p { margin: 0; color: var(--ink-700); }
.pg-finish-note { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #d3eedd; font-size: 14px; color: var(--ink-700); }
.pg-finish-note b { display: block; margin-bottom: 4px; color: var(--ink-900); }

/* ── Thẻ sáng ─────────────────────────────────────────────────────────── */

.pg-panel {
  padding: 20px 24px;
  border-radius: 20px;
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--shadow-card);
}

.pg-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line-soft); }

.pg-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-500);
  transition: background .18s, color .18s;
}

.pg-tab svg { width: 17px; height: 17px; }
.pg-tab:hover { background: #f3f7fd; color: var(--ink-900); }
.pg-tab.on { background: #eaf3ff; color: var(--blue-600); }
.pg-count { padding: 1px 8px; border-radius: 999px; background: #dbe9ff; font-size: 12px; color: var(--blue-600); }

.pg-tabs:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }

.pg-daynav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.pg-nav-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  color: var(--ink-700);
  background: #fff;
  transition: border-color .18s, color .18s;
}

.pg-nav-btn:hover { border-color: var(--blue-400); color: var(--blue-600); }
.pg-nav-btn.is-off { opacity: .35; pointer-events: none; }
.pg-nav-btn svg { width: 18px; height: 18px; }

.pg-daylabel { flex: 1 1 200px; display: flex; flex-direction: column; line-height: 1.3; }
.pg-daylabel b { font-size: 18px; color: var(--ink-900); }
.pg-daylabel span { font-size: 12.5px; color: var(--blue-600); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.pg-datepick { display: flex; gap: 8px; flex-wrap: wrap; }

.pg-date {
  height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  font: 500 14px var(--f-body);
  color: var(--ink-900);
  background: #fff;
}

.pg-date:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(59, 147, 255, .18); }

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-900);
  font: 600 14px/1.2 var(--f-body);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .18s, background .18s, color .18s;
}

.pg-btn svg { width: 17px; height: 17px; }
.pg-btn:hover { border-color: var(--blue-400); color: var(--blue-600); }
.pg-btn-pri { border-color: transparent; color: #fff; background: linear-gradient(92deg, var(--blue-600), var(--blue-400)); box-shadow: 0 10px 22px -12px rgba(30, 116, 232, .9); }
.pg-btn-pri:hover { color: #fff; filter: brightness(1.06); }

.pg-strip {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.pg-strip-day {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 76px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  transition: border-color .18s, background .18s;
}

.pg-strip-day span { font-size: 11.5px; font-weight: 600; color: var(--ink-500); }
.pg-strip-day b { font: 700 16px/1.2 var(--f-tech); color: var(--ink-900); }
.pg-strip-day i { font-style: normal; font-size: 11px; color: var(--ink-400); white-space: nowrap; }
.pg-strip-day:hover { border-color: var(--blue-300); }
.pg-strip-day.on { background: linear-gradient(160deg, #1e74e8, #1257c9); border-color: transparent; }
.pg-strip-day.on span, .pg-strip-day.on b, .pg-strip-day.on i { color: #fff; }

/* Số liệu trong ngày */
.pg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.pg-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(146, 180, 235, .2);
}

.pg-stat b { display: block; font: 700 26px/1.1 var(--f-tech); color: #fff; }
.pg-stat span:not(.pg-stat-ico) { font-size: 13px; color: #a9c0e0; }

.pg-stat-ico { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; color: #c9dcff; background: rgba(146, 180, 235, .14); }
.pg-stat-ico svg { width: 20px; height: 20px; }
.pg-stat-ico.blue { color: #7fd0ff; background: rgba(59, 147, 255, .18); }
.pg-stat-ico.green { color: #6ff0aa; background: rgba(31, 164, 93, .2); }
.pg-stat-ico.amber { color: #ffd27f; background: rgba(217, 138, 11, .2); }

/* Cập nhật chung */
.pg-general h3, .pg-day-log h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; }
.pg-general h3 svg { width: 18px; height: 18px; color: var(--amber-500); }

/* ── Thẻ hạng mục ─────────────────────────────────────────────────────── */

.pg-items { display: grid; gap: 16px; }

.pg-item {
  position: relative;
  padding: 22px 26px 22px 30px;
  border-radius: 20px;
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 20px;
}

.pg-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--blue-400), var(--blue-600));
}

.pg-item.is-done::before { background: linear-gradient(180deg, #2bd07a, #158a4c); }
.pg-item:target { box-shadow: var(--shadow-card), 0 0 0 3px rgba(59, 147, 255, .45); }

.pg-item-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.pg-item-h h3 { flex: 1 1 260px; margin: 0; font-size: 18px; line-height: 1.35; }
.pg-item-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.pg-seq {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  font: 700 13px/1 var(--f-tech);
  letter-spacing: .04em;
  color: var(--blue-600);
  background: #eaf3ff;
}

.pg-new { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #6b34c9; background: #f1eafe; }

.pg-st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pg-st i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pg-st-received { color: #46596f; background: #eef2f8; }
.pg-st-in_progress { color: #1257c9; background: #e3efff; }
.pg-st-testing { color: #6b34c9; background: #f1eafe; }
.pg-st-paused { color: #a86800; background: #fff3dc; }
.pg-st-done { color: #11804a; background: #e2f6ea; }
.pg-st-in_progress i { animation: pulse 1.8s ease-in-out infinite; }

.pg-item-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px 20px;
  margin: 18px 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f7f9fd;
  border: 1px solid var(--line-soft);
}

.pg-item-meta dt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-500); margin-bottom: 5px; }
.pg-item-meta dt svg { width: 14px; height: 14px; }
.pg-item-meta dd { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-900); }
.pg-item-meta dd b { font: 700 16px var(--f-tech); }
.pg-item-meta small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; }

.pg-mini-people { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-mini-people .pg-person { color: var(--ink-900); background: #fff; border-color: var(--line); font-size: 12.5px; padding: 2px 10px 2px 2px; }
.pg-mini-people .pg-av { width: 22px; height: 22px; flex-basis: 22px; font-size: 9.5px; }

.pg-eta-ok { color: var(--green-500); }
.pg-eta-soon { color: var(--amber-500); }
.pg-eta-late { color: var(--red-500); }
.pg-eta-none { color: var(--ink-400); }
.pg-hero .pg-eta-ok { color: #6ff0aa; }
.pg-hero .pg-eta-soon { color: #ffd27f; }
.pg-hero .pg-eta-late { color: #ff8f8b; }

.pg-progress-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; font-size: 13px; color: var(--ink-500); }
.pg-progress-h b { font: 700 20px/1 var(--f-tech); color: var(--blue-600); }
.pg-item.is-done .pg-progress-h b { color: #11804a; }

.pg-bar { height: 10px; border-radius: 999px; background: #e8eef7; overflow: hidden; }

.pg-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b93ff, #1257c9);
  background-size: 200% 100%;
  animation: pgFill 1s cubic-bezier(.2, .8, .2, 1) both;
}

.pg-bar.is-done span { background: linear-gradient(90deg, #2bd07a, #158a4c); }

@keyframes pgFill { from { transform: translateX(-100%); } to { transform: none; } }

.pg-detail { margin-top: 14px; font-size: 14px; color: var(--ink-700); }
.pg-detail summary { cursor: pointer; font-weight: 600; color: var(--blue-600); }
.pg-detail > div { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: #f7f9fd; }

.pg-day-log { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.pg-day-log h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }

.pg-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }

.pg-tl li {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 12px;
  font-size: 14px;
  color: var(--ink-700);
}

.pg-tl li::before {
  content: '';
  position: absolute;
  left: 63px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-400);
  box-shadow: 0 0 0 3px #e3efff;
}

.pg-tl li::after {
  content: '';
  position: absolute;
  left: 67px;
  top: 20px;
  bottom: 2px;
  width: 1px;
  background: var(--line);
}

.pg-tl li:last-child::after { display: none; }
.pg-tl li.k-done::before { background: var(--green-500); box-shadow: 0 0 0 3px #e2f6ea; }
.pg-tl li.k-reopen::before { background: var(--amber-500); box-shadow: 0 0 0 3px #fff3dc; }
.pg-tl li.k-received::before { background: #6b34c9; box-shadow: 0 0 0 3px #f1eafe; }
.pg-tl time { font: 700 14px/1.6 var(--f-tech); color: var(--ink-900); }
.pg-tl li > div { padding-left: 18px; line-height: 1.6; }
.pg-tl-k { margin-right: 6px; color: #6b34c9; }
.pg-tl-k.ok { color: #11804a; }
.pg-tl-k.warn { color: #a86800; }
.pg-pct-tag { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; font: 700 12px/1.7 var(--f-tech); color: var(--blue-600); background: #e3efff; }
.pg-by { font-size: 12.5px; color: var(--ink-400); }

.pg-done-box { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #e9fbf1, #f6fffa); border: 1px solid #bfe6cd; }
.pg-done-h { display: flex; align-items: center; gap: 8px; color: #11804a; }
.pg-done-h svg { width: 20px; height: 20px; stroke-width: 2.4; }
.pg-done-body { margin-top: 10px; font-size: 14px; color: var(--ink-700); }
.pg-done-body > span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #3a8a5f; margin-bottom: 4px; }

/* Trống */
.pg-empty { text-align: center; padding: 40px 24px; }
.pg-empty-ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: var(--blue-500); background: #eaf3ff; margin-bottom: 10px; }
.pg-empty-ico svg { width: 28px; height: 28px; }
.pg-empty h3 { margin: 0 0 6px; font-size: 18px; }
.pg-empty p { margin: 0 auto 18px; max-width: 52ch; color: var(--ink-500); font-size: 14px; }

/* ── Toàn bộ hạng mục ─────────────────────────────────────────────────── */

.pg-all { padding: 8px 10px; }

.pg-all-head, .pg-all-row {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
}

.pg-all-head { padding-inline: 15px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-400); }
/* Mỗi yêu cầu là một ô riêng, có khoảng cách — xem trên điện thoại không bị liền nhau */
.pg-all-row { margin-top: 10px; border: 1.6px solid #d1dae8; border-radius: 14px; background: #fff; font-size: 13.5px; color: var(--ink-700); box-shadow: 0 1px 2px rgba(15, 36, 67, .04); transition: background .15s, border-color .15s; }
.pg-all-row:hover { background: #f5f9ff; border-color: var(--blue-300); }
.pg-all-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pg-all-title b { color: var(--ink-900); font-size: 14.5px; flex: 1 1 160px; }
.pg-all-pct { display: flex; align-items: center; gap: 10px; }
.pg-all-pct .pg-bar { flex: 1; height: 8px; }
.pg-all-pct b { font: 700 14px var(--f-tech); color: var(--ink-900); min-width: 42px; text-align: right; }

/* ── Cuối trang ───────────────────────────────────────────────────────── */

.pg-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 18px;
  border: 1px solid rgba(146, 180, 235, .22);
  background: rgba(255, 255, 255, .05);
}

.pg-cta b { display: block; color: #fff; font-size: 16px; }
.pg-cta span { color: #a9c0e0; font-size: 14px; }
.pg-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-cta .pg-btn:not(.pg-btn-pri) { background: transparent; color: #fff; border-color: rgba(146, 180, 235, .38); }

.pg-foot-note { margin: 0; text-align: center; font-size: 12.5px; color: var(--on-dark-faint); }

.pg-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 100;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: 12px;
  background: #0f2443;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .6);
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

.pg-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── Màn hình hẹp ─────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .pg-gate { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pg-gate-card { max-width: 620px; width: 100%; margin-inline: auto; }
  .pg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-item-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .pg-people { grid-template-columns: minmax(0, 1fr); }
  .pg-all-head { display: none; }
  .pg-all-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; margin-top: 14px; padding: 16px 14px; background: #fbfcfe; }
  .pg-all-row:first-of-type { margin-top: 4px; }
  .pg-all-title { grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
  .pg-all-c::before { content: attr(data-l); display: block; font-size: 11px; color: var(--ink-400); text-transform: uppercase; letter-spacing: .06em; }
  .pg-all-pct { grid-column: 1 / -1; flex-wrap: wrap; }
  .pg-all-pct::before { width: 100%; }
}

@media (max-width: 560px) {
  .pg { padding-top: 6px; }
  .pg-gate-feats { grid-template-columns: minmax(0, 1fr); }
  .pg-gate-card { padding: 22px 18px; }
  .pg-switch-btn { font-size: 13px; padding: 8px 6px; min-height: 52px; }
  .pg-facts { grid-template-columns: minmax(0, 1fr); }
  .pg-panel { padding: 16px; border-radius: 16px; }
  .pg-item { padding: 18px 16px 18px 20px; border-radius: 16px; }
  .pg-item-meta { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .pg-stats { gap: 10px; }
  .pg-stat { padding: 12px; gap: 10px; }
  .pg-stat-ico { width: 36px; height: 36px; flex-basis: 36px; }
  .pg-stat b { font-size: 22px; }
  .pg-daylabel { order: -1; flex-basis: 100%; }
  .pg-datepick { flex: 1 1 100%; }
  .pg-date { flex: 1; min-width: 0; }
  .pg-tl li { grid-template-columns: 46px minmax(0, 1fr); gap: 8px; }
  .pg-tl li::before { left: 50px; }
  .pg-tl li::after { left: 54px; }
  .pg-tl li > div { padding-left: 14px; }
  .pg-cta-btns, .pg-cta-btns .pg-btn { width: 100%; }
  .pg .pg-title { font-size: 20px; }
}

/* ── In / lưu PDF ─────────────────────────────────────────────────────── */

@media print {
  body, .page { background: #fff !important; color: #000; }
  .page::before, .site-head, .site-foot, .pg-hero-actions, .pg-daynav form, .pg-cta, .pg-toast, .pg-strip, .pg-tabs { display: none !important; }
  .pg-hero { background: #0a1d38 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pg-item, .pg-panel { box-shadow: none; border: 1px solid #dde4ee; break-inside: avoid; }
  .pg-stats { display: none; }
}

/* ── Theo từng yêu cầu / tệp tải về ──────────────────────────────────── */

.pg-h2 { display: flex; align-items: center; gap: 9px; margin: 6px 6px 14px; font-size: 17px; color: var(--ink-900); }
.pg-h2 svg { width: 20px; height: 20px; color: var(--blue-500); }
.pg-daybar .pg-h2 { margin: 0 0 14px; }
.pg-ok { color: #11804a; font-weight: 600; }
.pg-att { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--blue-600); background: #eaf3ff; }
.pg-att svg { width: 13px; height: 13px; }

.pg-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pg-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d6e5fa;
  background: #f5f9ff;
  transition: border-color .15s, background .15s;
}
.pg-file:hover { border-color: var(--blue-400); background: #edf5ff; }
.pg-file-ext { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; font: 700 11.5px var(--f-tech); color: #fff; background: linear-gradient(140deg, #ff6b5b, #d1342a); }
.pg-file-m { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pg-file-m b { font-size: 14px; color: var(--ink-900); overflow-wrap: anywhere; }
.pg-file-m span { font-size: 12.5px; color: var(--ink-500); }
.pg-file-dl { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 13px; color: #fff; background: linear-gradient(92deg, var(--blue-600), var(--blue-400)); }
.pg-file-dl svg { width: 16px; height: 16px; }
.pg-file-dl svg.rot { transform: rotate(180deg); }
.pg-item-files { margin-top: 16px; }
.pg-item-files h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }

@media (max-width: 1080px) {
  .pg-people { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .pg-hero { padding: 22px 18px 24px; }
  .pg-hero-top .pg-hero-actions { margin-left: 0; width: 100%; }
  .pg-people { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .pg-hero-top .pg-hero-actions .pg-btn-glass { flex: 1 1 0; justify-content: center; padding: 8px 8px; font-size: 12.5px; white-space: nowrap; }
  .pg-file { flex-wrap: wrap; }
  .pg-file-dl { width: 100%; justify-content: center; }
}

/* Văn bản yêu cầu / nội dung đã chỉnh sửa */
.pg-rich p { margin: 0 0 4px; }
.pg-rich .pg-rich-h { margin: 12px 0 4px; font-weight: 700; color: var(--ink-900); }
.pg-rich .pg-rich-h:first-child { margin-top: 2px; }
.pg-rich-ul { margin: 0 0 6px; padding-left: 20px; }
.pg-rich-ul li { margin: 2px 0; }
.pg-done-body .pg-rich .pg-rich-h { color: #0f6b3a; }

/* ── Thanh "Nhật ký cập nhật" gọn: Hôm nay · Hôm qua · Tất cả · Lịch ─── */
.pg-daybar { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px 12px 20px; }
.pg-daybar .pg-h2 { margin: 0; font-size: 15.5px; }
.pg-daybar .pg-h2 svg { width: 18px; height: 18px; }
.pg-daybar .pg-general { flex: 1 1 100%; margin-top: 2px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pg-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pg-seg-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-700);
  font: 600 13.5px/1 var(--f-body);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.pg-seg-btn small { font-size: 12px; font-weight: 500; color: var(--ink-400); }
.pg-seg-btn i { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font: 700 11px/1 var(--f-body); font-style: normal; color: var(--blue-600); background: #e6f0ff; }
.pg-seg-btn svg { width: 16px; height: 16px; color: var(--blue-500); }
.pg-seg-btn:hover { border-color: var(--blue-300); color: var(--ink-900); }
.pg-seg-btn.on { border-color: transparent; color: #fff; background: linear-gradient(160deg, #1e74e8, #1257c9); }
.pg-seg-btn.on small { color: rgba(255, 255, 255, .78); }
.pg-seg-btn.on i { color: #fff; background: rgba(255, 255, 255, .22); }
.pg-seg-btn.on svg { color: #fff; }
/* Sau khi bấm một ngày, trang mở lại ở #ngay: chừa chút khoảng phía trên khối */
.pg-daybar { scroll-margin-top: 12px; }
/* Dòng trạng thái: đang xem ngày nào, bao nhiêu cập nhật — hoặc ngày trống */
.pg-daystat { flex: 1 1 100%; margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13.5px; line-height: 1.5; color: var(--ink-500); }
.pg-daystat b { color: var(--ink-900); font-weight: 650; }
.pg-daystat.is-empty { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px dashed #c9d6ea; border-radius: 12px; background: #f6f9fe; }
.pg-daystat.is-empty > svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--ink-400); }
.pg-daystat.is-empty > div, .pg-daystat.is-empty > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pg-daystat.is-empty b { font-size: 14.5px; }
.pg-daystat-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pg-daystat-go .pg-btn { height: 34px; font-size: 13px; }
.pg-daystat-go .pg-btn svg { width: 15px; height: 15px; }
.pg-jday-none { margin: 0 0 12px; scroll-margin-top: 16px; }
/* Đang tải ngày vừa bấm: vòng quay nhỏ trên nút, làm mờ nội dung cũ */
.pg-seg-btn.is-loading::after, .pg-daystat-go .pg-btn.is-loading::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: pg-spin .7s linear infinite;
}
.pg-daystat-go .pg-btn { position: relative; }
.pg-daybar.is-loading .pg-daystat, .pg-daybar.is-loading ~ .pg-all { opacity: .55; transition: opacity .2s; }
@keyframes pg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pg-seg-btn.is-loading::after, .pg-daystat-go .pg-btn.is-loading::after { animation-duration: 2s; } }

/* Lịch chọn ngày (tiếng Việt, tuần bắt đầu từ Thứ Hai) */
.pg-cal { position: relative; }
.pg-cal-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: min(304px, calc(100vw - 40px));
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-900);
  box-shadow: 0 22px 44px -14px rgba(15, 36, 67, .38);
}
.pg-cal-pop[hidden] { display: none; }
.pg-cal-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pg-cal-h b { font-size: 14.5px; }
.pg-cal-nav { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-700); cursor: pointer; }
.pg-cal-nav svg { width: 16px; height: 16px; }
.pg-cal-nav:hover:not(:disabled) { border-color: var(--blue-300); color: var(--blue-600); }
.pg-cal-nav:disabled { opacity: .35; cursor: default; }
.pg-cal-w, .pg-cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.pg-cal-w span { padding: 4px 0; font-size: 11.5px; font-weight: 600; color: var(--ink-400); }
.pg-cal-w span:last-child { color: #d0574f; }
.pg-cal-d { position: relative; display: grid; place-items: center; height: 36px; border-radius: 9px; font-size: 13.5px; color: var(--ink-900); }
a.pg-cal-d:hover { background: #eef4ff; }
.pg-cal-d.is-off { color: #c3cbd8; }
.pg-cal-d.has-log { font-weight: 700; color: var(--blue-600); }
.pg-cal-d.has-log::after { content: ''; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--blue-500); }
.pg-cal-d.is-today { box-shadow: inset 0 0 0 1.5px var(--blue-400); }
.pg-cal-d.is-sel { color: #fff; background: linear-gradient(160deg, #1e74e8, #1257c9); }
.pg-cal-d.is-sel::after { background: #fff; }
.pg-cal-f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.pg-cal-f a { padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--blue-600); background: #f1f6fe; }
.pg-cal-f a:hover { background: #e2edfd; }
.pg-cal-legend { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 11.5px; color: var(--ink-400); }
.pg-cal-legend::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-500); }
.pg-cal-nojs { display: flex; gap: 6px; margin-top: 6px; }
.pg-filter-tag { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--ink-500); }
.pg-filter-tag a { color: var(--blue-600); font-weight: 600; }
.pg-hint { display: flex; align-items: center; gap: 6px; margin: 10px 14px 6px; font-size: 13px; color: var(--ink-500); }
.pg-hint svg { width: 15px; height: 15px; color: var(--blue-500); }
.pg-all-row { cursor: pointer; }
.pg-all-row:hover .pg-all-title b { color: var(--blue-600); }

/* ── Trang riêng của một yêu cầu ─────────────────────────────────────── */
.pg-hero.is-compact { padding: 18px 28px; }
.pg-hero.is-compact .pg-hero-top { margin-bottom: 8px; }
.pg-hero-name { display: inline-block; font-size: 18px; font-weight: 700; color: #fff; }
.pg-hero-name:hover { color: var(--blue-300); }
.pg-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pg-crumbs-gap { flex: 1; }
.pg-crumbs .pg-btn { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(146, 180, 235, .32); }
.pg-crumbs .pg-btn:hover { background: rgba(110, 170, 255, .16); color: #fff; }
.pg-item-page .pg-item-h h1 { flex: 1 1 260px; margin: 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.35; }
.pg-item-page .pg-detail { margin-top: 18px; }
.pg-journal .pg-strip { margin: 0 0 6px; }
.pg-jday { margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-soft); background: #fbfcfe; scroll-margin-top: 16px; }
.pg-jday.is-focus { border-color: var(--blue-300); background: #f3f8ff; box-shadow: 0 0 0 3px rgba(59, 147, 255, .15); }
.pg-jday h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 12px; font-size: 15px; color: var(--ink-900); }
.pg-jday h3 span { font-size: 12.5px; font-weight: 500; color: var(--ink-500); }

@media (max-width: 860px) {
  .pg-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-sheet-wide { order: 1; }
}

@media (max-width: 560px) {
  .pg-hero:not(.is-compact) { padding: 18px 16px 18px; }
  .pg-sheet > div { padding: 9px 12px 10px; }
  .pg-daybar { padding: 12px; }
  .pg-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .pg-seg-btn { flex-direction: column; justify-content: center; gap: 3px; height: 50px; padding: 0 4px; font-size: 13px; }
  .pg-seg-btn small { font-size: 11px; }
  .pg-seg-btn i { position: absolute; top: -6px; right: -4px; min-width: 17px; height: 17px; font-size: 10px; box-shadow: 0 0 0 2px #fff; }
  .pg-seg-btn.on i { background: #ff8a3d; }
  .pg-cal-btn span { font-size: 11px; font-weight: 500; }
  .pg-cal-btn:not(.on) span { color: var(--ink-400); }
  .pg-cal-btn { width: 100%; }
  .pg-hero.is-compact { padding: 16px; }
  .pg-crumbs .pg-btn { padding: 0 12px; }
  .pg-jday { padding: 12px; }
  .pg-filter-tag { margin-left: 0; width: 100%; }
}
.pg-all .pg-h2 { flex-wrap: wrap; }

/* ── Vai Admin (KhánhN): đỏ ánh kim, viền vàng, lấp lánh nhẹ ──────────── */
.pg-av.is-admin {
  position: relative;
  overflow: hidden;
  color: #fff6e0;
  background: linear-gradient(140deg, #ff4d5e 0%, #c8102e 45%, #6d0016 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 214, 140, .95), 0 0 12px -2px rgba(255, 46, 76, .75);
}
.pg-av.is-admin::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .7) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: pgGleam 3.6s ease-in-out infinite;
}
.pg .pg-person em.pg-admin {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  padding: 1px 7px 1px 6px;
  border-radius: 999px;
  border: 1px solid #f3c86e;
  font-size: 10px;
  font-weight: 800;
  line-height: 15px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #fff3d1;
  background: linear-gradient(110deg, #6d0016 0%, #c8102e 38%, #ff3b55 50%, #c8102e 62%, #6d0016 100%);
  background-size: 220% 100%;
  box-shadow: 0 0 0 1px rgba(109, 0, 22, .35), 0 2px 10px -2px rgba(255, 40, 70, .7);
  text-shadow: 0 1px 0 rgba(80, 0, 15, .5);
  animation: pgAdminShine 4s linear infinite;
}
.pg .pg-person em.pg-admin svg { color: #ffd36e; filter: drop-shadow(0 0 3px rgba(255, 211, 110, .8)); }
.pg .pg-person em.pg-admin::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-150%);
  animation: pgGleam 3.6s ease-in-out infinite;
}
.pg-hero .pg-person.is-admin .pg-pname {
  font-weight: 700;
  background: linear-gradient(92deg, #ffb3ba, #ff5d6c 45%, #ffd27f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pg-mini-people .pg-person.is-admin { background: #fff4f5; border-color: #f4b6bd; }
.pg-mini-people .pg-person.is-admin .pg-pname { color: #a50e26; font-weight: 700; }
@keyframes pgGleam { 0%, 55% { transform: translateX(-150%); } 85%, 100% { transform: translateX(320%); } }
@keyframes pgAdminShine { from { background-position: 120% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .pg-av.is-admin::after, .pg .pg-person em.pg-admin, .pg .pg-person em.pg-admin::after { animation: none; }
}
/* Tên người + nhãn vai không bao giờ bị ngắt giữa chữ */
.pg .pg-person .pg-pname, .pg .pg-person em { overflow-wrap: normal; word-break: keep-all; white-space: nowrap; flex-shrink: 0; }
.pg .pg-person { max-width: 100%; }
@media (max-width: 560px) {
  .pg-sheet > div:nth-child(n+5) { grid-column: 1 / -1; }
}
