/* Full-width results on desktop; compact authentication remains unchanged. */
header { padding-inline: max(24px, calc((100vw - 1640px) / 2)); }
.results-shell { max-width: 1640px; padding: 0 32px 56px; }
.results-shell .home-head { padding: 30px 0 24px; align-items: center; }
.results-shell .home-head h1 { font-size: clamp(1.65rem, 3vw, 2.1rem); }
.results-shell .quiet-action { border: 1px solid #c9dace; border-radius: 10px; padding: 10px 14px; background: #fff; text-decoration: none; }
.results-shell .children-section { margin: 0 0 24px; }
.results-shell .child-picker { gap: 12px; }
.results-shell .child { flex: 0 1 280px; min-height: 76px; border-radius: 16px; padding: 14px 18px; }
.results-shell .child[aria-pressed=true], .results-shell .child[aria-current=true] { border-color: #267560; background: #e7f1e8; box-shadow: inset 0 0 0 1px #267560; }
.results-shell .child-avatar { width: 40px; height: 40px; background: #fff; }
.results-shell .child-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.results-shell .child-label small { font-size: .75rem; margin-top: 2px; }
.results-shell #results { min-width: 0; }
.results-shell .result-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; background: linear-gradient(110deg, #e7f0e5, #f0f5e7); border: 1px solid #d9e5d8; border-radius: 20px; margin-bottom: 20px; }
.results-shell .result-heading .eyebrow { margin: 0 0 9px; font-size: .68rem; letter-spacing: .12em; }
.results-shell .result-heading h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
.results-shell .result-heading .muted { font-size: .87rem; margin-top: 7px; }
.results-shell .period-control { flex: 0 0 290px; }
.results-shell .period-label { position: static; width: auto; height: auto; clip: auto; white-space: normal; margin: 0 0 6px; font-size: .76rem; }
.results-shell .period-control select { margin: 0; width: 100%; }
.results-shell .period-state { margin: 6px 0 0; font-size: .73rem; }
.results-shell .parent-view-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: #e9efe7; border-radius: 15px; margin: 0 0 28px; }
.results-shell .parent-view-tabs button { flex: 1 1 150px; border: 0; border-radius: 10px; text-align: center; background: transparent; font-size: .91rem; min-height: 48px; }
.results-shell .parent-view-tabs button[aria-selected=true] { background: #1b6653; color: #fff; box-shadow: 0 3px 8px #193c3418; }
.results-shell .parent-view-tabs button:not([aria-selected=true]):hover { background: #fff; }
.results-shell #parent-view:focus-visible, .results-shell .scroll:focus-visible { outline: 3px solid #267560; outline-offset: 4px; }
.results-shell #parent-view h3 { font-size: 1.05rem; margin: 24px 0 14px; }
.results-shell #parent-view > h3:first-child { margin-top: 0; }
.results-shell #parent-view .scroll { padding: 0; border-radius: 16px; box-shadow: 0 4px 18px #193c3405; }
.results-shell #parent-view table { font-size: .9rem; }
.results-shell #parent-view th { padding: 15px 18px; background: #eef3ed; color: #446154; font-size: .76rem; white-space: nowrap; }
.results-shell #parent-view td { padding: 15px 18px; overflow-wrap: normal; vertical-align: middle; }
.results-shell #parent-view tbody tr:last-child td { border-bottom: 0; }
.results-shell #parent-view tbody tr:hover { background: #f5f9f4; }
.results-shell #parent-view td:not(:first-child) { font-variant-numeric: tabular-nums; }
.results-shell .notes-table td { white-space: nowrap; }
.results-shell .evaluation-date { color: #566e61; font-size: .84rem; width: 1%; }
.results-shell .evaluation-subject > span:first-child { font-weight: 650; }
.results-shell .competency-label { color: #60766a; font-size: .83rem; }
.results-shell .evaluation-title { width: 50%; }
.results-shell .evaluation-result { width: 1%; }
.results-shell .result-pill { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; border: 1px solid #dce3da; background: #f4f5f1; border-radius: 9px; padding: 6px 10px; font-weight: 750; font-size: .95rem; }
.results-shell .result-pill > span { color: #597466; font-weight: 500; font-size: .8rem; }
.results-shell .result-pending { background: #f1f3f1; border-color: #dfe5df; color: #607065; font-weight: 500; font-size: .83rem; }
.results-shell .view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.results-shell #parent-view .view-toolbar h3 { margin: 0 0 4px; }
.results-shell #evaluation-count { color: #60766a; font-size: .8rem; margin: 0; }
.results-shell .evaluation-search { width: 320px; max-width: 100%; }
.results-shell .evaluation-search label { margin: 0 0 5px; font-size: .76rem; }
.results-shell .evaluation-search input { font-size: .86rem; min-height: 44px; }
.results-shell .publication-note { border-left: 3px solid #c7d8c8; padding: 4px 14px; font-size: .78rem; max-width: 1000px; }
.results-shell .add-child { max-width: 420px; }
.results-shell .parent-homework-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.results-shell .parent-homework-item { padding: 20px; gap: 8px; font-size: .95rem; }
.results-shell .photo-profile { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; column-gap: 18px; row-gap: 6px; margin: 0 0 24px; padding: 15px 20px; background: #fff; border: 1px solid #dce6dc; border-radius: 18px; box-shadow: 0 4px 16px #193c3408; }
.results-shell .profile-photo { display: grid; place-items: center; flex: none; width: 62px; height: 62px; border-radius: 50%; background: #e7f2e9; color: #1a6652; font-size: 1.25rem; font-weight: 800; overflow: hidden; }
.results-shell .profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.results-shell .photo-copy { min-width: 0; }
.results-shell .photo-copy strong { font-size: .95rem; }
.results-shell .photo-copy p { margin: 3px 0; color: #536f60; font-size: .79rem; }
.results-shell .photo-copy small { color: #6a8072; font-size: .7rem; }
.results-shell .photo-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.results-shell .photo-action { display: inline-flex; justify-content: center; align-items: center; min-height: 43px; margin: 0; padding: 8px 16px; color: #fff; background: #1b6653; border-radius: 10px; font-weight: 700; font-size: .83rem; cursor: pointer; }
.results-shell .photo-action:hover { background: #154e41; }
.results-shell .photo-action:focus-within { outline: 3px solid #176b55; outline-offset: 3px; }
.results-shell .photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.results-shell .photo-remove { padding: 8px 10px; color: #526b5e; text-decoration: underline; font-size: .8rem; }
.results-shell #photo-status { grid-column: 2 / -1; margin: 0; color: #286c46; font-size: .79rem; }
.results-shell #photo-status:empty { display: none; }
.results-shell .bonus-parent-card { display: flex; gap: 24px; align-items: center; padding: 28px; background: linear-gradient(105deg, #f5f8e9, #fff); border: 1px solid #dce6cd; border-radius: 20px; }
.results-shell .bonus-sparkle { flex: none; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 20px; background: #e7edbf; color: #4e6740; font-size: 2.4rem; }
.results-shell .bonus-parent-card .eyebrow { margin: 0 0 4px; }
.results-shell #parent-view .bonus-parent-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.results-shell .bonus-number { color: #1b6653; font-size: 2.6rem !important; font-weight: 800; line-height: 1.1; margin: 0 0 8px; }
.results-shell .bonus-parent-card p:last-child { color: #5a7265; margin: 0; }
.results-shell #parent-view .subject-french { --subject-accent: #306b9c; --subject-ink: #234e73; --subject-tint: #eaf3fb; }
.results-shell #parent-view .subject-math { --subject-accent: #b16b27; --subject-ink: #774515; --subject-tint: #fff2e3; }
.results-shell #parent-view .subject-discovery { --subject-accent: #388365; --subject-ink: #245d47; --subject-tint: #e8f5ed; }
.results-shell #parent-view .subject-dutch { --subject-accent: #7658a5; --subject-ink: #59417d; --subject-tint: #f2edfa; }
.results-shell #parent-view .subject-education { --subject-accent: #a95875; --subject-ink: #813a54; --subject-tint: #faedf2; }
.results-shell #parent-view .subject-other { --subject-accent: #71857b; --subject-ink: #43584d; --subject-tint: #f1f5f2; }
.results-shell #parent-view .parent-subject-row td { background: var(--subject-tint); font-weight: 750; border-bottom-color: #d9e4db; }
.results-shell #parent-view .parent-subject-row td:first-child { color: var(--subject-ink); border-left: 5px solid var(--subject-accent); }
.results-shell #parent-view .parent-subject-row td:first-child::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; vertical-align: 1px; border-radius: 50%; background: var(--subject-accent); }
.results-shell #parent-view .parent-competency-row td:first-child { border-left: 3px solid var(--subject-accent); padding-left: 30px; }
.results-shell #parent-view .parent-total-row td { background: #edf3ed; font-weight: 750; }
.results-shell #parent-view .parent-acquisition-group th { padding: 13px 18px; text-align: left; font-size: .9rem; font-weight: 800; color: var(--subject-ink); background: var(--subject-tint); border-left: 5px solid var(--subject-accent); border-bottom-color: #d9e4db; }
.results-shell #parent-view .parent-acquisition-row td:first-child { border-left: 3px solid var(--subject-accent); padding-left: 21px; }
.results-shell #parent-view .acquisition-assessment-title { font-weight: 700; }
.results-shell #parent-view .acquisition-competency { display: block; margin-top: 3px; color: #60766a; font-size: .78rem; }
@media (min-width: 641px) {
  .results-shell #parent-view td:not(:first-child) { white-space: nowrap; }
}
@media (max-width: 899px) {
  .results-shell { padding-inline: 22px; }
  .results-shell .result-heading { align-items: flex-start; padding: 22px; }
  .results-shell .period-control { flex-basis: 240px; }
}
@media (max-width: 640px) {
  header { padding-inline: 20px; }
  .results-shell { padding: 0 18px 40px; }
  .results-shell .home-head { align-items: flex-start; flex-wrap: wrap; padding: 25px 0 20px; }
  .results-shell .home-head .quiet-action { font-size: .73rem; padding: 8px 10px; }
  .results-shell .child { flex: 1 1 145px; padding: 12px; gap: 9px; }
  .results-shell .child-avatar { width: 33px; height: 33px; }
  .results-shell .photo-profile { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .results-shell .profile-photo { width: 52px; height: 52px; }
  .results-shell .photo-actions { grid-column: 2; }
  .results-shell #photo-status { grid-column: 1 / -1; }
  .results-shell .child-label { font-size: .88rem; }
  .results-shell .result-heading { display: block; padding: 21px 18px; border-radius: 17px; }
  .results-shell .period-control { margin-top: 22px; }
  .results-shell .result-heading .muted { font-size: .8rem; }
  .results-shell .parent-view-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 22px; }
  .results-shell .parent-view-tabs button { font-size: .8rem; padding-inline: 5px; }
  .results-shell .parent-view-tabs button:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .results-shell .bonus-parent-card { padding: 20px; gap: 15px; align-items: flex-start; }
  .results-shell .bonus-sparkle { width: 48px; height: 48px; font-size: 1.7rem; border-radius: 15px; }
  .results-shell .view-toolbar { display: block; }
  .results-shell .evaluation-search { margin-top: 15px; width: 100%; }
  .results-shell #parent-view .scroll { overflow: visible; border: 0; background: none; box-shadow: none; }
  .results-shell #parent-view td { padding: 9px 0; white-space: normal; overflow-wrap: anywhere; width: 100%; }
  .results-shell #parent-view td:not(:first-child) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .results-shell #parent-view td:not(:first-child)::before { font-size: .71rem; font-weight: 650; }
  .results-shell #parent-view td[colspan] { display: block; }
  .results-shell #parent-view tbody tr { padding: 10px 16px; border-radius: 15px; }
  .results-shell #parent-view .parent-subject-row { background: var(--subject-tint); border-color: var(--subject-accent); }
  .results-shell #parent-view .parent-subject-row td { background: transparent; }
  .results-shell #parent-view .parent-acquisition-group { padding: 0; border: 0; background: transparent; }
  .results-shell #parent-view .parent-acquisition-group th { display: block; width: 100%; border-radius: 12px; }
  .results-shell #parent-view .evaluation-date { font-size: .76rem; font-weight: 650; color: #577062; }
  .results-shell .competency-label { font-size: .8rem; }
  .results-shell .result-pill { justify-self: start; }
  .results-shell .publication-note { font-size: .72rem; }
}
