:root {
  --ink: #1f2926;
  --ink-soft: #5f6a65;
  --paper: #f6f3ea;
  --card: #fffdf8;
  --line: #dfe2d8;
  --line-strong: #cbd1c5;
  --green: #1e6b54;
  --green-deep: #174f40;
  --green-soft: #e8f2ed;
  --lime: #dbe9a8;
  --orange: #df7c45;
  --orange-soft: #fbede4;
  --blue: #4d7ac7;
  --blue-soft: #e9effa;
  --pink: #c2657d;
  --pink-soft: #faeaf0;
  --violet: #7968b5;
  --violet-soft: #eeebfa;
  --danger: #b64b45;
  --shadow: 0 20px 60px rgba(43, 57, 49, 0.09);
  --shadow-soft: 0 8px 24px rgba(43, 57, 49, 0.07);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: light;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(219, 233, 168, 0.32), transparent 26rem),
    radial-gradient(circle at 92% 10%, rgba(199, 222, 231, 0.34), transparent 25rem),
    var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

/* 键盘操作时给出清晰的焦点提示 */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px 13px 13px 4px;
  background: var(--green-deep);
  color: #f8f6eb;
  font-family: "Songti SC", "STSong", serif;
  font-size: 23px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-mark--large {
  width: 58px;
  height: 58px;
  font-size: 30px;
  animation: breathe 1.5s ease-in-out infinite alternate;
}

@keyframes breathe {
  to { transform: translateY(-5px); }
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.06em;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
}

.auth-story {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 42px clamp(34px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f7f4e9;
  background:
    linear-gradient(145deg, rgba(10, 47, 38, 0.86), rgba(20, 75, 59, 0.94)),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px),
    #164d3e;
}

.auth-story::before,
.auth-story::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.auth-story::before {
  width: 460px;
  height: 460px;
  right: -170px;
  top: -170px;
  border: 1px solid rgba(219, 233, 168, 0.2);
  box-shadow: 0 0 0 70px rgba(219, 233, 168, 0.035), 0 0 0 150px rgba(219, 233, 168, 0.025);
}

.auth-story::after {
  width: 260px;
  height: 260px;
  left: -115px;
  bottom: 60px;
  background: rgba(219, 233, 168, 0.05);
  filter: blur(2px);
}

.story-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.auth-story .brand-mark {
  background: var(--lime);
  color: var(--green-deep);
}

.story-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 10vh 0 4vh;
}

.story-copy .eyebrow {
  color: var(--lime);
}

.story-copy h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(42px, 5.1vw, 78px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.story-lead {
  max-width: 590px;
  margin: 28px 0 0;
  color: rgba(247, 244, 233, 0.7);
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.8;
}

.mini-calendar {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: 20px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.13);
  backdrop-filter: blur(14px);
}

.mini-calendar__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.mini-calendar__top span:first-child {
  color: white;
  font-weight: 700;
}

.mini-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.mini-week > div {
  min-height: 92px;
  padding: 11px 6px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(4, 31, 24, 0.18);
}

.mini-week > div.is-today {
  background: var(--lime);
  color: var(--green-deep);
}

.mini-week b {
  font-size: 12px;
}

.mini-week small {
  margin-top: auto;
  font-size: 10px;
  white-space: nowrap;
}

.mini-week .mini-rest {
  color: rgba(255, 255, 255, 0.35);
}

.mini-week .is-today .mini-rest {
  color: rgba(23, 79, 64, 0.6);
}

.mini-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.mini-dot--blue { background: #8fb5f2; }
.mini-dot--green { background: #a7d8bd; }
.mini-dot--orange { background: var(--orange); }
.mini-dot--pink { background: #e9a0b4; }
.is-today .mini-dot--orange { background: var(--green-deep); }

.story-note {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.47);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(255, 253, 248, 0.68);
}

.auth-card {
  width: min(470px, 100%);
  padding: clamp(28px, 4.2vw, 52px);
  border: 1px solid rgba(203, 209, 197, 0.72);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: flex;
  gap: 22px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  position: relative;
  padding: 0 0 13px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 9px;
  background: transparent;
}

.auth-tab.is-active {
  color: var(--green-deep);
}

.auth-tab.is-active::after {
  background: var(--green);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.form-hint {
  margin: 9px 0 7px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.auth-form label,
.field-block {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.auth-form input,
.auth-form select,
.field-block input,
.field-block select,
.field-block textarea,
.search-box input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fffefa;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input,
.auth-form select,
.field-block input,
.field-block select {
  height: 46px;
  padding: 0 13px;
}

.field-block textarea {
  min-height: 86px;
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.65;
}

.auth-form input:focus,
.auth-form select:focus,
.field-block input:focus,
.field-block select:focus,
.field-block textarea:focus,
.search-box input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 107, 84, 0.11);
}

.form-error {
  margin: -4px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #faeae7;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.6;
}

.button {
  min-height: 43px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.button--primary {
  background: var(--green-deep);
  color: #fffdf7;
  box-shadow: 0 8px 18px rgba(23, 79, 64, 0.17);
}

.button--primary:hover {
  background: #103f33;
  box-shadow: 0 11px 24px rgba(23, 79, 64, 0.22);
}

.button--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button--wide {
  width: 100%;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.text-button.is-centered {
  justify-self: center;
}

.privacy-note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #7c837f;
  font-size: 10.5px;
  line-height: 1.7;
}

.app-shell {
  min-height: 100vh;
}

.app-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 70px;
  padding: 0 clamp(18px, 3.2vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(203, 209, 197, 0.76);
  background: rgba(246, 243, 234, 0.91);
  backdrop-filter: blur(18px);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.app-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px 11px 11px 3px;
  font-size: 20px;
}

.app-brand div:last-child {
  display: grid;
  gap: 1px;
}

.app-brand strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.app-brand span {
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.view-tabs {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.72);
}

.view-tab {
  min-height: 34px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.view-tab.is-active {
  background: var(--card);
  color: var(--green-deep);
  box-shadow: 0 2px 10px rgba(43, 57, 49, 0.09);
}

.nav-icon {
  font-size: 15px;
}

.account-area {
  position: relative;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 11px;
}

.account-copy {
  display: grid;
  justify-items: end;
  gap: 1px;
}

.account-copy strong {
  font-size: 12px;
}

.account-copy span {
  max-width: 160px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--green-deep);
  color: white;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.account-menu {
  position: absolute;
  top: 46px;
  right: 0;
  min-width: 128px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.account-menu button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
}

.account-menu button:hover {
  background: var(--green-soft);
}

.main-content {
  width: min(1660px, calc(100% - clamp(24px, 5vw, 80px)));
  margin: 0 auto;
  padding: 38px 0 64px;
}

.view-panel {
  animation: enter 0.28s ease-out both;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(7px); }
}

.page-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-heading h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(30px, 3.25vw, 46px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.heading-note {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.month-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.72);
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--green-soft);
}

.month-stepper .icon-button {
  border-radius: 10px;
}

.today-button {
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.summary-strip {
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 5px 20px rgba(43, 57, 49, 0.025);
}

.summary-item {
  min-height: 94px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-right: 1px solid var(--line);
}

.summary-item:last-child {
  border-right: 0;
}

.summary-copy {
  display: grid;
  gap: 7px;
}

.summary-copy span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
}

.summary-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 1;
}

.summary-copy small {
  color: var(--ink-soft);
  font-size: 9px;
}

.summary-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 16px;
  font-weight: 800;
}

.summary-item:nth-child(2) .summary-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.summary-item:nth-child(3) .summary-icon {
  background: #eef2df;
  color: #65812b;
}

.summary-item:nth-child(4) .summary-icon {
  background: var(--orange-soft);
  color: var(--orange);
}

.month-context {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.month-context h2 {
  margin: 0;
  font-size: 16px;
}

.month-context p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--ink-soft);
  font-size: 10px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-dot--todo { background: #aab0aa; }
.status-dot--doing { background: var(--blue); }
.status-dot--done { background: var(--green); }

.months-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.calendar-card {
  overflow: visible;
  padding: 0 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, 0.8);
  box-shadow: var(--shadow-soft);
}

.calendar-card__head {
  min-height: 88px;
  padding: 22px 8px 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.calendar-year {
  margin: 0 0 5px;
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.calendar-title {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.calendar-count {
  margin-top: 4px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
}

.weekday-header {
  position: sticky;
  z-index: 10;
  top: 69px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 5px 14px rgba(43, 57, 49, 0.04);
  backdrop-filter: blur(14px);
}

.weekday-header span {
  height: 36px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 750;
}

.weekday-header span:last-child {
  border-right: 0;
}

.weekday-header .weekend {
  color: #a06456;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.calendar-day {
  position: relative;
  min-width: 0;
  min-height: 92px;
  padding: 9px 7px 7px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
  text-align: left;
  cursor: pointer;
  transition: background 0.16s;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.calendar-day:hover {
  background: var(--green-soft);
}

.calendar-day.is-weekend {
  background: rgba(249, 245, 235, 0.66);
}

.calendar-day.is-outside {
  background: rgba(242, 240, 233, 0.32);
  color: #b2b6b1;
}

.calendar-day.is-today {
  background: rgba(219, 233, 168, 0.32);
}

.calendar-day.is-selected {
  box-shadow: inset 0 0 0 2px var(--green);
}

.day-number {
  width: 23px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
}

.is-outside .day-number {
  color: #b7bbb5;
}

.is-today .day-number {
  background: var(--green-deep);
  color: white;
}

.day-tasks {
  margin-top: 5px;
  display: grid;
  gap: 3px;
}

.task-pill {
  width: 100%;
  min-width: 0;
  padding: 3px 4px 3px 6px;
  display: block;
  overflow: hidden;
  border-left: 2px solid;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-pill.tone-blue { border-color: var(--blue); background: var(--blue-soft); color: #375d9f; }
.task-pill.tone-green { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.task-pill.tone-orange { border-color: var(--orange); background: var(--orange-soft); color: #a45c34; }
.task-pill.tone-pink { border-color: var(--pink); background: var(--pink-soft); color: #9a5064; }
.task-pill.tone-violet { border-color: var(--violet); background: var(--violet-soft); color: #6655a1; }

.task-pill.is-done {
  opacity: 0.62;
  text-decoration: line-through;
}

.task-more {
  padding-left: 4px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
}

.segmented {
  padding: 4px;
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.7);
}

.segment {
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.segment.is-active {
  background: var(--green-deep);
  color: white;
}

.team-panel-head {
  margin: 30px 0 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.team-panel-head h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 21px;
  font-weight: 600;
}

.team-panel-head p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.search-box {
  position: relative;
  width: min(260px, 100%);
}

.search-box span {
  position: absolute;
  left: 12px;
  top: 50%;
  color: var(--ink-soft);
  transform: translateY(-50%);
}

.search-box input {
  height: 38px;
  padding: 0 12px 0 34px;
  font-size: 11px;
}

.teacher-progress-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.teacher-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 6px 18px rgba(43, 57, 49, 0.035);
}

.teacher-card__top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.teacher-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
}

.teacher-card:nth-child(2n) .teacher-avatar {
  background: var(--blue-soft);
  color: var(--blue);
}

.teacher-card:nth-child(3n) .teacher-avatar {
  background: var(--orange-soft);
  color: var(--orange);
}

.teacher-card__identity {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.teacher-card__identity strong {
  font-size: 14px;
}

.teacher-card__identity span {
  color: var(--ink-soft);
  font-size: 9px;
}

.teacher-rate {
  margin-left: auto;
  display: grid;
  justify-items: end;
  gap: 2px;
}

.teacher-rate strong {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.teacher-rate span {
  color: var(--ink-soft);
  font-size: 8px;
}

.progress-track {
  height: 6px;
  margin: 16px 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #ecece5;
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #72a56f);
  transition: width 0.5s ease;
}

.teacher-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.teacher-metric {
  padding: 9px 6px;
  display: grid;
  gap: 3px;
  border-radius: 9px;
  background: rgba(246, 243, 234, 0.72);
}

.teacher-metric strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}

.teacher-metric span {
  color: var(--ink-soft);
  font-size: 8px;
}

.teacher-next {
  min-height: 52px;
  margin-top: 12px;
  padding-top: 11px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.teacher-next-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.teacher-next-copy span {
  color: var(--ink-soft);
  font-size: 8px;
}

.teacher-next-copy strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-more-button {
  flex: 0 0 auto;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.empty-state {
  min-height: 280px;
  display: grid;
  place-content: center;
  justify-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-xl);
  text-align: center;
}

.empty-state__mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 24px;
}

.empty-state h3 {
  margin: 15px 0 5px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
}

.empty-state p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.drawer-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(24, 34, 30, 0.24);
  backdrop-filter: blur(2px);
}

.day-drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  padding: 28px 25px;
  overflow-y: auto;
  background: var(--card);
  box-shadow: -20px 0 70px rgba(30, 42, 36, 0.16);
  transform: translateX(104%);
  transition: transform 0.28s ease;
}

.day-drawer.is-open {
  transform: translateX(0);
}

.drawer-head,
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.drawer-head h2,
.dialog-head h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.drawer-summary {
  margin: 22px 0;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 10px;
  line-height: 1.65;
}

.day-task-list {
  display: grid;
  gap: 9px;
}

.drawer-task {
  padding: 13px;
  display: flex;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.task-check {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 10px;
  cursor: pointer;
}

.task-check.is-done {
  border-color: var(--green);
  background: var(--green);
}

.drawer-task__body {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}

.drawer-task__title-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.drawer-task__title-row strong {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.drawer-task__title-row strong.is-done {
  color: #89918c;
  text-decoration: line-through;
}

.task-status-label {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 8px;
  font-weight: 700;
}

.task-status-label.status-doing {
  background: var(--blue-soft);
  color: var(--blue);
}

.task-status-label.status-done {
  background: #e6ede0;
  color: #58713a;
}

.drawer-task__notes {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.task-actions {
  display: flex;
  gap: 9px;
}

.tiny-button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 8.5px;
  font-weight: 750;
  cursor: pointer;
}

.tiny-button.danger {
  color: var(--danger);
}

.drawer-empty {
  min-height: 210px;
  display: grid;
  place-content: center;
  justify-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 10px;
  line-height: 1.7;
}

.drawer-empty b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
}

.day-drawer > .button {
  margin-top: 18px;
}

.task-dialog,
.teacher-dialog {
  width: min(560px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(23, 38, 31, 0.23);
}

.teacher-dialog {
  width: min(700px, calc(100vw - 28px));
}

.task-dialog::backdrop,
.teacher-dialog::backdrop {
  background: rgba(24, 34, 30, 0.36);
  backdrop-filter: blur(3px);
}

.task-dialog form,
.teacher-dialog {
  padding: 26px;
}

.task-dialog form {
  display: grid;
  gap: 17px;
}

.dialog-head {
  margin-bottom: 3px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.form-row--three {
  grid-template-columns: 1fr 0.9fr 0.9fr;
}

.field-block small {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 500;
}

.dialog-actions {
  margin-top: 6px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
}

.dialog-spacer {
  flex: 1;
}

.danger-button {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.teacher-dialog-summary {
  margin: 20px 0 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.teacher-dialog-tasks {
  max-height: 52vh;
  overflow-y: auto;
  display: grid;
  gap: 8px;
}

.dialog-task {
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.dialog-task time {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
}

.dialog-task strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 28px;
  max-width: min(420px, calc(100vw - 30px));
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow-soft);
  font-size: 11px;
  transform: translateX(-50%);
}

@media (max-width: 1180px) {
  .auth-screen {
    grid-template-columns: 1fr 440px;
  }

  .story-copy h1 {
    font-size: clamp(38px, 5.3vw, 60px);
  }

  .months-grid {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: 100px;
  }

  .teacher-progress-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .auth-screen {
    display: block;
  }

  .auth-story {
    min-height: auto;
    padding: 28px 24px 34px;
  }

  .story-copy {
    padding: 54px 0 28px;
  }

  .story-copy h1 {
    font-size: clamp(38px, 11vw, 56px);
  }

  .mini-calendar,
  .story-note {
    display: none;
  }

  .auth-panel {
    padding: 24px 16px 42px;
  }

  .auth-card {
    padding: 27px 23px;
  }

  .app-header {
    height: auto;
    min-height: 68px;
    padding-top: 10px;
    padding-bottom: 10px;
    grid-template-columns: auto 1fr auto;
  }

  .view-tabs {
    justify-self: center;
  }

  .view-tab {
    padding: 0 11px;
  }

  .nav-icon {
    display: none;
  }

  .account-copy {
    display: none;
  }

  .main-content {
    padding-top: 28px;
  }

  .page-heading {
    align-items: flex-start;
  }

  .page-heading,
  .heading-actions {
    flex-wrap: wrap;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-item:nth-child(2) {
    border-right: 0;
  }

  .summary-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .weekday-header {
    top: 68px;
  }
}

/* In-workspace teaching center */
.teaching-center-trigger {
  width: 100%;
}

.teaching-center-trigger > svg {
  width: 12px;
  height: 12px;
  margin-left: auto;
  color: #99a8ad;
}

.teaching-center-trigger.is-active > svg {
  color: #0786b6;
}

.teaching-center-module-bar {
  position: sticky;
  z-index: 35;
  top: 108px;
  margin-bottom: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #dceaf0;
  border-radius: 15px;
  background:
    radial-gradient(circle at 92% 5%, rgba(139, 92, 246, 0.06), transparent 32%),
    linear-gradient(110deg, #eefaff, #fff 58%, #fff9fc);
  backdrop-filter: blur(14px);
}

.teaching-center-module-title p {
  margin: 0 0 3px;
  color: #66a2bb;
  font-family: var(--font-display);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.teaching-center-module-title h2 {
  margin: 0;
  color: #34474e;
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.teaching-center-module-title span {
  display: block;
  margin-top: 3px;
  color: #8b9a9f;
  font-size: 9px;
}

.teaching-center-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.teaching-center-tabs::-webkit-scrollbar {
  display: none;
}

.teaching-center-tabs button {
  height: 32px;
  padding: 0 12px;
  flex: 0 0 auto;
  border: 1px solid #dfe9eb;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.76);
  color: #748287;
  font-size: 9px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.teaching-center-tabs button:hover {
  border-color: #b8e2f2;
  color: #0a86b4;
}

.teaching-center-tabs button.is-active {
  border-color: #71c7eb;
  background: linear-gradient(135deg, #08a3df, #42c6ee);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 166, 255, 0.18);
}

.teaching-center-frame-shell {
  overflow: hidden;
  border: 1px solid #dfebee;
  border-radius: 18px;
  background: #f4f9fb;
  box-shadow: 0 6px 22px rgba(51, 83, 92, 0.045);
}

.teaching-center-frame-shell iframe {
  width: 100%;
  height: min(800px, calc(100vh - 170px));
  min-height: 640px;
  display: block;
  border: 0;
  background: transparent;
}

.calendar-rhythm-shell {
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 16px;
}

.calendar-rhythm-shell iframe {
  width: 100%;
  height: 280px;
  min-height: 0;
  display: block;
  border: 0;
  background: transparent;
  transition: height 0.18s ease;
}

@media (max-width: 860px) {
  .teaching-center-trigger {
    width: auto;
    padding: 0 10px;
  }

  .teaching-center-trigger > svg {
    display: none;
  }

  .teaching-center-module-bar {
    position: static;
    padding: 12px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .teaching-center-module-title span {
    display: none;
  }

  .teaching-center-tabs {
    margin-right: -12px;
    padding-right: 12px;
  }

  .teaching-center-frame-shell iframe {
    height: calc(100vh - 145px);
    min-height: 620px;
  }
}

@media (max-width: 620px) {
  .app-header {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .app-brand div:last-child {
    display: none;
  }

  .view-tab {
    padding: 0 9px;
    font-size: 10px;
  }

  .main-content {
    width: calc(100% - 18px);
  }

  .page-heading h1 {
    font-size: 32px;
  }

  .heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .heading-actions .button {
    margin-left: auto;
  }

  .summary-item {
    min-height: 82px;
    padding: 14px;
  }

  .summary-copy strong {
    font-size: 25px;
  }

  .summary-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .month-context {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-card {
    padding: 0 6px 6px;
    border-radius: 18px;
  }

  .calendar-card__head {
    padding: 17px 8px 13px;
  }

  .calendar-title {
    font-size: 20px;
  }

  .weekday-header {
    top: 68px;
  }

  .weekday-header span {
    height: 32px;
    font-size: 8px;
  }

  .calendar-day {
    min-height: 78px;
    padding: 6px 3px;
  }

  .day-number {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .task-pill {
    padding: 2px 2px 2px 3px;
    border-left-width: 1px;
    font-size: 0;
  }

  .task-pill::before {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    margin: 0 auto;
    border-radius: 50%;
    background: currentColor;
  }

  .task-more {
    text-align: center;
    font-size: 7px;
  }

  .team-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .teacher-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-dialog-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dialog-task {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .dialog-task .task-status-label {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .task-dialog form,
  .teacher-dialog {
    padding: 20px;
  }

  .dialog-actions {
    flex-wrap: wrap;
  }
}

/* Unified modern Chinese typography */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", sans-serif;
  --font-numeric: "SF Pro Display", "DIN Alternate", "Avenir Next", "Helvetica Neue",
    sans-serif;
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
}

.brand-mark,
.brand-symbol,
.app-brand strong,
.workspace-title h1,
.page-heading h1,
.page-heading h2,
.calendar-title,
.team-panel-head h2,
.drawer-head h2,
.dialog-head h2,
.empty-state h3,
.auth-form h2,
.story-copy h1 {
  font-family: var(--font-display);
}

.page-heading h1 {
  font-size: clamp(30px, 3.1vw, 40px);
  font-weight: 680;
  letter-spacing: -0.018em;
}

.page-heading h2 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.workspace-title h1 {
  font-weight: 720;
  letter-spacing: -0.015em;
}

.calendar-title {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.team-panel-head h2 {
  font-size: 19px;
  font-weight: 660;
  letter-spacing: -0.025em;
}

.drawer-head h2,
.dialog-head h2 {
  font-size: 24px;
  font-weight: 650;
}

.auth-form h2 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.story-copy h1 {
  font-weight: 650;
  letter-spacing: -0.045em;
}

.summary-copy strong,
.summary-icon,
.calendar-count,
.teacher-rate strong,
.teacher-metric strong,
.dialog-task time {
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
}

.summary-copy strong {
  font-weight: 620;
  letter-spacing: -0.025em;
}

.teacher-rate strong {
  font-weight: 620;
}

.day-number {
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
}

.eyebrow,
.calendar-year,
.sidebar-label,
.workspace-title p {
  font-family: var(--font-display);
}

.app-brand strong,
.sidebar-nav .view-tab,
.button,
.summary-copy span,
.teacher-card__identity strong,
.task-pill {
  letter-spacing: 0.005em;
}

/* Live daily-task editor in the left rail */
.sidebar-day-panel {
  min-height: 300px;
  margin: 20px 3px 16px;
  padding: 15px 13px 13px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #f0dfcc;
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 249, 242, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 5px 16px rgba(102, 78, 48, 0.035);
}

.sidebar-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-day-kicker {
  margin: 0 0 4px;
  color: #c08753;
  font-family: var(--font-display);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.sidebar-day-head h2 {
  margin: 0;
  color: #39342e;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.sidebar-today-button {
  height: 25px;
  padding: 0 8px;
  border: 1px solid #f0d4b7;
  border-radius: 7px;
  background: #fff;
  color: #c27428;
  font-size: 8.5px;
  font-weight: 700;
  cursor: pointer;
}

.sidebar-today-button:hover {
  background: #fff2e4;
}

.sidebar-date-switcher {
  height: 30px;
  margin: 11px 0 9px;
  padding: 0 4px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  border: 1px solid #eee6dc;
  border-radius: 8px;
  background: #fff;
}

.sidebar-date-switcher span {
  overflow: hidden;
  color: #6f6961;
  font-size: 9.5px;
  font-weight: 650;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-day-arrow {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9d968d;
  font-size: 11px;
  cursor: pointer;
}

.sidebar-day-arrow:hover {
  background: #fff3e6;
  color: #c27428;
}

.sidebar-day-progress {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a29b92;
  font-size: 8px;
}

.sidebar-day-progress strong {
  color: #c4772b;
  font-family: var(--font-numeric);
  font-size: 9px;
  font-weight: 700;
}

.sidebar-day-list {
  min-height: 98px;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ead9c8 transparent;
}

.sidebar-day-list::-webkit-scrollbar {
  width: 4px;
}

.sidebar-day-list::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: #ead9c8;
}

.sidebar-day-task {
  padding: 8px 2px 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid #f2ece4;
}

.sidebar-day-task:last-child {
  border-bottom: 0;
}

.sidebar-task-check {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 1px solid #d9d2c8;
  border-radius: 50%;
  background: #fff;
  color: white;
  font-size: 8px;
  cursor: pointer;
}

.sidebar-task-check.is-done {
  border-color: #e28b35;
  background: #ed963f;
}

.sidebar-day-task__body {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.sidebar-day-task__body strong {
  overflow: hidden;
  color: #514b44;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-day-task__body strong.is-done {
  color: #aaa39a;
  text-decoration: line-through;
}

.sidebar-day-task__body span {
  color: #aaa39a;
  font-size: 7.5px;
}

.sidebar-day-empty {
  min-height: 102px;
  padding: 12px 4px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #a29b92;
  text-align: center;
  font-size: 8.5px;
  line-height: 1.6;
}

.sidebar-day-empty b {
  width: 31px;
  height: 31px;
  margin-bottom: 7px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff1e3;
  color: #dc8936;
  font-size: 14px;
}

.sidebar-quick-add {
  height: 32px;
  margin-top: 6px;
  padding: 0 4px 0 9px;
  display: flex;
  align-items: center;
  border: 1px solid #eadfd2;
  border-radius: 8px;
  background: #fff;
}

.quick-slot-toggle {
  height: 27px;
  margin-top: 8px;
  padding: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border: 1px solid #e8edeb;
  border-radius: 8px;
  background: #f7faf9;
}

.quick-slot-toggle button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8c9a9e;
  font-size: 8px;
  font-weight: 650;
  cursor: pointer;
}

.quick-slot-toggle button.is-active {
  background: #fff;
  color: #197f9e;
  box-shadow: 0 1px 5px rgba(49, 82, 91, 0.08);
}

.sidebar-quick-add:focus-within {
  border-color: #e4ad76;
  box-shadow: 0 0 0 2px rgba(237, 138, 47, 0.09);
}

.sidebar-quick-add input {
  min-width: 0;
  height: 100%;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #514b44;
  font-size: 9px;
}

.sidebar-quick-add input::placeholder {
  color: #b4ada4;
}

.sidebar-quick-add button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #fff0df;
  color: #cb792b;
  font-size: 14px;
  cursor: pointer;
}

.sidebar-detail-button {
  height: 29px;
  margin-top: 7px;
  border: 1px solid #f0d4b7;
  border-radius: 8px;
  background: #fff;
  color: #c77a2e;
  font-size: 8.5px;
  font-weight: 700;
  cursor: pointer;
}

.sidebar-detail-button:hover {
  background: #fff4e8;
}

@media (max-width: 860px) {
  .sidebar-day-panel {
    display: none;
  }
}

/* Single-month calendar workspace */
.calendar-toolbar {
  margin-bottom: 10px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(170px, auto) 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid #eae5dc;
  border-radius: 14px;
  background: #fff;
}

.calendar-toolbar-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-toolbar-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff1e3;
  color: #dd862f;
  font-size: 14px;
}

.calendar-toolbar-name h2 {
  margin: 0;
  color: #3d3933;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 680;
}

.calendar-toolbar-name p {
  margin: 3px 0 0;
  color: #a29b92;
  font-size: 8px;
}

.calendar-toolbar-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
}

.calendar-nav-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #e8e2d8;
  border-radius: 9px;
  background: #fff;
  color: #716b63;
  font-size: 14px;
  cursor: pointer;
}

.calendar-nav-button:hover {
  border-color: #edbd8e;
  background: #fff7ef;
  color: #ca782b;
}

.month-picker {
  position: relative;
  width: 150px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #e7e1d7;
  border-radius: 9px;
  background: #fff;
  color: #383530;
  cursor: pointer;
}

.month-picker:hover {
  border-color: #e7b37f;
  background: #fffaf5;
}

.month-picker input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.month-picker span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.month-picker i {
  color: #a39b91;
  font-size: 10px;
  font-style: normal;
}

.calendar-today-button {
  height: 34px;
  padding: 0 11px;
  border: 1px solid #f0d6ba;
  border-radius: 9px;
  background: #fff7ef;
  color: #c77a2d;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.calendar-toolbar .legend {
  justify-content: flex-end;
  gap: 11px;
}

.month-shortcuts {
  margin-bottom: 12px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.month-shortcuts::-webkit-scrollbar {
  display: none;
}

.month-shortcut {
  min-width: 105px;
  padding: 7px 10px;
  display: grid;
  gap: 3px;
  border: 1px solid #ece7df;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.month-shortcut:hover {
  border-color: #e7bd94;
}

.month-shortcut strong {
  color: #545049;
  font-size: 10px;
  font-weight: 680;
}

.month-shortcut span {
  color: #aaa39a;
  font-size: 7.5px;
}

.month-shortcut.is-active {
  border-color: #edc398;
  background: linear-gradient(180deg, #fff7ee, #fff);
}

.month-shortcut.is-active strong {
  color: #bf7127;
}

.single-calendar-card {
  width: 100%;
}

.single-calendar-card .calendar-card__head {
  min-height: 67px;
}

.single-calendar-card .calendar-title {
  font-size: 24px;
}

.single-calendar-card .calendar-day {
  min-height: 122px;
}

.sidebar-day-head-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-copy-button {
  width: 27px;
  height: 27px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #dbeaf0;
  border-radius: 7px;
  background: #f7fcff;
  color: #4c8ca8;
  cursor: pointer;
}

.sidebar-copy-button svg {
  width: 12.5px;
  height: 12.5px;
}

.sidebar-copy-button:hover {
  border-color: #b9e1f3;
  background: #eaf8ff;
  color: #0786bd;
}

.sidebar-task-copy,
.sidebar-task-delete {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #e3e9e8;
  border-radius: 7px;
  background: #fbfcfc;
  color: #91a4aa;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(2px);
  transition: opacity 0.16s, background 0.16s, border-color 0.16s, color 0.16s, transform 0.16s;
}

.sidebar-task-copy svg,
.sidebar-task-delete svg {
  width: 12.5px;
  height: 12.5px;
}

.sidebar-day-task:hover .sidebar-task-copy,
.sidebar-task-copy:focus-visible,
.sidebar-day-task:hover .sidebar-task-delete,
.sidebar-task-delete:focus-visible,
.sidebar-day-task:focus-within .sidebar-task-copy,
.sidebar-day-task:focus-within .sidebar-task-delete {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-1px);
}

.sidebar-task-copy:hover {
  border-color: #bde3f2;
  background: #edf9ff;
  color: #078bc2;
}

.sidebar-task-delete:hover {
  border-color: #efcaca;
  background: #fff3f2;
  color: #bf514a;
}

@media (hover: none), (pointer: coarse) {
  .sidebar-task-copy,
  .sidebar-task-delete {
    opacity: 0.78;
    pointer-events: auto;
    transform: none;
  }
}

.duplicate-button {
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #358aa9;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.duplicate-button svg {
  width: 14px;
  height: 14px;
}

.duplicate-button:hover {
  color: #087ca9;
}

@media (max-width: 1080px) {
  .calendar-toolbar {
    grid-template-columns: 1fr auto;
  }

  .calendar-toolbar .legend {
    display: none;
  }

  .calendar-toolbar-nav {
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .calendar-toolbar {
    padding: 11px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .calendar-toolbar-name {
    display: none;
  }

  .calendar-toolbar-nav {
    width: 100%;
    justify-self: stretch;
    justify-content: space-between;
  }

  .month-picker {
    flex: 1;
    width: auto;
  }

  .single-calendar-card .calendar-day {
    min-height: 87px;
  }

  .month-shortcuts {
    margin-right: -9px;
  }

  .month-shortcut {
    min-width: 92px;
    padding: 6px 8px;
  }
}

/* Extensible teaching-tools launcher */
.sidebar-tools {
  margin-top: 8px;
}

.sidebar-tools__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-tools__head .sidebar-label {
  margin-bottom: 7px;
}

.sidebar-tools__head > span {
  margin: 0 10px 7px 0;
  color: #aeb6b6;
  font-size: 7px;
  letter-spacing: 0.04em;
}

.teaching-tools-list {
  display: grid;
  gap: 5px;
}

.teaching-tool {
  min-height: 50px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #dceef5;
  border-radius: 11px;
  background:
    radial-gradient(circle at 92% 10%, rgba(139, 92, 246, 0.055), transparent 40%),
    linear-gradient(110deg, #f1fbff, #fff 66%, #fff9fc);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 166, 255, 0.035);
  transition: transform 0.17s, border-color 0.17s, box-shadow 0.17s;
}

.teaching-tool:hover {
  border-color: #b9e4f5;
  box-shadow: 0 7px 18px rgba(0, 166, 255, 0.08);
  transform: translateY(-1px);
}

.teaching-tool__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(45, 75, 86, 0.09);
}

.teaching-tool__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.teaching-tool__copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.teaching-tool__copy strong {
  overflow: hidden;
  color: #3d5058;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teaching-tool__copy small {
  overflow: hidden;
  color: #91a1a6;
  font-family: var(--font-display);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teaching-tool__badge {
  flex: 0 0 auto;
  padding: 3px 5px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #4c97b5;
  font-size: 6.5px;
  font-weight: 700;
}

.teaching-tool__arrow {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: #89a9b5;
}

.sidebar-tools + .sidebar-day-panel {
  margin-top: 11px;
}

.teaching-center-link {
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #617175;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}

.teaching-center-link .sidebar-icon {
  color: #8b9da2;
}

.teaching-center-link > svg {
  width: 12px;
  height: 12px;
  margin-left: auto;
  color: #a1adb0;
}

.teaching-center-link:hover {
  border-color: #d9edf6;
  background: #f3faff;
  color: #1787ae;
}

@media (max-width: 860px) {
  .sidebar-tools {
    margin-top: 0;
  }

  .sidebar-tools__head {
    display: none;
  }

  .teaching-tools-list {
    display: block;
  }

  .teaching-tool {
    width: 35px;
    min-height: 35px;
    padding: 3px;
    border-radius: 9px;
  }

  .teaching-tool__icon {
    width: 27px;
    height: 27px;
    border-radius: 7px;
  }

  .teaching-tool__copy,
  .teaching-tool__badge,
  .teaching-tool__arrow {
    display: none;
  }
}

/* Decoration adapted from the CODEMAO—NC teaching board */
:root {
  --codemao-blue: #00a6ff;
  --codemao-cyan: #00cfff;
  --codemao-sky: #8adbff;
  --codemao-sky-soft: #e4f3ff;
  --codemao-lavender: #8b5cf6;
  --codemao-pink: #fdf2f8;
  --codemao-border: #dceaf6;
}

.app-workspace {
  background:
    radial-gradient(520px 320px at 91% 5%, rgba(0, 207, 255, 0.07), transparent 72%),
    radial-gradient(400px 300px at 6% 42%, rgba(139, 92, 246, 0.045), transparent 72%),
    radial-gradient(rgba(0, 166, 255, 0.035) 1px, transparent 1.35px),
    linear-gradient(160deg, #f8f7f2 0%, #f6faff 48%, #fff9fc 100%);
  background-size: auto, auto, 26px 26px, auto;
}

.brand-symbol {
  overflow: hidden;
  border-color: #bfe9ff;
  border-radius: 13px;
  background: linear-gradient(145deg, #f3fcff, #dff4ff);
  box-shadow: 0 6px 18px rgba(0, 166, 255, 0.12), inset 0 0 0 3px rgba(255, 255, 255, 0.52);
}

.brand-symbol img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.brand-symbol::after {
  background: var(--codemao-cyan);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.75);
}

.sidebar-nav .view-tab.is-active {
  border-color: #cae9fb;
  background: linear-gradient(90deg, #e8f8ff 0%, #f5fbff 100%);
  color: #087eae;
}

.view-tab.is-active .sidebar-icon {
  background: #c9efff;
  color: #008dcc;
}

.top-status__dot {
  background: var(--codemao-blue);
  box-shadow: 0 0 0 4px rgba(0, 166, 255, 0.12);
}

.workspace-title h1 {
  background: linear-gradient(135deg, #292825 8%, #087dac 72%, #00a6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.workbench-banner {
  position: relative;
  min-height: 72px;
  margin-bottom: 20px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  border: 1px solid var(--codemao-border);
  border-radius: 16px;
  background:
    radial-gradient(circle at 86% 10%, rgba(139, 92, 246, 0.08), transparent 30%),
    linear-gradient(105deg, rgba(228, 243, 255, 0.92), rgba(255, 255, 255, 0.95) 55%, rgba(253, 242, 248, 0.85));
  box-shadow: 0 8px 24px rgba(0, 166, 255, 0.06);
}

.workbench-banner::after {
  content: "";
  position: absolute;
  right: 7%;
  top: -36px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(0, 166, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(0, 166, 255, 0.025);
  pointer-events: none;
}

.workbench-banner__avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 166, 255, 0.16);
}

.workbench-banner__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workbench-banner__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.workbench-banner__copy p {
  margin: 0;
  color: #58a6d0;
  font-family: var(--font-display);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.workbench-banner__copy strong {
  color: #34424a;
  font-size: 12px;
  font-weight: 680;
}

.workbench-banner__copy span {
  color: #87949c;
  font-size: 9px;
}

.workbench-banner__chips {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.workbench-banner__chips span {
  padding: 5px 9px;
  border: 1px solid rgba(0, 166, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: #5795b6;
  font-size: 7.5px;
  font-weight: 650;
}

.workbench-banner__doodle {
  width: 32px;
  height: 32px;
  margin-left: 5px;
  object-fit: contain;
  opacity: 0.82;
  filter: drop-shadow(0 4px 7px rgba(0, 166, 255, 0.13));
}

.summary-icon.summary-icon--image {
  width: 40px;
  height: 40px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(0, 166, 255, 0.11);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(228, 243, 255, 0.9), rgba(255, 255, 255, 0.95));
}

.summary-icon.summary-icon--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.calendar-today-button {
  border-color: #cceafa;
  background: #effaff;
  color: #0784b8;
}

.month-picker:hover {
  border-color: var(--codemao-sky);
  background: #f7fcff;
}

.month-shortcut.is-active {
  border-color: #a9def7;
  background: linear-gradient(180deg, #edf9ff, #fff);
}

.month-shortcut.is-active strong {
  color: #087dac;
}

.auth-mascot {
  position: absolute;
  z-index: 1;
  top: 19%;
  right: 7%;
  width: 118px;
  height: 118px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 166, 255, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(0, 166, 255, 0.14);
  transform: rotate(3deg);
  backdrop-filter: blur(8px);
}

.auth-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.auth-mascot::after {
  content: "✦";
  position: absolute;
  right: -4px;
  top: -10px;
  color: #f7b84b;
  font-size: 23px;
  text-shadow: 0 3px 8px rgba(215, 143, 30, 0.2);
}

@media (max-width: 1180px) {
  .auth-mascot {
    display: none;
  }
}

@media (max-width: 720px) {
  .workbench-banner {
    padding: 11px 12px;
  }

  .workbench-banner__chips,
  .workbench-banner__doodle {
    display: none;
  }

  .workbench-banner__copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .summary-icon.summary-icon--image {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Warm teaching-tools workbench visual refresh */
:root {
  --ink: #2e2d2a;
  --ink-soft: #7f7a72;
  --paper: #f7f6f2;
  --card: #ffffff;
  --line: #ece8df;
  --line-strong: #ddd7cb;
  --green: #4c8062;
  --green-deep: #315d47;
  --green-soft: #edf4ed;
  --orange: #ed8a2f;
  --orange-deep: #d9751e;
  --orange-soft: #fff3e7;
  --blue: #7091d5;
  --blue-soft: #eef3ff;
  --shadow: 0 18px 50px rgba(91, 75, 48, 0.08);
  --shadow-soft: 0 6px 20px rgba(91, 75, 48, 0.045);
  --radius-xl: 18px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

body {
  background: #f7f6f2;
}

.button--primary {
  border-color: #ed8a2f;
  background: linear-gradient(180deg, #f19a47 0%, #ed8527 100%);
  color: #fff;
  box-shadow: 0 7px 16px rgba(218, 119, 32, 0.18);
}

.button--primary:hover {
  background: linear-gradient(180deg, #e9903b 0%, #de791e 100%);
  box-shadow: 0 10px 20px rgba(218, 119, 32, 0.24);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  align-items: stretch;
}

.app-sidebar {
  position: sticky;
  z-index: 60;
  top: 0;
  height: 100vh;
  min-height: 620px;
  padding: 24px 15px 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ece8df;
  background: rgba(252, 251, 248, 0.98);
}

.sidebar-brand {
  min-height: 64px;
  padding: 0 10px 22px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.brand-symbol {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #f2d6be;
  border-radius: 12px;
  background: #fff1e4;
  color: var(--orange);
  font-family: "Songti SC", "STSong", serif;
  font-size: 19px;
  font-weight: 800;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55);
}

.brand-symbol::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f4ad67;
}

.app-brand {
  display: grid;
  gap: 3px;
}

.app-brand strong {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.app-brand span {
  color: #9b958c;
  font-size: 9px;
  letter-spacing: 0.045em;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
}

.sidebar-label {
  margin: 12px 12px 7px;
  color: #a9a298;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.sidebar-nav .view-tab {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  justify-content: flex-start;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #625f59;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

.sidebar-nav .view-tab:hover {
  background: #f5f2ec;
}

.sidebar-nav .view-tab.is-active {
  border-color: #cae9fb;
  background: linear-gradient(90deg, #e8f8ff 0%, #f5fbff 100%);
  color: #087eae;
  font-weight: 750;
  box-shadow: none;
}

.sidebar-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #8f8a82;
  font-size: 16px;
  line-height: 1;
}

.view-tab.is-active .sidebar-icon {
  background: #c9efff;
  color: #008dcc;
}

.sidebar-guide {
  margin: 24px 3px 0;
  padding: 15px;
  border: 1px solid #f1dfcc;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff8f0, #fffdf9);
}

.sidebar-guide__head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #4b4741;
  font-size: 12px;
}

.sidebar-guide__spark {
  color: var(--orange);
}

.sidebar-guide p {
  margin: 9px 0;
  color: #8d877e;
  font-size: 10px;
  line-height: 1.65;
}

.sidebar-guide > span {
  display: block;
  color: #b09172;
  font-size: 9px;
}

.sidebar-guide__button {
  width: 100%;
  height: 32px;
  margin-top: 12px;
  border: 1px solid #f0cfae;
  border-radius: 8px;
  background: #fff;
  color: var(--orange-deep);
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
}

.sidebar-guide__button:hover {
  background: var(--orange-soft);
}

.sidebar-footer {
  margin-top: auto;
  padding: 18px 5px 0;
  border-top: 1px solid #ece8df;
}

.sidebar-footer .account-area {
  position: relative;
  width: 100%;
  justify-self: stretch;
  display: flex;
  align-items: center;
  gap: 9px;
}

.sidebar-footer .account-copy {
  min-width: 0;
  flex: 1;
  justify-items: start;
}

.sidebar-footer .account-copy strong {
  font-size: 12px;
}

.sidebar-footer .account-copy span {
  max-width: 105px;
  font-size: 8.5px;
}

.sidebar-footer .avatar-button {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  background: #f5c185;
  color: #6e431a;
}

.sidebar-more-button {
  width: 25px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #aaa39a;
  font-size: 12px;
  cursor: pointer;
}

.sidebar-more-button:hover {
  background: #f4f1eb;
}

.sidebar-footer .account-menu {
  top: auto;
  right: 0;
  bottom: 46px;
}

.sidebar-device-note {
  margin: 9px 0 0 44px;
  color: #aaa39a;
  font-size: 8px;
}

.app-workspace {
  min-width: 0;
  min-height: 100vh;
}

.app-header {
  position: sticky;
  z-index: 45;
  top: 0;
  height: auto;
  min-height: 108px;
  padding: 22px clamp(24px, 3vw, 42px) 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid #ece8df;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(18px);
}

.workspace-title {
  min-width: 0;
}

.workspace-title p {
  margin: 0 0 4px;
  color: #b0a9a0;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.workspace-title h1 {
  margin: 0;
  color: #292825;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.workspace-title > span {
  display: block;
  margin-top: 5px;
  color: #8c877f;
  font-size: 11px;
}

.topbar-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 13px;
}

.top-status {
  height: 40px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ebe6dc;
  border-radius: 11px;
  background: #fff;
}

.top-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #79a785;
  box-shadow: 0 0 0 4px #eef4ee;
}

.top-status div {
  display: grid;
  gap: 1px;
}

.top-status small {
  color: #9b958d;
  font-size: 7.5px;
}

.top-status strong {
  color: #4f4b45;
  font-size: 10px;
  font-weight: 700;
}

.app-header .button {
  min-height: 40px;
  padding: 0 18px;
}

.main-content {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 28px clamp(22px, 3vw, 40px) 64px;
}

.page-heading {
  margin-bottom: 19px;
  align-items: center;
}

.page-heading h2 {
  margin: 0;
  color: #2e2d2a;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.page-heading .eyebrow {
  margin-bottom: 5px;
  color: #b0a9a0;
  font-size: 8px;
  letter-spacing: 0.14em;
}

.heading-note {
  margin-top: 5px;
  color: #918c84;
  font-size: 10.5px;
}

.month-stepper {
  border-color: #e7e2d8;
  border-radius: 10px;
  background: #fff;
}

.today-button {
  color: #736e66;
}

.summary-strip {
  margin-bottom: 20px;
  border-color: #ebe7df;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(78, 64, 43, 0.03);
}

.summary-item {
  min-height: 82px;
  padding: 15px 20px;
}

.summary-copy {
  gap: 5px;
}

.summary-copy span {
  color: #817c74;
  font-size: 9.5px;
}

.summary-copy strong {
  color: #312f2b;
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 700;
}

.summary-copy small {
  color: #aaa39a;
  font-size: 8px;
}

.summary-icon {
  width: 36px;
  height: 36px;
  background: #fff1e2;
  color: #e8872e;
}

.summary-item:nth-child(2) .summary-icon {
  background: #edf3ff;
  color: #6c8dce;
}

.summary-item:nth-child(3) .summary-icon {
  background: #eef4e9;
  color: #75964b;
}

.summary-item:nth-child(4) .summary-icon {
  background: #fff0e7;
  color: #dd7d48;
}

.month-context {
  margin-bottom: 10px;
}

.month-context h2 {
  color: #393733;
  font-size: 14px;
}

.months-grid {
  gap: 16px;
}

.calendar-card {
  padding: 0 16px 16px;
  border-color: #eae6de;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(78, 64, 43, 0.035);
}

.calendar-card__head {
  min-height: 73px;
  padding: 17px 7px 12px;
}

.calendar-year {
  color: #b1aaa1;
  font-size: 7.5px;
}

.calendar-title {
  color: #35332f;
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 700;
}

.calendar-count {
  border: 1px solid #f1dfcb;
  background: #fff5ea;
  color: #c77b35;
}

.weekday-header {
  top: 107px;
  border-color: #ece8df;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: none;
}

.weekday-header span {
  height: 31px;
  color: #827d75;
  font-size: 8.5px;
}

.weekday-header .weekend {
  color: #bd856c;
}

.calendar-grid {
  border-color: #ebe7df;
  border-radius: 0 0 9px 9px;
}

.calendar-day {
  min-height: 103px;
  border-color: #eeeae3;
  background: #fff;
}

.calendar-day:hover {
  background: #fffaf3;
}

.calendar-day.is-weekend {
  background: #fdfcf9;
}

.calendar-day.is-outside {
  background: #fbfaf7;
}

.calendar-day.is-today {
  background: #fff8ed;
}

.is-today .day-number {
  background: var(--orange);
}

.day-number {
  color: #57534c;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 650;
}

.task-pill {
  border-radius: 4px;
  font-size: 7.8px;
}

.task-pill.tone-blue { border-color: #8eace4; background: #f0f4fd; color: #5879b8; }
.task-pill.tone-green { border-color: #8ab49b; background: #eff6f1; color: #4b7c60; }
.task-pill.tone-orange { border-color: #edaa70; background: #fff4e9; color: #bb6f2b; }
.task-pill.tone-pink { border-color: #dba0b1; background: #fdf1f4; color: #a75e74; }
.task-pill.tone-violet { border-color: #a99bcf; background: #f4f1fc; color: #7564a6; }

.segmented {
  border-color: #e8e3da;
  border-radius: 11px;
  background: #fff;
}

.segment {
  color: #726d65;
}

.segment.is-active {
  background: var(--orange);
  color: white;
}

.team-panel-head {
  margin-top: 23px;
}

.team-panel-head h2 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
}

.search-box input {
  border-color: #e5e0d7;
  background: #fff;
}

.teacher-card {
  padding: 18px;
  border-color: #eae6de;
  border-radius: 16px;
  background: #fff;
}

.teacher-avatar {
  background: #fff1e1;
  color: #cb7a2b;
}

.teacher-rate strong {
  color: #d87d24;
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 700;
}

.progress-track i {
  background: linear-gradient(90deg, #ef942f, #f5b461);
}

.teacher-metric {
  border: 1px solid #f0ece4;
  background: #fcfbf8;
}

.teacher-dialog-summary .teacher-metric {
  border: 1px solid #f0ece4;
}

.empty-state {
  background: #fff;
}

.auth-screen {
  background: #f7f6f2;
}

.auth-story {
  background:
    radial-gradient(circle at 72% 18%, rgba(248, 183, 110, 0.18), transparent 27rem),
    linear-gradient(145deg, #fbfaf7 0%, #f4f0e8 100%);
  color: #2f2d29;
}

.auth-story::before {
  border-color: rgba(231, 143, 58, 0.18);
  box-shadow: 0 0 0 70px rgba(237, 138, 47, 0.035), 0 0 0 150px rgba(237, 138, 47, 0.02);
}

.auth-story .brand-mark {
  background: #fff0e1;
  color: var(--orange);
}

.story-topline {
  color: #393631;
}

.story-copy .eyebrow {
  color: #c77b35;
}

.story-copy h1 {
  color: #2d2b27;
}

.story-lead {
  color: #777168;
}

.mini-calendar {
  border-color: rgba(124, 110, 91, 0.14);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 22px 60px rgba(101, 80, 49, 0.08);
}

.mini-calendar__top {
  color: #706a62;
}

.mini-calendar__top span:first-child {
  color: #403c36;
}

.mini-week > div {
  border-color: #eee8de;
  background: rgba(255, 255, 255, 0.74);
}

.mini-week > div.is-today {
  background: #fff0df;
  color: #a95e18;
}

.mini-week .mini-rest {
  color: #b7b0a7;
}

.mini-week .is-today .mini-rest {
  color: #bd8e62;
}

.story-note {
  color: #989188;
}

.auth-panel {
  background: #fbfaf7;
}

.auth-card {
  border-color: #ebe6dc;
  background: #fff;
}

.auth-form h2 {
  color: #2e2b27;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 720;
}

.auth-form .eyebrow {
  color: #c47b35;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 198px minmax(0, 1fr);
  }

  .workspace-title > span {
    display: none;
  }

  .top-status {
    display: none;
  }

  .calendar-day {
    min-height: 92px;
  }
}

@media (max-width: 860px) {
  .app-shell {
    display: block;
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 9px 14px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid #ece8df;
  }

  .sidebar-brand {
    min-height: 0;
    padding: 0;
  }

  .sidebar-brand .app-brand {
    display: none;
  }

  .brand-symbol {
    width: 36px;
    height: 36px;
  }

  .sidebar-nav {
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .sidebar-label {
    display: none;
  }

  .sidebar-nav .view-tab {
    width: auto;
    min-height: 36px;
    padding: 0 11px;
    font-size: 11px;
  }

  .teaching-center-link {
    width: auto;
    min-height: 36px;
    padding: 0 10px;
    font-size: 10px;
  }

  .teaching-center-link > svg {
    display: none;
  }

  .sidebar-icon {
    width: auto;
    height: auto;
    background: none !important;
    font-size: 13px;
  }

  .sidebar-guide {
    display: none;
  }

  .sidebar-footer {
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
  }

  .sidebar-footer .account-copy,
  .sidebar-more-button,
  .sidebar-device-note {
    display: none;
  }

  .sidebar-footer .avatar-button {
    width: 35px;
    height: 35px;
  }

  .sidebar-footer .account-menu {
    top: 44px;
    right: 0;
    bottom: auto;
  }

  .app-header {
    position: relative;
    min-height: 86px;
    padding: 16px 20px;
  }

  .workspace-title h1 {
    font-size: 24px;
  }

  .main-content {
    width: 100%;
    padding: 22px 16px 50px;
  }

  .weekday-header {
    top: 58px;
  }
}

@media (max-width: 620px) {
  .app-sidebar {
    gap: 7px;
    padding: 8px 10px;
  }

  .sidebar-nav .view-tab {
    min-height: 34px;
    padding: 0 8px;
    font-size: 10px;
  }

  .sidebar-icon {
    display: none;
  }

  .app-header {
    align-items: flex-start;
    gap: 12px;
    padding: 15px 13px;
  }

  .workspace-title p {
    display: none;
  }

  .workspace-title h1 {
    font-size: 22px;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .app-header .button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 10px;
  }

  .main-content {
    padding: 18px 9px 42px;
  }

  .page-heading {
    margin-bottom: 15px;
  }

  .page-heading h2 {
    font-size: 20px;
  }

  .heading-actions {
    width: auto;
  }

  .summary-item {
    min-height: 78px;
    padding: 13px;
  }

  .summary-copy strong {
    font-size: 23px;
  }

  .calendar-card {
    padding: 0 6px 6px;
    border-radius: 15px;
  }

  .weekday-header {
    top: 55px;
  }

  .calendar-day {
    min-height: 78px;
    padding: 6px 3px;
  }

  .calendar-day .task-pill {
    font-size: 0;
  }

  .calendar-day .task-pill::before {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    margin: 0 auto;
    border-radius: 50%;
    background: currentColor;
  }
}
