@font-face {
  font-family: Chalkly;
  src: local("Inter"),local("Segoe UI Variable Text"),local("Segoe UI");
  font-display: swap;
}
:root {
  --ink: #202f2b;
  --green: #265d48;
  --green-dark: #214e3e;
  --muted: #68756f;
  --border: #e0e6e1;
  --page: #f6f8f6;
  --side: 222px;
  --radius: 15px;
  --sans: Chalkly,"Segoe UI",Roboto,Arial,sans-serif;
  color: var(--ink);
  font: 16px/1.45 var(--sans);
  background: var(--page);
  font-synthesis: weight;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,input,textarea,select {
  font: inherit;
  color: inherit;
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-align: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: .42;
  cursor: default;
}
input,textarea,select {
  border: 1px solid #cdd8d0;
  background: #fff;
  border-radius: 8px;
}
input,textarea {
  padding: 10px 12px;
}
select {
  appearance: none;
  padding: 9px 31px 9px 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2354695c' stroke-width='1.5'/%3E%3C/svg%3E") right 10px center/11px no-repeat;
}
textarea {
  resize: vertical;
  min-height: 74px;
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,canvas:focus-visible {
  outline: 3px solid #85b599;
  outline-offset: 3px;
}
h1,h2,h3,p {
  margin: 0;
}
h1,h2,h3,b,strong {
  font-weight: 650;
}
h1 {
  font-size: clamp(28px,2.4vw,36px);
  line-height: 1.13;
  letter-spacing: -.043em;
}
h2 {
  font-size: 20px;
  letter-spacing: -.035em;
  line-height: 1.25;
}
h3 {
  font-size: 17px;
  letter-spacing: -.025em;
}
.icon {
  flex: none;
  vertical-align: middle;
}
.skip {
  position: fixed;
  top: -60px;
  left: 8px;
  background: #fff;
  padding: 6px;
  z-index: 20;
}
.skip:focus {
  top: 8px;
}
#shell {
  min-height: 100vh;
}
#sidebar {
  width: var(--side);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 26px 15px 0;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 5;
  overflow: auto;
  scrollbar-width: thin;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 12px 35px;
  width: fit-content;
}
.brand img {
  height: 36px;
  width: 36px;
  border-radius: 10px;
}
.brand>span {
  font-size: 35px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -2.2px;
  color: #24563f;
}
.brand-domain {
  font-size: 18px;
  letter-spacing: -.9px;
  color: #789181;
  margin-left: 1px;
}
.navgroup {
  margin-bottom: 26px;
}
.navlabel {
  margin: 0 12px 9px;
  color: #78837c;
  text-transform: uppercase;
  letter-spacing: .115em;
  font-weight: 650;
  font-size: 11px;
}
.navlink {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 41px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #4d5b54;
  margin: 2px 0;
}
.navlink .icon {
  color: #697a6e;
}
.navlink:hover,.profile:hover,.iconbtn:hover,.searchbutton:hover {
  background: #f0f4f0;
}
.navlink.active {
  color: #245c43;
  background: #e6f0e5;
  font-weight: 660;
}
.navlink.active .icon {
  color: #397450;
}
.navcount {
  margin-left: auto;
  background: #edf0e9;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12px;
  color: #596e5c;
}
.sidebottom {
  margin-top: auto;
  padding-top: 12px;
}
.profile {
  border-top: 1px solid var(--border);
  padding: 17px 3px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 11px;
}
.profile>span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.profile b,.profile small,.profilebig b,.profilebig small,.personline b,.personline small {
  display: block;
}
.profile b {
  font-size: 14px;
}
.profile small,.profilebig small,.personline small {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 650;
  font-size: 13px;
}
.sage {
  --tint: #e5f0e4;
  --tone: #4a7752;
}
.purple {
  --tint: #ede7f6;
  --tone: #8066a1;
}
.apricot {
  --tint: #fbebdc;
  --tone: #a76c3e;
}
.blue {
  --tint: #e4edf7;
  --tone: #587da1;
}
.pink {
  --tint: #f6e5e9;
  --tone: #a56376;
}
.yellow {
  --tint: #f8efd2;
  --tone: #947b26;
}
.neutral {
  --tint: #eff1ef;
  --tone: #607066;
}
.avatar,.badge,.tileicon,.material-symbol,.lessonformat {
  color: var(--tone);
  background: var(--tint);
}
#desk {
  margin-left: var(--side);
}
#topbar {
  height: 62px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px,2.4vw,38px);
}
.crumb,.headtools,.searchbutton,.crumb b {
  display: flex;
  align-items: center;
}
.crumb {
  gap: 13px;
  font-size: 13px;
  color: #78837d;
}
.crumb b {
  color: #35493c;
  font-weight: 580;
}
.crumb em {
  font-size: 13px;
  font-style: normal;
  color: #aab3ac;
}
.crumb>i {
  height: 17px;
  width: 1px;
  background: var(--border);
  margin-right: 1px;
}
.headtools {
  gap: 16px;
}
.searchbutton {
  gap: 8px;
  color: #67756b;
  font-size: 13px;
  padding: 6px 9px;
  border-radius: 7px;
}
.searchbutton kbd {
  font-family: inherit;
  font-size: 11px;
  color: #7a877d;
  border: 1px solid #dfe5df;
  background: #fafbf9;
  padding: 0 4px;
  border-radius: 3px;
}
.notifybtn {
  position: relative;
}
.notifybtn>i {
  background: #99aa66;
  position: absolute;
  right: 6px;
  top: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  outline: 2px solid #fff;
}
.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: #586b5e;
  flex: none;
}
.iconbtn.smallborder,.iconbtn.bordered {
  border: 1px solid var(--border);
  background: white;
}
.iconbtn.smallborder {
  width: 28px;
  height: 28px;
}
.smallborder .icon {
  width: 15px;
  height: 15px;
}
#content {
  padding: 25px clamp(20px,2.4vw,40px) 42px;
  max-width: 1740px;
  margin: 0 auto;
  outline: none;
}
.hero {
  background-color: #224f3f;
  background-image: radial-gradient(ellipse at 82% 55%,#38684f55,transparent 58%),linear-gradient(112deg,#244f3e,#20513f 73%,#28583f);
  isolation: isolate;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 202px;
  display: flex;
  align-items: center;
  padding: 24px 32px;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.55' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .12;
  pointer-events: none;
  z-index: -1;
}
.herocopy {
  position: relative;
  z-index: 1;
  max-width: 65%;
}
.herodate {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 520;
  letter-spacing: .012em;
  color: #d6e5d3;
  margin-bottom: 9px;
}
.herodate .icon {
  color: #e6cd80;
}
.hero h1 {
  font-size: clamp(30px,3vw,48px);
  letter-spacing: -.049em;
  line-height: 1.15;
  font-weight: 620;
}
.hero h1 span {
  display: inline-block;
  position: relative;
}
.hero h1 span:after {
  content: "";
  position: absolute;
  left: 1%;
  right: 1%;
  bottom: -3px;
  height: 3px;
  border-radius: 60%;
  transform: rotate(-2deg);
  background: #d6bd79;
  opacity: .86;
}
.hero p {
  color: #dee9dc;
  font-size: 14px;
  line-height: 1.45;
  margin: 10px 0 17px;
}
.chalkart {
  position: absolute;
  right: 1.3%;
  bottom: 3%;
  width: 40%;
  height: 92%;
  pointer-events: none;
}
.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 9px 15px;
  background: #fff;
  border: 1px solid #d8e1da;
  color: #304536;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.btn:hover {
  border-color: #a9c1ae;
  background: #f6f9f4;
}
.btn.primary {
  background: #2c634b;
  border-color: #2c634b;
  color: #fff;
}
.btn.primary:hover {
  background: #204e3a;
}
.btn.herocta {
  background: #e8efda;
  color: #284b33;
  border-color: transparent;
  min-height: 34px;
  padding: 8px 13px;
}
.btn.small {
  font-size: 13px;
  min-height: 32px;
  padding: 6px 10px;
}
.btn.danger {
  background: #a74848;
  color: white;
}
.textbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #396a4f;
  font-weight: 600;
  font-size: 13px;
  padding: 5px 0;
}
.textbtn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.textbtn.muted {
  color: #647c69;
}
.summarytitle,.cardhead,.pagehead,.datebar,.calhead,.filterrow,.boardtitle,.boardfooter,.palettebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.summarytitle {
  margin: 23px 0 12px;
}
.summarytitle h2 {
  font-size: 21px;
}
.period {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6b786f;
  font-size: 13px;
}
.statgrid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 13px;
  margin-bottom: 21px;
}
.stat,.panel,.studentcard,.material-card,.boardcard,.newboard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}
.stat {
  position: relative;
  min-width: 0;
  min-height: 116px;
  padding: 15px 16px 13px;
  overflow: hidden;
}
.stat,.studentcard,.material-card,.boardshortcut,.boardcard,.newboard {
  transition: border-color .15s,background .15s;
}
.stat:hover,.studentcard:hover,.material-card:hover,.boardcard:hover,.newboard:hover {
  border-color: #a7bdac;
}
.statlabel {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 550;
  color: #53645a;
}
.tileicon,.material-symbol {
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  flex: none;
  width: 31px;
  height: 31px;
  font-style: normal;
}
.stat strong {
  display: block;
  font-size: clamp(25px,2.1vw,36px);
  letter-spacing: -.05em;
  line-height: 1.05;
  margin: 11px 0 5px;
  font-weight: 650;
  position: relative;
  z-index: 1;
}
.stat small,.studentcard>span:last-child,.secondary {
  color: var(--muted);
  font-size: 13px;
}
.stat small {
  font-size: 12px;
}
.statdeco {
  position: absolute;
  bottom: 15px;
  right: 13px;
  opacity: .55;
  color: var(--tone);
}
.minibars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.minibars i {
  width: 4px;
  background: currentColor;
  border-radius: 2px;
  opacity: .62;
}
.minibars i:nth-child(-n+2) {
  opacity: .3;
}
.minibars i:nth-child(n+6) {
  opacity: .95;
}
.dashgrid {
  display: grid;
  grid-template-columns: minmax(0,1.66fr) minmax(272px,1fr);
  gap: 18px;
  align-items: start;
}
.panel {
  overflow: hidden;
}
.cardhead {
  padding: 20px 21px 16px;
}
.cardhead h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
}
.cardhead h2>.icon {
  color: #54775b;
}
.cardhead .textbtn {
  white-space: nowrap;
}
.datebar {
  padding: 6px 8px 6px 13px;
  margin: 0 20px 5px;
  border: 1px solid #e8eee8;
  border-radius: 8px;
  background: #f6f8f4;
  min-height: 40px;
}
.datebar>span,.datebar>div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.datebar>span {
  font-size: 13px;
  color: #637168;
}
.datebar strong {
  font-weight: 620;
  color: #344d3b;
}
.datebar i,.sep {
  font-style: normal;
}
.datebar .iconbtn {
  width: 24px;
  height: 24px;
}
.datebar .icon {
  width: 14px;
  height: 14px;
}
.lessonlist {
  padding: 0 20px;
}
.lessonrow {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid #e7ece6;
}
.lessonrow:hover,.taskrow:hover,.recordrow:hover {
  background: #f9fbf8;
}
.lessonrow:last-child {
  border-bottom: 0;
}
.times {
  min-width: 41px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.times b {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.times small,.lessoninfo small,.recordrow small,.material-card small,.boardcard small {
  color: var(--muted);
  font-size: 12px;
}
.rail {
  width: 3px;
  border-radius: 8px;
  height: 35px;
  background: var(--tone);
  opacity: .66;
  flex: none;
}
.lessoninfo {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.lessoninfo b,.tasktext b,.recordrow b,.material-card b,.boardcard b {
  font-size: 14px;
  font-weight: 620;
  line-height: 1.35;
}
.lessoninfo small {
  display: flex;
  align-items: center;
  gap: 5px;
}
.lessonrow>.icon {
  color: #a7b3a9;
}
.lessonformat,.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.25;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.panelbottom {
  border-top: 1px solid #e9eee7;
  padding: 8px 21px 10px;
}
.rightcol {
  display: grid;
  gap: 15px;
}
.taskpanel .cardhead {
  padding-bottom: 8px;
}
.tasklist {
  padding: 0 20px;
}
.taskrow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #e9eee8;
}
.taskrow:last-child {
  border: 0;
}
.checkbox {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: none;
  border: 1.5px solid #c1cfc3;
  border-radius: 4px;
  background: white;
  margin-top: 2px;
}
.isdone .checkbox {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.isdone .tasktext b {
  text-decoration: line-through;
  color: var(--muted);
}
.tasktext {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.tasktext span {
  font-size: 12px;
  color: #768178;
  display: flex;
  align-items: center;
  gap: 6px;
}
.datedot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #c4905b;
}
.sep {
  color: #a4afa6;
}
.boardshortcut,.boardcard .boardpreview,.newboard {
  background-color: #ecf2e7;
  background-image: radial-gradient(#9fb19865 1px,transparent 1px);
  background-size: 12px 12px;
}
.boardshortcut {
  border: 1px solid #d6e1d1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 108px;
  padding: 16px 18px;
  text-align: left;
  background-color: #f0f4e9;
}
.boardshortcut:hover {
  border-color: #8fab92;
}
.boardshorthead {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  z-index: 1;
}
.boardshorthead b {
  font-size: 16px;
  letter-spacing: -.025em;
}
.boardshorthead .tileicon {
  background: #dce9d5;
  width: 29px;
  height: 29px;
}
.boardlink {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 14px;
  color: #42694c;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid #bdcdbb;
}
.boardpreview {
  position: relative;
  overflow: hidden;
}
.boardpreview svg {
  width: 100%;
  height: 100%;
}
.boardshortcut .boardpreview {
  position: absolute;
  right: 3%;
  bottom: 0;
  width: 54%;
  height: 53px;
  opacity: .85;
}
.formula {
  font-family: Georgia,serif;
  font-style: italic;
  position: absolute;
  color: #688d72;
  transform: rotate(-9deg);
  right: 27%;
  top: 0;
  font-size: 14px;
}
.recent {
  margin-top: 20px;
}
.recent .cardhead {
  padding: 0 0 12px;
}
.matgrid,.studentgrid,.boardsgrid,.financestats,.settingsgrid,.detailgrid {
  display: grid;
  gap: 15px;
}
.matgrid,.financestats,.boardsgrid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.material-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
.material-symbol {
  width: 39px;
  height: 43px;
}
.material-card>span {
  min-width: 0;
  flex: 1;
}
.material-card b,.material-card small,.boardcard b,.boardcard small {
  display: block;
}
.material-card small,.boardcard small {
  margin-top: 4px;
}
.material-card>.icon {
  color: #9ba99e;
}
.pagehead {
  margin: 5px 0 25px;
}
.pagehead p,.padded>p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 8px;
}
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.chip {
  padding: 7px 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  border-radius: 7px;
}
.chip.selected,.calday.current {
  background: #e5f0e4;
  color: #29573d;
  border-color: #aec6b1;
}
.padded {
  padding: 23px;
}
.padded>h2 {
  margin-bottom: 15px;
}
.padded>.btn {
  margin-top: 16px;
}
.filterrow {
  margin-bottom: 18px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.filterrow .filters {
  margin: 0;
}
.listsearch {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #d9e2da;
  border-radius: 8px;
  padding: 0 11px;
  color: #77857a;
}
.listsearch input {
  padding: 9px 0;
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  font-size: 14px;
}
.listsearch:focus-within {
  outline: 2px solid #aac7af;
}
.listsearch.full {
  width: 100%;
  margin-bottom: 12px;
}
.studentgrid {
  grid-template-columns: repeat(auto-fill,minmax(205px,1fr));
}
.studentcard {
  padding: 21px;
}
.studentcard .avatar {
  width: 43px;
  height: 43px;
  margin-bottom: 13px;
  font-size: 15px;
}
.studentcard p {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 12px;
}
.studentcard>span:last-child {
  display: block;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.back {
  margin-bottom: 9px;
}
.detailgrid {
  grid-template-columns: minmax(230px,1fr) minmax(0,1.7fr);
}
dt {
  color: var(--muted);
  font-size: 13px;
  margin-top: 15px;
}
dd {
  margin: 3px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rowdate {
  display: block;
  color: #6b816e;
  margin-top: 12px;
}
.calhead {
  padding: 17px 19px;
}
.calhead>div {
  display: flex;
  gap: 9px;
  align-items: center;
}
.calhead h2 {
  font-size: 19px;
}
.calgrid {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  border-block: 1px solid var(--border);
  background: #f9fbf8;
  padding: 10px;
  gap: 5px;
}
.calday {
  padding: 9px 5px;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  text-align: center;
  border: 1px solid transparent;
}
.calday small {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}
.calday b {
  font-size: 21px;
}
.calday span {
  font-size: 12px;
  color: #677e6c;
}
.calday.istoday b {
  color: #278058;
}
.calgrid.month .calday {
  gap: 1px;
  padding: 3px;
}
.calgrid.month .calday b {
  font-size: 17px;
}
.calday:hover {
  border-color: #b4c8b7;
}
.recordrow {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--border);
  padding: 15px 18px;
}
.recordrow:last-child {
  border: 0;
}
.recordrow>span:not(.badge) {
  min-width: 0;
  flex: 1;
}
.recordrow b,.recordrow small {
  display: block;
}
.recordrow small {
  margin-top: 4px;
}
.financestats {
  margin-bottom: 20px;
}
.financestats strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
  margin-top: 6px;
}
.newboard,.boardcard {
  min-height: 160px;
}
.newboard {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed #9ab79d;
  color: #496e50;
  background-color: #f3f7ef;
}
.boardcard {
  overflow: hidden;
}
.boardcard .boardpreview {
  height: 90px;
  padding: 12px;
}
.boardcard>span {
  display: block;
  padding: 14px;
}
.settingsgrid {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.profilebig,.personline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profilebig .avatar,.personline .avatar {
  width: 45px;
  height: 45px;
}
.empty {
  padding: 27px 15px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
dialog {
  padding: 0;
  border: 1px solid #dbe3da;
  border-radius: 16px;
  background: #fff;
  width: min(480px,calc(100vw - 28px));
  max-height: 88dvh;
  color: var(--ink);
  box-shadow: 0 22px 90px #112c2933;
}
dialog.wide {
  width: min(650px,calc(100vw - 28px));
}
dialog::backdrop {
  background: #20332a60;
  backdrop-filter: blur(2px);
}
.modalhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 21px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.modalhead h2 {
  font-size: 20px;
}
.modalbody {
  padding: 20px 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #4e6153;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 13px;
}
.field input,.field select,.field textarea {
  font-size: 15px;
  font-weight: 400;
  color: #23372a;
  width: 100%;
  min-width: 0;
}
.fieldpair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.formfoot,.dialogbuttons {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 17px;
}
.formfoot>.iconbtn:first-child {
  margin-right: auto;
}
.dialogbuttons {
  justify-content: flex-start;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.personline {
  margin-bottom: 15px;
}
.infoline {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #4e6355;
  margin: 9px 0;
  font-size: 15px;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
  margin: 15px 0;
}
.notearea {
  padding: 10px 14px;
  background: #f3f6ef;
  border-radius: 8px;
}
.modalbody .cardhead {
  padding: 14px 0 6px;
}
.modalbody .cardhead h2 {
  font-size: 15px;
}
#formerror {
  color: #a33f3f;
  font-size: 14px;
}
#toast,#sync:not(:empty) {
  position: fixed;
  z-index: 15;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 9px;
  padding: 10px 17px;
  color: white;
  background: #214e3e;
  box-shadow: 0 4px 15px #172f2624;
  font-size: 14px;
}
#toast {
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
#toast.show {
  opacity: 1;
}
#sync:not(:empty) {
  background: #6f4a24;
  bottom: 66px;
  max-width: 95vw;
}
#sync button {
  margin-left: 8px;
  text-decoration: underline;
}
.collapsed {
  --side: 75px;
}
.collapsed #sidebar {
  padding: 26px 9px 0;
}
.collapsed .brand {
  margin-inline: auto;
}
.collapsed .brand>span,.collapsed .navlabel,.collapsed .navlink span,.collapsed .navcount,.collapsed .profile>span:nth-child(2),.collapsed .profile>.icon {
  display: none;
}
.collapsed .navlink {
  font-size: 0;
  justify-content: center;
  gap: 0;
}
.collapsed .profile {
  justify-content: center;
}
.boardtitle {
  margin: 1px 0 14px;
}
.boardtitle h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 27px;
}
.boardtitle .back {
  margin: 0;
}
.boardtitletools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
#board-frame {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 222px);
  min-height: 390px;
  background: #fff;
}
.board-toolbar,.toolcluster,.colors,.pagecontrols,.zoomcontrols,.linewidth,.gridselect {
  display: flex;
  align-items: center;
  gap: 4px;
}
.board-toolbar {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: space-between;
}
.toolcluster {
  flex-wrap: wrap;
}
.toolcluster .iconbtn.chosen {
  background: #dcebdc;
  color: #275f40;
}
.palettebar {
  justify-content: flex-start;
  padding: 7px 12px;
  gap: 15px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.colors {
  gap: 5px;
}
.color,.customcolor {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--swatch);
  border: 2px solid white;
  box-shadow: 0 0 0 1px #e4e9e3;
}
.color.active {
  box-shadow: 0 0 0 2px #87aa90;
}
.customcolor {
  position: relative;
  overflow: hidden;
  background: conic-gradient(#ffc778,#de89a3,#91a4dd,#8fcc93,#ffc778);
}
.customcolor input {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.linewidth,.gridselect {
  font-size: 13px;
  color: #607566;
}
.linewidth select,.gridselect select,.pagecontrols select {
  font-size: 13px;
  border: 0;
  padding-block: 4px;
}
.gridselect {
  margin-left: auto;
}
.canvasarea {
  position: relative;
  flex: 1;
  min-height: 0;
}
#drawing {
  touch-action: none;
  width: 100%;
  height: 100%;
  display: block;
  outline-offset: -3px;
}
#selectiontools {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.boardfooter {
  padding: 6px 12px;
  border-top: 1px solid var(--border);
}
.zoomcontrols {
  font-size: 13px;
}
.boardcontent:fullscreen {
  background: var(--page);
  width: 100vw;
  max-width: none!important;
}
.boardcontent:fullscreen #board-frame {
  height: calc(100dvh - 140px);
}
@media(min-width:1500px) {
  :root {
    --side: 242px;
  }
  .hero {
    min-height: 225px;
    padding-inline: 38px;
  }
  .stat {
    padding: 17px 20px;
    min-height: 128px;
  }
  .lessonrow {
    padding-block: 18px;
  }
  .navlink {
    font-size: 15px;
  }
  .lessoninfo b,.tasktext b {
    font-size: 15px;
  }
}
@media(max-width:1190px) {
  :root {
    --side: 192px;
  }
  #sidebar {
    padding-inline: 10px;
  }
  .navlink {
    gap: 9px;
  }
  .statdeco {
    display: none;
  }
  .dashgrid {
    grid-template-columns: minmax(0,1.48fr) minmax(255px,1fr);
    gap: 14px;
  }
  .statgrid {
    gap: 10px;
  }
  .stat {
    padding: 13px;
  }
  .lessonrow {
    gap: 9px;
  }
  .cardhead {
    padding-inline: 16px;
  }
  .lessonlist,.tasklist {
    padding-inline: 16px;
  }
  .datebar {
    margin-inline: 16px;
  }
  .hero p {
    max-width: 38ch;
  }
  .hero {
    padding-inline: 24px;
  }
  .material-card {
    padding: 12px;
    gap: 8px;
  }
  .matgrid {
    gap: 9px;
  }
}
@media(max-width:980px) and (min-width:801px) {
  :root {
    --side: 174px;
  }
  .navlink {
    font-size: 13px;
  }
  .dashgrid {
    grid-template-columns: minmax(0,1.3fr) minmax(215px,1fr);
  }
  .statlabel {
    gap: 6px;
    font-size: 12px;
  }
  .stat {
    padding-inline: 10px;
  }
  .lessonformat {
    font-size: 11px;
    padding: 3px 5px;
  }
  .lessonrow>.icon {
    display: none;
  }
  .cardhead h2 {
    font-size: 16px;
  }
  .cardhead .textbtn {
    font-size: 12px;
  }
  .boardshorthead b {
    font-size: 14px;
  }
  .hero {
    min-height: 186px;
  }
  .summarytitle {
    margin-top: 18px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .boardtitletools .btn {
    font-size: 12px;
  }
  .material-card>.icon {
    display: none;
  }
}
@media(max-width:800px) {
  :root,.collapsed {
    --side: 0px;
  }
  #sidebar,.collapsed #sidebar {
    width: 232px;
    transform: translateX(-105%);
    transition: transform .19s ease;
  }
  body.menu-open #sidebar {
    transform: translateX(0);
  }
  #shade {
    display: none;
  }
  .menu-open #shade {
    display: block;
    position: fixed;
    inset: 0;
    background: #1a332a55;
    z-index: 4;
  }
  .menu-open {
    overflow: hidden;
  }
  #topbar {
    height: 54px;
    padding-inline: 16px;
  }
  #content {
    padding: 18px 16px 32px;
  }
  .dashgrid {
    grid-template-columns: minmax(0,1.5fr) minmax(215px,1fr);
  }
  .hero {
    min-height: 182px;
  }
  .hero p {
    max-width: none;
  }
  .herocopy {
    max-width: 63%;
  }
  .crumb {
    gap: 10px;
  }
  .navlink {
    min-height: 42px;
  }
  .stat strong {
    font-size: 28px;
  }
  .material-card>.icon {
    display: none;
  }
  .statlabel {
    font-size: 12px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .lessonrow>.icon {
    display: none;
  }
}
@media(max-width:620px) {
  #content {
    padding: 13px 12px 30px;
  }
  .hero {
    min-height: 179px;
    padding: 20px 17px;
  }
  .herocopy {
    max-width: 74%;
  }
  .hero h1 {
    font-size: clamp(25px,6.6vw,35px);
  }
  .herodate {
    font-size: 12px;
    gap: 6px;
  }
  .herodate .icon {
    width: 15px;
  }
  .hero p {
    font-size: 13px;
    max-width: 26ch;
    margin: 9px 0 14px;
  }
  .chalkart {
    width: 33%;
    height: 67%;
    right: -2%;
    bottom: 2%;
    opacity: .94;
  }
  .btn.herocta {
    font-size: 13px;
  }
  .summarytitle {
    margin: 18px 0 9px;
  }
  .summarytitle h2 {
    font-size: 19px;
  }
  .period {
    font-size: 12px;
  }
  .statgrid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    margin-bottom: 13px;
  }
  .stat {
    min-height: 100px;
    padding: 11px 12px;
  }
  .stat strong {
    margin: 7px 0 3px;
    font-size: 27px;
  }
  .statdeco {
    display: block;
    bottom: 11px;
    right: 10px;
    transform: scale(.75);
    transform-origin: bottom right;
  }
  .stat small {
    font-size: 11px;
  }
  .statlabel {
    font-size: 13px;
  }
  .tileicon {
    width: 27px;
    height: 27px;
  }
  .dashgrid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .rightcol {
    gap: 13px;
  }
  .cardhead {
    padding: 15px;
  }
  .lessonrow {
    padding-block: 13px;
  }
  .matgrid,.settingsgrid,.detailgrid {
    grid-template-columns: 1fr;
  }
  .pagehead,.boardtitle {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .pagehead {
    margin-bottom: 17px;
    gap: 12px;
  }
  .pagehead p {
    font-size: 14px;
  }
  .financestats {
    gap: 6px;
  }
  .financestats .padded {
    padding: 10px;
  }
  .financestats .padded>p {
    font-size: 12px;
  }
  .financestats strong {
    font-size: 20px;
  }
  .boardsgrid,.studentgrid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  .studentcard {
    padding: 13px;
  }
  .studentcard h3 {
    font-size: 15px;
  }
  .studentcard p {
    font-size: 12px;
  }
  .boardshorthead b {
    font-size: 16px;
  }
  .boardshortcut {
    min-height: 92px;
  }
  .boardshortcut .boardpreview {
    width: 43%;
    height: 61px;
  }
  .searchbutton span,.searchbutton kbd {
    display: none;
  }
  .headtools {
    gap: 3px;
  }
  .calhead {
    flex-wrap: wrap;
    padding: 11px;
  }
  .calhead h2 {
    font-size: 16px;
  }
  .calhead>div {
    gap: 3px;
  }
  .calgrid {
    gap: 2px;
    padding: 4px;
  }
  .calday {
    padding: 6px 0;
  }
  .calday span {
    font-size: 10px;
  }
  .calday b {
    font-size: 17px;
  }
  .board-toolbar {
    padding: 6px;
    gap: 2px;
  }
  .toolcluster {
    gap: 2px;
  }
  .toolcluster .iconbtn {
    width: 29px;
    height: 29px;
  }
  .palettebar {
    padding: 7px;
    gap: 7px;
  }
  .linewidth {
    font-size: 0;
  }
  .gridselect {
    margin-left: 0;
  }
  .gridselect select {
    max-width: 100px;
  }
  .boardtitle h1 {
    font-size: 22px;
  }
  .boardtitletools .btn {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 12px;
  }
  #board-frame {
    height: calc(100dvh - 187px);
    min-height: 420px;
  }
  .recordrow {
    gap: 8px;
    padding: 12px;
  }
  .recordrow>.tileicon {
    display: none;
  }
  .recordrow .badge {
    font-size: 11px;
  }
  .modalbody {
    padding: 17px;
  }
  .statgrid,.stat,.panel,.hero,.boardshortcut {
    border-radius: 12px;
  }
}
@media(max-width:360px) {
  .statdeco,.crumb>span,.crumb>em,.lessonformat .icon {
    display: none;
  }
  .herocopy {
    max-width: 78%;
  }
  .hero {
    padding-inline: 14px;
  }
  .statlabel {
    font-size: 12px;
  }
  .boardsgrid,.studentgrid {
    grid-template-columns: 1fr;
  }
  .tasktext b,.lessoninfo b {
    font-size: 13px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto!important;
    transition: none!important;
  }
}
#sidebar {
  overflow-x: hidden;
}
.mobilebrand {
  display: none;
}
@media(max-width:800px) {
  .crumb .desktopcrumb {
    display: none;
  }
  .mobilebrand {
    display: inline-block;
    font-size: 19px;
    letter-spacing: -.08em;
    color: #285d44;
    font-weight: 720;
  }
  .mobilebrand span {
    color: #789181;
    font-size: 14px;
  }
}
