/* ProMaths Hub — telefon dahulu. Tab di bawah skrin pada telefon, di atas kandungan pada desktop. */
.pmh {
  --pmh-ink: #0b1b44;
  --pmh-muted: #5f6f8a;
  --pmh-line: #dfe6f0;
  --pmh-bg: #f4f7fc;
  --pmh-card: #ffffff;
  --pmh-navy: #073681;
  --pmh-blue: #0754df;
  --pmh-blue-soft: #e9f1ff;
  --pmh-yellow: #ffc400;
  --pmh-yellow-soft: #fff6d6;
  --pmh-ok: #17673c;
  --pmh-ok-soft: #e5f5eb;
  --pmh-warn: #8a5300;
  --pmh-warn-soft: #fff1d6;
  --pmh-bad: #b42318;
  --pmh-bad-soft: #fdeceb;
  --pmh-radius: 16px;
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 96px;
  color: var(--pmh-ink);
  font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.pmh *, .pmh *::before, .pmh *::after { box-sizing: border-box; }
.pmh h1, .pmh h2, .pmh h3 { margin: 0; color: var(--pmh-ink); line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.pmh h1 { font-size: 26px; font-weight: 800; }
.pmh h2 { font-size: 19px; font-weight: 750; }
.pmh h3 { font-size: 17px; font-weight: 700; }
.pmh p { margin: 0; }
.pmh a { color: var(--pmh-blue); }
.pmh .dashicons { width: 18px; height: 18px; font-size: 18px; line-height: 1; }
.pmh-eyebrow { color: var(--pmh-blue); font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.pmh-muted { color: var(--pmh-muted); }

/* Top bar */
.pmh-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--pmh-line); }
.pmh-body { margin: 0; background: #f4f7fc; }
.pmh-brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--pmh-ink) !important; font-weight: 600; }
.pmh-brand .pmh-logo { width: 64px; height: auto; }
.pmh-brand b { color: var(--pmh-blue); }
.pmh-top-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.pmh-role { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pmh-navy); background: var(--pmh-yellow-soft); padding: 4px 8px; border-radius: 6px; }
.pmh-top-link { display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--pmh-muted) !important; }
.pmh-top-link:hover, .pmh-top-link:focus-visible { background: var(--pmh-bg); color: var(--pmh-ink) !important; }

.pmh-main { display: grid; gap: 16px; padding-top: 20px; }
.pmh-hello { display: grid; gap: 4px; }

/* Child switcher */
.pmh-children { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.pmh-children a { flex: none; display: grid; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--pmh-line); background: var(--pmh-card); text-decoration: none; color: var(--pmh-ink) !important; font-weight: 700; font-size: 14px; }
.pmh-children a small { color: var(--pmh-muted); font-weight: 500; font-size: 12px; }
.pmh-children a.is-current { border: 2px solid var(--pmh-blue); background: var(--pmh-blue-soft); }

/* Tabs: bottom bar on phones */
.pmh-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; background: var(--pmh-card); border-top: 1px solid var(--pmh-line); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -6px 20px rgba(11, 27, 68, 0.06); }
.pmh-tabs a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 9px 2px 10px; font-size: 11px; font-weight: 700; text-decoration: none; color: var(--pmh-muted) !important; }
.pmh-tabs a .dashicons { width: 22px; height: 22px; font-size: 22px; }
.pmh-tabs a.is-current { color: var(--pmh-blue) !important; box-shadow: inset 0 3px 0 var(--pmh-blue); }
@media (min-width: 720px) {
  .pmh { padding-bottom: 48px; }
  .pmh-tabs { position: static; border: 1px solid var(--pmh-line); border-radius: 14px; box-shadow: none; padding: 4px; gap: 4px; }
  .pmh-tabs a { grid-auto-flow: column; align-items: center; gap: 6px; font-size: 14px; padding: 10px; border-radius: 10px; }
  .pmh-tabs a .dashicons { width: 18px; height: 18px; font-size: 18px; }
  .pmh-tabs a.is-current { background: var(--pmh-blue-soft); box-shadow: none; }
}

.pmh-panel { display: grid; gap: 14px; }

/* Cards */
.pmh-card { background: var(--pmh-card); border: 1px solid var(--pmh-line); border-radius: var(--pmh-radius); padding: 18px; display: grid; gap: 10px; min-width: 0; }
.pmh-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pmh-child p { color: var(--pmh-muted); font-size: 14px; }
.pmh-next { border: 2px solid var(--pmh-blue); }
.pmh-next h3 { font-size: 20px; }

.pmh-pill { display: inline-flex; align-items: center; white-space: nowrap; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.pmh-ok { background: var(--pmh-ok-soft); color: var(--pmh-ok); }
.pmh-warn { background: var(--pmh-warn-soft); color: var(--pmh-warn); }
.pmh-bad { background: var(--pmh-bad-soft); color: var(--pmh-bad); }
.pmh-muted.pmh-pill { background: var(--pmh-bg); }

.pmh-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 13px 16px; border-radius: 12px; font-size: 14.5px; }
.pmh-alert-ok { background: var(--pmh-ok-soft); color: var(--pmh-ok); }
.pmh-alert-warn { background: var(--pmh-warn-soft); color: var(--pmh-warn); }
.pmh-alert-bad { background: var(--pmh-bad-soft); color: var(--pmh-bad); }

.pmh-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--pmh-radius); background: var(--pmh-yellow-soft); border: 1px solid #f3dc8a; }
.pmh-pay strong { font-size: 16px; }
.pmh-pay p { color: var(--pmh-warn); font-size: 14px; }

/* Buttons */
.pmh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--pmh-line); background: var(--pmh-card); color: var(--pmh-ink) !important; font: inherit; font-weight: 750; font-size: 15px; text-decoration: none; cursor: pointer; }
.pmh-btn:hover { border-color: var(--pmh-blue); }
.pmh-btn:focus-visible, .pmh-tabs a:focus-visible, .pmh-tile:focus-visible, .pmh-children a:focus-visible { outline: 3px solid var(--pmh-yellow); outline-offset: 2px; }
.pmh-btn-primary { background: var(--pmh-yellow); border-color: var(--pmh-yellow); color: var(--pmh-ink) !important; }
.pmh-btn-blue { background: var(--pmh-blue); border-color: var(--pmh-blue); color: #fff !important; }
.pmh-btn-danger { background: var(--pmh-card); border-color: var(--pmh-bad); color: var(--pmh-bad) !important; }
.pmh-btn-block { width: 100%; }
.pmh-btn.is-disabled { color: var(--pmh-muted) !important; background: var(--pmh-bg); cursor: default; }
.pmh-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pmh-link { font-weight: 700; text-decoration: none; }

/* Tiles */
.pmh-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pmh-tile { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--pmh-line); background: var(--pmh-card); text-decoration: none; color: var(--pmh-ink) !important; min-width: 0; }
.pmh-tile:hover { border-color: var(--pmh-blue); }
.pmh-tile strong { display: block; font-size: 14.5px; }
.pmh-tile small { display: block; color: var(--pmh-muted); font-size: 12.5px; }
.pmh-tile-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--pmh-blue-soft); color: var(--pmh-blue); }
.pmh-tile.is-disabled { opacity: 0.6; }

/* Facts & plan */
.pmh-facts { display: grid; gap: 0; margin: 0; }
.pmh-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--pmh-line); }
.pmh-facts > div:last-child { border-bottom: 0; }
.pmh-facts dt { color: var(--pmh-muted); }
.pmh-facts dd { margin: 0; font-weight: 700; text-align: right; }
.pmh-plan { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.pmh-plan strong { font-size: 30px; font-weight: 800; color: var(--pmh-navy); font-variant-numeric: tabular-nums; }
.pmh-plan span { color: var(--pmh-muted); }
.pmh-plan .pmh-pill { margin-left: auto; }

/* History */
.pmh-history { list-style: none; margin: 0; padding: 0; display: grid; }
.pmh-history li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--pmh-line); }
.pmh-history li:last-child { border-bottom: 0; }
.pmh-history strong { display: block; font-variant-numeric: tabular-nums; }
.pmh-history small { color: var(--pmh-muted); font-size: 12px; }

/* Cancel */
.pmh-cancel details { display: grid; gap: 12px; }
.pmh-form .pmc-temp, .pmh-rec-form { display: grid; gap: 12px; }
.pmh-cancel summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-weight: 750; color: var(--pmh-muted); }
.pmh-cancel summary::-webkit-details-marker { display: none; }
.pmh-cancel details[open] summary { color: var(--pmh-bad); margin-bottom: 10px; }
.pmh-form { display: grid; gap: 12px; }
.pmh-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.pmh-form legend { font-weight: 700; margin-bottom: 4px; }
.pmh-form small { color: var(--pmh-muted); font-weight: 500; }
.pmh-radio, .pmh-check { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; }
.pmh-check { padding: 12px; background: var(--pmh-bg); border-radius: 10px; font-weight: 600; }
.pmh-field { display: grid; gap: 5px; font-weight: 600; }
.pmh-field textarea { width: 100%; border: 1px solid var(--pmh-line); border-radius: 10px; padding: 10px 12px; font: inherit; }

/* Profile grid */
.pmh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pmh-span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .pmh-grid { grid-template-columns: 1fr; } }

/* Teacher */
.pmh-class-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pmh-count { text-align: right; color: var(--pmh-muted); font-size: 13px; white-space: nowrap; }
.pmh-count strong { display: block; font-size: 26px; color: var(--pmh-navy); font-variant-numeric: tabular-nums; }
.pmh-table { overflow-x: auto; }
.pmh-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pmh-table table, .pmh-table th, .pmh-table td, .pmh-table tr { border: 0; background: transparent !important; }
.pmh .pmh-table th, .pmh .pmh-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--pmh-line); }
.pmh .pmh-table tr:last-child td { border-bottom: 0; }
.pmh-table th { color: var(--pmh-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.pmh-soon { padding: 16px 18px; border-radius: var(--pmh-radius); border: 1px dashed var(--pmh-line); color: var(--pmh-muted); display: grid; gap: 4px; }
.pmh-soon strong { color: var(--pmh-ink); }

.pmh-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px 20px; background: var(--pmh-card); border: 1px solid var(--pmh-line); border-radius: var(--pmh-radius); }
.pmh-empty > .dashicons { width: 40px; height: 40px; font-size: 40px; color: var(--pmh-blue); }
.pmh-empty p { color: var(--pmh-muted); max-width: 46ch; }

/* Login */
.pmh-login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--pmh-bg); }
.pmh-login-tabs a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border-radius: 9px; font-weight: 700; text-decoration: none; color: var(--pmh-muted) !important; }
.pmh-login-tabs a.is-current { background: var(--pmh-card); color: var(--pmh-blue) !important; box-shadow: 0 1px 3px rgba(11, 27, 68, 0.12); }
.pmh-login-tabs a:focus-visible { outline: 3px solid var(--pmh-yellow); outline-offset: 2px; }
.pmh-login { display: grid; place-items: center; padding-top: 32px; }
.pmh-login-card { width: min(100%, 420px); background: var(--pmh-card); border: 1px solid var(--pmh-line); border-radius: 20px; padding: 28px 24px; display: grid; gap: 12px; box-shadow: 0 20px 50px rgba(11, 27, 68, 0.08); }
.pmh-login-card .pmh-logo { width: 120px; height: auto; }
.pmh-login-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--pmh-blue-soft); color: var(--pmh-blue); }
.pmh-login-card form { display: grid; gap: 12px; }
.pmh-login-card form p { margin: 0; display: grid; gap: 5px; }
.pmh-login-card label { font-weight: 650; font-size: 14px; }
.pmh-login-card input[type="text"], .pmh-login-card input[type="password"] { width: 100%; min-height: 46px; border: 1px solid var(--pmh-line); border-radius: 12px; padding: 10px 12px; font: inherit; }
.pmh-login-card .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.pmh-login-card input[type="submit"] { width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: var(--pmh-yellow); color: var(--pmh-ink); font: inherit; font-weight: 800; cursor: pointer; }
.pmh-login-help { display: grid; gap: 4px; font-size: 14px; }
.pmh-login-help a { font-weight: 700; }
.pmh-login-help p { color: var(--pmh-muted); font-size: 13px; }
.pmh-support { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 12px; background: var(--pmh-ok-soft); color: var(--pmh-ok) !important; font-weight: 700; text-decoration: none; font-size: 14px; }

/* Guru: recordings */
.pmh-tabs-teacher { position: static; border: 1px solid var(--pmh-line); border-radius: 14px; box-shadow: none; padding: 4px; gap: 4px; }
.pmh-tabs-teacher a { grid-auto-flow: column; align-items: center; gap: 6px; font-size: 14px; padding: 10px; border-radius: 10px; }
.pmh-tabs-teacher a .dashicons { width: 18px; height: 18px; font-size: 18px; }
.pmh-tabs-teacher a.is-current { background: var(--pmh-blue-soft); box-shadow: none; }
.pmh-add summary { cursor: pointer; list-style: none; font-weight: 750; color: var(--pmh-blue); }
.pmh-add summary::-webkit-details-marker { display: none; }
.pmh-add[open] summary { margin-bottom: 12px; }
.pmh-rec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pmh-rec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pmh-rec-head small { display: block; color: var(--pmh-muted); font-size: 13px; }
.pmh-actions form { margin: 0; }
/* Shared recording form fields (also used in wp-admin) */
.pmh .pmc-field { display: grid; gap: 5px; font-weight: 650; font-size: 14px; }
.pmh .pmc-field small { color: var(--pmh-muted); font-weight: 400; }
.pmh .pmc-field input, .pmh .pmc-field select, .pmh .pmc-field textarea { width: 100%; min-height: 44px; border: 1px solid var(--pmh-line); border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 400; background: #fff; }
.pmh .pmc-choice { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pmh .pmc-choice legend { font-weight: 650; font-size: 14px; margin-bottom: 6px; }
.pmh .pmc-choice label { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border: 1px solid var(--pmh-line); border-radius: 12px; cursor: pointer; }
.pmh .pmc-choice label:has(input:checked) { border: 2px solid var(--pmh-blue); background: var(--pmh-blue-soft); padding: 11px; }
.pmh .pmc-choice strong { display: block; }
.pmh .pmc-choice small { display: block; color: var(--pmh-muted); font-size: 12.5px; }
.pmh .pmc-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.pmh .pmc-inline input[type="number"] { width: 80px; min-height: 40px; border: 1px solid var(--pmh-line); border-radius: 8px; padding: 6px 8px; }
.pmh .pmc-inline input[type="date"] { min-height: 40px; border: 1px solid var(--pmh-line); border-radius: 8px; padding: 6px 8px; }
.pmh .pmc-temp { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--pmh-bg); }
.pmh [hidden] { display: none !important; }
@media (max-width: 480px) { .pmh .pmc-choice { grid-template-columns: 1fr; } }

/* Sessions (Guru) */
.pmh-section-title { margin: 6px 0 -4px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pmh-muted); }
.pmh-sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pmh-session { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--pmh-line); border-radius: 14px; background: var(--pmh-card); text-decoration: none; color: var(--pmh-ink) !important; }
.pmh-session:hover { border-color: var(--pmh-blue); }
.pmh-session.is-cancelled { opacity: .6; }
.pmh-session-date { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--pmh-blue-soft); color: var(--pmh-blue); font-size: 12px; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.pmh-session-date b { font-size: 20px; }
.pmh-session-body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.pmh-session-body small { color: var(--pmh-muted); font-size: 13px; }
.pmh-chips em { color: var(--pmh-bad); font-style: normal; font-weight: 700; }
.pmh-materials { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pmh-materials li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pmh-materials form { margin: 0; }
.pmh-btn-small { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.pmh .pmh-choice-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .pmh .pmh-choice-3 { grid-template-columns: 1fr; } }
.pmh-attendance { display: grid; gap: 10px; }
.pmh-att-all { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--pmh-muted); font-size: 13px; }
.pmh-att-row { display: grid; grid-template-columns: minmax(120px, 1fr) auto; gap: 8px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--pmh-line); }
.pmh-att-row small { display: block; color: var(--pmh-muted); font-size: 12px; }
.pmh-att-note { grid-column: 1 / -1; width: 100%; min-height: 38px; border: 1px solid var(--pmh-line); border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 13px; }
.pmh-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.pmh-seg label { position: relative; }
.pmh-seg input { position: absolute; opacity: 0; }
.pmh-seg span { display: inline-block; padding: 7px 10px; border: 1px solid var(--pmh-line); border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--pmh-muted); cursor: pointer; }
.pmh-seg input:checked + span { background: var(--pmh-blue); border-color: var(--pmh-blue); color: #fff; }
.pmh-seg input:focus-visible + span { outline: 3px solid var(--pmh-yellow); outline-offset: 1px; }
@media (max-width: 560px) { .pmh-att-row { grid-template-columns: 1fr; } }
.pmh-quiz-builder { display: grid; gap: 12px; }
.pmh-q { display: grid; gap: 8px; margin: 0; padding: 12px; border: 1px solid var(--pmh-line); border-radius: 12px; background: var(--pmh-bg); }
.pmh-q legend { font-weight: 800; font-size: 13px; padding: 0 4px; }
.pmh-q textarea, .pmh-q-options input[type="text"] { width: 100%; border: 1px solid var(--pmh-line); border-radius: 10px; padding: 8px 10px; font: inherit; background: #fff; }
.pmh-q-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pmh-q-options label { display: flex; align-items: center; gap: 6px; }
@media (max-width: 520px) { .pmh-q-options { grid-template-columns: 1fr; } }
.pmh-link-btn { justify-self: start; border: 0; background: none; color: var(--pmh-bad); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; }

/* Sessions (Penjaga) */
.pmh-parent-sessions { list-style: none; margin: 0; padding: 0; display: grid; }
.pmh-parent-sessions li { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--pmh-line); }
.pmh-parent-sessions li:first-child { border-top: 0; padding-top: 4px; }
.pmh-parent-sessions li.is-cancelled { opacity: .65; }
.pmh-ps-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pmh-ps-head small { display: block; color: var(--pmh-muted); font-size: 13px; }
.pmh-ps-notes { color: var(--pmh-muted); font-size: 14px; }
.pmh-ps-items { display: flex; flex-wrap: wrap; gap: 6px; }
.pmh-chip-link { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 999px; background: var(--pmh-blue-soft); color: var(--pmh-blue) !important; font-size: 13px; font-weight: 700; text-decoration: none; }
.pmh-chip-link .dashicons { width: 16px; height: 16px; font-size: 16px; }
.pmh-chip-link.is-todo { background: var(--pmh-yellow-soft); color: var(--pmh-warn) !important; }
.pmh-chip-link.is-done { background: var(--pmh-ok-soft); color: var(--pmh-ok) !important; }
.pmh-note summary { cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 999px; background: var(--pmh-bg); font-size: 13px; font-weight: 700; }
.pmh-note p { margin-top: 8px; font-size: 14px; }
.pmh-quiz { display: grid; gap: 14px; }
.pmh-quiz-q { display: grid; gap: 8px; margin: 0; padding: 14px; border: 1px solid var(--pmh-line); border-radius: 14px; }
.pmh-quiz-q legend { display: flex; gap: 8px; padding: 0 4px; font-weight: 700; }
.pmh-quiz-q legend span { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pmh-blue); color: #fff; font-size: 12px; }
.pmh-quiz-q label { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 12px; border: 1px solid var(--pmh-line); border-radius: 12px; cursor: pointer; }
.pmh-quiz-q label:has(input:checked) { border: 2px solid var(--pmh-blue); background: var(--pmh-blue-soft); padding: 9px 11px; }
.pmh-score { display: flex; align-items: center; gap: 12px; }
.pmh-score strong { font-size: 40px; color: var(--pmh-navy); font-variant-numeric: tabular-nums; }
.pmh-quiz-review { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.pmh-quiz-review li.is-right p:last-child { color: var(--pmh-ok); }
.pmh-quiz-review li.is-wrong p:last-child { color: var(--pmh-bad); }
.pmh-report-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pmh-report-stats div { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--pmh-bg); }
.pmh-report-stats strong { font-size: 26px; color: var(--pmh-navy); font-variant-numeric: tabular-nums; }
.pmh-report-stats span { color: var(--pmh-muted); font-size: 13px; }
.pmh-mastery { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pmh-mastery li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pmh-comment { margin: 0; padding: 12px 14px; border-left: 3px solid var(--pmh-yellow); background: var(--pmh-yellow-soft); border-radius: 0 12px 12px 0; }
.pmh-comment cite { display: block; margin-top: 4px; color: var(--pmh-muted); font-size: 12px; font-style: normal; }

/* Mula di sini (Hub) */
.pmh-guide { display: grid; gap: 10px; padding: 16px; border-radius: var(--pmh-radius); background: var(--pmh-yellow-soft); border: 1px solid #f3dc8a; }
.pmh-guide h2 { font-size: 17px; margin: 2px 0 6px; }
.pmh-guide ol { margin: 0 0 0 18px; display: grid; gap: 6px; font-size: 14px; }
.pmh-guide-close { justify-self: start; font-weight: 800; text-decoration: none; }

/* Recordings reuse the existing portal markup */
.pmh .pmb-recordings { border: 0; padding: 0; margin: 0; }

@media (max-width: 420px) {
  .pmh h1 { font-size: 23px; }
  .pmh-top-link span:not(.dashicons) { display: none; }
  .pmh-top-link { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { .pmh * { transition: none !important; } }

/* Family: pay for every child at once, add another child */
.pmh-family-pay > div { flex: 1 1 260px; min-width: 0; }
.pmh-family-pay ul { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; gap: 4px; }
.pmh-family-pay li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--pmh-ink); padding-bottom: 4px; border-bottom: 1px dashed #f3dc8a; }
.pmh-family-pay li small { color: var(--pmh-muted); font-size: 12px; }
.pmh-family-pay form { flex: none; }
.pmh-children a.pmh-child-add { border-style: dashed; color: var(--pmh-blue) !important; grid-template-columns: auto 1fr; column-gap: 4px; align-items: center; }
.pmh-children a.pmh-child-add small { grid-column: 1 / -1; }
.pmh-children a.pmh-child-add .dashicons { width: 16px; height: 16px; font-size: 16px; }
.pmh-sibling { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pmh-sibling > div { flex: 1 1 260px; }

/* Teacher class list: search and paging */
.pmh-search { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pmh-search input[type="search"] { flex: 1 1 220px; min-height: 46px; padding: 9px 14px; border: 1px solid var(--pmh-line); border-radius: 12px; background: var(--pmh-card); font: inherit; color: var(--pmh-ink); }
.pmh-search input[type="search"]:focus { outline: 3px solid var(--pmh-yellow); outline-offset: 1px; }
.pmh-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.pmh-pager-info { display: grid; justify-items: center; font-size: 13px; font-weight: 650; color: var(--pmh-ink); font-variant-numeric: tabular-nums; }
.pmh-pager-info small { color: var(--pmh-muted); font-weight: 400; }

/* Save feedback */
.pmh-btn.is-loading { opacity: 0.8; cursor: progress; }
.pmh-btn[disabled] { cursor: progress; }
.pmh-spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: pmh-spin 0.7s linear infinite; }
@keyframes pmh-spin { to { transform: rotate(360deg); } }
.pmh-dirty { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: #8a5a00; }
.pmh-dirty::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pmh-yellow); box-shadow: 0 0 0 3px var(--pmh-yellow-soft); }
.pmh-notice.is-flash { animation: pmh-flash 1.8s ease-out; scroll-margin-top: 80px; }
@keyframes pmh-flash { 0% { box-shadow: 0 0 0 0 rgba(7, 84, 223, 0.45); } 30% { box-shadow: 0 0 0 8px rgba(7, 84, 223, 0.18); } 100% { box-shadow: 0 0 0 0 rgba(7, 84, 223, 0); } }
@media (prefers-reduced-motion: reduce) { .pmh-spin { animation-duration: 2s; } .pmh-notice.is-flash { animation: none; } }

/* Modul digital: one folder per session */
.pmh-lib-head { margin-bottom: 12px; }
.pmh-lib-main { grid-auto-flow: column; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-bottom: 14px; text-decoration: none; color: inherit !important; border-color: var(--pmh-blue); background: var(--pmh-blue-soft); }
.pmh-lib-tools { display: grid; gap: 10px; margin-bottom: 6px; position: sticky; top: 0; z-index: 5; padding: 10px 0; background: var(--pmh-bg); }
.pmh-lib-search { width: 100%; min-height: 46px; padding: 9px 14px; border: 1px solid var(--pmh-line); border-radius: 12px; background: var(--pmh-card); font: inherit; color: var(--pmh-ink); }
.pmh-lib-search:focus { outline: 3px solid var(--pmh-yellow); outline-offset: 1px; }
.pmh-lib-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.pmh-lib-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--pmh-line); background: var(--pmh-card); color: var(--pmh-ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pmh-lib-chip b { font-weight: 800; color: var(--pmh-muted); font-variant-numeric: tabular-nums; }
.pmh-lib-chip.is-on { background: var(--pmh-navy); border-color: var(--pmh-navy); color: #fff; }
.pmh-lib-chip.is-on b { color: var(--pmh-yellow); }
.pmh-lib-chip:focus-visible { outline: 3px solid var(--pmh-yellow); outline-offset: 2px; }
.pmh-month { display: grid; gap: 10px; margin-top: 14px; }
.pmh-month-title { font-size: 13px !important; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pmh-muted) !important; font-weight: 800 !important; }
.pmh-folder { background: var(--pmh-card); border: 1px solid var(--pmh-line); border-radius: var(--pmh-radius); overflow: hidden; }
.pmh-folder[hidden], .pmh-item[hidden], .pmh-month[hidden] { display: none; }
.pmh-folder > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.pmh-folder > summary::-webkit-details-marker { display: none; }
.pmh-folder > summary > .dashicons { color: var(--pmh-muted); transition: transform 0.15s; flex: 0 0 auto; }
.pmh-folder[open] > summary > .dashicons { transform: rotate(180deg); }
.pmh-folder[open] > summary { border-bottom: 1px solid var(--pmh-line); }
.pmh-folder-icon, .pmh-item-icon { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--pmh-yellow-soft); color: var(--pmh-warn); }
.pmh-folder-icon .dashicons, .pmh-item-icon .dashicons { width: 20px; height: 20px; font-size: 20px; }
.pmh-folder-title, .pmh-item-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.pmh-folder-title strong, .pmh-item-main strong { overflow-wrap: anywhere; line-height: 1.3; }
.pmh-folder-title small, .pmh-item-main small { color: var(--pmh-muted); font-size: 13px; }
.pmh-folder-count { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--pmh-muted); white-space: nowrap; }
.pmh-items { list-style: none; margin: 0; padding: 4px 0; display: grid; }
.pmh-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--pmh-line); }
.pmh-item:first-child { border-top: 0; }
.pmh-item-icon.is-fail { background: var(--pmh-blue-soft); color: var(--pmh-blue); }
.pmh-item-icon.is-pautan { background: var(--pmh-ok-soft); color: var(--pmh-ok); }
.pmh-item-icon.is-nota { background: var(--pmh-yellow-soft); color: var(--pmh-warn); }
.pmh-item-note { flex: 1 1 100%; min-width: 0; }
.pmh-item-note > summary { list-style: none; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.pmh-item-note > summary::-webkit-details-marker { display: none; }
.pmh-item-note[open] > summary .pmh-btn { background: var(--pmh-bg); }
.pmh-item-note > p { margin: 10px 0 2px 52px; padding: 12px 14px; border-radius: 12px; background: var(--pmh-bg); font-size: 14px; overflow-wrap: anywhere; }
.pmh-lib-empty { text-align: center; padding: 24px 0; }
@media (max-width: 480px) {
  .pmh-item { flex-wrap: wrap; }
  .pmh-item > .pmh-btn { margin-left: 52px; }
  .pmh-folder-count { display: none; }
}

/* Kuiz: menu badge, home alert, quiz list */
.pmh-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--pmh-bad); color: #fff !important; font-size: 11px; font-weight: 800; line-height: 1; }
.pmh-tabs a { position: relative; }
.pmh-tabs a .pmh-badge { position: absolute; top: 4px; left: calc(50% + 4px); box-shadow: 0 0 0 2px var(--pmh-card); }
@media (min-width: 720px) {
  .pmh-tabs a .pmh-badge { position: static; order: 3; box-shadow: none; }
}
.pmh-child-name { display: inline-flex; align-items: center; gap: 6px; }
.pmh-children a .pmh-badge { justify-self: start; }
.pmh-eyebrow .pmh-badge { margin-left: 6px; vertical-align: 1px; letter-spacing: 0; }
.pmh-quiz-alert { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--pmh-radius); background: var(--pmh-yellow-soft); border: 2px solid var(--pmh-yellow); text-decoration: none; color: var(--pmh-ink) !important; }
.pmh-quiz-alert > span:nth-child(2) { flex: 1; display: grid; gap: 2px; min-width: 0; }
.pmh-quiz-alert strong { font-size: 16px; }
.pmh-quiz-alert small { color: var(--pmh-muted); font-size: 13px; }
.pmh-quiz-alert-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--pmh-yellow); }
.pmh-quiz-alert:hover { box-shadow: 0 6px 18px rgba(11, 27, 68, 0.10); }
.pmh-quiz-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.pmh-quiz-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--pmh-line); border-radius: 12px; background: var(--pmh-card); }
.pmh-quiz-list li.is-todo { border: 2px solid var(--pmh-yellow); background: var(--pmh-yellow-soft); }
.pmh-quiz-list li > div { display: grid; gap: 2px; min-width: 0; flex: 1 1 200px; }
.pmh-quiz-list small { color: var(--pmh-muted); font-size: 12.5px; font-weight: 700; }
.pmh-quiz-list strong { font-size: 15.5px; }
.pmh-quiz-list li > div > span { color: var(--pmh-muted); font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pmh-quiz-list b { color: var(--pmh-ink); font-size: 15px; }
@media (max-width: 420px) {
  .pmh-quiz-list li .pmh-btn { width: 100%; }
  .pmh-tabs a { font-size: 10.5px; }
}

/* Hub Guru: quiz marks (session results, class table, student profile) */
.pmh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.pmh-stats > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--pmh-bg); }
.pmh-stats strong { font-size: 22px; line-height: 1.1; }
.pmh-stats span { color: var(--pmh-muted); font-size: 13px; }
.pmh-qstats { margin: 0 0 12px; border: 1px solid var(--pmh-line); border-radius: 12px; padding: 10px 14px; }
.pmh-qstats summary { cursor: pointer; font-weight: 800; }
.pmh-qstats ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.pmh-qstats li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-top: 8px; border-top: 1px dashed var(--pmh-line); }
.pmh-qstats li > div { display: grid; gap: 2px; min-width: 0; }
.pmh-qstats small { color: var(--pmh-muted); font-size: 12.5px; }
.pmh-sort { font-size: 13.5px; color: var(--pmh-muted); margin: 6px 0 10px; }
.pmh-sort a[aria-current] { font-weight: 800; color: var(--pmh-ink) !important; text-decoration: none; }
.pmh-table td small, .pmh-table th small, .pmh-scores small { display: block; color: var(--pmh-muted); font-size: 12px; font-weight: 500; }
.pmh-table tr.is-missing td { background: var(--pmh-bg); }
.pmh-review { margin-top: 14px; padding: 14px; border: 2px solid var(--pmh-blue); border-radius: 14px; }
.pmh-review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pmh-review-head h3 { margin: 2px 0 0; }
.pmh-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 0 0 14px; }
.pmh-filter label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--pmh-muted); }
.pmh-filter select, .pmh-filter input[type="search"] { min-height: 40px; border: 1px solid var(--pmh-line); border-radius: 10px; padding: 6px 10px; font: inherit; color: var(--pmh-ink); background: var(--pmh-card); }
.pmh-filter select { -webkit-appearance: none; appearance: none; padding: 6px 40px 6px 12px; cursor: pointer;
  background: var(--pmh-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235f6f8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.pmh-filter input[type="search"] { padding: 6px 12px; }
.pmh-filter select:focus-visible, .pmh-filter input[type="search"]:focus-visible { outline: 3px solid var(--pmh-yellow); outline-offset: 1px; }
.pmh-filter .pmh-check { display: flex; align-items: center; gap: 6px; min-height: 40px; color: var(--pmh-ink); }
.pmh-marks-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.pmh-scores { overflow-x: auto; border: 1px solid var(--pmh-line); border-radius: 12px; }
.pmh-scores table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 420px; font-size: 14px; }
.pmh-scores th, .pmh-scores td { padding: 8px 10px; border-bottom: 1px solid var(--pmh-line); text-align: center; white-space: nowrap; }
.pmh-scores thead th { background: var(--pmh-bg); font-size: 13px; }
.pmh-scores tbody th, .pmh-scores tfoot th, .pmh-scores thead th:first-child { position: sticky; left: 0; z-index: 1; text-align: left; background: var(--pmh-card); min-width: 150px; white-space: normal; box-shadow: 1px 0 0 var(--pmh-line); }
.pmh-scores thead th:first-child { background: var(--pmh-bg); }
.pmh-scores tr.is-attention th[scope="row"] { box-shadow: inset 4px 0 0 var(--pmh-bad), 1px 0 0 var(--pmh-line); }
.pmh-scores tfoot td, .pmh-scores tfoot th { font-weight: 800; background: var(--pmh-bg); }
.pmh-sc a { text-decoration: none; font-weight: 800; color: inherit !important; }
.pmh-sc-ok { background: var(--pmh-ok-soft); color: var(--pmh-ok); }
.pmh-sc-warn { background: var(--pmh-warn-soft); color: var(--pmh-warn); }
.pmh-sc-bad { background: var(--pmh-bad-soft); color: var(--pmh-bad); }
.pmh-sc-none { color: var(--pmh-muted); }
.pmh-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; font-size: 12px; }
.pmh-legend span { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--pmh-line); }
.pmh-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pmh-notes li { padding: 10px 12px; border-left: 3px solid var(--pmh-blue); background: var(--pmh-bg); border-radius: 0 10px 10px 0; }
.pmh-notes small { color: var(--pmh-muted); font-weight: 700; }
.pmh-notes p { margin: 4px 0 0; }
.pmh-filter label:has(input[type="search"]) { flex: 1 1 180px; }
.pmh-filter label:has(input[type="search"]) input { width: 100%; box-sizing: border-box; }
.pmh-filter select { min-width: 110px; }

/* Hub Guru: master Zoom link */
.pmh-master { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--pmh-line); border-radius: 12px; background: var(--pmh-bg); font-size: 14px; }
.pmh-master p { margin: 0 0 8px; color: var(--pmh-muted); }
.pmh-master strong { color: var(--pmh-ink); }
.pmh-copy { display: flex; gap: 8px; }
.pmh-copy input { flex: 1; min-width: 0; min-height: 40px; border: 1px solid var(--pmh-line); border-radius: 10px; padding: 6px 12px; font: inherit; font-size: 13px; color: var(--pmh-ink); background: var(--pmh-card); }
