:root { font-family: "Segoe UI", system-ui, sans-serif; color: #182e26; background: #f7f6ef; }
* { box-sizing: border-box }
body { margin: 0; }
header { padding: 12px max(5%, calc((100% - 980px)/2)); background: white; border-bottom: 1px solid #d6ded5; display: flex; align-items: center; justify-content: space-between; color: #486056; }
header { gap: 1rem; padding: 1rem max(3%, calc((100% - 1420px)/2)); }
.portal-brand { display: inline-flex; gap: .75rem; align-items: flex-start; text-decoration: none; color: #182e26; max-width: 100%; }
.brand-cap { flex: none; width: clamp(2rem, 4vw, 3rem); height: auto; margin-top: .12rem; }
.brand-type { display: grid; gap: .12rem; min-width: 0; }
.brand-type strong { font: 650 clamp(1.7rem, 3vw, 2.35rem)/1.05 "Segoe UI", sans-serif; letter-spacing: .055em; }
.brand-type > span { font-size: clamp(.875rem, 1.2vw, 1rem); line-height: 1.35; }
.brand-type em { font: italic clamp(.875rem, 1.15vw, 1rem)/1.35 Georgia, serif; color: #445b50; }
@media(max-width: 600px) {
  header { padding: .85rem 1rem; }
  .portal-label { display:none; }
  .portal-brand { gap:.55rem; }
}
main, footer { max-width: 980px; margin: auto; padding: 32px 5%; }
h1,h2 { font-family: Georgia, serif; font-weight: 500; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 16px 0 24px; }
h2 { margin-top: 0; }
section,main > form { border: 1px solid #d6ded5; border-radius: 10px; background: white; padding: 24px; margin-bottom: 18px; }
main > form { max-width: 450px; }
form { display: grid; gap: 14px; }
section form + form { margin-top: 24px; }
label { display: grid; gap: 6px; font-weight: 600; }
input,select,button { font: inherit; padding: 10px 12px; border-radius: 5px; }
input,select { border: 1px solid #80968b; width: 100%; }
button { background: #254f40; color: white; border: 0; cursor: pointer; justify-self: start; }
a { color: #285342; text-underline-offset: 3px; }
nav { display: flex; flex-wrap: wrap; gap: 18px; }
.columns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th,td { padding: 10px; border-bottom: 1px solid #dde4dc; }
footer { color: #516457; font-size: .85rem; }
#importer label { margin: 10px 0; }
#report-list ul { list-style: none; padding: 0; display: grid; gap: 6px; }
#report-list button { width: 100%; text-align: left; overflow-wrap: anywhere; background: white; color: #182e26; border: 1px solid #b8c3bc; }
#report-list button[aria-pressed="true"] { background: #254f40; color: white; border-color: #254f40; }
#report-list button[aria-pressed="true"]::before { content: "✓ "; }
#report-list button:focus-visible { outline: 2px solid #182e26; outline-offset: 2px; }
#importer .preview { margin-bottom: 20px; }
#importer .scroll { margin: 18px 0; }
#importer td input:not([type="checkbox"]), #importer td select { min-width: 8rem; }
#importer td:nth-child(2) input { min-width: 16rem; }
nav + .columns { margin-top: 20px; }
@media(max-width: 640px){ .columns { grid-template-columns: 1fr; gap: 0; } }
.parent-menu { position: sticky; top: 0; z-index: 2; gap: 4px 18px; padding: 6px max(5%, calc((100% - 980px)/2)); background: #254f40; }
.parent-menu a { color: white; padding: 6px 0; text-decoration: none; }
.parent-menu a:hover, .parent-menu a:focus-visible, .parent-menu a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
section[id], #importer [role=status] { scroll-margin-top: 8rem; }
@media print {
  .parent-menu, main > form, footer, #print-report, .portal-label { display: none; }
  body, main, section { background: white; color: black; }
  main { max-width: none; padding: 0; }
  section { border: 0; padding: 0; }
  h2, h3 { break-after: avoid; }
  tr { break-inside: avoid; }
  .scroll { overflow: visible; }
  td a { color: inherit; text-decoration: none; }
}
 [hidden] { display: none !important; }
.course-overview ul { display: grid; gap: 1rem; padding: 0; list-style: none; }
.course-overview li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .25rem 1rem; }
.course-overview meter { width: 100%; height: 1.15rem; grid-column: 1 / -1; }
.course-overview meter::-webkit-meter-optimum-value { background: #315f50; }
.course-overview meter::-moz-meter-bar { background: #315f50; }
.course-overview li span { font-variant-numeric: tabular-nums; }
.student-photo { display: block; width: 8rem; height: 8rem; object-fit: cover; border-radius: 50%; margin-bottom: 1rem; }
input.remove-photo { width: auto; justify-self: start; }
.student-home-link { display: inline-flex; gap: .8rem; align-items: center; margin: .4rem 0 .8rem; }
.student-home-link .student-photo, .student-initial { width: 3.5rem; height: 3.5rem; margin: 0; border-radius: 50%; }
.student-initial { display: grid; place-items: center; background: #e4ebe5; font-size: 1.5rem; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(11rem,100%),1fr)); gap: 1rem; }
.album-grid figure { margin: 0; }
.album-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: .4rem; }
.album-grid figcaption { overflow-wrap: anywhere; }
.progress-panels { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.progress-panels section { border-top:4px solid #426b58; }
.progress-panels .weekly { border-top-color:#97643c; }
.weekly meter::-webkit-meter-optimum-value { background:#ad794e; }
.weekly meter::-moz-meter-bar { background:#ad794e; }
.student-band { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; justify-content:space-between; background:#eef3eb; }
.student-band .student-home-link { margin:0; font-weight:600; }
.family-tools summary { padding:1rem 0; cursor:pointer; font-weight:600; }
@media(max-width:720px){ .progress-panels { grid-template-columns:1fr; gap:0; } }
.dashboard-records { display:grid; grid-template-columns:1fr auto; gap:.5rem 1.25rem; align-items:start; }
.dashboard-records h2, .dashboard-records p { margin:0 0 .45rem; }
.dashboard-records nav { grid-column:1/-1; }
.dashboard-add summary { cursor:pointer; border:1px solid #476a59; border-radius:5px; padding:.45rem .75rem; color:#254f40; }
.dashboard-add form { margin-top:.75rem; }
.dashboard-actions { margin:0 0 1rem; gap:.7rem; }
.dashboard-actions a { padding:.55rem .9rem; border:1px solid #b6c8bc; border-radius:5px; background:white; }
@media(max-width:600px){ .dashboard-records { grid-template-columns:1fr; } }
.progress-panels .course-overview { padding:clamp(1rem,2vw,1.6rem); border:1px solid #ddd5c9; border-radius:18px; background:linear-gradient(145deg,#f1f6fb,white 65%); box-shadow:0 4px 16px #423b2410; }
.progress-panels .weekly { background:linear-gradient(145deg,#fff3df,white 65%); }
.course-overview h2 { color:#24564b; margin-bottom:.3rem; }
.course-overview > p { margin:.15rem 0 1rem; color:#4e5d56; }
.axis-unit { font-size:.8rem; font-weight:600; color:#50625b; }
.plot { display:grid; grid-template-columns:2.6rem minmax(0,1fr); font-size:.8rem; }
.plot-axis { height:160px; margin-top:29px; display:flex; flex-direction:column; justify-content:space-between; text-align:right; padding-right:.45rem; color:#526359; line-height:0; }
.plot-scroll { overflow-x:auto; }
.plot-columns { display:flex; width:100%; min-width:fit-content; background:repeating-linear-gradient(to top,#d9e1dc 0 1px,transparent 1px 40px) 0 28px / 100% 161px no-repeat; }
.plot-course { flex:1 0 6rem; min-width:6rem; display:grid; grid-template-rows:28px 161px auto; text-decoration:none; color:#243c35; text-align:center; }
.plot-course svg { width:100%; height:100%; border-bottom:1px solid #a5b5ac; }
.plot-course b { align-self:center; padding-inline:.2rem; line-height:1.1; font-size:.74rem; }
.plot-course span { padding:.4rem .15rem; overflow-wrap:anywhere; }
.plot-course:hover span,.plot-course:focus-visible span { text-decoration:underline; }
.plot-course rect { fill:var(--bar); stroke:var(--edge); }
.tone-0 { --bar:#f4bf68; --edge:#ac7630; } .tone-1 { --bar:#96c4e9; --edge:#5886ae; } .tone-2 { --bar:#c4abe4; --edge:#896ab3; }
.tone-3 { --bar:#f2a38e; --edge:#ad6658; } .tone-4 { --bar:#a5d5af; --edge:#608c6d; } .tone-5 { --bar:#8fcfcb; --edge:#518e88; }
.dashboard-records { background:linear-gradient(110deg,#e3f1e8,#faf7eb); border-color:#ccddcf; }

@media screen {
  main:has(.progress-panels) { width:100%; max-width:1500px; padding-inline:clamp(1rem,3vw,3rem); }
  .progress-panels { grid-template-columns:repeat(auto-fit,minmax(min(100%,32rem),1fr)); }
  .progress-panels .course-overview, .plot-scroll { min-width:0; }
}.attendance-calendar { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(17rem,100%),1fr)); gap:1rem; margin:1rem 0; }
.attendance-month { margin:0; max-width:30rem; }
.attendance-month div { display:grid; grid-template-columns:repeat(7,1fr); text-align:center; gap:.25rem; }
.attendance-month a { color:white; background:#315b48; border-radius:.3rem; }
@media print { .attendance-actions, section[id^="day-"] td:last-child, section[id^="day-"] th:last-child { display:none; } }

.import-receipt:not(:empty) { margin-top: .75rem; padding: .8rem 1rem; border-left: 4px solid #55746a; background: #edf3ee; }
.import-receipt[data-state="success"] { border-color: #26734e; }
.import-receipt[data-state="error"] { border-color: #a53329; background: #fff0eb; }

.parent-menu .report-navigation { position: relative; margin: 0; color: white; }
.report-navigation summary { cursor: pointer; padding: 6px 0; }
.report-navigation summary:hover, .report-navigation summary:focus-visible,
.report-navigation:has([aria-current="page"]) summary { text-decoration: underline; text-underline-offset: 4px; }
.report-navigation > div { position: absolute; z-index: 3; inset-inline-start: 0; top: 100%; min-width: 12rem; padding: 5px; background: #254f40; border-radius: 0 0 8px 8px; box-shadow: 0 5px 12px #0003; }
.parent-menu .report-navigation a { display: block; padding: 8px 12px; }
@media (max-width: 600px) {
  .report-navigation > div { position: static; min-width: 0; box-shadow: none; }
}

header { background: #fff9ec; color: #183f30; padding-block: .65rem; border-bottom: 3px solid #204a36; }
.portal-brand { align-items: center; color: #153e2b; }
.brand-type strong { font-weight: 750; letter-spacing: .035em; }
.header-landscape { margin-left: auto; width: min(28vw, 260px); height: 88px; object-fit: contain; mix-blend-mode: multiply; }
.portal-label { order: 1; font-weight: 600; }
.mobile-menu { display: none; }
.parent-menu { background: #193f2b; padding-inline: max(3%, calc((100% - 1420px)/2)); column-gap: clamp(.9rem, 2.6vw, 3rem); }
.parent-menu > a[aria-current], .report-navigation:has([aria-current]) summary { box-shadow: inset 0 -3px #e09b61; text-decoration: none; }
@media screen and (max-width: 700px) {
  header { min-height: 64px; }
  .brand-type > span, .brand-type em, .portal-label, .header-landscape { display: none; }
  .menu-ready .mobile-menu { display: block; color: #193f2b; background: transparent; min-width: 44px; font-size: 1.4rem; }
  .menu-ready .parent-menu { display: none; }
  .menu-ready .parent-menu.menu-open { display: grid; position: static; }
  .report-navigation > div { position: static; box-shadow: none; }
}
@media print { .header-landscape, .mobile-menu { display: none; } }
.faq-topics { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:1rem; }
.faq-topics a { padding:1.2rem; border:1px solid #cbd8cc; border-radius:10px; background:white; font-weight:600; }
main video { display:block; width:100%; aspect-ratio:16/9; background:#193e2e; border-radius:6px; }
@media print { .credit-settings { display:none; } }
@media screen{.parent-account{display:flex;align-items:center;justify-content:flex-end;gap:.75rem;flex-wrap:wrap;padding:.4rem 1rem}.parent-account span{overflow-wrap:anywhere}.parent-account form{margin:0;padding:0}.parent-account button{margin:0}} @media print{.parent-account{display:none}}

.diploma { margin:2rem auto; max-width:64rem; border:0; padding:0; background:white; }
.diploma svg { display:block; width:100%; height:auto; }
.diploma-blackletter { font-family:"Old English Text MT","Lucida Blackletter",Georgia,serif; font-weight:bold; }
.diploma-hand { font-family:"Edwardian Script ITC","Snell Roundhand","Segoe Script",cursive; font-style:italic; }
.diploma-hand.hand-1 { font-family:"Brush Script MT","Apple Chancery",cursive; font-weight:bold; }
.diploma-hand.hand-2 { font-family:"French Script MT","Segoe Script",cursive; letter-spacing:1px; }
.diploma-hand.hand-3 { font-family:"Vivaldi","Lucida Handwriting",cursive; font-weight:600; letter-spacing:-1px; }
@page diploma-sheet { size:letter landscape; margin:.18in; }
@media print {
  body:has(.diploma) { page:diploma-sheet; margin:0; padding:0; }
  body:has(.diploma) > :not(main), main:has(.diploma) > :not(.diploma) { display:none !important; }
  main:has(.diploma) { margin:0; padding:0; max-width:none; }
  article.diploma { margin:0 auto; width:10.5in; max-width:100%; box-shadow:none; break-inside:avoid; }
}
.backup-reminder,.backup-reminder a{color:#982323}.backup-reminder a{text-decoration:underline}
.support-list { padding-left:1.4rem; }
.support-list li { margin:.8rem 0; overflow-wrap:anywhere; }
.support-message { white-space:pre-wrap; overflow-wrap:anywhere; }
.agreement-receipt { overflow-wrap:anywhere; }
.support-subject { overflow-wrap:anywhere; }
.support-counts { display:flex; flex-wrap:wrap; gap:.5rem; margin:1rem 0 .35rem; }
.support-counts > * { padding:.4rem .7rem; border:1px solid #cbd8cc; border-radius:.5rem; background:#f4f8f4; }
.support-counts strong { margin-right:.25rem; font-variant-numeric:tabular-nums; }
.support-count-note { margin:.35rem 0 1rem; font-size:.9rem; }
.admin-permission { display:flex; align-items:baseline; gap:.6rem; margin:.55rem 0; font-weight:normal; }
.admin-permission input { width:auto; min-width:1rem; flex:none; }
.student-password { white-space:pre-wrap; overflow-wrap:anywhere; }
.username-status { margin:.25rem 0 .85rem; font-size:.95rem; }
.username-status[data-state="available"] { color:#216239; font-weight:600; }
.username-status[data-state="taken"], .username-status[data-state="invalid"] { color:#8b312a; font-weight:600; }

.report-file-input{position:absolute;width:1px;height:1px;opacity:0}.report-file-button{display:inline-block;width:auto;cursor:pointer;padding:.55rem .9rem;border:1px solid currentColor;border-radius:.3rem;margin-right:.6rem}.report-file-button:has(+input:focus-visible){outline:2px solid currentColor;outline-offset:2px}

.print-packet{display:none}
.worksheet-actions{display:flex;flex-wrap:wrap;gap:.6rem}
.pencil-problems{padding-inline-start:2.7rem}
.pencil-problems li{font-size:1.45rem;line-height:1.65;padding:.65rem 0 1rem .25rem;overflow-wrap:anywhere}
.pencil-problems li::marker{font-size:1rem}
.pencil-blank{display:inline-block;width:4.5em;max-width:100%;height:1.2em;border-bottom:1.5px solid currentColor;vertical-align:baseline}
@media print{
  body:has(#packet-worksheet)>:not(main),body:has(#packet-worksheet) main>:not(.print-packet){display:none!important}
  body:has(#packet-worksheet) main{display:block;width:auto;max-width:none;margin:0;padding:0}
  body:not([data-print-packet="key"]) #packet-worksheet,body[data-print-packet="key"] #packet-key{display:block;color:black;background:white}
  .print-packet article+article{break-before:page}
  .print-packet li{break-inside:avoid}
  .print-packet h1{font-size:20pt}
  .print-packet .sheet-name{margin:1em 0;break-after:avoid}
  .print-packet .pencil-problems li{font-size:18pt;line-height:1.4;padding:3mm 0 5mm 1mm}
  #packet-key li{margin-bottom:1em}
}

.english-passage{white-space:pre-line;max-width:68ch;font-size:1.2rem;line-height:1.65;orphans:3;widows:3}
.english-questions{padding-left:2rem}
.english-questions li{margin:1rem 0;break-inside:avoid;font-size:1.15rem}
.handwriting-line{display:block;height:2rem;border-bottom:1px solid #66706a}
@media print{
  .print-packet .english-passage{font-size:14pt}
  .print-packet .english-questions li{font-size:13pt}
  .print-packet .handwriting-line{height:8mm}
}

.planner-paths{display:grid;gap:1rem;max-width:48rem}
.planner-paths a{display:grid;gap:.3rem;padding:1rem 1.25rem;border:1px solid #9cac9e;border-radius:.5rem;background:white;text-decoration:none}
.planner-paths a strong{font-size:1.2rem;text-decoration:underline}
.planner-paths a:hover,.planner-paths a:focus-visible{background:#eef4ef}

.sibling-grade-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: .5rem;
  padding: .4rem 0;
}
.sibling-grade-options label {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  margin: 0;
  padding: .5rem .65rem;
  border: 1px solid #a5b5aa;
  border-radius: .35rem;
  cursor: pointer;
}
.sibling-grade-options input[type="checkbox"] {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0;
  padding: 0;
  accent-color: #245441;
}
.sibling-grade-options label:has(:checked) { border-color: #245441; background: #edf4ee; }
.sibling-grade-options label:focus-within { outline: 2px solid #245441; outline-offset: 1px; }
