:root {
  --ink: #3f1728;
  --muted: #8a6173;
  --line: #ead0dc;
  --paper: #fff4f7;
  --surface: #fffafd;
  --accent: #c93668;
  --accent-strong: #9f244f;
  --warn: #b94455;
  --gold: #c08a45;
  --blue: #6f6fb3;
  --shadow: 0 18px 50px rgba(120, 34, 70, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 12%, rgba(201, 54, 104, 0.18), transparent 28rem),
    radial-gradient(circle at 10% 88%, rgba(255, 203, 218, 0.34), transparent 24rem),
    linear-gradient(135deg, #fff0f5 0%, #fff7fa 46%, #f7ecef 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100svh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 24px;
  border-right: 1px solid rgba(159, 36, 79, 0.12);
  background: rgba(255, 250, 253, 0.82);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  text-align: left;
  color: var(--muted);
  background: transparent;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--ink);
  background: #f8e3ec;
}

.nav-item:hover {
  transform: translateX(2px);
}

.exam-panel {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.exam-panel span {
  color: var(--muted);
  font-size: 13px;
}

.exam-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.exam-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

h2 {
  margin: 0;
  font-size: 22px;
}

h3 {
  margin: 0;
  font-size: 17px;
}

.date-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 250, 253, 0.78);
  color: var(--muted);
}

.view {
  display: none;
  animation: reveal 220ms ease both;
}

.view.active {
  display: block;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 92%, rgba(67, 184, 64, 0.98) 0 14%, transparent 15%),
    radial-gradient(circle at 82% 18%, rgba(203, 255, 97, 0.7), transparent 10rem),
    linear-gradient(180deg, #0c8dff 0%, #24a7ff 44%, #8ee4ff 72%, #62cf55 100%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 60px rgba(38, 119, 55, 0.22);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: auto -5% -26px -5%;
  height: 118px;
  background:
    radial-gradient(ellipse at 20% 40%, #3d9b45 0 34%, transparent 35%),
    radial-gradient(ellipse at 52% 42%, #2f873e 0 38%, transparent 39%),
    radial-gradient(ellipse at 84% 45%, #4ca84c 0 34%, transparent 35%);
  opacity: 0.96;
}

.hero-visual::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 28px;
  width: 94px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff8b0 0 18%, #ffd94b 19% 62%, #ffaf2e 63% 100%);
  box-shadow: 0 0 0 18px rgba(255, 220, 78, 0.18), 0 0 52px rgba(255, 211, 64, 0.72);
  animation: sunFloat 5s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(540px, 100%);
  padding: 96px 46px 46px;
  color: white;
  text-shadow: 0 3px 16px rgba(23, 78, 34, 0.32);
}

.hero-copy p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.76);
}

.hero-copy h2 {
  max-width: 10em;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
}

.hero-copy h2 span {
  display: block;
}

.happy-tree {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: min(760px, 62vw);
  height: 100%;
}

.happy-vine {
  position: absolute;
  left: 10%;
  bottom: 0;
  width: 78%;
  height: 100%;
  animation: vineSway 5.5s ease-in-out infinite;
}

.happy-vine::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 0;
  bottom: 84px;
  height: 386px;
  background:
    radial-gradient(ellipse at 18% 86%, rgba(111, 218, 64, 0.95) 0 8%, transparent 9%),
    radial-gradient(ellipse at 76% 78%, rgba(86, 196, 55, 0.92) 0 9%, transparent 10%),
    radial-gradient(ellipse at 26% 60%, rgba(163, 239, 73, 0.9) 0 7%, transparent 8%),
    radial-gradient(ellipse at 84% 46%, rgba(95, 205, 59, 0.9) 0 8%, transparent 9%),
    radial-gradient(ellipse at 34% 28%, rgba(183, 247, 82, 0.92) 0 7%, transparent 8%),
    radial-gradient(ellipse at 68% 12%, rgba(103, 210, 58, 0.94) 0 9%, transparent 10%);
  pointer-events: none;
  animation: leafFlutter 4.8s ease-in-out infinite;
  z-index: 2;
}

.vine-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
}

.vine-shadow,
.vine-main {
  fill: none;
  stroke-linecap: round;
}

.vine-shadow {
  stroke: rgba(19, 100, 32, 0.5);
  stroke-width: 76;
  transform: translate(8px, 10px);
}

.vine-main {
  stroke: url("#vineGradient");
  stroke-width: 66;
  filter: drop-shadow(0 16px 18px rgba(20, 96, 34, 0.46));
}

.vine-leaf {
  position: absolute;
  width: 58px;
  aspect-ratio: 1.45;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #c8f46d, #3baa48);
  transform: rotate(var(--leaf-rotate));
  box-shadow: 0 8px 18px rgba(28, 103, 42, 0.18);
  animation: leafFlutter 3.2s ease-in-out infinite;
  z-index: 3;
}

.vine-level {
  position: absolute;
  left: var(--x);
  bottom: var(--y);
  width: 66px;
  height: 74px;
  border: 4px solid rgba(255, 244, 198, 0.88);
  border-radius: 22px 22px 28px 28px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 25%, #fff3a8 0 10%, transparent 11%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 28%, rgba(95, 0, 0, 0.16) 78%),
    linear-gradient(180deg, #ffcf55 0%, #f26f21 54%, #d84018 100%);
  color: #fff7c8;
  font-weight: 1000;
  text-shadow: 0 2px 0 rgba(112, 62, 0, 0.4);
  box-shadow: 0 12px 24px rgba(25, 92, 38, 0.24);
  transform: translate(-50%, 50%);
  z-index: 4;
}

.vine-level::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 26px;
  height: 12px;
  border: 4px solid #ffe27c;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}

.vine-level::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 24px;
  height: 18px;
  background:
    linear-gradient(90deg, transparent 0 18%, #ffd76a 19% 28%, transparent 29% 38%, #ffd76a 39% 48%, transparent 49% 58%, #ffd76a 59% 68%, transparent 69% 100%);
  transform: translateX(-50%);
}

.vine-level.done {
  background:
    radial-gradient(circle at 32% 25%, #fffbd2 0 13%, transparent 14%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 28%, rgba(95, 0, 0, 0.12) 78%),
    linear-gradient(180deg, #ffe36b 0%, #ff8a24 48%, #e34a1f 100%);
  color: #fffce3;
  animation: pop 260ms ease both;
}

.vine-level.current {
  outline: 5px solid rgba(255, 255, 255, 0.45);
  animation: levelPulse 1.35s ease-in-out infinite;
}

.sky-cloud {
  position: absolute;
  z-index: 1;
  width: 150px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  filter: blur(0.2px);
  animation: cloudDrift 14s linear infinite;
}

.sky-cloud::before,
.sky-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.sky-cloud::before {
  left: 28px;
  bottom: 22px;
  width: 68px;
  aspect-ratio: 1;
}

.sky-cloud::after {
  right: 28px;
  bottom: 14px;
  width: 54px;
  aspect-ratio: 1;
}

.cloud-a {
  left: 26%;
  top: 25%;
}

.cloud-b {
  right: 16%;
  top: 68%;
  width: 110px;
  animation-duration: 18s;
  animation-delay: -7s;
}

.vine-map-title {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 5;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #226f34;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(25, 92, 38, 0.16);
}

.dashboard-grid,
.wrongbook-layout,
.library-layout,
.parent-layout,
.motivation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.panel {
  border: 1px solid rgba(159, 36, 79, 0.12);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 250, 253, 0.88);
  box-shadow: 0 10px 28px rgba(120, 34, 70, 0.08);
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-head strong {
  color: var(--accent-strong);
  font-size: 20px;
}

.task-list,
.priority-list,
.wrong-list,
.backlog-list,
.habit-grid {
  display: grid;
  gap: 10px;
}

.task-item,
.priority-item,
.wrong-item,
.habit-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-radius: 8px;
  padding: 12px;
  background: #fff0f5;
  transition: transform 180ms ease, background 180ms ease;
}

.wrong-item.has-photo {
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: start;
}

.task-item:hover,
.priority-item:hover,
.wrong-item:hover,
.habit-item:hover {
  transform: translateY(-1px);
  background: #f8e3ec;
}

.task-item input,
.habit-item input {
  width: 20px;
  aspect-ratio: 1;
  accent-color: var(--accent);
}

.task-item.done .task-title,
.habit-item.done .task-title {
  text-decoration: line-through;
  color: var(--muted);
}

.habit-item.done {
  background: #f8dcea;
}

.habit-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  padding: 12px;
  background: #f8e3ec;
}

.habit-date-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.habit-status {
  justify-self: end;
  border-radius: 999px;
  padding: 7px 10px;
  background: #efd4df;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.habit-item.done .habit-status {
  background: var(--accent);
  color: white;
}

.habit-calendar-panel {
  margin-top: 18px;
}

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

.calendar-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.calendar-summary span {
  border-radius: 8px;
  padding: 12px;
  background: #f8e3ec;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.calendar-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 22px;
}

.calendar-weekdays,
.habit-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 250, 253, 0.84);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.calendar-day.empty {
  border-color: transparent;
  background: transparent;
}

.calendar-day.today {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.calendar-day.partial {
  background: #fff0d9;
}

.calendar-day.complete {
  background: #f8dcea;
}

.calendar-day.missed {
  background: #f7dfdf;
}

.calendar-number {
  font-weight: 900;
}

.calendar-mark {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.calendar-day.complete .calendar-mark {
  color: var(--accent-strong);
}

.calendar-day.missed .calendar-mark {
  color: var(--warn);
}

.parent-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.parent-summary article {
  border-radius: 8px;
  padding: 14px;
  background: #f8e3ec;
}

.parent-summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.parent-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
}

.report-box {
  min-height: 340px;
  border-radius: 8px;
  padding: 18px;
  background: #fff0f5;
  line-height: 1.8;
  white-space: pre-wrap;
}

.points-list,
.badge-grid {
  display: grid;
  gap: 10px;
}

.points-row,
.badge-card,
.map-node {
  border-radius: 8px;
  padding: 14px;
  background: #fff0f5;
}

.points-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.points-row span,
.badge-card span,
.map-node span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.points-row strong {
  color: var(--accent-strong);
  font-size: 20px;
}

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

.badge-card {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 6px;
  opacity: 0.55;
}

.badge-card.unlocked {
  opacity: 1;
  background: #f8dcea;
  box-shadow: inset 0 0 0 1px rgba(216, 95, 141, 0.25);
}

.badge-icon {
  font-size: 26px;
}

.progress-map-panel,
.weekly-challenge-panel {
  margin-top: 18px;
}

.progress-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.map-node {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
}

.map-node.active {
  background: #f8dcea;
  border-color: var(--accent);
}

.challenge-card {
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, #f8dcea, #fff4f7);
}

.challenge-card h3 {
  margin-bottom: 8px;
}

.challenge-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.challenge-steps {
  display: grid;
  gap: 8px;
}

.challenge-steps span {
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 250, 253, 0.72);
  font-weight: 800;
}

.task-title {
  display: block;
  font-weight: 800;
}

.task-meta,
.priority-item span,
.wrong-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.task-steps {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.task-steps em {
  display: block;
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(255, 250, 253, 0.72);
  color: var(--ink);
  font-style: normal;
  font-size: 13px;
}

.overview-progress {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.overview-row,
.backlog-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 12px;
  background: #fff0f5;
}

.overview-row strong,
.backlog-item strong {
  display: block;
}

.overview-row span,
.backlog-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.subject-task-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  margin-bottom: 18px;
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wrong-photo {
  width: 112px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: #dfe6df;
}

.subject-badge {
  min-width: 46px;
  border-radius: 8px;
  padding: 6px 8px;
  color: white;
  text-align: center;
  font-weight: 800;
}

.plan-panel {
  margin-top: 18px;
}

.learning-flow-panel {
  margin-top: 18px;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.flow-steps article {
  padding: 16px;
  border-radius: 8px;
  background: #fff0f5;
}

.flow-steps span {
  display: grid;
  place-items: center;
  width: 30px;
  aspect-ratio: 1;
  border-radius: 50%;
  margin-bottom: 12px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.flow-steps p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.roadmap article {
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}

.roadmap span {
  color: var(--muted);
  font-size: 13px;
}

.roadmap p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.subject-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.subject-tabs button,
.tool-chip {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 250, 253, 0.78);
  color: var(--muted);
}

.subject-tabs button.active,
.tool-chip.active {
  border-color: transparent;
  background: var(--ink);
  color: white;
}

.resource-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.resource-list {
  display: grid;
  gap: 12px;
}

.resource-item {
  border-bottom: 1px solid var(--line);
  padding: 0 0 14px;
}

.resource-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.resource-item header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.resource-item h3 {
  margin-bottom: 6px;
}

.resource-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

.resource-meta {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.subject-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.subject-hero {
  border-radius: 8px;
  padding: 28px;
  color: white;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.subject-hero h2 {
  max-width: 11em;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
}

.score-line {
  display: grid;
  gap: 12px;
}

.bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.bar i {
  display: block;
  height: 100%;
  width: var(--value);
  border-radius: inherit;
  background: white;
}

.module-list {
  display: grid;
  gap: 12px;
}

.subject-routine {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.subject-routine span {
  border-radius: 8px;
  padding: 9px 11px;
  background: #f8e3ec;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.module {
  border-bottom: 1px solid var(--line);
  padding: 0 0 14px;
}

.module:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.module p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.photo-preview {
  min-height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff0f5;
  color: var(--muted);
  text-align: center;
  padding: 14px;
}

.photo-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 8px;
}

.primary-action,
.tiny-action {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.primary-action {
  min-height: 46px;
}

.compact-action {
  min-height: 38px;
  padding: 0 14px;
}

.tiny-action {
  min-height: 34px;
  padding: 0 10px;
}

.empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.usage-strip {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  border-radius: 8px;
  padding: 12px;
  background: #f8e3ec;
}

.usage-strip span {
  color: var(--muted);
  line-height: 1.5;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.03);
  }
}

@keyframes pop {
  from {
    transform: translate(-50%, 50%) scale(0.82);
  }
  to {
    transform: translate(-50%, 50%) scale(1);
  }
}

@keyframes vineSway {
  0%,
  100% {
    transform: rotate(-1.4deg) translateY(0);
  }
  50% {
    transform: rotate(1.2deg) translateY(-5px);
  }
}

@keyframes leafFlutter {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -5px;
  }
}

@keyframes levelPulse {
  0%,
  100% {
    transform: translate(-50%, 50%) scale(1);
    box-shadow: 0 12px 24px rgba(25, 92, 38, 0.24), 0 0 0 rgba(255, 245, 135, 0);
  }
  50% {
    transform: translate(-50%, 50%) scale(1.12);
    box-shadow: 0 12px 24px rgba(25, 92, 38, 0.24), 0 0 28px rgba(255, 245, 135, 0.92);
  }
}

@keyframes cloudDrift {
  from {
    transform: translateX(-40px);
  }
  to {
    transform: translateX(80px);
  }
}

@keyframes sunFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(7px) scale(1.03);
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-item {
    text-align: center;
  }

  .exam-panel {
    display: none;
  }

  .workspace {
    padding: 18px;
  }

  .dashboard-grid,
  .wrongbook-layout,
  .library-layout,
  .parent-layout,
  .motivation-layout,
  .subject-task-layout,
  .subject-detail,
  .roadmap,
  .flow-steps {
    grid-template-columns: 1fr;
  }

  .happy-tree {
    right: -4%;
    width: min(470px, 55vw);
  }
}

@media (max-width: 620px) {
  .topbar {
    display: grid;
  }

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

  .hero-copy {
    padding: 28px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .happy-tree {
    right: -32%;
    bottom: -8px;
    width: 118vw;
    opacity: 0.86;
  }

  .hero-copy {
    max-width: 310px;
  }

  .task-item,
  .backlog-item,
  .overview-row,
  .priority-item,
  .wrong-item,
  .wrong-item.has-photo,
  .habit-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .wrong-photo {
    width: 84px;
  }

  .task-item > :last-child,
  .priority-item > :last-child {
    grid-column: 2;
  }

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

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

  .badge-grid,
  .progress-map {
    grid-template-columns: 1fr;
  }

  .calendar-weekdays,
  .habit-calendar {
    gap: 4px;
  }

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

  .calendar-mark {
    font-size: 10px;
  }
}
