/* v11.12 Parent Simplicity — Today → Week → Records */
.start-strip[hidden]{display:none!important}

/* Home: one unmistakable action, useful secondary work, administration behind disclosure. */
.family-home-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
  min-width:min(360px,100%)!important;
  justify-content:stretch!important;
}
#familyTodayBtn{
  grid-column:auto!important;
  width:100%;
  min-height:50px!important;
  font-weight:800!important;
  box-shadow:0 9px 20px rgba(23,33,27,.14)!important;
}
.family-secondary-actions{display:grid;gap:6px;padding-top:2px}
.family-secondary-actions[hidden],.family-more-actions[hidden]{display:none!important}
.family-secondary-label{
  color:var(--muted);
  font:700 .68rem system-ui,-apple-system,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.family-secondary-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.family-secondary-row .btn{width:100%;min-height:38px}
#quickLogLearningBtn,#prepareAheadBtn{
  border-color:var(--line)!important;
  background:var(--surface)!important;
  color:var(--deep)!important;
  font-weight:650!important;
  text-decoration:none!important;
}
#quickLogLearningBtn:hover,#prepareAheadBtn:hover{background:var(--surface-2)!important}
.family-more-actions{border-top:1px solid rgba(217,200,170,.7);padding-top:7px}
.family-more-actions>summary{
  width:max-content;
  cursor:pointer;
  color:var(--accent-2);
  font:700 .82rem system-ui,-apple-system,sans-serif;
  list-style-position:inside;
}
.family-more-actions-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.family-more-actions-row #familyPlanBtn,.family-more-actions-row #familyManageChildrenBtn{
  width:100%;min-height:36px!important;padding:7px 9px!important;
  border:1px solid var(--line)!important;border-radius:10px!important;
  background:var(--surface)!important;color:var(--deep)!important;
  text-decoration:none!important;font-size:.82rem!important;box-shadow:none!important;
}
.family-more-actions-row #familyPlanBtn:hover,.family-more-actions-row #familyManageChildrenBtn:hover{background:var(--surface-2)!important}

/* Today: actual text badges instead of decorative pseudo-content. */
.today-task::after{content:none!important;display:none!important}
.today-duration{
  flex:0 0 auto;align-self:center;margin-left:auto;padding:3px 7px;
  border:1px solid var(--line);border-radius:999px;background:rgba(255,253,249,.82);
  color:var(--muted);font:700 .68rem system-ui,-apple-system,sans-serif;white-space:nowrap
}
.today-task.done .today-duration{opacity:.62}
.first-lesson-hint{
  margin:0;padding:9px 11px;border-bottom:1px solid var(--line);
  background:#f7efdf;color:var(--ink);font:.82rem system-ui,-apple-system,sans-serif
}

/* Attendance/legal framing: ordinary records first, state-specific detail on demand. */
.records-state-note{margin-bottom:16px!important;padding:0!important;overflow:hidden}
.records-state-note>summary{cursor:pointer;padding:14px 16px;font-family:system-ui,-apple-system,sans-serif}
.records-state-note>summary .small-note{margin-left:6px;font-weight:400}
.records-state-note[open]>summary{border-bottom:1px solid var(--line)}
.records-state-note-body{padding:14px 16px}
.records-state-note-body p:last-child{margin-bottom:0}

/* Plain-language framework note is part of the static shell now. */
.classical-optional-note{margin:.35rem 0 0;color:var(--muted)}

/* Library: connect the shelf back to the child's actual week. */
.library-recommended{margin-bottom:16px;background:linear-gradient(125deg,var(--surface) 0%,#fbf3e7 100%)}
.library-recommended-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}
.library-recommended-head h3{font-size:1.3rem;margin:.2rem 0 .25rem}
.library-recommended-head p{margin:0}
.library-recommended-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.library-rec-item{display:flex;flex-direction:column;justify-content:space-between;gap:12px;padding:13px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.78)}
.library-rec-item h4{margin:5px 0 4px;font-size:1rem}
.library-rec-item p{margin:0}
.library-rec-actions{display:flex;gap:6px;flex-wrap:wrap}
.library-rec-actions .btn{flex:1 1 auto}

@media(max-width:760px){
  .family-home-actions{width:100%!important;min-width:0!important}
  .family-secondary-row,.family-more-actions-row{grid-template-columns:1fr 1fr}
  .today-task{flex-wrap:wrap}
  .today-duration{margin-left:32px;align-self:flex-start}
  .library-recommended-head{flex-direction:column;align-items:stretch}
  .library-recommended-head .btn{width:100%}
  .library-recommended-grid{grid-template-columns:1fr}
}
@media(max-width:440px){
  .family-secondary-row,.family-more-actions-row{grid-template-columns:1fr}
}
@media print{
  .family-secondary-actions,.family-more-actions,.first-lesson-hint,.library-rec-actions{display:none!important}
  .today-duration{background:#fff}
}

/* Parent polish: a single active child should use the teaching canvas instead of leaving an empty desktop column. */
.today-grid > .today-child:only-child{grid-column:1/-1}

/* Brand safety: never render a broken <img>. Use the known-good book mark as a CSS background. */
.brand .seal,
.welcome-mark{
  background-color:var(--deep)!important;
  background-image:url("favicon.svg?v=4")!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:cover!important;
  overflow:hidden!important;
}
.brand .seal>img,
.welcome-mark>img{display:none!important;visibility:hidden!important}
.welcome-mark{background-size:contain!important}
