/* «بوابة أولياء الأمور» — a calm one-column page on the platform's own tokens */
.pp{min-height:100vh;background:var(--color-bg,#f6f8fc)}
.pp__bar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 20px;background:#fff;border-bottom:1px solid var(--color-border,#e2e8f3)}
.pp__brand{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--color-text,#071f4a)}
.pp__brand img{width:34px;height:34px;object-fit:contain;border-radius:8px}
.pp__user{display:flex;align-items:center;gap:10px}
.pp__name{color:var(--color-text-secondary,#5b6b86);font-size:14px}
.pp__main{max-width:880px;margin:0 auto;padding:24px 16px 64px;display:flex;flex-direction:column;gap:16px}
.pp__title{margin:0;font-size:24px;line-height:1.4}
.pp__lead{margin:0;color:var(--color-text-secondary,#5b6b86)}
.pp-kids{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
.pp-kid{display:flex;flex-direction:column;gap:12px;padding:18px;background:#fff;border:1px solid var(--color-border,#e2e8f3);border-radius:16px;color:inherit;text-decoration:none;transition:border-color .2s,transform .2s}
.pp-kid:hover{border-color:var(--color-primary,#1b63f0);transform:translateY(-2px)}
.pp-kid__head{display:flex;align-items:center;gap:12px}
.pp-kid__name{font-weight:700;font-size:17px}
.pp-kid__meta{color:var(--color-text-secondary,#5b6b86);font-size:13px}
.pp-kid__nums{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center}
.pp-kid__nums b{display:block;font-size:15px}
.pp-kid__nums span{font-size:12px;color:var(--color-text-secondary,#5b6b86)}
.pp-bar{height:8px;border-radius:999px;background:var(--color-border,#e2e8f3);overflow:hidden}
.pp-bar i{display:block;height:100%;background:var(--color-success,#0db894);border-radius:999px}
.pp-rows{display:flex;flex-direction:column}
.pp-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 4px;border-bottom:1px solid var(--color-border,#e2e8f3)}
.pp-row:last-child{border:0}
.pp-row__what{display:flex;flex-direction:column;gap:2px}
.pp-row__what b{font-weight:600}
.pp-row__what small{color:var(--color-text-secondary,#5b6b86)}
.pp-row__end{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.pp-center{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;padding:40px 16px}

/* the guardian sign-in pages have no staff picture: one centred panel */
.auth--plain{display:flex;justify-content:center}
.auth--plain .auth__panel{width:100%;max-width:480px;margin:0 auto}
/* navigation: phone = bottom bar; large screens = side menu on the start side */
.pp-side{display:contents}
.pp-side>.pp__brand,.pp-side__user{display:none}
.pp-nav{position:fixed;z-index:20;inset:auto 0 0 0;display:flex;background:#fff;border-top:1px solid var(--color-border,#e2e8f3);padding:6px 8px calc(6px + env(safe-area-inset-bottom))}
.pp-nav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 4px;border-radius:12px;color:var(--color-text-secondary,#5b6b86);text-decoration:none;font-weight:600;font-size:12px}
.pp-nav a.is-on{color:var(--color-primary,#1b63f0)}
.pp-body{min-width:0}
.pp__main{padding-bottom:96px}
@media (min-width:900px){
  .pp{display:flex}
  .pp-side>.pp__brand{display:flex}
  .pp-side__user{display:flex}
  .pp-side{display:flex;flex-direction:column;gap:20px;position:sticky;top:0;height:100vh;width:250px;flex:none;padding:20px 14px;background:#fff;border-inline-end:1px solid var(--color-border,#e2e8f3)}
  .pp-side .pp__brand{padding:0 8px}
  .pp-body{flex:1}
  .pp__bar{display:none}
  .pp__main{padding-bottom:64px}
  .pp-nav{position:static;flex-direction:column;gap:4px;padding:0;border:0;background:none}
  .pp-nav a{flex-direction:row;gap:12px;padding:11px 14px;font-size:14px}
  .pp-nav a.is-on{background:var(--color-primary,#1b63f0);color:#fff}
  .pp-side__user{margin-top:auto;display:flex;flex-direction:column;gap:8px;padding:12px 8px;border-top:1px solid var(--color-border,#e2e8f3)}
}
.pp-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pp-notes{display:flex;flex-direction:column;gap:10px}
.pp-note{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--color-border,#e2e8f3);color:inherit;text-decoration:none;border-radius:14px;background:#fff}
.pp-note:hover{background:var(--color-surface-muted,#f4f6fb)}
.pp-note.is-unread{background:var(--color-primary-25,#f2f6ff);border-color:#cfe0ff}
.pp-note__icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;flex:none;background:var(--color-surface-muted,#eef1f6);color:var(--color-text-secondary,#5b6b86)}
.pp-note__icon.tone-primary{background:#e8f0ff;color:#1b63f0}.pp-note__icon.tone-warning{background:#fff4dc;color:#b7791f}.pp-note__icon.tone-danger{background:#fde8e8;color:#c53030}.pp-note__icon.tone-success{background:#e3f8ee;color:#0b8a5b}
.pp-note__what{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.pp-note__what b{font-weight:600}
.pp-note__what small{color:var(--color-text-secondary,#5b6b86)}
.pp-note__what em{font-style:normal;font-size:12px;color:var(--color-text-muted,#8a96ad)}
.pp-note__dot{width:9px;height:9px;border-radius:50%;background:var(--color-primary,#1b63f0);flex:none;margin-top:6px}
.pp-nav__ico{position:relative;display:inline-flex}
.pp-nav__badge{position:absolute;top:-6px;inset-inline-start:calc(100% - 8px);min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#e53e3e;color:#fff;font-size:10px;line-height:16px;text-align:center;font-weight:700;box-sizing:border-box}
.pp-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:520px){.pp-pair{grid-template-columns:1fr}}
/* a popup: a centred card on large screens, a bottom sheet on phones */
.pp-dialog{border:0;padding:20px;border-radius:20px;background:#fff;color:inherit;width:min(520px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;box-shadow:0 24px 64px rgba(7,31,74,.28);flex-direction:column;gap:14px}
.pp-dialog[open]{display:flex}
.pp-dialog::backdrop{background:rgba(7,31,74,.4)}
.pp-dialog__head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pp-dialog__head h2{margin:0;font-size:18px}
.pp-dialog__foot{display:flex;gap:8px;justify-content:flex-start}
@media (max-width:640px){.pp-dialog{margin:auto 0 0;width:100vw;max-width:100vw;border-radius:20px 20px 0 0;padding-bottom:calc(20px + env(safe-area-inset-bottom))}}
/* the child's timetable: a tab per day on phones, the whole week on larger screens */
.pp-tt-days{display:flex;flex-direction:column;gap:12px}
.pp-tt-list{display:flex;flex-direction:column;gap:8px}
.pp-tt-list[hidden]{display:none}
.pp-tt-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--color-border,#e2e8f3);border-radius:14px}
.pp-tt-row.tt-slot{height:auto;min-height:0;flex-direction:row;justify-content:flex-start;border:0;border-radius:14px}
.pp-tt-row.tt-slot .pp-tt-row__n{background:rgba(255,255,255,.7);color:var(--tt-accent)}
.pp-tt-row.is-empty{background:var(--color-surface-muted,#f4f6fb);color:var(--color-text-muted,#8a96ad)}
.pp-tt-row__n{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--color-primary-25,#f2f6ff);color:var(--color-primary,#1b63f0);font-weight:700;flex:none}
.pp-tt-row__what{display:flex;flex-direction:column;flex:1;min-width:0}
.pp-tt-row__what small,.pp-tt-row__time{color:var(--color-text-secondary,#5b6b86);font-size:12px}
.pp-tt-break{text-align:center;font-size:12px;color:var(--color-text-muted,#8a96ad);padding:6px;border-radius:10px;background:repeating-linear-gradient(135deg,transparent 0 6px,rgba(0,0,0,.03) 6px 12px)}
.pp-tt-week{display:none}
.pp-tt-week td,.pp-tt-week th{text-align:center;vertical-align:middle}
.pp-tt-week td.pp-tt-cell{padding:4px}
.pp-tt-week .tt-slot{min-height:64px;text-align:start}
.pp-tt-week th.is-today{color:var(--color-primary,#1b63f0);box-shadow:inset 0 -3px 0 var(--color-primary,#1b63f0)}
.pp-tt-cell.is-empty{color:var(--color-text-muted,#b4bdcc)}
.pp-tt-n{display:block;font-weight:700}
.pp-tt-break-row td{font-size:12px;color:var(--color-text-muted,#8a96ad);background:var(--color-surface-muted,#f4f6fb)}
@media (min-width:768px){.pp-tt-days{display:none}.pp-tt-week{display:block}}
