* {
  box-sizing: border-box;
}
:root {
  --bg: #f7f8f4;
  --paper: #fff;
  --rail: #fdfdf9;
  --ink: #232c25;
  --muted: #697269;
  --line: #dde2d8;
  --brand: #28563d;
  --soft: #e9efdf;
  --green: #50845a;
  --shadow: 0 2px 2px #203b1710;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #182019;
  --paper: #202b23;
  --rail: #1c251e;
  --ink: #e5eee1;
  --muted: #b1bcaf;
  --line: #39463a;
  --brand: #a6cea6;
  --soft: #344633;
  --shadow: none;
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.45 "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #839f65;
  outline-offset: 2px;
}
button:hover {
  filter: brightness(0.96);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.04em;
}
h1 {
  font-size: 36px;
  line-height: 1.1;
}
h2 {
  font-size: 23px;
}
h3 {
  font-size: 19px;
}
.shell {
  display: grid;
  grid-template-columns: 222px 1fr;
  min-height: 100vh;
}
.rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--rail);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 23px 15px 14px;
  overflow: auto;
}
.brand {
  font-size: 25px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  padding: 0 8px;
  color: var(--brand);
}
.brand img {
  width: 32px;
  height: 32px;
}
.sectionlabel,
.eyebrow {
  font:
    600 10px/1.4 ui-monospace,
    "Courier New",
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail .sectionlabel {
  margin: 27px 12px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-radius: 7px;
  padding: 9px 12px;
  margin: 1px 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.nav.active {
  background: var(--soft);
  color: var(--brand);
  font-weight: 650;
}
.nav:hover {
  background: var(--soft);
}
.classdot {
  width: 9px;
  height: 9px;
  background: var(--course);
  display: inline-block;
  border-radius: 3px;
  flex-shrink: 0;
}
.green {
  --course: #599260;
  --wash: #e9f2e5;
  --tone: #49744a;
}
.purple {
  --course: #9b86cb;
  --wash: #f1ecfa;
  --tone: #795b9d;
}
.orange {
  --course: #d6a067;
  --wash: #faf0e3;
  --tone: #966c3c;
}
.blue {
  --course: #76a4bd;
  --wash: #e8f2f8;
  --tone: #50788f;
}
.pink {
  --course: #c2819e;
  --wash: #f6e8ef;
  --tone: #965873;
}
.railfooter {
  margin-top: auto;
  padding-top: 22px;
}
.profile {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding: 17px 5px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
}
.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #45683e;
  background: #e1e9ce;
  font: 600 16px Georgia;
}
.profile b,
.profile small {
  display: block;
}
.profile small,
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.profile b {
  font-size: 13px;
}
.profile svg {
  margin-left: auto;
}
.main {
  min-width: 0;
}
.topbar {
  height: 62px;
  background: var(--rail);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 32px;
  font-size: 13px;
}
.topbar .sep {
  color: #a1aaa0;
}
.grow {
  flex: 1;
}
.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--muted);
  border-radius: 6px;
}
.iconbtn:hover {
  background: var(--soft);
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.key {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 4px;
}
.content {
  max-width: 1570px;
  margin: auto;
  padding: 25px 32px 40px;
}
.pagehead,
.cardhead,
.row,
.between,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between,
.cardhead,
.pagehead {
  justify-content: space-between;
}
.pagehead {
  margin-bottom: 19px;
}
.pagehead .eyebrow {
  margin-bottom: 6px;
}
.btn {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 7px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 550;
  min-height: 34px;
}
.btn.primary {
  background: #28583e;
  color: #fff;
  border-color: #28583e;
}
.hero {
  border: 1px solid #cad9bf;
  border-radius: 12px;
  background: #e1edcf url(/art/study-landscape.png) center right/cover no-repeat;
  image-rendering: pixelated;
  min-height: 145px;
  padding: 26px 28px;
  color: #223f2c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero .eyebrow {
  color: #426145;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero h2 {
  font-size: clamp(29px, 3vw, 44px);
  line-height: 1.2;
  margin: 7px 0 5px;
}
.hero p {
  font-size: 14px;
  color: #425641;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.stat,
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.stat {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 13px;
}
.tile {
  width: 38px;
  height: 38px;
  background: var(--wash);
  color: var(--tone);
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.stat strong {
  font: 500 26px/1.1 Georgia;
  display: block;
}
.stat small {
  font-size: 12px;
}
.dashgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(245px, 1fr);
  gap: 16px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.card {
  padding: 18px 20px;
}
.cardhead {
  margin-bottom: 15px;
}
.cardhead h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cardhead h2 svg {
  color: var(--muted);
}
.linkbtn {
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 0;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.week button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 0;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
}
.week button strong {
  font: 500 19px Georgia;
  color: var(--ink);
}
.week .chosen {
  background: var(--soft);
  border-color: #c7d7bc;
}
.week .chosen strong {
  color: var(--brand);
}
.dots {
  height: 6px;
  display: flex;
  gap: 2px;
}
.dots .classdot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}
.chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  padding: 5px 9px;
  color: var(--muted);
  font-size: 12px;
  border-radius: 6px;
}
.chip.active {
  background: var(--soft);
  color: var(--brand);
  font-weight: 600;
}
.taskrow {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.taskrow:last-child {
  padding-bottom: 2px;
}
.check {
  border: 1.5px solid #acb8a9;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
}
.check.checked {
  background: var(--brand);
  color: var(--paper);
}
.taskbody {
  flex: 1;
  text-align: left;
  padding: 0;
  min-width: 0;
}
.taskbody b,
.itemtitle {
  font-size: 14px;
  font-weight: 600;
}
.taskmeta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.tag {
  color: var(--tone);
  background: var(--wash);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 550;
  font-size: 11px;
}
.due {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.today {
  color: #9e633c;
}
.focuscard {
  background: #f1f4e9;
  position: relative;
  overflow: hidden;
  border-color: #d8e1cb;
}
.focuscard h2 {
  color: #2e4730;
}
.focuscard .eyebrow {
  color: #6b7665;
}
.focusmain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
.timer {
  font: 500 43px/1 Georgia;
  letter-spacing: -0.05em;
  color: #304534;
  font-variant-numeric: tabular-nums;
}
.tomato {
  width: 74px;
  image-rendering: pixelated;
}
.focuscard .btn {
  width: 100%;
  margin-top: 12px;
}
.scheduleitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  width: 100%;
}
.scheduleitem .tile {
  width: 32px;
  height: 34px;
  border-radius: 6px;
}
.scheduleitem b {
  display: block;
  font-size: 13px;
}
.scheduleitem small {
  font-size: 11px;
}
.scheduleitem time {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.meter {
  height: 6px;
  border-radius: 4px;
  background: var(--soft);
  overflow: hidden;
  margin: 10px 0 4px;
}
.meter i {
  display: block;
  background: #73986b;
  height: 100%;
}
.empty {
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}
.gridcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 14px;
}
.gridcards .card {
  text-align: left;
}
.subline {
  margin: 5px 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.board {
  display: flex;
  gap: 12px;
  overflow: auto;
}
.board > section {
  min-width: 210px;
  flex: 1;
}
.calgrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calday {
  min-height: 96px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 5px;
  font-size: 12px;
}
.calday button {
  width: 100%;
  text-align: left;
  margin: 3px 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calheader {
  padding: 5px;
  font-size: 12px;
}
.board .taskrow {
  display: block;
}
.board .check {
  float: right;
}
.board .due {
  display: block;
}
.scheduleitem .grow {
  text-align: left;
}
.line {
  border-top: 1px solid var(--line);
  margin: 12px 0;
}
.hide {
  display: none !important;
}
.collapsed {
  grid-template-columns: 68px 1fr;
}
.collapsed .rail {
  padding: 20px 8px;
}
.collapsed .rail .label,
.collapsed .rail .sectionlabel,
.collapsed .rail .profile div,
.collapsed .rail .profile > svg,
.collapsed .brand span {
  display: none;
}
.collapsed .rail .nav {
  justify-content: center;
}
.collapsed .rail .brand {
  margin-bottom: 20px;
}
.collapsed .rail .profile {
  justify-content: center;
}
.collapsed .rail .nav .classdot {
  margin: 5px;
}
.collapsed .rail .classnav {
  margin-top: 5px;
}
dialog {
  width: min(510px, 92vw);
  max-height: 87dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 22px 90px #17281933;
}
dialog::backdrop {
  background: #17261d65;
}
.modalhead {
  padding: 18px 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 1;
}
.modalbody {
  padding: 20px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 550;
}
.wide {
  grid-column: 1/-1;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 9px;
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 65px;
}
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.content select,
.content input {
  width: auto;
  max-width: 100%;
}
.content .field input,
.content .field select {
  width: 100%;
}
.dialoglist {
  display: grid;
  gap: 5px;
}
.dialoglist > button {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  border-radius: 6px;
  padding: 10px;
}
.dialoglist > button:hover {
  background: var(--soft);
}
#toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #253d2d;
  color: white;
  border-radius: 7px;
  padding: 10px 16px;
  display: none;
  z-index: 5;
  font-size: 13px;
}
#toast.show {
  display: block;
}
#toast button {
  color: white;
  text-decoration: underline;
}
.loading {
  padding: 30px;
}
.sectionStack {
  display: grid;
  gap: 12px;
}
.inlinecheck {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.mnav {
  display: none;
}
.dashgrid.single {
  grid-template-columns: 1fr;
}
.quick {
  white-space: nowrap;
}
details {
  margin: 10px 0;
}
summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 550;
}
a {
  color: var(--brand);
}
.progressrow {
  margin: 12px 0;
}
.notice {
  padding: 12px;
  background: var(--soft);
  border-radius: 7px;
  margin-bottom: 14px;
}
.board h3 {
  white-space: nowrap;
}
.dismiss {
  float: right;
}
.feedurl {
  overflow-wrap: anywhere;
}
.nowrap {
  white-space: nowrap;
}
.card li {
  margin: 5px 0;
}
.mobileveil {
  display: none;
}
@media (min-width: 1500px) {
  .content {
    padding: 30px 45px;
  }
  .hero {
    min-height: 180px;
  }
  .stat {
    padding: 20px;
  }
  .card {
    padding: 22px 24px;
  }
  .rail {
    padding-left: 18px;
    padding-right: 18px;
  }
  .shell {
    grid-template-columns: 240px 1fr;
  }
  .shell.collapsed {
    grid-template-columns: 68px 1fr;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .content {
    padding: 22px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .dashgrid {
    grid-template-columns: minmax(0, 1.6fr) minmax(215px, 1fr);
  }
  .card {
    padding: 15px;
  }
  .stat {
    padding: 12px;
    gap: 9px;
  }
  .stat .tile {
    width: 30px;
    height: 32px;
  }
  .collapsed {
    grid-template-columns: 68px 1fr;
  }
}
@media (max-width: 800px) {
  .shell,
  .shell.collapsed {
    display: block;
  }
  .rail {
    position: fixed;
    z-index: 4;
    top: 0;
    left: 0;
    width: 215px;
    transform: translateX(-101%);
  }
  .rail.open {
    transform: none;
  }
  .mobileveil.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 3;
    background: #182c2359;
  }
  .topbar {
    height: 51px;
  }
  .content {
    padding: 17px;
  }
  .pagehead {
    margin-bottom: 14px;
  }
  .hero {
    min-height: 136px;
  }
  .mnav {
    display: inline-grid;
  }
  .dashgrid {
    grid-template-columns: minmax(0, 1.6fr) minmax(195px, 1fr);
  }
  .topbar .key {
    display: none;
  }
  .stat {
    gap: 8px;
  }
  .hero h2 {
    font-size: 33px;
  }
}
@media (max-width: 650px) {
  .content {
    padding: 14px 12px 25px;
  }
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }
  .dashgrid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 10px 0;
  }
  .stack,
  .dashgrid {
    gap: 10px;
  }
  .card {
    padding: 15px;
  }
  .hero {
    padding: 17px;
    min-height: 132px;
    background-position: 68% center;
  }
  .hero h2,
  .hero p,
  .hero .eyebrow {
    background: #e1edcfeb;
    border-radius: 3px;
  }
  .hero h2 {
    font-size: 31px;
  }
  .hero p {
    font-size: 12px;
    max-width: 65%;
  }
  .hero .eyebrow {
    font-size: 10px;
  }
  .pagehead h1 {
    font-size: 29px;
  }
  .pagehead .btn {
    padding: 7px 9px;
  }
  .search span,
  .customtext {
    display: none;
  }
  .fields {
    gap: 10px;
  }
  .calday {
    min-height: 62px;
    padding: 2px;
  }
  .calday .tag {
    font-size: 9px;
  }
  .calday button {
    white-space: nowrap;
  }
  .taskrow {
    gap: 8px;
  }
  .week {
    gap: 1px;
  }
  .stat strong {
    font-size: 23px;
  }
  .taskmeta {
    gap: 5px;
  }
  .chip {
    padding: 5px 7px;
  }
  .topbar .search {
    padding: 7px;
  }
  .actions {
    gap: 5px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background-color 0.14s,
      filter 0.14s;
  }
  .rail {
    transition: transform 0.16s;
  }
}
