/* Trang bo me (bo-me.php, body.pm): giao dien nguoi lon — nen phang, chu Nunito, nut nhe hon app cua be */
body.pm { background: #F5F6FA; background-image: none; font-size: 16px; }
body.pm #app { max-width: 760px; }
body.pm h1, body.pm h2, body.pm h3, body.pm .display, body.pm .topbar .title, body.pm .btn, body.pm .kpi b { font-family: 'Nunito', system-ui, sans-serif; }
body.pm h2 { font-size: 22px; } body.pm h3 { font-size: 18px; font-weight: 800; }
body.pm .card { border-radius: 16px; box-shadow: 0 1px 2px rgba(43,45,66,.06), 0 4px 14px rgba(43,45,66,.05); }
body.pm .btn { font-size: 17px; border-radius: 12px; box-shadow: 0 2px 0 var(--cd); min-height: 48px; }
body.pm .btn.small { font-size: 14px; border-radius: 10px; min-height: 38px; box-shadow: 0 2px 0 var(--cd); }
body.pm .btn.ghost { --cd: #DDE0EA; border: 1px solid #DDE0EA; }
body.pm .topbar { background: linear-gradient(#F5F6FA 75%, rgba(245,246,250,0)); }
body.pm .tabs button.on { background: var(--ink); }

.pm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; margin: 0 -16px; padding: 12px 16px 8px; background: #F5F6FA; }
.pm-brand { flex: 1; display: flex; align-items: baseline; gap: 6px; font-size: 20px; color: var(--ink); text-decoration: none; cursor: pointer; }
.pm-brand b { font-weight: 900; }
.pm-brand span { font-size: 13px; font-weight: 800; color: #fff; background: var(--teal); border-radius: 999px; padding: 2px 9px; }
.pm-help { width: 40px; height: 40px; font-size: 19px; box-shadow: none; border: 1px solid #DDE0EA; border-radius: 10px; }
.pm-inv { white-space: nowrap; }   /* 📣 Gioi thieu (share.js shareInviteSheet); man hep chi con bieu tuong */
@media (max-width: 480px) { .pm-inv { width: 40px; height: 40px; padding: 0; font-size: 19px; } .pm-inv-t { display: none; } }
.pm-nav { position: sticky; top: 60px; z-index: 19; display: flex; gap: 4px; margin: 0 -16px 16px; padding: 0 16px; background: #F5F6FA; border-bottom: 1px solid #E3E5EE; overflow-x: auto; }
.pm-nav button { border: 0; background: none; padding: 10px 10px 12px; font-weight: 800; font-size: 15px; color: var(--ink-2); cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; }
.pm-nav button.on { color: var(--ink); border-bottom-color: var(--orange); }

.pm-hello h2 { text-transform: capitalize; }
.pm-kid .ava-sm { width: 52px; height: 52px; font-size: 30px; }
.pm-st { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #EEF0F5; color: var(--ink-2); white-space: nowrap; }
.pm-st.ok { background: #E3F7EC; color: #14804A; }
.pm-st.warn { background: #FFF1DA; color: #A35A00; }
.pm-st.info { background: #EAF2FF; color: var(--blue-d); }
.pm-sec { margin-top: 14px; padding-top: 12px; border-top: 1px solid #ECEEF4; display: grid; gap: 8px; }
.pm-lbl { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pm-week { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.pm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pm-kpis div { background: #F5F6FA; border-radius: 12px; padding: 8px 4px; text-align: center; }
.pm-kpis b { display: block; font-size: 22px; font-weight: 900; line-height: 1.1; }
.pm-kpis small { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pm-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; height: 76px; }
.pm-bars .b { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-width: 0; }
.pm-bars .col { width: 100%; max-width: 22px; background: #DCEFEC; border-radius: 5px; display: flex; align-items: flex-end; overflow: hidden; }
.pm-bars .col i { width: 100%; background: var(--teal); }
.pm-bars small { font-size: 11px; font-weight: 700; color: var(--muted); }
.pm-todo { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #F5F6FA; font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; }
a.pm-todo { cursor: pointer; background: #FFF6E6; }
a.pm-todo:hover { background: #FFEDCC; }
.pm-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pm-lock { margin-top: 10vh; }
.pm-lock .mascot { justify-self: center; }
@media (max-width: 520px) {
  .pm-week { grid-template-columns: 1fr; }
  .pm-nav { gap: 0; }
  .pm-nav button { flex: 1; padding: 10px 2px 12px; font-size: 14px; }
  .pm-nav .em { display: none; }
}
