:root {
  color-scheme: light;
  --ink: #25324b;
  --muted: #63718a;
  --blue: #4965ce;
  --blue-dark: #344cad;
  --soft-blue: #eaf0ff;
  --lavender: #efecfc;
  --paper: #fff;
  --line: #e4e9f2;
  --page: #f4f6fb;
  --series-1: #2a78d6;
  --surface-1: #fcfcfb;
  --text-primary: #25324b;
  --text-secondary: #63718a;
  --gridline: #e4e9f2;
  --good: #16705c;
  --critical: #ae334a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: transparent;
  color: inherit;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  outline: 3px solid #4965ce22;
}
a {
  color: var(--blue);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.35;
}
h1 {
  font-size: 36px;
  letter-spacing: -1px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 18px;
}
p + h2,
h2 + p,
h3 + p {
  margin-top: 10px;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.small,
small {
  font-size: 12px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 19px;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: 1px;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px 12px 12px 3px;
  color: white;
  background: var(--blue);
  font-size: 19px;
  font-family: "Kaiti SC", STKaiti, serif;
}
.primary,
.secondary {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary {
  background: var(--blue);
  color: white;
}
.primary:hover {
  background: var(--blue-dark);
}
.primary:active,
.secondary:active {
  transform: translateY(1px);
}
.secondary {
  border: 1px solid var(--line);
  background: var(--paper);
}
.secondary:hover {
  background: var(--soft-blue);
}
.full {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.text-button {
  color: var(--muted);
  padding: 8px 4px;
  font-size: 13px;
}
.text-button:hover {
  color: var(--blue);
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
input,
textarea,
select {
  color: var(--ink);
  border: 1px solid #d9e0eb;
  background: #fff;
  border-radius: 9px;
  padding: 11px 12px;
  max-width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #8590a3;
}
textarea {
  resize: vertical;
  width: 100%;
  line-height: 1.9;
}
input[type="date"] {
  min-width: 145px;
}
.segmented {
  display: flex;
  border-radius: 10px;
  background: #edf0f6;
  padding: 4px;
  gap: 4px;
}
.segmented button {
  flex: 1;
  border-radius: 7px;
  font-size: 13px;
  padding: 8px 15px;
  white-space: nowrap;
  color: var(--muted);
}
.segmented button.active {
  background: white;
  box-shadow: 0 2px 6px #2635500a;
  color: var(--ink);
  font-weight: 650;
}
.error {
  color: var(--critical);
  font-size: 13px;
  min-height: 22px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.error:empty {
  min-height: 0;
  margin: 0;
}
.loading {
  padding: 30vh 20px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 24px #25324b22;
  max-width: calc(100vw - 32px);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.auth-story {
  position: relative;
  background: #eaf0ff;
  min-height: 100vh;
  padding: 44px clamp(28px, 6vw, 90px);
  overflow: hidden;
}
.story-copy {
  margin-top: 70px;
}
.story-copy h1 {
  font-size: clamp(42px, 4.4vw, 64px);
  font-family: "Kaiti SC", STKaiti, "Songti SC", serif;
  font-weight: 650;
  line-height: 1.27;
  letter-spacing: 1px;
}
.story-copy h1 span {
  color: var(--blue);
}
.story-copy > p:last-child {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.sample-note {
  background: #fff;
  max-width: 330px;
  padding: 25px 27px 34px;
  margin-top: 42px;
  border-radius: 3px;
  box-shadow: 0 12px 32px #4965ce0c;
  transform: rotate(-3deg);
  position: relative;
}
.sample-note:before {
  content: "";
  position: absolute;
  top: -10px;
  left: 40%;
  width: 72px;
  height: 23px;
  background: #c8d2fa99;
  transform: rotate(6deg);
}
.sample-note p {
  margin-top: 13px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.note-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
}
.sample-check,
.sample-circle {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  border-radius: 5px;
  background: var(--blue);
  color: white;
  font-size: 11px;
}
.sample-circle {
  border: 1px solid #cdd5e6;
  background: white;
}
.note-stamp {
  display: block;
  text-align: right;
  margin-top: 20px;
  font-family: "Kaiti SC", STKaiti, serif;
  font-size: 20px;
  color: var(--blue);
}
.story-footer {
  margin-top: 46px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}
.auth-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 30px;
}
.auth-form-wrap {
  max-width: 360px;
  width: 100%;
}
.auth-form-wrap h2 {
  font-size: 28px;
}
.auth-form-wrap > .muted {
  font-size: 14px;
}
.auth-form-wrap .segmented {
  margin: 32px 0 26px;
}
.auth-form-wrap label {
  margin-top: 17px;
}
.auth-form-wrap input {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.auth-form-wrap .primary {
  margin-top: 24px;
}
.auth-footnote {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 24px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: #ffffffd9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  gap: 20px;
}
.user-menu {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 13px;
}
.workspace {
  max-width: 1160px;
  padding: 46px 24px 0;
  margin: auto;
}
.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}
.page-intro h1 {
  font-size: 32px;
}
.page-intro .muted {
  margin-top: 12px;
  font-size: 13px;
}
.points-badge {
  background: var(--lavender);
  border-radius: 18px;
  min-width: 174px;
  text-align: center;
  padding: 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.points-badge > span {
  font-size: 11px;
  color: #635b82;
  letter-spacing: 1px;
}
.points-badge strong {
  font-size: 37px;
  line-height: 1.3;
  font-weight: 700;
  color: #554f92;
}
.points-badge small {
  font-size: 10px;
  color: #635b82;
}
.main-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.main-tabs button {
  padding: 12px 3px 15px;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 3px solid transparent;
}
.main-tabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 650;
}
.task-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 26px;
  align-items: start;
}
.paper {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.section-heading .eyebrow {
  margin-bottom: 7px;
}
.section-heading .primary {
  font-size: 12px;
  padding: 10px 16px;
}
.section-heading h2 {
  font-size: 21px;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.task-filters {
  display: flex;
  gap: 12px;
}
.task-filters button {
  font-size: 12px;
  padding: 6px 0;
  white-space: nowrap;
  color: var(--muted);
}
.task-filters button.active {
  color: var(--blue);
  font-weight: 650;
}
.task-filters span {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--soft-blue);
  margin-left: 3px;
}
.filter-row select {
  font-size: 12px;
  padding: 6px 9px;
  max-width: 130px;
}
.task-row {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid #edf0f6;
  align-items: flex-start;
}
.task-row:last-child {
  border-bottom: 0;
}
.task-check {
  width: 23px;
  height: 23px;
  min-width: 23px;
  padding: 0;
  border: 1.5px solid #b9c5db;
  border-radius: 7px;
  display: grid;
  place-items: center;
  margin-top: 3px;
  line-height: 1;
  color: transparent;
}
.task-check:hover {
  border-color: var(--blue);
  background: var(--soft-blue);
}
.task-row.done .task-check {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.task-main {
  min-width: 0;
  flex: 1;
}
.task-title {
  font-size: 14px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.task-row.done .task-title {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: #b7c2d5;
}
.task-meta {
  margin-top: 7px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
}
.subject-tag {
  background: #eef2fb;
  color: #52658d;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10px;
}
.task-meta .overdue {
  color: var(--critical);
}
.task-reward {
  font-size: 11px;
  color: var(--muted);
  padding-top: 4px;
  white-space: nowrap;
}
.task-delete {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 7px;
  padding: 0;
}
.task-delete:hover {
  color: var(--critical);
}
.empty-state {
  padding: 55px 16px;
  text-align: center;
}
.empty-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 23px;
  margin: 0 auto 18px;
}
.empty-state h3 {
  font-size: 17px;
}
.empty-state p {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.empty-state button {
  margin-top: 22px;
}
.side-note {
  border-radius: 16px;
  background: var(--lavender);
  padding: 28px 26px;
  position: relative;
}
.side-note h3 {
  margin-top: 15px;
  font-size: 21px;
  line-height: 1.6;
}
.side-note > p {
  font-size: 12px;
  color: #696381;
  line-height: 1.9;
}
.side-note hr {
  border: 0;
  border-top: 1px solid #dcd6ef;
  margin: 24px 0;
}
.side-note > p.small {
  font-size: 11px;
}
.growth-drawing {
  height: 150px;
}
.growth-drawing svg {
  display: block;
  width: 160px;
  margin: auto;
}
.growth-drawing path {
  fill: none;
  stroke: #746ab4;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.growth-drawing .leaf {
  fill: #d5cfef;
}
.growth-drawing .second {
  fill: #b9b0de;
}
.import-paper {
  max-width: 860px;
  margin: auto;
}
.import-paper label:not(:first-child) {
  margin-top: 22px;
}
.import-paper #assignment-date {
  margin-bottom: 22px;
  display: block;
}
.form-actions {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.form-actions p {
  max-width: 440px;
}
.manual-divider {
  margin: 28px 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.notice {
  padding: 15px 18px;
  border-radius: 9px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 13px;
  margin-top: 16px;
}
.draft-row {
  background: var(--page);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.draft-row textarea {
  background: white;
  min-height: 70px;
}
.draft-fields {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 10px;
}
.draft-fields label {
  font-size: 11px;
  margin: 0 !important;
}
.draft-fields input {
  width: 100%;
  margin-top: 5px;
  font-size: 12px;
  min-width: 0;
}
.draft-fields button {
  font-size: 12px;
  padding: 10px 0;
  color: var(--muted);
}
.draft-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.report-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-bottom: 20px;
}
.report-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.report-controls input {
  font-size: 12px;
  padding: 9px;
}
.report-controls .secondary {
  font-size: 12px;
  padding: 9px 12px;
}
.report-controls .segmented button {
  padding: 7px 12px;
}
.report-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.stat {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.stat p {
  font-size: 12px;
  color: var(--muted);
}
.stat strong {
  font-size: 31px;
  display: block;
  margin-top: 8px;
  font-weight: 650;
  line-height: 1.4;
}
.stat small {
  color: var(--muted);
  font-size: 10px;
}
.report-paper {
  margin: 20px 0;
  background: var(--surface-1);
}
.report-paper h3 {
  margin-bottom: 12px;
}
.chart-wrap {
  overflow-x: auto;
}
.chart-wrap svg {
  display: block;
  width: 100%;
  min-width: 340px;
  max-height: 280px;
}
.chart-bar {
  fill: var(--series-1);
}
.chart-bar:hover {
  fill: #184f95;
}
.chart-grid {
  stroke: var(--gridline);
  stroke-width: 1;
}
.chart-label {
  fill: var(--text-secondary);
  font-size: 11px;
}
.chart-value {
  fill: var(--text-primary);
  font-size: 12px;
}
.chart-hit {
  fill: transparent;
  pointer-events: all;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th,
td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
th {
  color: var(--muted);
  font-weight: 500;
}
td:not(:first-child),
th:not(:first-child) {
  text-align: right;
}
.data-details {
  margin-top: 12px;
}
.data-details summary {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.report-explanation {
  margin-top: 20px;
}
.app-footer {
  margin-top: 55px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
#draft-section {
  scroll-margin-top: 24px;
}
@media (max-width: 1000px) {
  .auth-story {
    padding: 35px;
  }
  .task-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 18px;
  }
  .side-note {
    padding: 23px 20px;
  }
  .paper {
    padding: 23px;
  }
  .report-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .report-controls {
    width: 100%;
  }
}
@media (max-width: 700px) {
  .auth-layout {
    display: block;
  }
  .auth-story {
    min-height: auto;
    padding: 24px;
  }
  .auth-story .brand {
    font-size: 17px;
  }
  .story-copy {
    margin-top: 26px;
  }
  .story-copy h1 {
    font-size: 35px;
    line-height: 1.35;
  }
  .story-copy h1 br:nth-of-type(2) {
    display: none;
  }
  .story-copy > p:last-child {
    font-size: 12px;
    margin-top: 12px;
  }
  .sample-note,
  .story-footer {
    display: none;
  }
  .auth-card {
    padding: 35px 24px 45px;
  }
  .auth-form-wrap {
    max-width: 430px;
  }
  .auth-form-wrap h2 {
    font-size: 23px;
  }
  .auth-form-wrap > .eyebrow {
    display: none;
  }
  .auth-form-wrap .segmented {
    margin: 24px 0 20px;
  }
  .topbar {
    height: 66px;
    padding: 0 20px;
  }
  .topbar .brand {
    font-size: 16px;
    gap: 8px;
  }
  .brand-mark {
    width: 31px;
    height: 31px;
    font-size: 17px;
  }
  .user-menu {
    gap: 13px;
    font-size: 11px;
  }
  .workspace {
    padding: 28px 16px 0;
  }
  .page-intro {
    gap: 12px;
    margin-bottom: 24px;
    align-items: flex-start;
  }
  .page-intro h1 {
    font-size: 23px;
    letter-spacing: -0.6px;
  }
  .page-intro .eyebrow {
    font-size: 10px;
    letter-spacing: 0.4px;
    margin-bottom: 9px;
  }
  .page-intro .muted {
    font-size: 11px;
    max-width: 200px;
  }
  .points-badge {
    min-width: 100px;
    padding: 13px 9px;
    border-radius: 12px;
  }
  .points-badge > span {
    font-size: 9px;
    letter-spacing: 0;
  }
  .points-badge strong {
    font-size: 28px;
  }
  .points-badge small {
    font-size: 8px;
  }
  .main-tabs {
    gap: 28px;
    margin-bottom: 20px;
  }
  .main-tabs button {
    font-size: 13px;
    padding-bottom: 12px;
  }
  .task-layout {
    display: block;
  }
  .side-note {
    display: none;
  }
  .paper {
    padding: 20px 16px;
    border-radius: 12px;
  }
  .section-heading {
    gap: 12px;
    margin-bottom: 20px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading .primary {
    padding: 9px 10px;
    font-size: 11px;
  }
  .section-heading .eyebrow {
    font-size: 9px;
  }
  .task-row {
    gap: 11px;
    padding: 17px 0;
  }
  .task-title {
    font-size: 13px;
  }
  .task-reward {
    font-size: 10px;
  }
  .filter-row {
    gap: 8px;
  }
  .task-filters {
    gap: 12px;
  }
  .task-filters button {
    font-size: 11px;
  }
  .filter-row select {
    max-width: 105px;
    font-size: 11px;
  }
  .form-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .form-actions .primary {
    width: 100%;
  }
  .draft-fields {
    grid-template-columns: 1fr 1.3fr;
    gap: 9px;
  }
  .draft-fields input {
    padding: 9px 7px;
  }
  .draft-fields button {
    justify-self: end;
  }
  .draft-footer .primary,
  .draft-footer .secondary {
    padding: 11px 12px;
    font-size: 12px;
  }
  .report-toolbar h2 {
    font-size: 21px;
  }
  .report-controls {
    gap: 8px;
  }
  .report-controls .segmented {
    flex: 1;
  }
  .report-controls .segmented button {
    padding: 7px 9px;
  }
  .report-controls input {
    min-width: 130px;
    width: 135px;
  }
  .report-controls > .secondary {
    margin-left: auto;
  }
  .report-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 28px;
  }
  .stat p {
    font-size: 11px;
  }
  .stat small {
    font-size: 9px;
  }
  .report-paper {
    padding: 20px 14px;
  }
  .chart-wrap svg {
    min-width: 300px;
  }
  .manual-divider .secondary {
    padding: 9px 12px;
  }
  .empty-state {
    padding: 40px 8px;
  }
  .import-paper .section-heading p {
    font-size: 11px;
  }
  .app-footer {
    margin-top: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .chart-bar {
    fill: #555;
  }
  .topbar,
  .main-tabs,
  .report-controls,
  #tasks-view,
  #import-view,
  .app-footer {
    display: none !important;
  }
  #reports-view {
    display: block !important;
  }
  .workspace {
    padding: 0;
  }
  .paper {
    break-inside: avoid;
  }
  details {
    display: block;
  }
  details > summary {
    display: none;
  }
  details .table-wrap {
    display: block;
  }
}
