/* UchetPar V533 — parent mobile usability, no changes to other roles. */
.parent-link-actions{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0 18px}
.parent-family-manage{min-width:0;flex:1 1 170px}
.parent-family-manage>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;min-height:44px;text-align:center}
.parent-family-manage>summary::-webkit-details-marker{display:none}
.parent-family-manage-content{margin-top:9px;padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--surface);min-width:0}
.parent-family-manage-content p,.parent-family-manage-content small{color:var(--muted);line-height:1.45}
.parent-invite-open-form{display:grid;gap:8px;margin:8px 0}
.parent-invite-open-form input{min-width:0;width:100%;box-sizing:border-box}
.parent-link-management-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.parent-link-management-row:last-child{border:0}
.parent-link-management-row div{min-width:0;overflow-wrap:anywhere}
.parent-link-management-row small{display:block;color:var(--muted)}
.parent-link-management-row form{flex:0 0 auto;margin:0}
.parent-invite-summary{margin:4px 0 8px;font-size:1rem!important}
.parent-invite-details{border:1px solid var(--line);border-radius:11px;padding:9px 11px}
.parent-invite-details summary{cursor:pointer;color:var(--muted)}
.parent-invite-details p{font-size:.85rem;line-height:1.45}
.parent-invite-account{margin:0 0 8px}
.parent-attendance-mobile{display:none}
@media(max-width:760px){
  /* Anchor the existing body-level dock to the visual viewport, including soft
     keyboard/browser chrome changes. Never scroll it away with content. */
  html body.parent-shell-v533>.academic-mobile-nav.parent-mobile-nav,
  html body.parent-shell-v533>.lab2-mobile-nav.parent-mobile-nav,
  html body.parent-shell-v533.mobile-shell-v370>.lab2-mobile-nav.mobile-shell-dock-v370.parent-mobile-nav{
    position:fixed!important;top:auto!important;
    bottom:calc(max(8px,env(safe-area-inset-bottom)) + var(--v533-visual-bottom-gap,0px))!important;
    left:max(8px,env(safe-area-inset-left))!important;
    right:max(8px,env(safe-area-inset-right))!important;
    transform:none!important;translate:none!important;
    opacity:1!important;visibility:visible!important;pointer-events:auto!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    width:auto!important;max-width:none!important;margin:0!important;
    z-index:22100!important;
  }
  html body.parent-shell-v533{padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}
  /* Keep the wallpaper geometry stable while browser bars collapse on scroll.
     100lvh is fixed to the large viewport, unlike 100dvh. */
  @supports(height:100lvh){
    html body.parent-shell-v533.season-autumn>.season-bg-layer{
      position:fixed!important;inset:0 0 auto 0!important;
      height:100lvh!important;min-height:100lvh!important;max-height:100lvh!important;
      background-attachment:scroll!important;
    }
    html body.parent-shell-v533.season-autumn>.season-bg-layer .season-bg-image{height:100%!important;object-fit:cover!important}
  }
  html body.parent-shell-v533 .parent-attendance-desktop{display:none!important}
  html body.parent-shell-v533 .parent-attendance-mobile{display:grid;gap:7px;min-width:0}
  .parent-attendance-mobile-note{font-size:.78rem;color:var(--muted);padding:3px 1px 7px}
  .parent-attendance-entry{display:flex;gap:9px;align-items:center;justify-content:space-between;min-width:0;
    padding:11px 12px;border-radius:13px;border:1px solid var(--line);background:var(--surface)}
  .parent-attendance-entry-main{display:grid;min-width:0;gap:3px}
  .parent-attendance-entry-main b{font-size:.83rem;line-height:1.28;overflow-wrap:anywhere}
  .parent-attendance-entry-main time{font-size:.72rem;color:var(--muted)}
  .parent-attendance-status{flex:0 0 auto;max-width:45%;text-align:center;padding:6px 8px;border-radius:9px;
    background:var(--surface2);font-size:.72rem;font-weight:800;line-height:1.25}
  .parent-attendance-status-present{color:#4ade80;background:rgba(34,197,94,.12)}
  .parent-attendance-status-absent{color:#f87171;background:rgba(239,68,68,.12)}
  .parent-attendance-status-sick{color:#fbbf24;background:rgba(245,158,11,.12)}
  .parent-attendance-status-excused,.parent-attendance-status-work{color:#93c5fd;background:rgba(59,130,246,.12)}
  html body.parent-shell-v533 .parent-kpi-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  html body.parent-shell-v533 .parent-kpi-grid.compact .quiet-kpi{min-width:0;padding:11px!important}
  html body.parent-shell-v533 .parent-kpi-grid.compact .quiet-kpi span{overflow-wrap:anywhere}
  /* Clear the excessive login-role descriptions on narrow screens without
     removing inputs, error messages, help or password toggles. */
  .auth26-user .auth26-access-preview,.auth26-user .auth26-feature-row{display:none!important}
  .parent-accept-card{margin:14px auto!important;padding:17px!important;gap:10px!important}
  html[data-ui="v2"] body.parent-shell-v533 .v2-mobile-nav{bottom:calc(max(8px,env(safe-area-inset-bottom)) + var(--v533-visual-bottom-gap,0px))!important}
}
@media(max-width:360px){
  .parent-link-actions{flex-direction:column}
  .parent-attendance-entry{padding:10px}
  .parent-attendance-status{font-size:.68rem}
}
