/* Dương Mẹ Bé Core – Tăng trưởng: kết quả lần đo, hành trình, lịch sử (design §6, canvas “Ảnh kết quả tăng trưởng”).
 * Kích thước theo thiết kế 1080 px: N đơn vị = calc(var(--u) * N); --u do JS đặt theo bề rộng (ảnh: 0,5px × scale 2 = 1080×1620).
 * Font Be Vietnam Pro đóng gói trong assets/vendor/fonts (OFL), không CDN. */
@font-face { font-family: 'DMB Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(../vendor/fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'DMB Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(../vendor/fonts/be-vietnam-pro-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'DMB Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(../vendor/fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'DMB Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(../vendor/fonts/be-vietnam-pro-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'DMB Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(../vendor/fonts/be-vietnam-pro-vietnamese-700-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'DMB Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(../vendor/fonts/be-vietnam-pro-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'DMB Be Vietnam Pro'; font-style: normal; font-weight: 800; font-display: swap; src: url(../vendor/fonts/be-vietnam-pro-vietnamese-800-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'DMB Be Vietnam Pro'; font-style: normal; font-weight: 800; font-display: swap; src: url(../vendor/fonts/be-vietnam-pro-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

.dmb-gr { --u: 0.7px; --ink: #1D2A36; --muted: #5A6976; --green: #2E7D5B; --mint: #DDEEE3; --amber: #E9A23B;
  box-sizing: border-box; width: 100%; background: #F5F7F2; color: var(--ink); font-family: 'DMB Be Vietnam Pro', 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  padding: calc(var(--u) * 56) calc(var(--u) * 64) calc(var(--u) * 48); display: flex; flex-direction: column; gap: calc(var(--u) * 24); border-radius: calc(var(--u) * 16); line-height: 1.35; font-size: calc(var(--u) * 24); }
.dmb-gr *, .dmb-gr *::before, .dmb-gr *::after { box-sizing: border-box; }
.dmb-gr p, .dmb-gr h1, .dmb-gr h3 { margin: 0; padding: 0; }
.dmb-gr--img { width: calc(var(--u) * 1080); min-height: calc(var(--u) * 1620); border-radius: 0; }
.dmb-gr--img, .dmb-gr--journey { gap: calc(var(--u) * 20); }
.dmb-gr__top { display: flex; justify-content: space-between; align-items: center; gap: calc(var(--u) * 16); flex-wrap: wrap; }
.dmb-gr__brand { display: flex; align-items: center; gap: calc(var(--u) * 14); font-size: calc(var(--u) * 22); font-weight: 600; letter-spacing: 0.06em; }
.dmb-gr__brand svg { width: calc(var(--u) * 40); height: calc(var(--u) * 40); flex: none; }
.dmb-gr__date { font-size: calc(var(--u) * 22); color: var(--muted); }
.dmb-gr__head { display: flex; flex-direction: column; gap: calc(var(--u) * 6); }
.dmb-gr h1.dmb-gr__name { color: inherit; font-size: calc(var(--u) * 48); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.dmb-gr__sub { font-size: calc(var(--u) * 26); color: var(--muted); }

.dmb-gr__sum { background: var(--mint); border-radius: calc(var(--u) * 28); padding: calc(var(--u) * 22) calc(var(--u) * 30); display: flex; gap: calc(var(--u) * 22); align-items: center; }
.dmb-gr__sum svg { width: calc(var(--u) * 56); height: calc(var(--u) * 56); flex: none; }
.dmb-gr__sum-title { font-size: calc(var(--u) * 34); font-weight: 700; line-height: 1.25; }
.dmb-gr__sum-next { font-size: calc(var(--u) * 24); color: #2C4A3C; line-height: 1.35; margin-top: calc(var(--u) * 4) !important; }
.dmb-gr__sum--alert { background: #FBEFD6; border: calc(var(--u) * 3) solid var(--amber); }
.dmb-gr__sum--alert .dmb-gr__sum-next { color: #6B430A; font-weight: 600; }
.dmb-gr__sum--check, .dmb-gr__sum--missing { background: #EEF1F4; }
.dmb-gr__sum--check .dmb-gr__sum-next, .dmb-gr__sum--missing .dmb-gr__sum-next { color: var(--muted); }

.dmb-gr__ind { display: flex; flex-direction: column; gap: calc(var(--u) * 12); }
.dmb-gr__ind--alert { background: #FBEFD6; border: calc(var(--u) * 3) solid var(--amber); border-radius: calc(var(--u) * 28); padding: calc(var(--u) * 28) calc(var(--u) * 32); gap: calc(var(--u) * 12); }
.dmb-gr__ind--check { background: #EEF1F4; border-radius: calc(var(--u) * 28); padding: calc(var(--u) * 28) calc(var(--u) * 32); gap: calc(var(--u) * 12); }
.dmb-gr__ind-head { display: flex; justify-content: space-between; align-items: center; gap: calc(var(--u) * 16); flex-wrap: wrap; }
.dmb-gr__ind-title { display: flex; align-items: center; gap: calc(var(--u) * 14); flex-wrap: wrap; font-size: calc(var(--u) * 30); font-weight: 700; }
.dmb-gr__ind-title svg { width: calc(var(--u) * 40); height: calc(var(--u) * 40); flex: none; }
.dmb-gr__value { font-size: calc(var(--u) * 44); font-weight: 800; white-space: nowrap; }
.dmb-gr__ind--check .dmb-gr__value { color: var(--muted); }
.dmb-gr__chip { font-size: calc(var(--u) * 18); font-weight: 600; padding: calc(var(--u) * 4) calc(var(--u) * 14); border-radius: calc(var(--u) * 999); background: #BFE0CC; color: #1F5A41; white-space: nowrap; }
.dmb-gr__chip--mild_low { background: #FBEFD6; color: #7A4E0C; }
.dmb-gr__chip--mild_high { background: var(--mint); color: #1F5A41; }
.dmb-gr__chip--alert { background: #B9700F; color: #fff; font-size: calc(var(--u) * 20); font-weight: 700; padding: calc(var(--u) * 5) calc(var(--u) * 16); }
.dmb-gr__chip--warn { background: #F6E5C3; color: #5B4A26; }
.dmb-gr__chip--severe { background: #EFD19B; color: #5B4A26; }
.dmb-gr__chip--check { background: #DDE3E9; color: #3F4D59; }
.dmb-gr__text { font-size: calc(var(--u) * 24); line-height: 1.4; }
.dmb-gr__sub { margin: calc(var(--u) * 2) 0 0; font-size: calc(var(--u) * 20); color: #6b7280; }
.dmb-gr__action { font-size: calc(var(--u) * 24); line-height: 1.4; font-weight: 600; color: #6B430A; }

.dmb-gr__ruler { position: relative; height: calc(var(--u) * 92); user-select: none; -webkit-user-select: none; }
.dmb-gr__bar { position: absolute; left: 0; right: 0; top: calc(var(--u) * 34); height: calc(var(--u) * 46); display: flex; border-radius: calc(var(--u) * 23); overflow: hidden; font-size: calc(var(--u) * 17); font-weight: 600; color: #5B4A26; }
.dmb-gr__zone { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.1; padding: 0 calc(var(--u) * 4); overflow: hidden; background: #F6E5C3; }
.dmb-gr__zone--severe { background: #EFD19B; }
.dmb-gr__zone--normal { background: #BFE0CC; color: #1F5A41; }
/* Nhãn vùng né chấm “Bé” và vạch trung bình: JS đặt left = giữa khoảng trống lớn nhất */
.dmb-gr__zone > span.is-placed { position: absolute; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
.dmb-gr__mean { position: absolute; top: calc(var(--u) * 30); width: calc(var(--u) * 2); height: calc(var(--u) * 54); background: #1F5A41; opacity: 0.5; transform: translateX(-50%); }
.dmb-gr__dot { position: absolute; top: 0; width: calc(var(--u) * 50); display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); }
.dmb-gr__dot b { background: var(--ink); color: #fff; font-size: calc(var(--u) * 17); font-weight: 700; padding: calc(var(--u) * 3) calc(var(--u) * 10); border-radius: calc(var(--u) * 10); white-space: nowrap; line-height: 1.35; }
.dmb-gr__dot i { width: calc(var(--u) * 30); height: calc(var(--u) * 30); margin-top: calc(var(--u) * 12); border-radius: 50%; background: var(--ink); border: calc(var(--u) * 5) solid #fff; }
.dmb-gr__ticks { position: relative; height: calc(var(--u) * 28); font-size: calc(var(--u) * 20); color: var(--muted); user-select: none; -webkit-user-select: none; }
.dmb-gr__ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }

.dmb-gr__chart { background: #fff; border-radius: calc(var(--u) * 28); padding: calc(var(--u) * 18) calc(var(--u) * 22) calc(var(--u) * 12); display: flex; flex-direction: column; gap: calc(var(--u) * 8); user-select: none; -webkit-user-select: none; }
.dmb-gr__chart-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 calc(var(--u) * 8); }
.dmb-gr__chart-title { font-size: calc(var(--u) * 26); font-weight: 700; }
.dmb-gr__chart-unit { font-size: calc(var(--u) * 18); color: var(--muted); }
.dmb-gr__chart svg { width: 100%; height: auto; display: block; }
.dmb-gr__charts { gap: calc(var(--u) * 10); }
.dmb-gr__charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 18); }
.dmb-gr__charts-grid.is-single { grid-template-columns: 1fr; }
.dmb-gr--img .dmb-gr__charts-grid.is-single svg { height: calc(var(--u) * 280); }
.dmb-gr__chart-cell { display: flex; flex-direction: column; gap: calc(var(--u) * 4); min-width: 0; }
.dmb-gr__chart-cell .dmb-gr__chart-title { font-size: calc(var(--u) * 24); }
.dmb-gr__legend { display: flex; flex-wrap: wrap; gap: calc(var(--u) * 8) calc(var(--u) * 24); padding: 0 calc(var(--u) * 8); font-size: calc(var(--u) * 18); color: var(--muted); align-items: center; }
.dmb-gr__legend span { display: flex; align-items: center; gap: calc(var(--u) * 8); }
.dmb-gr__legend i { width: calc(var(--u) * 22); height: calc(var(--u) * 14); border-radius: calc(var(--u) * 4); background: var(--mint); }
.dmb-gr__legend i.is-dot { width: calc(var(--u) * 14); border-radius: 50%; background: var(--ink); }
.dmb-gr__legend i.is-now { width: calc(var(--u) * 16); height: calc(var(--u) * 16); border-radius: 50%; background: var(--amber); }

.dmb-gr__foot { display: flex; justify-content: space-between; gap: calc(var(--u) * 32); align-items: flex-end; margin-top: auto; flex-wrap: wrap; }
.dmb-gr__foot > :first-child { flex: 1 1 0; min-width: calc(var(--u) * 260); }
.dmb-gr__projbox { display: flex; flex-direction: column; gap: calc(var(--u) * 2); }
.dmb-gr__proj { font-size: calc(var(--u) * 24); font-weight: 700; }
.dmb-gr__note { font-size: calc(var(--u) * 20); color: #4A5865; line-height: 1.4; margin-top: calc(var(--u) * 4) !important; }
.dmb-gr__qr { display: flex; align-items: center; gap: calc(var(--u) * 14); flex: none; }
.dmb-gr__qr span { font-size: calc(var(--u) * 18); color: var(--muted); text-align: right; line-height: 1.35; }
.dmb-gr__qr-box { width: calc(var(--u) * 108); height: calc(var(--u) * 108); border-radius: calc(var(--u) * 16); background: #fff; border: calc(var(--u) * 2) solid var(--ink); padding: calc(var(--u) * 10); display: flex; align-items: center; justify-content: center; }
.dmb-gr__qr-box img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }

/* Ảnh hành trình */
.dmb-gr__totals { display: flex; gap: calc(var(--u) * 16); flex-wrap: wrap; }
.dmb-gr__total { flex: 1 1 calc(var(--u) * 200); background: #fff; border-radius: calc(var(--u) * 24); padding: calc(var(--u) * 16) calc(var(--u) * 24); }
.dmb-gr__total p { font-size: calc(var(--u) * 20); color: var(--muted); }
.dmb-gr__total strong { display: block; margin: calc(var(--u) * 2) 0 0; font-size: calc(var(--u) * 42); font-weight: 800; line-height: 1.2; }
.dmb-gr__rows { display: flex; flex-direction: column; position: relative; }
.dmb-gr__rail { position: absolute; left: calc(var(--u) * 21); top: calc(var(--u) * 30); bottom: calc(var(--u) * 30); width: calc(var(--u) * 3); background: #CFDCD3; }
.dmb-gr__row { display: grid; grid-template-columns: calc(var(--u) * 46) minmax(0, 1fr) calc(var(--u) * 220) calc(var(--u) * 220); column-gap: calc(var(--u) * 20); align-items: center; padding: calc(var(--u) * 12) 0; border-top: calc(var(--u) * 1) solid #E1E8E2; position: relative; }
.dmb-gr__row--head { padding: calc(var(--u) * 8) 0; border-top: 0; font-size: calc(var(--u) * 18); color: var(--muted); }
.dmb-gr__row--last { background: #fff; border-radius: calc(var(--u) * 24); padding-right: calc(var(--u) * 16); }
.dmb-gr__num { width: calc(var(--u) * 46); height: calc(var(--u) * 46); border-radius: 50%; background: #fff; border: calc(var(--u) * 3) solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: calc(var(--u) * 20); }
.dmb-gr__row--last .dmb-gr__num { background: var(--amber); border-color: #fff; font-weight: 800; }
.dmb-gr__row-date { font-size: calc(var(--u) * 26); font-weight: 700; }
.dmb-gr__row-date em { font-style: normal; font-size: calc(var(--u) * 18); font-weight: 600; color: #9A6412; }
.dmb-gr__row-sub { font-size: calc(var(--u) * 20); color: var(--muted); margin-top: calc(var(--u) * 2) !important; }
.dmb-gr__row-val { font-size: calc(var(--u) * 28); font-weight: 700; white-space: nowrap; }
.dmb-gr__row-val small { font-size: calc(var(--u) * 20); font-weight: 600; color: var(--green); }
.dmb-gr__row-val small.is-flat { color: var(--muted); }
.dmb-gr__row .dmb-gr__chip { display: inline-block; margin-top: calc(var(--u) * 4); font-size: calc(var(--u) * 17); padding: calc(var(--u) * 3) calc(var(--u) * 12); }
.dmb-gr__more { font-size: calc(var(--u) * 20); color: var(--muted); padding-top: calc(var(--u) * 10); }

@media (max-width: 600px) {
  .dmb-gr__row { grid-template-columns: calc(var(--u) * 46) minmax(0, 1fr); row-gap: calc(var(--u) * 8); }
  .dmb-gr__row > :nth-child(3) { grid-column: 2; }
  .dmb-gr__row > :nth-child(4) { grid-column: 2; }
  .dmb-gr__row--head { display: none; }
}

/* Khung ảnh: [Kết quả lần đo | Hành trình] bên trái · Lưu ảnh · Sao chép bên phải – ở trên ảnh, dính khi cuộn (wp-admin) */
.dmb-gpane { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.dmb-gpane > * { margin: 0 !important; }
.dmb-gbar { position: sticky; top: 32px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 8px 0; margin: 0 0 8px; background: rgba(240, 240, 241, .94); user-select: none; -webkit-user-select: none; }
body:not(.wp-admin) .dmb-gbar { position: static; background: none; } /* header theme có thể dính trên cùng */
.dmb-gbar__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.dmb-gsync { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; user-select: none; }
.dmb-gsync[hidden] { display: none !important; }
.dmb-gmanual { width: 100%; margin: 8px 0; font-size: 14px; }
.dmb-gmanual[hidden] { display: none; }
.dmb-gbar .button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; font-weight: 600; }
.dmb-gbar .button svg { width: 18px; height: 18px; }
.dmb-gbar label { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }
.dmb-gview { display: inline-flex; background: #DDE3E9; border-radius: 10px; padding: 3px; gap: 2px; }
.dmb-gview[hidden] { display: none; }
.dmb-gview button { border: 0; background: none; border-radius: 8px; min-height: 36px; padding: 0 14px; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; color: #3F4D59; cursor: pointer; }
.dmb-gview button[aria-selected="true"] { background: #fff; color: #1D2A36; box-shadow: 0 1px 2px rgba(29,42,54,.18); }
.dmb-gview button:focus-visible { outline: 2px solid #2E7D5B; outline-offset: 1px; }
.dmb-gresult { margin-top: 14px; }

/* Thẻ “Đo mới” – một hàng: cao · nặng · Lưu; ngày mặc định hôm nay */
.dmb-gq { background: #F5F7F2; border: 1px solid #DCE4DD; border-radius: 14px; padding: 14px 16px 12px; color: #1D2A36; font-family: 'DMB Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.dmb-gq__top { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; margin: 0 0 10px; }
.dmb-gq__title { font-size: 16px; font-weight: 700; }
.dmb-gq__date { font-size: 14px; color: #5A6976; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dmb-gq__date-text { color: #1D2A36; font-weight: 600; }
.dmb-gq__date input { min-height: 36px; border: 1px solid #A9B4BD; border-radius: 8px; padding: 2px 8px; font: inherit; }
.dmb-gq__link { background: none; border: 0; padding: 4px 2px; color: #2E7D5B; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.dmb-gq__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.dmb-gq__field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 140px; max-width: 200px; }
.dmb-gq__label { font-size: 13px; color: #3F4D59; font-weight: 600; }
.dmb-gq__box { display: flex; align-items: center; background: #fff; border: 2px solid #C9D3CC; border-radius: 12px; padding: 0 12px 0 0; transition: border-color .15s; }
.dmb-gq__box:focus-within { border-color: #2E7D5B; box-shadow: 0 0 0 3px rgba(46,125,91,.18); }
.dmb-gq__box input, .dmb-gq__box input[type=text] { flex: 1; min-width: 0; width: 100%; border: 0 !important; box-shadow: none !important; outline: none; background: transparent; min-height: 50px; padding: 0 4px 0 14px; font: 700 24px/1 'DMB Be Vietnam Pro', system-ui, sans-serif; color: #1D2A36; font-variant-numeric: tabular-nums; }
.dmb-gq__box input::placeholder { color: #B4BEC6; font-weight: 600; }
.dmb-gq__unit { font-size: 15px; font-weight: 600; color: #5A6976; }
.dmb-gq__save { min-height: 54px; padding: 0 22px; border: 0; border-radius: 12px; background: #1D2A36; color: #fff; font: 700 16px/1 'DMB Be Vietnam Pro', system-ui, sans-serif; cursor: pointer; flex: 0 0 auto; }
.dmb-gq__save:hover { background: #2E7D5B; }
.dmb-gq__save:disabled { background: #8796A3; cursor: default; }
.dmb-gq__save:focus-visible, .dmb-gq__link:focus-visible { outline: 3px solid #2E7D5B; outline-offset: 2px; }
.dmb-gq__hint { margin: 10px 0 0; font-size: 13px; color: #5A6976; }
.dmb-gq__warn { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: #7A4E0C; }
.dmb-gq__warn:empty { display: none; }
.dmb-gq__warn.is-block { color: #8a2424; }
@media (max-width: 520px) { .dmb-gq__field { max-width: none; } .dmb-gq__save { flex: 1 1 100%; } }

/* Tab Tăng trưởng (wp-admin) */
.dmb-tabs { display: flex; gap: 4px; border-bottom: 1px solid #c3c4c7; margin: 0 0 12px; }
.dmb-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 14px; font: inherit; font-weight: 600; color: #50575e; cursor: pointer; }
.dmb-tabs button[aria-selected="true"] { color: #1d2327; border-bottom-color: #2E7D5B; }
.dmb-ghint { margin: 0 0 8px; font-size: 13px; color: #5A6976; }
.dmb-gtable-wrap { overflow-x: auto; }
.dmb-gtable__act { white-space: nowrap; text-align: right; }
.dmb-gtable__num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dmb-gtable__sub, .dmb-gtable__delta { display: block; font-size: 12px; color: #646970; white-space: nowrap; }
.dmb-gtable__delta { color: #2E7D5B; font-weight: 600; }
.dmb-gtable td:first-child, .dmb-gtable th:first-child { width: 24px; }
.dmb-gtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dmb-gtable th { text-align: left; font-size: 12px; font-weight: 600; color: #50575e; background: #f6f7f7; padding: 6px 8px; border-bottom: 1px solid #dcdcde; }
.dmb-gtable td { padding: 9px 8px; border-bottom: 1px solid #f0f0f1; vertical-align: top; }
.dmb-gtable tr.is-current td { background: #f0f6f2; }
.dmb-gtable input[type=text], .dmb-gtable input[type=date] { width: 100%; max-width: 130px; }
.dmb-gtag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 10px; background: #BFE0CC; color: #1F5A41; margin: 1px 4px 2px 0; white-space: nowrap; }
.dmb-gtag--mild_low { background: #FBEFD6; color: #7A4E0C; }
.dmb-gtag--mild_high { background: #DDEEE3; color: #1F5A41; }
.dmb-gtag--alert { background: #B9700F; color: #fff; }
.dmb-gtag--check { background: #DDE3E9; color: #3F4D59; }
.dmb-gtag--due { background: #FBEFD6; color: #7A4E0C; }
.dmb-gcompare { margin: 12px 0 0; }
.dmb-gcompare:empty { display: none; }
.dmb-gcompare__head { display: flex; gap: 12px; align-items: baseline; margin: 0 0 6px; }
.dmb-gcompare__table { border-collapse: collapse; font-size: 13px; width: 100%; background: #F5F7F2; border-radius: 8px; overflow: hidden; }
.dmb-gcompare__table th, .dmb-gcompare__table td { padding: 7px 12px; border-bottom: 1px solid #E4E9E4; text-align: left; }
.dmb-gcompare__table thead th { color: #50575e; font-size: 12px; }
.dmb-gkid-growth { font-size: 12px; margin-top: 3px; color: #50575e; }

/* Đo nhanh frontend [dmb_growth_staff]: 3 bước có thứ tự – Phụ huynh → Bé → Số đo */
.dmb-gstaff { max-width: 720px; margin: 0 auto; font-family: 'DMB Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #1D2A36; }
.dmb-gstaff__title { font-size: 28px; font-weight: 800; margin: 0 0 16px; letter-spacing: -0.01em; }
.dmb-gstep { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; position: relative; padding-bottom: 18px; }
.dmb-gstep::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px; background: #DCE4DD; }
.dmb-gstep:last-of-type::before, .dmb-gstep[hidden] + .dmb-gstep::before { display: none; }
.dmb-gstep__num { width: 36px; height: 36px; border-radius: 50%; background: #1D2A36; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.dmb-gstep__title { margin: 6px 0 10px; font-size: 16px; font-weight: 700; }
.dmb-gstaff input[type=search], .dmb-gstaff__newkid input[type=text], .dmb-gstaff__newkid input[type=date] { box-sizing: border-box; width: 100%; min-height: 50px; padding: 8px 14px; border: 2px solid #C9D3CC; border-radius: 12px; font: inherit; font-size: 17px; background: #fff; color: inherit; }
.dmb-gstaff input[type=search]:focus, .dmb-gstaff__newkid input:focus { border-color: #2E7D5B; outline: none; box-shadow: 0 0 0 3px rgba(46,125,91,.18); }
.dmb-gstaff__results { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; }
.dmb-gstaff__hit { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-height: 52px; padding: 8px 14px; border: 1px solid #DCE4DD; border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.dmb-gstaff__hit:hover, .dmb-gstaff__hit:focus-visible { border-color: #2E7D5B; background: #F5F7F2; outline: none; }
.dmb-gstaff__hit span { color: #5A6976; font-size: 14px; }
.dmb-gstaff__picked { display: flex; align-items: baseline; gap: 12px; font-size: 18px; }
.dmb-gstaff__muted { color: #5A6976; margin: 4px 0; }
.dmb-gstaff__kids, .dmb-gstaff__seg { display: flex; flex-wrap: wrap; gap: 8px; }
.dmb-gstaff__kid, .dmb-gstaff__seg button { min-height: 52px; padding: 6px 16px; border: 2px solid #C9D3CC; border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: inherit; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; line-height: 1.2; }
.dmb-gstaff__seg button { min-width: 110px; align-items: center; font-weight: 600; }
.dmb-gstaff__kid small { color: #5A6976; font-size: 13px; }
.dmb-gstaff__kid[aria-pressed="true"], .dmb-gstaff__seg button[aria-pressed="true"] { background: #1D2A36; border-color: #1D2A36; color: #fff; }
.dmb-gstaff__kid[aria-pressed="true"] small { color: #DDE3E9; }
.dmb-gstaff__kid--new { border-style: dashed; color: #2E7D5B; justify-content: center; }
.dmb-gstaff__newkid { display: flex; flex-direction: column; gap: 12px; }
.dmb-gstaff__f { display: flex; flex-direction: column; gap: 6px; }
.dmb-gstaff__actions { display: flex; gap: 16px; align-items: center; }
.dmb-gstaff .button { min-height: 44px; padding: 0 18px; border: 2px solid #CBD5CE; border-radius: 12px; background: #fff; color: #1D2A36; font: 600 15px/1 'DMB Be Vietnam Pro', system-ui, sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.dmb-gstaff .button-primary { background: #1D2A36; border-color: #1D2A36; color: #fff; }
.dmb-gstaff .button:disabled { opacity: .6; cursor: default; }
.dmb-gstaff .button:focus-visible, .dmb-gstaff__kid:focus-visible, .dmb-gstaff__seg button:focus-visible { outline: 3px solid #2E7D5B; outline-offset: 2px; }
.dmb-gstaff .dmb-gresult { max-width: none; }
body:not(.wp-admin) .dmb-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100000; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 40px)); }
body:not(.wp-admin) .dmb-toast { display: flex; gap: 12px; align-items: center; padding: 10px 12px 10px 14px; border-radius: 10px; background: #2E7D5B; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.25); font-size: 14px; }
body:not(.wp-admin) .dmb-toast--error { background: #8a2424; }
body:not(.wp-admin) .dmb-toast__msg { flex: 1; }
body:not(.wp-admin) .dmb-toast__close { background: none; border: 0; color: #fff; cursor: pointer; font-size: 18px; line-height: 1; min-width: 28px; min-height: 28px; }


/* Cổng phụ huynh [dmb_growth]: dùng chung khung với .dmb-gstaff */
.dmb-gportal input[type=text], .dmb-gportal input[type=date] { box-sizing: border-box; width: 100%; min-height: 50px; padding: 8px 14px; border: 2px solid #C9D3CC; border-radius: 12px; font: inherit; font-size: 17px; background: #fff; color: inherit; }
.dmb-gportal .dmb-gq__field input { width: 100%; }
.dmb-gportal input:focus { border-color: #2E7D5B; outline: none; box-shadow: 0 0 0 3px rgba(46,125,91,.18); }
.dmb-gportal__card { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; }
.dmb-gportal__title { font-size: 22px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.01em; }
.dmb-gportal__sub { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.dmb-gportal__body { display: flex; flex-direction: column; gap: 14px; }
.dmb-gportal__lead, .dmb-gportal__muted { color: #5A6976; margin: 0; }
.dmb-gportal__warn { margin: 0; padding: 10px 14px; border-radius: 12px; background: #FFF4DC; color: #5C4310; }
.dmb-gportal__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.dmb-gportal__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; }
a.dmb-gq__save.dmb-gportal__btn { color: #fff; }
.dmb-gportal__consent { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 2px solid #DCE4DD; border-radius: 12px; background: #F5F7F2; }
.dmb-gportal__consent label { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.dmb-gportal__consent input { margin-top: 3px; flex: 0 0 auto; }
.dmb-gportal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #DCE4DD; }
.dmb-gportal__head small { display: block; color: #5A6976; }
.dmb-gportal__list { display: flex; flex-direction: column; gap: 10px; }
.dmb-gportal__kid { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; min-height: 72px; padding: 12px 16px; border: 2px solid #C9D3CC; border-radius: 14px; background: #fff; font: inherit; color: inherit; cursor: pointer; position: relative; }
.dmb-gportal__kid:hover, .dmb-gportal__kid:focus-visible { border-color: #2E7D5B; background: #F5F7F2; outline: none; }
.dmb-gportal__kid strong { font-size: 18px; }
.dmb-gportal__kid small, .dmb-gportal__kid span { color: #5A6976; font-size: 14px; }
.dmb-gportal__due { position: absolute; top: 12px; right: 14px; font-style: normal; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #FFF4DC; color: #5C4310; }
.dmb-gportal__add { align-self: flex-start; margin-top: 14px; }
.dmb-gportal__kidhead { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; margin: 0 0 12px; }
.dmb-gportal__kidhead > :first-child { grid-column: 1 / -1; justify-self: start; }
.dmb-gportal__kidhead small { color: #5A6976; }
.dmb-gportal__kidhead .dmb-gportal__title { margin: 0; }
.dmb-gportal__more { grid-row: 2 / span 2; grid-column: 2; position: relative; }
.dmb-gportal__menu summary { cursor: pointer; list-style: none; font-size: 22px; padding: 2px 12px; border-radius: 10px; }
.dmb-gportal__menu[open] { background: #F5F7F2; border-radius: 12px; padding-bottom: 8px; }
.dmb-gportal__menu > button { display: block; margin: 6px 12px; }
.dmb-gportal__save { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 14px 16px; border: 2px solid #DDEEE3; border-radius: 14px; background: #F5F7F2; }
.dmb-gportal__save p { margin: 0; font-weight: 600; }

/* Chia sẻ (link chỉ xem) */
.dmb-gshare { position: relative; }
.dmb-gshare > summary { cursor: pointer; font-weight: 600; padding: 6px 10px; list-style: none; border: 2px solid #CBD5CE; border-radius: 12px; background: #fff; }
.dmb-gshare[open] > summary { background: #F5F7F2; }
.dmb-gshare[open] { flex-basis: 100%; }
.dmb-gshare__list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.dmb-gshare__row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dmb-gbar [hidden], .dmb-gpanel [hidden] { display: none !important; }

/* D-60: form 1 trang (khách / nhân viên “Phụ huynh mới”): khối nhập đứng trước hàng cân nặng–chiều cao */
.dmb-gq > .dmb-gstaff__f { margin: 0 0 12px; }
.dmb-gq .dmb-gstaff__f input[type=text], .dmb-gq .dmb-gstaff__f input[type=date] { box-sizing: border-box; width: 100%; min-height: 50px; padding: 8px 14px; border: 2px solid #C9D3CC; border-radius: 12px; font: inherit; font-size: 17px; background: #fff; color: inherit; }
.dmb-gq .dmb-gstaff__f input:focus { border-color: #2E7D5B; outline: none; box-shadow: 0 0 0 3px rgba(46,125,91,.18); }
.dmb-gstaff__newfam { margin-top: 12px; }
.dmb-gq > .dmb-gq__top:last-child { margin: 10px 0 0; justify-content: flex-start; }

/* Khối mời đo cho bé nhà mình ở cuối trang chia sẻ */
.dmb-gportal__cta { padding: 20px; border-radius: 16px; background: #FFF6E5; border: 2px solid #F2C879; }
.dmb-gportal__cta .dmb-gportal__title { margin-top: 0; }

/* Thanh nút của phụ huynh dính trên cùng khi kéo xem kết quả: Đo mới · Lưu ảnh · Chia sẻ */
body:not(.wp-admin) .dmb-gbar--sticky { position: sticky; top: var(--dmb-sticky-top, 0px); z-index: 30; padding: 8px 10px; margin: 0 0 8px; background: #fff; border-bottom: 1px solid #E3E8E4; box-shadow: 0 4px 10px -8px rgba(28, 39, 51, .35); }
.dmb-gbar--sticky .button.button-primary { background: #1E5A43; border-color: #1E5A43; color: #fff; }

/* Tên bé không chuyển trắng khi rê/chạm (theme gán chữ trắng cho button:hover) */
body .dmb-gportal__kid:hover, body .dmb-gportal__kid:focus-visible, body .dmb-gportal__kid:active { color: #1D2A36; background: #F5F7F2; }
body .dmb-gportal__kid:hover strong, body .dmb-gportal__kid:focus-visible strong, body .dmb-gportal__kid:active strong { color: #1D2A36; }
body .dmb-gportal__kid:hover small, body .dmb-gportal__kid:hover span, body .dmb-gportal__kid:focus-visible small, body .dmb-gportal__kid:focus-visible span { color: #5A6976; }

/* Ô nhập ≥ 16px trên điện thoại: iOS không phóng to màn hình khi chạm (bổ sung 30/11). */
@media (max-width: 782px) {
  .dmb-gstaff input, .dmb-gstaff select, .dmb-gstaff textarea,
  .dmb-gportal input, .dmb-gportal select, .dmb-gportal textarea { font-size: 16px; }
}
.dmb-gportal__edit { background: none; border: 0; padding: 0; font: inherit; color: #1F5A41; text-decoration: underline; cursor: pointer; }

/* ---------- Cổng cha mẹ (Đợt 2: D-84, D-88, D-89) ---------- */
.dmb-gportal__hello { font-size: 18px; }
.dmb-gportal__sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 10px; }
.dmb-gportal__sechead .dmb-gportal__title { margin: 0; }
.dmb-gportal__kids, .dmb-gportal__topics { margin: 0 0 24px; }
.dmb-gportal__kid.is-due { border-color: #E7A33E; }
.dmb-gportal__next { font-style: normal; font-size: 13px; color: #1F5A41; font-weight: 600; }
.dmb-gportal__kid.is-due .dmb-gportal__next { color: #7A4E0C; }
.dmb-gportal__due { font-style: normal; }

.dmb-gportal__topicgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dmb-gportal__topic { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 2px solid #DCE4DD; border-radius: 14px; background: #fff; color: #1D2A36; text-decoration: none; min-height: 84px; }
.dmb-gportal__topic strong { font-size: 16px; line-height: 1.3; }
.dmb-gportal__topic span { color: #5A6976; font-size: 14px; }
.dmb-gportal__topic em { margin-top: auto; font-style: normal; font-size: 14px; font-weight: 700; color: #1F5A41; }
a.dmb-gportal__topic:hover, a.dmb-gportal__topic:focus-visible { border-color: #2E7D5B; background: #F5F7F2; outline: none; color: #1D2A36; }
.dmb-gportal__topic.is-soon em { color: #8A96A1; font-weight: 600; }

.dmb-gportal__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dmb-gportal__chip { min-height: 42px; padding: 7px 15px; border: 2px solid #C9D3CC; border-radius: 999px; background: #fff; color: #1D2A36; font: inherit; font-size: 15px; line-height: 1.3; text-align: left; cursor: pointer; }
.dmb-gportal__chip[aria-pressed="true"] { border-color: #2E7D5B; background: #EAF4EE; color: #1F5A41; font-weight: 700; }

.dmb-gportal__chips.is-static .dmb-gportal__chip { cursor: default; min-height: 0; padding: 6px 13px; font-size: 14px; border-color: #DCE4DD; background: #F5F7F2; }
.dmb-gportal__chip:focus-visible { outline: 3px solid rgba(46,125,91,.35); outline-offset: 2px; }

.dmb-gportal__hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: center; padding: 8px 0 24px; }
.dmb-gportal__herotext { display: flex; flex-direction: column; gap: 14px; }
.dmb-gportal__headline { font-size: 36px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: #1D2A36; text-wrap: balance; }
.dmb-gportal__heroart { background: #fff; border: 2px solid #DCE4DD; border-radius: 22px; padding: 14px; }
.dmb-gportal__herochart { display: block; width: 100%; height: auto; }
.dmb-gportal__why { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dmb-gportal__why li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-left: 4px solid #2E7D5B; background: #F5F7F2; border-radius: 0 12px 12px 0; }
.dmb-gportal__why strong { font-size: 16px; }
.dmb-gportal__why span { color: #5A6976; font-size: 14px; line-height: 1.45; }

@media (max-width: 720px) {
  .dmb-gportal__hero { grid-template-columns: 1fr; gap: 16px; }
  .dmb-gportal__heroart { order: -1; padding: 8px; border-radius: 16px; }
  .dmb-gportal__headline { font-size: 28px; }
  .dmb-gportal__why { grid-template-columns: 1fr; }
  .dmb-gportal__actions > .dmb-gportal__btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .dmb-gportal * { scroll-behavior: auto !important; } }
.dmb-gportal.dmb-gstaff { max-width: 880px; }

/* ---------- Trang của mẹ (30/11): chào · thẻ bé · hành trình theo chủ đề ---------- */
.dmb-gportal { --gp-ink: #1D2A36; --gp-muted: #5A6976; --gp-leaf: #1F5A41; --gp-leaf2: #2E7D5B; --gp-line: #DCE4DD;
  --t-mint: #EAF4EE; --t-peach: #FFF0E3; --t-sky: #E9F2FB; --t-butter: #FFF6D9; --t-rose: #FCEBEE; --t-lilac: #F1EDFB; }
.dmb-gp-hero { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: end; padding: 26px 26px 22px; margin: 0 0 -28px; border-radius: 28px 28px 0 0;
  background: radial-gradient(120% 140% at 100% 0%, #FFF3E2 0%, rgba(255,243,226,0) 55%), linear-gradient(160deg, #EEF6F0 0%, #F7FAF6 70%); }
.dmb-gp-hero__title { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--gp-ink); }
.dmb-gp-hero__lead { margin: 8px 0 0; color: var(--gp-muted); font-size: 16px; line-height: 1.5; max-width: 34em; }
.dmb-gp-hero__art { width: 120px; height: 60px; align-self: start; }
.dmb-gp-hero__doodle { fill: none; stroke: #8CC5A2; stroke-width: 3; stroke-linecap: round; }
.dmb-gp-hero__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; color: var(--gp-muted); font-size: 14px; padding-bottom: 28px; }

.dmb-gp-tabs { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px; margin: 0 0 10px; }
.dmb-gp-tab { min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 2px solid var(--gp-line); background: #fff; color: var(--gp-ink); font: inherit; font-weight: 700; cursor: pointer; }
.dmb-gp-tab[aria-selected="true"] { border-color: var(--gp-leaf2); background: var(--gp-leaf2); color: #fff; }
.dmb-gp-tab--add { border-style: dashed; color: var(--gp-leaf); font-weight: 600; }

.dmb-gp-kid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 18px; align-items: center;
  padding: 20px 22px; margin: 0 0 28px; background: #fff; border-radius: 24px; box-shadow: 0 10px 30px rgba(31,90,65,.10), 0 1px 0 rgba(31,90,65,.06); }
.dmb-gp-kid__id { display: flex; gap: 14px; align-items: center; min-width: 0; }
.dmb-gp-avatar { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #fff; box-shadow: inset 0 -6px 0 rgba(0,0,0,.08); }
.dmb-gp-avatar--boy { background: linear-gradient(150deg, #7FB8E6, #4E8FC7); }
.dmb-gp-avatar--girl { background: linear-gradient(150deg, #F3A8B8, #E07A93); }
.dmb-gp-kid__name { display: flex; align-items: center; gap: 6px; }
.dmb-gp-kid__name strong { font-size: 22px; line-height: 1.2; color: var(--gp-ink); }
.dmb-gp-kid__meta { display: block; color: var(--gp-muted); font-size: 14px; line-height: 1.45; }
.dmb-gp-iconbtn { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: var(--t-mint); cursor: pointer; padding: 0; }
.dmb-gp-iconbtn svg { width: 18px; height: 18px; }
.dmb-gp-pen { fill: none; stroke: var(--gp-leaf2); stroke-width: 2; stroke-linejoin: round; }
.dmb-gp-iconbtn:focus-visible { outline: 3px solid rgba(46,125,91,.35); }
.dmb-gp-kid__stats { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 14px; border-top: 1px solid var(--gp-line); }
.dmb-gp-stat:first-child { border-left: 0; padding-left: 0; }
.dmb-gp-stat { display: flex; flex-direction: column; gap: 2px; padding: 4px 16px; border-left: 1px solid var(--gp-line); min-width: 0; }
.dmb-gp-stat__label { color: var(--gp-muted); font-size: 13px; line-height: 1.3; }
.dmb-gp-stat__value { font-size: 24px; line-height: 1.2; font-weight: 800; color: var(--gp-ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.dmb-gp-stat__sub { font-size: 12.5px; color: var(--gp-leaf); font-weight: 600; line-height: 1.35; }
.dmb-gp-stat.is-due .dmb-gp-stat__sub { color: #8A5A0C; }
.dmb-gp-kid__cta { white-space: nowrap; }
.dmb-gp-kid__ctas { display: flex; flex-direction: column; gap: 8px; align-self: center; }
body .dmb-gportal .dmb-gp-kid__cta--ghost { min-height: 46px; padding: 0 22px; border: 1.5px solid var(--gp-leaf2); border-radius: 12px; background: #fff; color: var(--gp-leaf2); font: 700 15px/1 'DMB Be Vietnam Pro', system-ui, sans-serif; cursor: pointer; }
body .dmb-gportal .dmb-gp-kid__cta--ghost:hover { background: var(--t-mint, #EAF5EE); }
body .dmb-gportal .dmb-gp-kid__cta--ghost:focus-visible { outline: 3px solid rgba(46,125,91,.35); outline-offset: 2px; }
/* Bỏ chọn so sánh: nút viên nhỏ, nhẹ (30/11) */
.dmb-gcompare__head { align-items: center; }
.dmb-gcompare__clear { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 4px 12px 4px 9px; border: 1px solid #D5DDD7; border-radius: 999px; background: #fff; color: #50575e; font: 600 13px/1.4 inherit; font-family: inherit; cursor: pointer; }
.dmb-gcompare__clear span { font-size: 16px; line-height: 1; color: #8796A3; }
.dmb-gcompare__clear:hover { border-color: #2E7D5B; color: #1F5A41; }
.dmb-gcompare__clear:focus-visible { outline: 3px solid rgba(46,125,91,.35); outline-offset: 2px; }
body .dmb-gportal .dmb-gq__save.dmb-gp-kid__cta, body .dmb-gportal .dmb-gq__save.dmb-gp-start__btn { background: var(--gp-leaf2); border-color: var(--gp-leaf2); color: #fff; }
body .dmb-gportal .dmb-gq__save.dmb-gp-kid__cta:hover, body .dmb-gportal .dmb-gq__save.dmb-gp-start__btn:hover { background: var(--gp-leaf); color: #fff; }
.dmb-gp-kid__name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dmb-gp-sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0 0 12px; }
.dmb-gp-sectitle { margin: 0; font-size: 22px; font-weight: 800; color: var(--gp-ink); letter-spacing: -0.01em; }
.dmb-gp-hint { color: var(--gp-muted); font-size: 14px; }
.dmb-gp-topics { margin: 0 0 24px; }
.dmb-gp-topicgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; overflow-anchor: none; }
.dmb-gp-topicwrap { position: relative; }
.dmb-gp-topic { display: flex; gap: 12px; align-items: flex-start; width: 100%; height: 100%; box-sizing: border-box; min-height: 124px; padding: 16px 48px 16px 14px; border-radius: 20px; border: 1px solid rgba(29,42,54,.06);
  color: var(--gp-ink); text-decoration: none; text-align: left; font: inherit; cursor: default; transition: transform 160ms ease, box-shadow 160ms ease; }
a.dmb-gp-topic, button.dmb-gp-topic { cursor: pointer; }
a.dmb-gp-topic:hover, button.dmb-gp-topic:hover, a.dmb-gp-topic:focus-visible, button.dmb-gp-topic:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29,42,54,.08); color: var(--gp-ink); outline: none; }
.dmb-gp-topic--mint { background: var(--t-mint); --ic: #7CC39A; --ic2: #2E7D5B; }
.dmb-gp-topic--peach { background: var(--t-peach); --ic: #F6B98A; --ic2: #C46A2B; }
.dmb-gp-topic--sky { background: var(--t-sky); --ic: #9CC6EE; --ic2: #2F6FA8; }
.dmb-gp-topic--butter { background: var(--t-butter); --ic: #F2CF6B; --ic2: #A67C00; }
.dmb-gp-topic--rose { background: var(--t-rose); --ic: #F2A9B6; --ic2: #B5475F; }
.dmb-gp-topic--lilac { background: var(--t-lilac); --ic: #C2B2EE; --ic2: #6A52B8; }
.dmb-gp-topic.is-picked { box-shadow: inset 0 0 0 2px var(--ic2); }
.dmb-gp-topic__icon { flex: 0 0 52px; width: 52px; height: 52px; padding: 6px; border-radius: 16px; background: rgba(255,255,255,.75); box-sizing: border-box; }
.dmb-gp-topic__icon .f { fill: var(--ic); }
.dmb-gp-topic__icon .d { fill: var(--ic2); }
.dmb-gp-topic__icon .d2 { fill: var(--ic); opacity: .7; }
.dmb-gp-topic__icon .s { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dmb-gp-topic__icon .s2 { fill: none; stroke: var(--ic2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dmb-gp-topic__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; height: 100%; }
.dmb-gp-topic__text strong { font-size: 16.5px; line-height: 1.3; }
.dmb-gp-topic__text span { color: var(--gp-muted); font-size: 14px; line-height: 1.45; }
.dmb-gp-topic__text em { margin-top: auto; padding-top: 4px; font-style: normal; font-size: 14px; font-weight: 700; color: var(--ic2); }
.dmb-gp-topic.is-soon .dmb-gp-topic__text em { color: var(--gp-muted); font-weight: 600; }
.dmb-gp-heart { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); cursor: pointer; touch-action: manipulation; }
.dmb-gp-heart svg { width: 20px; height: 20px; }
.dmb-gp-heart__path { fill: none; stroke: #9AA6B0; stroke-width: 2; transition: fill 140ms, stroke 140ms; }
.dmb-gp-heart[aria-pressed="true"] .dmb-gp-heart__path { fill: #E0607E; stroke: #E0607E; }
.dmb-gp-heart:focus-visible { outline: 3px solid rgba(224,96,126,.4); }
.dmb-gp-brand { grid-column: span 2; display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 20px; background: linear-gradient(120deg, #EAF4EE, #F7FBF4); --ic: #8CC5A2; --ic2: #2E7D5B; }
.dmb-gp-brand__icon { width: 48px; height: 48px; flex: 0 0 48px; }
.dmb-gp-brand__icon .f { fill: var(--ic); } .dmb-gp-brand__icon .s2 { fill: none; stroke: var(--ic2); stroke-width: 3; stroke-linecap: round; }
.dmb-gp-brand strong { display: block; font-size: 17px; color: var(--gp-ink); }
.dmb-gp-brand span { color: var(--gp-muted); font-size: 14px; }

.dmb-gp-start { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px; align-items: center; padding: 22px; margin: 0 0 28px; background: #fff; border-radius: 24px; box-shadow: 0 10px 30px rgba(31,90,65,.10); }
.dmb-gp-start__text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.dmb-gp-start__list { margin: 0; padding-left: 20px; color: var(--gp-ink); line-height: 1.6; }
.dmb-gp-start__btn { min-width: 200px; }

@media (max-width: 860px) {
  .dmb-gp-kid { grid-template-columns: 1fr; gap: 14px; }
  .dmb-gp-kid__cta, .dmb-gp-kid__ctas { width: 100%; grid-row: 3; }
  .dmb-gp-kid__ctas { flex-direction: row; }
  .dmb-gp-kid__ctas .dmb-gp-kid__cta { flex: 1 1 0; width: auto; }
}
@media (max-width: 560px) {
  .dmb-gp-hero { padding: 20px 18px 18px; border-radius: 22px 22px 0 0; }
  .dmb-gp-hero__title { font-size: 28px; }
  .dmb-gp-hero__art { display: none; }
  .dmb-gp-kid { padding: 16px; border-radius: 20px; }
  .dmb-gp-avatar { width: 60px; height: 60px; font-size: 26px; }
  .dmb-gp-stat { padding: 2px 10px; }
  .dmb-gp-stat__value { font-size: 19px; }
  .dmb-gp-stat__sub { font-size: 12px; }
  .dmb-gp-topicgrid { grid-template-columns: 1fr; }
  .dmb-gp-brand { grid-column: auto; }
  .dmb-gp-start { grid-template-columns: 1fr; padding: 18px; }
  .dmb-gp-start .dmb-gportal__heroart { order: -1; }
  .dmb-gp-start__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .dmb-gp-topic { transition: none; } a.dmb-gp-topic:hover, button.dmb-gp-topic:hover { transform: none; } }
/* Theme (GeneratePress) tô nền nút khi hover/focus – giữ đúng màu của cổng. */
body .dmb-gportal .dmb-gp-heart:hover, body .dmb-gportal .dmb-gp-heart:focus, body .dmb-gportal .dmb-gp-heart:active { background: #fff; color: inherit; }
body .dmb-gportal .dmb-gp-iconbtn:hover, body .dmb-gportal .dmb-gp-iconbtn:focus, body .dmb-gportal .dmb-gp-iconbtn:active { background: #DDEEE3; }
body .dmb-gportal .dmb-gp-tab:hover, body .dmb-gportal .dmb-gp-tab:focus { background: #fff; color: var(--gp-ink); border-color: var(--gp-leaf2); }
body .dmb-gportal .dmb-gp-tab[aria-selected="true"]:hover, body .dmb-gportal .dmb-gp-tab[aria-selected="true"]:focus { background: var(--gp-leaf2); color: #fff; }
body .dmb-gportal button.dmb-gp-topic:hover, body .dmb-gportal button.dmb-gp-topic:focus, body .dmb-gportal button.dmb-gp-topic:active { background: var(--t-mint); color: var(--gp-ink); }
body .dmb-gportal .dmb-gportal__chip:hover, body .dmb-gportal .dmb-gportal__chip:focus { background: #fff; color: #1D2A36; }
body .dmb-gportal .dmb-gportal__chip[aria-pressed="true"]:hover, body .dmb-gportal .dmb-gportal__chip[aria-pressed="true"]:focus { background: #EAF4EE; color: #1F5A41; }
button.dmb-gp-topic { font-weight: 400; line-height: inherit; letter-spacing: normal; text-transform: none; }

/* ---------- 30/11 03:40: lịch sử gọn, chọn chủ đề kiểu chip, trang bé tập trung kết quả ---------- */
.dmb-gtable__row[tabindex] { cursor: pointer; }
.dmb-gtable__row[tabindex]:hover td { background: #F5F7F2; }
.dmb-gtable__row[tabindex]:focus-visible { outline: 2px solid #2E7D5B; outline-offset: -2px; }
.dmb-gmenu { position: relative; display: inline-block; }
.dmb-gmenu__btn { list-style: none; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 20px; line-height: 1; color: #5A6976; user-select: none; }
.dmb-gmenu__btn::-webkit-details-marker { display: none; }
.dmb-gmenu__btn:hover, .dmb-gmenu[open] .dmb-gmenu__btn { background: #EEF2EF; color: #1D2A36; }
.dmb-gmenu__list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 170px; padding: 6px; background: #fff; border: 1px solid #DCE4DD; border-radius: 12px; box-shadow: 0 10px 24px rgba(29,42,54,.14); display: flex; flex-direction: column; text-align: left; }
.dmb-gmenu__list button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; color: #1D2A36; text-decoration: none; cursor: pointer; }
.dmb-gmenu__list button:hover, .dmb-gmenu__list button:focus-visible { background: #F5F7F2; outline: none; }
.dmb-gmenu__list .is-danger { color: #B3382C; }
body .dmb-gmenu__list button:hover, body .dmb-gmenu__list button:focus { background: #F5F7F2; color: #1D2A36; }
body .dmb-gmenu__list button.is-danger:hover, body .dmb-gmenu__list button.is-danger:focus { color: #B3382C; }

/* Danh sách các bé: mỗi bé 1 khối */
.dmb-gp-kids { display: flex; flex-direction: column; gap: 16px; margin: 0 0 14px; }
.dmb-gp-kids .dmb-gp-kid { margin: 0; }
.dmb-gp-addkid { display: block; width: 100%; min-height: 54px; margin: 0 0 30px; border: 2px dashed #B9CDBF; border-radius: 18px; background: rgba(255,255,255,.6); color: #1F5A41; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
body .dmb-gportal .dmb-gp-addkid:hover, body .dmb-gportal .dmb-gp-addkid:focus { background: #fff; color: #1F5A41; border-color: #2E7D5B; }

/* Thẻ chủ đề: chỉ chữ, không biểu tượng */
.dmb-gp-topic { padding: 16px 18px; min-height: 112px; flex-direction: column; gap: 6px; }
.dmb-gp-topic strong { font-size: 16.5px; line-height: 1.3; }
.dmb-gp-topic span { color: var(--gp-muted); font-size: 14px; line-height: 1.45; }
.dmb-gp-topic em { margin-top: auto; font-style: normal; font-size: 14px; font-weight: 700; color: var(--ic2); }
.dmb-gp-topic.is-soon em { color: var(--gp-muted); font-weight: 600; }
.dmb-gp-edit { font-weight: 700; }
.dmb-gp-brand { grid-column: auto; margin-top: 8px; }

/* Bảng chọn chủ đề (hướng 2 – chip) mở/đóng mượt tại chỗ */
.dmb-gp-picker { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 240ms ease, opacity 200ms ease; }
.dmb-gp-picker.is-open { grid-template-rows: 1fr; opacity: 1; }
.dmb-gp-picker__inner { overflow: hidden; }
.dmb-gp-picker.is-open .dmb-gp-picker__inner { padding: 4px 0 18px; }
.dmb-gp-picker__lead { margin: 0 0 12px; color: var(--gp-muted); font-size: 15px; }
.dmb-gp-chips { display: flex; flex-wrap: wrap; gap: 10px; overflow-anchor: none; }
.dmb-gp-chip { min-height: 46px; padding: 10px 18px; border: 0; border-radius: 10px; background: #ECEFEC; color: #1D2A36; font: inherit; font-size: 15.5px; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer; touch-action: manipulation; transition: background 140ms, color 140ms; }
.dmb-gp-chip[aria-pressed="true"] { background: #1F5A41; color: #fff; font-weight: 700; }
.dmb-gp-chip--ghost { background: none; border: 1px solid #C9D3CC; }
.dmb-gp-chip:focus-visible { outline: 3px solid rgba(46,125,91,.35); outline-offset: 2px; }
body .dmb-gportal .dmb-gp-chip:hover, body .dmb-gportal .dmb-gp-chip:focus { background: #E2E7E3; color: #1D2A36; }
body .dmb-gportal .dmb-gp-chip[aria-pressed="true"]:hover, body .dmb-gportal .dmb-gp-chip[aria-pressed="true"]:focus { background: #174733; color: #fff; }
body .dmb-gportal .dmb-gp-chip--ghost:hover, body .dmb-gportal .dmb-gp-chip--ghost:focus { background: #fff; }
.dmb-gp-picker__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gp-line); }
.dmb-gp-picker__bar .dmb-grow { flex: 1; }

/* Trang 1 bé: đầu trang + form đo thu gọn */
.dmb-gp-kidhead { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.dmb-gp-back { align-self: flex-start; }
.dmb-gp-kidhead__row { display: flex; align-items: center; gap: 14px; }
.dmb-gp-kidhead__text { flex: 1; min-width: 0; }
.dmb-gp-kidhead__name { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--gp-ink); }
.dmb-gp-kidhead .dmb-gportal__more { position: relative; }
.dmb-gp-measure { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms ease; }
.dmb-gp-measure.is-open { grid-template-rows: 1fr; }
.dmb-gp-measure__inner { overflow: hidden; }
.dmb-gp-measure.is-open .dmb-gp-measure__inner { padding: 2px 0 16px; }
.dmb-gp-measure__close { margin-top: 6px; }
.dmb-gp-histtitle { margin-top: 26px; }
.dmb-gportal .dmb-gbar--sticky { top: var(--dmb-sticky-top, 0px); }
[id], .dmb-gp-measure, .dmb-gresult { scroll-margin-top: calc(var(--dmb-sticky-top, 0px) + 64px); }
@media (prefers-reduced-motion: reduce) { .dmb-gp-picker, .dmb-gp-measure, .dmb-gp-chip { transition: none; } }
@media (max-width: 560px) {
  .dmb-gp-chip { flex: 1 1 auto; }
  .dmb-gp-picker__bar > * { flex: 1 1 auto; }
  .dmb-gp-picker__bar .dmb-grow { display: none; }
  .dmb-gp-kidhead__name { font-size: 22px; }
}

body .dmb-gportal .dmb-gq__link.dmb-gp-edit:hover, body .dmb-gportal .dmb-gq__link.dmb-gp-edit:focus, body .dmb-gportal .dmb-gp-picker__bar .dmb-gq__link:hover, body .dmb-gportal .dmb-gp-picker__bar .dmb-gq__link:focus, body .dmb-gportal .dmb-gp-back:hover, body .dmb-gportal .dmb-gp-back:focus { background: none; color: #1F5A41; }
body .dmb-gportal .dmb-gq__save.dmb-gp-picker__save { background: #2E7D5B; border-color: #2E7D5B; color: #fff; }
body .dmb-gportal .dmb-gq__save.dmb-gp-picker__save:hover { background: #1F5A41; color: #fff; }
.dmb-gportal ul.dmb-gp-others { margin-left: 0; padding-left: 0; }
button.dmb-gp-other { font-weight: 400; }
/* Bảng các lần đo: menu “⋯” không bị cắt; ở cổng bảng nhẹ hơn (bỏ viền ô của theme) */
@media (min-width: 783px) { .dmb-gtable-wrap { overflow: visible; } }
.dmb-gportal .dmb-gtable, .dmb-gportal .dmb-gtable th, .dmb-gportal .dmb-gtable td { border-left: 0; border-right: 0; border-top: 0; }
.dmb-gportal .dmb-gtable { border: 0; font-size: 14px; }
.dmb-gportal .dmb-gtable th { background: none; border-bottom: 1px solid #DCE4DD; color: #5A6976; font-weight: 600; }
.dmb-gportal .dmb-gtable td { border-bottom: 1px solid #EDF1EE; padding: 12px 8px; vertical-align: middle; }
.dmb-gmenu.is-up .dmb-gmenu__list { top: auto; bottom: calc(100% + 4px); }
@media (max-width: 782px) {
  .dmb-gportal .dmb-gtable thead { display: none; }
  .dmb-gportal .dmb-gtable tr { display: grid; grid-template-columns: 28px 1fr auto auto 40px; gap: 4px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #EDF1EE; }
  .dmb-gportal .dmb-gtable td { display: block; border: 0; padding: 0; }
  .dmb-gportal .dmb-gtable td:nth-child(5) { grid-column: 2 / -1; grid-row: 2; }
  .dmb-gportal .dmb-gtable td:last-child { grid-column: 5; grid-row: 1; }
}

/* Ô SD riêng (30/11): viền + nền nhạt, số căn đều; màu theo độ xa trung bình */
.dmb-sd { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin: 1px 4px 2px 0; border-radius: 6px; border: 1.5px solid; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; vertical-align: middle; }
.dmb-sd--near { color: #1F5A41; border-color: #8CC5A2; background: #F1F8F3; }
.dmb-sd--mid { color: #7A4E0C; border-color: #E9C27A; background: #FFF8EA; }
.dmb-sd--far { color: #9A3412; border-color: #F0A07A; background: #FFF1EA; }
.dmb-gtagpair { display: inline-flex; align-items: center; gap: 0; margin-right: 6px; }
.dmb-gr .dmb-sd { height: calc(var(--u) * 34); padding: 0 calc(var(--u) * 12); border-radius: calc(var(--u) * 10); border-width: calc(var(--u) * 2.5); font-size: calc(var(--u) * 18); margin: 0; }
.dmb-gr__chips { display: inline-flex; align-items: center; gap: calc(var(--u) * 8); flex-wrap: wrap; }
.dmb-gr__ind-title { flex-wrap: wrap; }
.dmb-gp-stat__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.dmb-gp-stat__tags .dmb-sd { margin: 0; }

/* Chủ đề khác – chip tự xuống dòng (30/11) */
.dmb-gp-otherhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 26px 0 12px; }
.dmb-gp-subtitle { margin: 0; font-size: 16px; font-weight: 700; color: var(--gp-ink); }
.dmb-gp-otherhint { font-size: 13.5px; color: var(--gp-muted); }
.dmb-gportal ul.dmb-gp-others, .dmb-gp-others { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dmb-gp-others li { margin: 0; }
.dmb-gp-other { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px 6px 16px; border: 1px solid var(--gp-line); border-radius: 999px; background: #fff; color: var(--gp-ink); font-size: 15px; line-height: 1.3; text-decoration: none; box-sizing: border-box; transition: border-color .15s, box-shadow .15s; }
.dmb-gp-other__go { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--t-mint); color: var(--gp-leaf2); }
.dmb-gp-other.is-soon { cursor: default; }
.dmb-gp-other.is-soon .dmb-gp-other__go { background: #F1F3F4; color: #8A96A0; font-weight: 600; }
body .dmb-gportal a.dmb-gp-other:hover, body .dmb-gportal a.dmb-gp-other:focus-visible { border-color: var(--gp-leaf2); box-shadow: 0 4px 12px rgba(29,42,54,.07); color: var(--gp-ink); background: #fff; outline: none; }
@media (max-width: 600px) { .dmb-gp-other { font-size: 14.5px; } }
@media (prefers-reduced-motion: reduce) { .dmb-gp-other { transition: none; } }

/* ---- Trang bé trên cổng (thiết kế lại 30/11): ẩn tiêu đề trang, đầu trang gọn, 1 nút chính ---- */
body.dmb-gp-kidview .entry-header, body.dmb-gp-kidview .page-header,
body.dmb-gp-kidview .entry-content > :is(h1, h2, .wp-block-heading):has(+ .dmb-gportal) { display: none; } /* tiêu đề trang/khối tiêu đề ngay trên cổng */
body.dmb-gp-kidview .inside-article { padding-top: 24px; }
.dmb-gp-kidhead.has-result .dmb-gp-kid__meta { display: none; } /* tuổi, ngày sinh đã có trong thẻ kết quả */
.dmb-gp-kidhead.has-result .dmb-gp-avatar { width: 44px; height: 44px; font-size: 20px; }
.dmb-gp-kidhead.has-result { margin-bottom: 6px; }
.dmb-gportal .dmb-gbar--sticky .button.dmb-gbar__save { background: #fff; color: #1E5A43; border: 1px solid #1E5A43; }
.dmb-gportal .dmb-gbar--sticky .button.dmb-gbar__save:hover, .dmb-gportal .dmb-gbar--sticky .button.dmb-gbar__save:focus { background: #F0F6F2; color: #1E5A43; }
.dmb-gtable.is-single td:first-child, .dmb-gtable.is-single th:first-child { display: none; }
@media (max-width: 782px) { .dmb-gportal .dmb-gtable.is-single tr { grid-template-columns: 1fr auto auto 40px; } .dmb-gportal .dmb-gtable.is-single td:nth-child(5) { grid-column: 1 / -1; } .dmb-gportal .dmb-gtable.is-single td:last-child { grid-column: 4; } }
/* D-105: dòng mời cùng quản lý – chữ thường có gạch chân, không phải nút */
.dmb-gp-co { position: relative; z-index: 1; margin: 6px 2px 26px; font-size: 15px; line-height: 1.55; color: var(--gp-ink, #1D2A36); }
body .dmb-gportal .dmb-gp-co__link { display: inline; padding: 0; margin: 0; border: 0; background: none; box-shadow: none; color: var(--gp-leaf2, #2E7D5B); font: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; min-height: 0; }
body .dmb-gportal .dmb-gp-co__link:hover { color: var(--gp-leaf, #1F5A41); background: none; }
body .dmb-gportal .dmb-gp-co__link:focus-visible { outline: 3px solid rgba(46,125,91,.35); outline-offset: 2px; border-radius: 3px; }
body .dmb-gportal .dmb-gp-co__link:disabled { opacity: .6; cursor: default; }
.dmb-gp-co__hint { color: var(--gp-muted, #5B6B78); font-size: 14px; }
.dmb-gp-co__open { display: block; margin-top: 4px; font-size: 14px; color: var(--gp-muted, #5B6B78); }
body .dmb-gportal .dmb-gp-co__link--muted { color: #8A5A0C; font-weight: 600; }

/* 30/11: trang đo – thu gọn bề rộng cho dễ tập trung */
.dmb-gportal.dmb-gstaff.dmb-gportal--check { max-width: 640px; }
/* 30/11: ô ngày sinh tràn trên mobile (iOS/Android đặt bề rộng tối thiểu cho input date) */
.dmb-gstaff input[type=date], .dmb-gq input[type=date], .dmb-auth input[type=date] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; }
.dmb-gstaff input[type=date]::-webkit-date-and-time-value, .dmb-gq input[type=date]::-webkit-date-and-time-value { text-align: left; }
.dmb-gstaff__f, .dmb-gq__field, .dmb-gq__row > * { min-width: 0; }
/* Ô tìm-hoặc-chọn (phụ huynh, bé) dùng chung với Quản lý trẻ */
/* Quản lý trẻ › Thêm bé: ô phụ huynh tìm-hoặc-tạo */
.dmb-gportal .dmb-addkid__who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 16px; margin-bottom: 12px; }
.dmb-gportal .dmb-addkid__who .dmb-gstaff__f { margin: 0; }
.dmb-pp { position: relative; }
.dmb-pp__input { width: 100%; min-height: 46px; padding: 0 12px; border: 1.5px solid #c3c4c7; border-radius: 10px; font-size: 15px; }
.dmb-pp__input:focus { border-color: #2E7D5B; box-shadow: 0 0 0 3px rgba(46,125,91,.18); outline: 0; }
.dmb-pp__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 300px; overflow: auto; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #dcdcde; border-radius: 10px; box-shadow: 0 10px 24px rgba(29,35,39,.14); }
.dmb-pp__opt { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 8px; cursor: pointer; margin: 0; }
.dmb-pp__opt[aria-selected="true"] { background: #EAF5EE; }
.dmb-pp__opt-name { font-weight: 600; color: #1d2327; }
.dmb-pp__more { padding: 8px 12px; color: #646970; font-size: 12.5px; border-top: 1px solid #f0f0f1; margin-top: 4px; cursor: default; }
.dmb-pp__opt-sub { font-size: 12px; color: #646970; }
.dmb-pp__opt--new { border-top: 1px solid #f0f0f1; margin-top: 2px; }
.dmb-pp__opt--new .dmb-pp__opt-name { color: #1F5A41; }
.dmb-pp__chip { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 6px 4px 6px; border: 1.5px solid #2E7D5B; border-radius: 10px; background: #F4FAF6; }
.dmb-pp__avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #2E7D5B; color: #fff; font-weight: 700; flex: 0 0 auto; }
.dmb-pp__who { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-width: 0; flex: 1; }
.dmb-pp__who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dmb-pp__who small { flex-basis: 100%; color: #50575e; font-size: 12px; }
.dmb-pp__tick .dmb-verified { width: 16px; height: 16px; }
.dmb-pp__change { margin-left: auto; padding: 6px 12px; border: 1px solid #c3c4c7; border-radius: 8px; background: #fff; color: #1d2327; cursor: pointer; font: inherit; }
.dmb-gstaff .dmb-pp__input { min-height: 50px; padding: 8px 14px; border: 2px solid #C9D3CC; border-radius: 12px; font: inherit; font-size: 17px; box-sizing: border-box; }
.dmb-gstaff .dmb-pp__chip { min-height: 50px; border-width: 2px; border-radius: 12px; }
.dmb-gstaff .dmb-pp__opt { font-size: 16px; } .dmb-gstaff .dmb-pp__opt-sub { font-size: 13px; }
.dmb-gstaff .dmb-pp__dups { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #FFF7E6; display: flex; flex-direction: column; gap: 6px; }
.dmb-gstaff .dmb-pp__dup { display: flex; align-items: center; gap: 8px; }
.dmb-verified { width: 16px; height: 16px; flex: 0 0 auto; vertical-align: -3px; }
.dmb-gstaff-done { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
@media (max-width: 600px) { .dmb-gportal .dmb-addkid__who { grid-template-columns: 1fr; } }
.dmb-gstaff [hidden] { display: none !important; }
.dmb-gportal .dmb-addkid__who.is-locked input[type=date], .dmb-gportal .dmb-addkid__who.is-locked .dmb-gstaff__seg button { opacity: .75; cursor: not-allowed; background: #F3F5F3; }
.dmb-gportal .dmb-addkid__who.is-locked .dmb-gstaff__seg button[aria-pressed="true"] { opacity: 1; background: #1D2A36; }

/* 30/11: Sửa nhanh trong ô chọn phụ huynh/bé */
.dmb-pp__acts { display: inline-flex; gap: 6px; margin-left: auto; flex: 0 0 auto; }
.dmb-pp__acts .dmb-pp__change { margin-left: 0; }
.dmb-pp__edit { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1.5px solid #2E7D5B; border-radius: 12px; background: #F4FAF6; }
.dmb-pp__ef { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dmb-pp__ef input { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; -webkit-appearance: none; appearance: none; }
.dmb-pp__efrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.dmb-pp__editacts { display: flex; gap: 8px; align-items: center; }
.dmb-pp__editsave { min-height: 40px; padding: 0 18px; }
@media (max-width: 600px) { .dmb-pp__efrow { grid-template-columns: 1fr; } }

/* 30/11 (anh Dương): thẻ kết quả gọn – đầu 1 dòng chữ vừa, mỗi chỉ số 1 dòng + thanh màu không chữ. */
.dmb-gr h1.dmb-gr__name { font-size: calc(var(--u) * 28); font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.dmb-gr__line { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--u) * 8) calc(var(--u) * 16); }
.dmb-gr__line > svg { width: calc(var(--u) * 36); height: calc(var(--u) * 36); flex: none; }
.dmb-gr__line .dmb-gr__ind-title { font-size: calc(var(--u) * 28); font-weight: 600; }
.dmb-gr__line .dmb-gr__value { font-size: calc(var(--u) * 34); }
.dmb-gr__gap { font-size: calc(var(--u) * 22); font-weight: 600; color: #6B430A; white-space: nowrap; }
.dmb-gr__rank { font-size: calc(var(--u) * 20); color: var(--muted); white-space: nowrap; }
.dmb-gr .dmb-gr__line .dmb-sd { height: calc(var(--u) * 34); padding: 0 calc(var(--u) * 10); margin: 0; border-radius: calc(var(--u) * 8); font-size: calc(var(--u) * 20); }
.dmb-gr__ind--alert, .dmb-gr__ind--check { padding: calc(var(--u) * 20) calc(var(--u) * 26); }
.dmb-gr__ruler { height: calc(var(--u) * 80); }
.dmb-gr__bar { top: calc(var(--u) * 34); height: calc(var(--u) * 30); }
.dmb-gr__mean { top: calc(var(--u) * 30); height: calc(var(--u) * 38); opacity: 0.7; }
.dmb-gr__dot i { width: calc(var(--u) * 26); height: calc(var(--u) * 26); margin-top: calc(var(--u) * 10); }
.dmb-gr__ticks { font-size: calc(var(--u) * 19); }

/* ---------- Mẫu ảnh v3 (01/12): đồng hồ kim theo nhóm tuổi, hành trình đánh số (thiết kế 1080 × 1620) ---------- */
.dmb-gr.dmb-gr--v3 { background: #F6F8F3; color: #1E2922; gap: calc(var(--u) * 28); padding: calc(var(--u) * 56) calc(var(--u) * 56) calc(var(--u) * 44); }
.dmb-gr--v3 p { margin: 0; }
.dmb-gr__hd { display: flex; justify-content: space-between; align-items: flex-end; gap: calc(var(--u) * 24); }
.dmb-gr.dmb-gr--v3 h1.dmb-gr__name { font-size: calc(var(--u) * 50); font-weight: 700; line-height: 1.15; letter-spacing: 0; }
.dmb-gr--v3 .dmb-gr__sub { font-size: calc(var(--u) * 28); color: #56625A; margin-top: calc(var(--u) * 8); line-height: 1.35; }
.dmb-gr__when { display: flex; flex-direction: column; align-items: flex-end; flex: none; font-size: calc(var(--u) * 22); color: #6B766F; }
.dmb-gr__when strong { font-size: calc(var(--u) * 28); color: #1E2922; font-weight: 600; }
.dmb-gr__gauges, .dmb-gr__boxes, .dmb-gr--v3 .dmb-gr__charts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--u) * 20); }
.dmb-gr__gauges.is-single, .dmb-gr__boxes.is-single { grid-template-columns: minmax(0, 1fr); }
.dmb-gr__gcard, .dmb-gr__box, .dmb-gr__stat, .dmb-gr__tl-card, .dmb-gr--v3 .dmb-gr__chart-cell { background: #fff; border: calc(var(--u) * 1.5) solid #E2E8DE; border-radius: calc(var(--u) * 26); }
.dmb-gr__gcard { padding: calc(var(--u) * 24) calc(var(--u) * 16); display: flex; flex-direction: column; align-items: center; text-align: center; }
.dmb-gr__gauge { width: calc(var(--u) * 340); height: calc(var(--u) * 231); display: block; }
.dmb-gr__gname { font-size: calc(var(--u) * 26); color: #56625A; margin-top: calc(var(--u) * 8) !important; }
.dmb-gr__gval { font-size: calc(var(--u) * 56); font-weight: 700; line-height: 1.15; white-space: nowrap; }
.dmb-gr__tag { display: inline-block; font-size: calc(var(--u) * 23); font-weight: 500; line-height: 1.3; padding: calc(var(--u) * 8) calc(var(--u) * 20); border-radius: calc(var(--u) * 14); margin-top: calc(var(--u) * 12); background: #E3F0DA; color: #24532F; }
.dmb-gr__tag--mild { background: #FBF1CF; color: #5E4A08; }
.dmb-gr__tag--alert { background: #FBE3CC; color: #7A3A0A; }
.dmb-gr__tag--check { background: #ECEDE7; color: #3B423D; }
.dmb-gr__gnote { font-size: calc(var(--u) * 22); color: #56625A; margin-top: calc(var(--u) * 12) !important; min-height: calc(var(--u) * 30); }
.dmb-gr__box { padding: calc(var(--u) * 20) calc(var(--u) * 26); display: flex; align-items: center; gap: calc(var(--u) * 16); }
.dmb-gr__bmain { flex: 1; min-width: 0; }
.dmb-gr__bname { font-size: calc(var(--u) * 22); color: #56625A; line-height: 1.3; }
.dmb-gr__bval { font-size: calc(var(--u) * 34); font-weight: 700; }
.dmb-gr__bside { display: flex; flex-direction: column; align-items: flex-end; gap: calc(var(--u) * 6); }
.dmb-gr__bside .dmb-gr__tag { margin-top: 0; font-size: calc(var(--u) * 21); padding: calc(var(--u) * 7) calc(var(--u) * 16); }
.dmb-gr__bsd { font-size: calc(var(--u) * 18); color: #6B766F; }
.dmb-gr__picon { width: calc(var(--u) * 64); height: calc(var(--u) * 64); border-radius: 50%; background: #E3F0DA; display: flex; align-items: center; justify-content: center; flex: none; }
.dmb-gr__picon svg { width: calc(var(--u) * 38); height: calc(var(--u) * 42); }
.dmb-gr__h2 { font-size: calc(var(--u) * 30); font-weight: 700; margin-bottom: calc(var(--u) * -12) !important; }
.dmb-gr__h3 { font-size: calc(var(--u) * 26); font-weight: 700; padding-bottom: calc(var(--u) * 10); }
.dmb-gr--v3 .dmb-gr__chart-cell { padding: calc(var(--u) * 18) calc(var(--u) * 16) calc(var(--u) * 8); }
.dmb-gr__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--u) * 20); }
.dmb-gr__stat { padding: calc(var(--u) * 22) calc(var(--u) * 26); }
.dmb-gr__stat p { font-size: calc(var(--u) * 22); color: #56625A; }
.dmb-gr__stat p + strong + p { font-size: calc(var(--u) * 21); }
.dmb-gr__stat strong { display: block; font-size: calc(var(--u) * 46); font-weight: 700; line-height: 1.15; }
.dmb-gr__tl-card { padding: calc(var(--u) * 20) calc(var(--u) * 28) calc(var(--u) * 8); }
.dmb-gr__tl { position: relative; }
.dmb-gr__tl-rail { position: absolute; left: calc(var(--u) * 18); top: calc(var(--u) * 80); bottom: calc(var(--u) * 31); width: calc(var(--u) * 3); border-radius: calc(var(--u) * 2); background: #D5E2D0; }
.dmb-gr__tl-row { position: relative; display: grid; grid-template-columns: calc(var(--u) * 38) 1.1fr 1.5fr 1fr 1fr; gap: calc(var(--u) * 12); align-items: center; font-size: calc(var(--u) * 24); padding: calc(var(--u) * 14) 0; border-bottom: calc(var(--u) * 1) solid #EEF1EB; }
.dmb-gr__tl.is-3 .dmb-gr__tl-row { grid-template-columns: calc(var(--u) * 38) 1.1fr 1.5fr 1fr 1fr 0.9fr; }
.dmb-gr__tl-row:last-child { border-bottom: 0; }
.dmb-gr__tl-row.is-head { font-size: calc(var(--u) * 20); color: #6B766F; padding: calc(var(--u) * 10) 0; border-bottom: calc(var(--u) * 1.5) solid #E2E8DE; }
.dmb-gr__tl-row.is-last { font-weight: 600; }
.dmb-gr__tl-n { width: calc(var(--u) * 38); height: calc(var(--u) * 38); border-radius: 50%; border: calc(var(--u) * 2) solid #1E2922; background: #fff; display: flex; align-items: center; justify-content: center; font-size: calc(var(--u) * 18); font-weight: 700; }
.dmb-gr__tl-row.is-last .dmb-gr__tl-n { background: #E3A23A; border-color: #E3A23A; }
.dmb-gr__tl-age { color: #3E4A42; }
.dmb-gr__tl-val { display: flex; align-items: center; gap: calc(var(--u) * 10); }
.dmb-gr__dot3 { width: calc(var(--u) * 14); height: calc(var(--u) * 14); border-radius: 50%; flex: none; }
.dmb-gr__dot3.is-ok, .dmb-gr__dots .is-ok::before { background: #6DBE7B; }
.dmb-gr__dot3.is-mild, .dmb-gr__dots .is-mild::before { background: #F5D573; }
.dmb-gr__dot3.is-alert, .dmb-gr__dots .is-alert::before { background: #E8893A; }
.dmb-gr__dot3.is-check { background: #B4B2A9; }
.dmb-gr.dmb-gr--v3 .dmb-gr__foot { margin-top: auto; display: flex; align-items: center; gap: calc(var(--u) * 32); border-top: calc(var(--u) * 1.5) solid #E2E8DE; padding-top: calc(var(--u) * 24); }
.dmb-gr__foot-l { flex: 1; display: flex; flex-direction: column; gap: calc(var(--u) * 14); }
.dmb-gr__logo { height: calc(var(--u) * 56); width: auto; max-width: 100%; align-self: flex-start; display: block; }
.dmb-gr__dots { display: flex; flex-wrap: wrap; gap: calc(var(--u) * 22); font-size: calc(var(--u) * 19); color: #6B766F; }
.dmb-gr__dots span::before { content: ''; display: inline-block; width: calc(var(--u) * 12); height: calc(var(--u) * 12); border-radius: 50%; margin-right: calc(var(--u) * 8); vertical-align: middle; }
.dmb-gr.dmb-gr--v3 .dmb-gr__note { font-size: calc(var(--u) * 19); color: #6B766F; line-height: 1.45; }
.dmb-gr.dmb-gr--v3 .dmb-gr__qr { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 8); font-size: calc(var(--u) * 19); color: #3E4A42; text-align: center; }
/* Xem lượt cũ, nút Xem trong bảng, In (01/12) */
.dmb-gpast { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: #FBF1CF; color: #5E4A08; font-size: 15px; }
.dmb-gpast[hidden] { display: none; }
.dmb-gpast__back { border: 0; background: #fff; color: #24532F; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.dmb-gtable__view { border: 1px solid #CFE0C6; background: #F1F8EC; color: #24532F; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; min-height: 36px; margin-right: 6px; }
.dmb-gtable tr.is-current .dmb-gtable__view { background: #2E7D5B; border-color: #2E7D5B; color: #fff; }
/* Link chia sẻ: khối mời nổi bật, dính đầu màn hình khi cuộn (01/12) */
.dmb-gshare-cta { position: sticky; top: var(--dmb-sticky-top, 0px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 18px; margin: 0 0 16px; border-radius: 16px; background: #2E7D5B; color: #fff; box-shadow: 0 6px 18px rgba(30, 41, 34, .18); }
.dmb-gshare-cta__text { flex: 1 1 260px; min-width: 0; }
.dmb-gshare-cta h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.3; color: #fff; }
.dmb-gshare-cta p { margin: 0; font-size: 15px; line-height: 1.45; color: #E3F0DA; }
.dmb-gshare-cta a.dmb-gshare-cta__btn { flex: none; display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: #F5D573; color: #3B2E05; font-weight: 700; text-decoration: none; }
@media (max-width: 600px) { .dmb-gshare-cta { padding: 12px 14px; } .dmb-gshare-cta p { display: none; } .dmb-gshare-cta h2 { font-size: 17px; margin: 0; } .dmb-gshare-cta a.dmb-gshare-cta__btn { min-height: 42px; padding: 0 14px; } }
/* Hỏi số đo lúc sinh (bé dưới 12 tháng, 01/12) */
.dmb-gbirth { margin: 0 0 16px; padding: 16px 18px; border-radius: 16px; background: #F1F8EC; border: 1px solid #CFE0C6; }
.dmb-gbirth h3 { margin: 0 0 4px; font-size: 18px; }
.dmb-gbirth p { margin: 0 0 12px; color: #56625A; font-size: 15px; }
.dmb-gbirth__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.dmb-gbirth__row label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #3E4A42; flex: 1 1 140px; }
.dmb-gbirth__row input { font-size: 16px; min-height: 44px; padding: 0 12px; border: 1px solid #CFD8CB; border-radius: 10px; }
.dmb-gbirth__skip { border: 0; background: none; color: #56625A; text-decoration: underline; cursor: pointer; min-height: 44px; }
/* Ô dự đoán chiều cao: nhãn 1 dòng (01/12) */
.dmb-gr__picon + .dmb-gr__bmain .dmb-gr__bname { white-space: nowrap; font-size: calc(var(--u) * 20); }
.dmb-gr__box .dmb-gr__picon { width: calc(var(--u) * 56); height: calc(var(--u) * 56); }
.dmb-gr__box:has(.dmb-gr__picon) { padding-left: calc(var(--u) * 20); padding-right: calc(var(--u) * 20); gap: calc(var(--u) * 12); }

/* 0.8.3: bỏ icon lịch trong ô ngày (Chrome/Safari) – Tab khỏi dừng thêm 1 lần; vẫn gõ ngày bằng bàn phím */
input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
.dmb-gr--v3 .dmb-gr__sub + .dmb-gr__sub { margin-top: calc(var(--u) * 2); }
