:root {
  --leaf: #2f6f4e;
  --leaf-soft: #e9f3ed;
  --paper: #fffdf7;
  --ink: #24352d;
  --muted: #6d7f75;
  --line: #dce7df;
  --shadow: 0 18px 50px rgba(47, 111, 78, .1);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f4f8ef;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(91, 142, 91, .18), transparent 26%),
    radial-gradient(circle at 85% 18%, rgba(232, 174, 92, .16), transparent 24%),
    linear-gradient(135deg, #f8fbf4 0%, #edf5ed 52%, #fbf3e8 100%);
}

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

button {
  cursor: pointer;
}

.app-shell {
  width: min(1320px, calc(100vw - 36px));
  min-height: calc(100vh - 36px);
  margin: 18px auto;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) 320px;
  gap: 16px;
}

.panel {
  background: rgba(255, 253, 247, .88);
  border: 1px solid rgba(220, 231, 223, .94);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.sidebar,
.main-panel,
.right-panel {
  padding: 18px;
}

.sidebar,
.right-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: #eef8f1 url("./DailyGroveStudyGrowing-v13.png") center / contain no-repeat;
  box-shadow: 0 5px 14px rgba(47, 111, 78, .12);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.brand h1 {
  font-size: 19px;
  letter-spacing: 0;
}

.brand p,
.date-meta,
.topbar p,
.field-card span,
.score-card span,
.side-section span,
.forest-card span,
.repair-card span,
.sync-card,
.dialog-card p {
  color: var(--muted);
}

.brand p,
.date-meta,
.field-card span,
.score-card span,
.side-section span,
.forest-card span,
.repair-card span,
.sync-card,
.dialog-card p {
  font-size: 12px;
}

.date-card {
  background: var(--leaf-soft);
  border-radius: var(--radius);
  padding: 14px;
}

.date-day {
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  color: var(--leaf);
}

.date-meta {
  margin-top: 8px;
  line-height: 1.55;
}

.calendar-block {
  display: grid;
  gap: 8px;
}

.month-head,
.section-title,
.topbar,
.top-actions,
.dimension-head,
.dimension-bottom,
.sync-card,
.backup-card {
  display: flex;
  align-items: center;
}

.month-head,
.section-title,
.topbar,
.dimension-head,
.dimension-bottom {
  justify-content: space-between;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--leaf);
  font-size: 20px;
  line-height: 1;
}

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

.week-head span {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.day-cell {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 29px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font-size: 12px;
  display: grid;
  place-items: center;
}

.day-cell.is-today {
  border-color: var(--leaf);
  color: var(--leaf);
  font-weight: 800;
}

.day-cell.has-entry {
  background: #e0eddc;
  color: var(--leaf);
  font-weight: 800;
}

.day-cell.has-meta {
  background: #fff0dc;
  color: #9b6623;
  font-weight: 800;
}

.day-cell.is-selected {
  background: var(--leaf);
  color: #fff;
}

.day-cell.has-checkin {
  background: #dcefe4;
  border-color: #a9cdb7;
  color: var(--leaf);
  font-weight: 900;
}

.day-cell.is-missed-checkin {
  background: #fff4e3;
  border-color: #ecd3a4;
  color: #9b6623;
  font-weight: 800;
}

.day-cell.is-selected.has-checkin,
.day-cell.is-selected.is-missed-checkin {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

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

.side-nav button {
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0 12px;
  font-size: 14px;
}

.side-nav button.active {
  color: var(--leaf);
  background: #edf6ef;
  font-weight: 800;
}

.sync-card {
  gap: 8px;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px dashed #b8d3bf;
  border-radius: 12px;
  background: #fbfff8;
  line-height: 1.35;
}

.sync-center {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
}

.sync-center span {
  color: var(--muted);
  font-size: 12px;
}

.sync-center input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.sync-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c8a24e;
  flex: 0 0 auto;
}

.sync-card.online .sync-dot {
  background: #4f9d68;
}

.sync-card.offline .sync-dot {
  background: #cc735f;
}

.main-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topbar {
  gap: 16px;
}

.topbar h2 {
  font-size: 24px;
  letter-spacing: 0;
}

.quote-strip {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 9px;
  border: 1px solid #d9e6d7;
  border-radius: 999px;
  background: rgba(237, 246, 239, .72);
  color: #37674d;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.35;
}

.topbar p {
  margin-top: 6px;
  font-size: 13px;
}

.top-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.future-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #cfd8e6;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7fbff, #eef5ff);
  padding: 12px 14px;
}

.future-panel[hidden] {
  display: none;
}

.future-panel strong {
  display: block;
  color: #2f5d95;
  font-size: 15px;
}

.future-panel span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.future-locked .meta-grid,
.future-locked .dimension-grid,
.future-locked .todo-panel {
  opacity: .58;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
}

.date-picker {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.date-picker input,
.field-card input,
.dimension input,
.dimension textarea {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}

.button {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--leaf);
  padding: 0 14px;
  font-weight: 800;
}

a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.button.primary {
  background: var(--leaf);
  color: #fff;
  border-color: var(--leaf);
}

.button.ghost {
  background: #fff;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 10px;
}

.field-card {
  min-height: 74px;
  border-radius: 14px;
  background: #f5faf6;
  border: 1px solid var(--line);
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 7px;
}

.field-card input {
  width: 100%;
  font-size: 15px;
  font-weight: 700;
}

.compact-field input {
  max-width: 96px;
}

.score-field {
  align-content: center;
}

.score-field strong {
  color: var(--leaf);
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.score-field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.field-card input[type="time"] {
  min-width: 112px;
  font-variant-numeric: tabular-nums;
}

.weather-card {
  grid-column: span 2;
}

.weather-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
  gap: 8px;
}

.weather-choice {
  position: relative;
  min-height: 42px;
  border: 1px solid #d7e6dd;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffefb, #f4faf6);
  color: #4c6759;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(47, 111, 78, .06);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.weather-choice:hover {
  border-color: #aecaba;
  transform: translateY(-1px);
}

.weather-choice.active {
  border-color: var(--leaf);
  background: linear-gradient(180deg, #e8f5ec, #f7fcf8);
  color: #245d42;
  box-shadow:
    inset 0 0 0 2px rgba(47, 111, 78, .14),
    0 8px 18px rgba(47, 111, 78, .13);
}

.weather-choice.active::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 3px #fff;
}

.weather-mark {
  width: 25px;
  height: 25px;
  border-radius: 9px;
  background: rgba(47, 111, 78, .08);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.weather-choice.active .weather-mark {
  background: #fff;
}

.weather-label {
  line-height: 1;
  white-space: nowrap;
}

.weather-symbol {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}

.weather-symbol::before,
.weather-symbol::after {
  content: "";
  position: absolute;
  display: block;
}

.weather-symbol.sun::before {
  inset: 3px;
  border-radius: 50%;
  background: #d8a33a;
  box-shadow: 0 0 0 4px rgba(216, 163, 58, .18);
}

.weather-symbol.cloud::before {
  left: 1px;
  top: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8a33a;
  box-shadow: 0 0 0 2px rgba(216, 163, 58, .18);
}

.weather-symbol.cloud::after {
  left: 4px;
  right: 0;
  bottom: 3px;
  height: 8px;
  border-radius: 999px;
  background: #7f9c98;
  box-shadow:
    3px -4px 0 1px #7f9c98,
    8px -2px 0 #7f9c98;
}

.weather-symbol.overcast::before {
  left: 1px;
  right: 2px;
  bottom: 3px;
  height: 8px;
  border-radius: 999px;
  background: #697b76;
  box-shadow:
    4px -5px 0 1px #697b76,
    10px -2px 0 #697b76;
}

.weather-symbol.overcast::after {
  left: 2px;
  right: 1px;
  top: 3px;
  height: 6px;
  border-radius: 999px;
  background: #94aaa3;
  opacity: .8;
}

.weather-symbol.rain::before {
  left: 2px;
  right: 1px;
  top: 3px;
  height: 8px;
  border-radius: 999px;
  background: #6b8f99;
}

.weather-symbol.rain::after {
  left: 4px;
  bottom: 1px;
  width: 2px;
  height: 6px;
  border-radius: 2px;
  background: #4b8b9a;
  box-shadow: 5px 0 0 #4b8b9a, 10px 0 0 #4b8b9a;
}

.weather-symbol.wind::before {
  left: 1px;
  top: 5px;
  width: 15px;
  height: 8px;
  border-top: 2px solid #7d9d91;
  border-bottom: 2px solid #7d9d91;
  border-radius: 999px;
}

.weather-symbol.fog::before {
  left: 1px;
  top: 5px;
  width: 16px;
  height: 10px;
  border-top: 2px solid #9aa59e;
  border-bottom: 2px solid #9aa59e;
  box-shadow: 0 4px 0 -2px #9aa59e;
}

.weather-symbol.snow::before {
  left: 8px;
  top: 2px;
  width: 2px;
  height: 14px;
  border-radius: 2px;
  background: #7ca7c8;
  box-shadow: 0 0 0 1px rgba(124, 167, 200, .12);
}

.weather-symbol.snow::after {
  left: 2px;
  top: 8px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #7ca7c8;
  transform: rotate(45deg);
  box-shadow: 0 0 0 1px rgba(124, 167, 200, .12);
}

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

.dimension {
  --accent: #4f9d68;
  --soft: #edf8ef;
  --deep: #2f6f4e;
  position: relative;
  min-height: 210px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent), #ffffff 54%);
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 12%, color-mix(in srgb, var(--accent), transparent 78%), transparent 22%),
    linear-gradient(145deg, #fffef9, var(--soft));
  overflow: hidden;
}

.dimension::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 68px;
  height: 68px;
  opacity: .16;
  background: var(--accent);
  pointer-events: none;
}

.dimension.health {
  --accent: #4f9d68;
  --soft: #edf8ef;
  --deep: #2f6f4e;
}

.dimension.family {
  --accent: #d99a42;
  --soft: #fff5e4;
  --deep: #8a5b20;
}

.dimension.study {
  --accent: #477fbe;
  --soft: #eef5ff;
  --deep: #2f5d95;
}

.dimension.career {
  --accent: #8b69b4;
  --soft: #f4effb;
  --deep: #61458b;
}

.dimension.hobby {
  --accent: #cf6f77;
  --soft: #fff0f1;
  --deep: #93484f;
}

.dimension.fun {
  --accent: #4d9ca0;
  --soft: #edfafa;
  --deep: #2f7074;
}

.dimension.health::before {
  border-radius: 50% 50% 50% 12px;
  transform: rotate(-18deg);
}

.dimension.family::before {
  width: 76px;
  height: 52px;
  clip-path: polygon(50% 0, 100% 38%, 86% 38%, 86% 100%, 14% 100%, 14% 38%, 0 38%);
}

.dimension.study::before {
  width: 78px;
  height: 58px;
  clip-path: polygon(0 8%, 44% 0, 44% 78%, 0 88%, 0 8%, 56% 0, 100% 8%, 100% 88%, 56% 78%, 56% 0);
}

.dimension.career::before {
  width: 72px;
  height: 58px;
  clip-path: polygon(12% 20%, 38% 20%, 38% 8%, 62% 8%, 62% 20%, 88% 20%, 88% 92%, 12% 92%);
}

.dimension.hobby::before {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 82% 100%, 50% 76%, 18% 100%, 30% 60%, 0 38%, 38% 35%);
}

.dimension.fun::before {
  width: 76px;
  height: 52px;
  border-radius: 999px;
  clip-path: polygon(8% 32%, 30% 12%, 70% 12%, 92% 32%, 82% 82%, 18% 82%);
}

.dimension-head,
.dimension-body,
.dimension-bottom {
  position: relative;
  z-index: 1;
}

.dimension-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--deep);
  font-size: 16px;
  font-weight: 900;
}

.symbol {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent), #ffffff 70%);
  border: 1px solid color-mix(in srgb, var(--accent), #ffffff 36%);
  position: relative;
  flex: 0 0 auto;
}

.symbol::before,
.symbol::after {
  content: "";
  position: absolute;
  background: var(--accent);
}

.health .symbol::before {
  width: 18px;
  height: 18px;
  left: 8px;
  top: 7px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-20deg);
}

.health .symbol::after {
  width: 2px;
  height: 18px;
  left: 17px;
  top: 9px;
  transform: rotate(26deg);
  border-radius: 2px;
}

.family .symbol::before {
  width: 22px;
  height: 17px;
  left: 6px;
  bottom: 7px;
  border-radius: 3px;
}

.family .symbol::after {
  width: 21px;
  height: 21px;
  left: 7px;
  top: 5px;
  transform: rotate(45deg);
  border-radius: 3px;
}

.study .symbol::before {
  width: 11px;
  height: 21px;
  left: 6px;
  top: 7px;
  border-radius: 2px 7px 7px 2px;
}

.study .symbol::after {
  width: 11px;
  height: 21px;
  right: 6px;
  top: 7px;
  border-radius: 7px 2px 2px 7px;
}

.career .symbol::before {
  width: 22px;
  height: 17px;
  left: 6px;
  bottom: 7px;
  border-radius: 4px;
}

.career .symbol::after {
  width: 10px;
  height: 5px;
  left: 12px;
  top: 8px;
  border: 3px solid var(--accent);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: transparent;
}

.hobby .symbol::before {
  width: 22px;
  height: 22px;
  left: 6px;
  top: 6px;
  border-radius: 50%;
}

.hobby .symbol::after {
  width: 9px;
  height: 9px;
  left: 13px;
  top: 13px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent), #ffffff 70%);
  box-shadow: -8px -2px 0 -2px #fff, 8px -2px 0 -2px #fff, 0 8px 0 -2px #fff;
}

.fun .symbol::before {
  width: 23px;
  height: 15px;
  left: 6px;
  top: 10px;
  border-radius: 12px;
}

.fun .symbol::after {
  width: 4px;
  height: 4px;
  left: 12px;
  top: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 9px 0 0 #fff;
}

.check-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent), #ffffff 78%);
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.check-wrap input {
  accent-color: var(--accent);
}

.dimension-body {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.dimension-todo {
  display: grid;
  grid-template-columns: 72px minmax(76px, .8fr) minmax(76px, .8fr) auto;
  gap: 7px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent), #ffffff 72%);
  border-radius: 12px;
  background: rgba(255, 255, 255, .58);
  padding: 8px;
}

.dimension-todo-label {
  grid-column: 1 / -1;
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
}

.dimension-todo input,
.dimension-todo select {
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent), #ffffff 70%);
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  padding: 0 8px;
  outline: 0;
  min-width: 0;
}

.dimension-todo input[type="text"] {
  grid-column: 1 / -1;
  width: 100%;
}

.dimension-todo input[type="number"] {
  width: 100%;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.dimension-todo select {
  width: 100%;
}

.quick-todo-button {
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent), #ffffff 42%);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  padding: 0 10px;
  font-weight: 900;
  white-space: nowrap;
}

.dimension-suggestion {
  border: 1px solid color-mix(in srgb, var(--accent), #ffffff 70%);
  background: rgba(255, 255, 255, .78);
  border-radius: 12px;
  padding: 10px;
}

.dimension-suggestion span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.dimension-suggestion textarea {
  width: 100%;
}

.dimension-suggestion textarea {
  line-height: 1.35;
  resize: none;
  overflow: hidden;
  white-space: normal;
}

.dimension-suggestion textarea {
  min-height: 68px;
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
}

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

.dimension-todo-empty {
  border: 1px dashed color-mix(in srgb, var(--accent), #ffffff 64%);
  border-radius: 12px;
  background: rgba(255, 255, 255, .46);
  color: var(--muted);
  font-size: 12px;
  padding: 9px 10px;
}

.dimension-todo-item {
  --todo-color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--todo-color), #ffffff 66%);
  border-radius: 12px;
  background: rgba(255, 255, 255, .68);
  padding: 9px;
  display: grid;
  gap: 8px;
}

.dimension-todo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.dimension-todo-row strong {
  display: block;
  color: var(--todo-color);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.dimension-todo-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dimension-todo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.dimension-todo-actions button {
  min-height: 28px;
  border: 1px solid color-mix(in srgb, var(--todo-color), #ffffff 54%);
  border-radius: 9px;
  background: #fff;
  color: color-mix(in srgb, var(--todo-color), #111 30%);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
}

.dimension-todo-actions button.done {
  background: var(--todo-color);
  color: #fff;
}

.dimension-todo-edit {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--todo-color), #ffffff 76%);
}

.dimension-todo-edit input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--todo-color), #ffffff 70%);
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  padding: 0 8px;
  outline: 0;
  font-size: 13px;
  font-weight: 700;
}

.dimension-todo-edit input[type="number"] {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.track {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent), #ffffff 72%);
}

.track-fill {
  height: 100%;
  width: var(--value, 0%);
  background: var(--accent);
  border-radius: inherit;
}

.dimension-bottom {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.todo-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 247, .78);
  padding: 14px;
}

.todo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.todo-head h3 {
  font-size: 18px;
}

.todo-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.todo-form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 12px;
}

.todo-form input,
.todo-form select {
  flex: 1 1 112px;
  min-width: 0;
}

#todoText {
  flex: 2 1 220px;
}

#todoDimension {
  flex: 1 1 132px;
}

#todoImportance,
#todoUrgency {
  flex: .7 1 94px;
}

#todoMinutes {
  flex: .6 1 78px;
}

.todo-form button {
  flex: 0 0 auto;
}

.todo-form input,
.todo-form select,
.todo-edit input,
.todo-edit select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  outline: 0;
}

.todo-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.todo-group {
  --accent: #4f9d68;
  --soft: #edf8ef;
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, #fffef9, #f8fbf6);
  padding: 12px;
}

.todo-group.important-urgent {
  border-color: #e4b3a5;
  background: linear-gradient(145deg, #fffaf8, #fff0ec);
}

.todo-group.important-later {
  border-color: #bdd3be;
  background: linear-gradient(145deg, #fbfff9, #edf8ef);
}

.todo-group.normal-urgent {
  border-color: #d8c79f;
  background: linear-gradient(145deg, #fffdf6, #fff7df);
}

.todo-group.normal-later {
  border-color: #cfdbe6;
  background: linear-gradient(145deg, #fbfdff, #eef5ff);
}

.todo-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
}

.todo-count {
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  padding: 4px 8px;
  font-size: 12px;
}

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

.todo-empty {
  color: var(--muted);
  font-size: 12px;
  padding: 8px 0;
}

.todo-item {
  --todo-color: #4f9d68;
  border: 1px solid color-mix(in srgb, var(--todo-color), #ffffff 68%);
  border-radius: 13px;
  background: rgba(255, 255, 255, .74);
  padding: 10px 10px 9px;
}

.todo-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.todo-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--todo-color);
  overflow-wrap: anywhere;
}

.todo-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.todo-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.todo-actions button {
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--todo-color), #ffffff 54%);
  border-radius: 10px;
  background: #fff;
  color: color-mix(in srgb, var(--todo-color), #111 30%);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.todo-actions button.done {
  background: var(--todo-color);
  color: #fff;
}

.todo-edit {
  display: grid;
  grid-template-columns: minmax(86px, .9fr) 76px minmax(112px, 1.2fr);
  gap: 7px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid color-mix(in srgb, var(--todo-color), #ffffff 76%);
}

.todo-edit select,
.todo-edit input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.todo-edit input[type="number"] {
  max-width: 76px;
  text-align: center;
}

.todo-item.dragging {
  opacity: .56;
}

.todo-group.drag-over {
  outline: 2px solid rgba(47, 111, 78, .28);
  outline-offset: 3px;
}

.score-card {
  background: linear-gradient(145deg, #2f6f4e, #719f67);
  color: #fff;
  border-radius: 18px;
  padding: 16px;
}

.score-card span {
  color: rgba(255, 255, 255, .72);
}

.score-card strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  margin-top: 4px;
}

.score-card p {
  margin-top: 8px;
  color: rgba(255, 255, 255, .8);
  font-size: 13px;
}

.side-section,
.forest-card,
.repair-card,
.backup-card {
  border-radius: 16px;
  background: #fbfff8;
  border: 1px solid var(--line);
  padding: 14px;
}

.section-title strong {
  color: var(--leaf);
  font-size: 13px;
}

.checkin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.checkin-stat {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 3px;
}

.checkin-stat strong {
  color: var(--leaf);
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.checkin-stat span {
  font-size: 11px;
}

.countdown-actions button {
  min-height: 28px;
  border: 1px solid #c8dbc9;
  border-radius: 9px;
  background: #fff;
  color: var(--leaf);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
}

.countdown-empty {
  color: var(--muted);
  font-size: 12px;
  padding-top: 8px;
}

.countdown-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.countdown-form[hidden] {
  display: none;
}

.countdown-form input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  outline: 0;
}

.countdown-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.countdown-item {
  border: 1px solid #d5e4d8;
  border-radius: 13px;
  background: rgba(255, 255, 255, .78);
  padding: 10px;
  display: grid;
  gap: 7px;
}

.countdown-item.done {
  opacity: .68;
}

.countdown-main {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.countdown-title {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.countdown-days {
  flex: 0 0 auto;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.countdown-meta {
  color: var(--muted);
  font-size: 12px;
}

.countdown-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 7px;
  height: 128px;
  padding: 14px 8px 6px;
}

.bar-column {
  display: grid;
  gap: 6px;
  justify-items: center;
  color: var(--muted);
  font-size: 11px;
}

.bar-stick {
  width: 100%;
  min-height: 10px;
  height: var(--height);
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(var(--color), color-mix(in srgb, var(--color), #ffffff 76%));
}

.legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color);
  box-shadow: inset -3px -4px 6px rgba(0, 0, 0, .12);
}

.legend-main {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 800;
  white-space: nowrap;
}

.legend-item strong {
  flex: 0 0 auto;
  color: var(--leaf);
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.forest {
  height: 196px;
  margin-top: 10px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 88%, rgba(47, 111, 78, .18), transparent 42%),
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, .72), transparent 24%),
    linear-gradient(180deg, #dff1f0 0%, #edf8ed 54%, #fffdf7 100%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  perspective: 700px;
}

.forest::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 244px;
  height: 100px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, .46), transparent 22%),
    radial-gradient(circle at 63% 54%, rgba(42, 111, 54, .24), transparent 34%),
    linear-gradient(145deg, #9fcf7c, #5d9a57 68%, #3f7d45);
  box-shadow:
    0 18px 28px rgba(47, 111, 78, .22),
    inset -26px -20px 22px rgba(44, 101, 55, .22),
    inset 18px 14px 18px rgba(255, 255, 255, .22);
  transform: translateX(-50%) rotateX(56deg) rotateZ(-4deg);
  z-index: 1;
}

.forest::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 180px;
  height: 22px;
  border-radius: 50%;
  background: rgba(48, 81, 56, .18);
  filter: blur(5px);
  transform: translateX(-50%);
  z-index: 0;
}

.tree {
  position: absolute;
  bottom: var(--bottom);
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 1.5);
  transform: translateX(-50%);
  z-index: var(--z);
  filter: drop-shadow(0 10px 8px rgba(42, 67, 48, .16));
}

.tree span {
  position: absolute;
  display: block;
}

.tree-shadow {
  left: 50%;
  bottom: -3px;
  width: calc(var(--size) * .86);
  height: calc(var(--size) * .18);
  border-radius: 50%;
  background: rgba(54, 111, 58, .28);
  filter: blur(1px);
  transform: translateX(-50%);
  z-index: 5;
}

.tree-trunk {
  left: 50%;
  bottom: 0;
  width: calc(var(--size) * .18);
  height: calc(var(--size) * .64);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(90deg, #7a5939, #b28a58 52%, #8b6843);
  transform: translateX(-50%);
  z-index: 2;
}

.tree-trunk::after {
  content: "";
  position: absolute;
  left: 48%;
  top: 31%;
  width: calc(var(--size) * .26);
  height: calc(var(--size) * .08);
  border-radius: 999px;
  background: #9f774c;
  transform: rotate(-28deg);
  transform-origin: left center;
}

.tree-crown {
  position: absolute;
  left: 50%;
  bottom: calc(var(--size) * .42);
  width: var(--size);
  height: var(--size);
  transform: translateX(-50%);
  z-index: 4;
}

.leaf {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .52), transparent 18%),
    radial-gradient(circle at 70% 78%, rgba(0, 0, 0, .12), transparent 38%),
    var(--c);
  box-shadow:
    0 9px 12px rgba(36, 53, 45, .17),
    inset -8px -10px 12px rgba(35, 75, 45, .16),
    inset 7px 5px 9px rgba(255, 255, 255, .22);
  overflow: hidden;
}

.stage-small .tree-crown {
  width: calc(var(--size) * .92);
  height: calc(var(--size) * .9);
  bottom: calc(var(--size) * .28);
}

.stage-small .tree-trunk {
  width: calc(var(--size) * .14);
  height: calc(var(--size) * .48);
}

.stage-small .leaf-a {
  left: 34%;
  top: 0;
  width: 34%;
  height: 58%;
  border-radius: 55% 45% 52% 48%;
}

.stage-small .leaf-b {
  left: 9%;
  bottom: 18%;
  width: 48%;
  height: 42%;
  transform: rotate(-30deg);
}

.stage-small .leaf-c {
  right: 9%;
  bottom: 18%;
  width: 48%;
  height: 42%;
  transform: rotate(30deg);
}

.stage-medium .leaf-a {
  inset: 6% 14% 11%;
}

.stage-medium .leaf-b {
  left: 5%;
  bottom: 1%;
  width: 52%;
  height: 52%;
}

.stage-medium .leaf-c {
  right: 5%;
  bottom: 1%;
  width: 52%;
  height: 52%;
}

.stage-large .tree-crown {
  width: calc(var(--size) * 1.12);
  height: calc(var(--size) * 1.14);
}

.stage-large .leaf-a {
  inset: 2% 18% 16%;
}

.stage-large .leaf-b {
  left: 0;
  bottom: 1%;
  width: 58%;
  height: 58%;
}

.stage-large .leaf-c {
  right: 0;
  bottom: 1%;
  width: 58%;
  height: 58%;
}

.tree-health .leaf {
  border-radius: 54% 46% 48% 52%;
}

.tree-family .leaf {
  border-radius: 38% 38% 18% 18%;
}

.tree-family .leaf-a {
  border-radius: 30% 30% 14% 14%;
  transform: translateY(4%) rotate(45deg);
}

.tree-study .leaf-a {
  border-radius: 70% 28% 62% 28%;
  transform: rotate(-12deg);
}

.tree-study .leaf-b,
.tree-study .leaf-c {
  border-radius: 30% 58% 28% 48%;
}

.tree-career .leaf {
  border-radius: 14px 14px 18px 18px;
  clip-path: polygon(50% 0, 96% 66%, 76% 66%, 100% 100%, 0 100%, 24% 66%, 4% 66%);
}

.tree-hobby .leaf {
  border-radius: 62% 42% 60% 18%;
}

.tree-hobby .leaf-b {
  transform: rotate(-34deg);
}

.tree-hobby .leaf-c {
  transform: rotate(34deg);
}

.tree-fun .leaf {
  border-radius: 999px;
}

.tree-fun .leaf-a {
  inset: 17% 10% 9%;
}

.forest {
  height: 176px;
  margin-top: 10px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #eef8f3 0%, #fbfff8 100%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  perspective: none;
}

.forest::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 78%;
  max-width: 270px;
  height: 68px;
  border-radius: 50%;
  background: #dcefd6;
  border: 1px solid rgba(126, 165, 112, .2);
  box-shadow: none;
  transform: translateX(-50%);
  z-index: 0;
}

.forest::after {
  display: none;
}

.grove-2d {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.grove-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  opacity: var(--alpha);
  transform: translate(-50%, -50%);
}

.grove-shape {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 56% 44% 56% 18%;
  background: var(--c);
  transform: rotate(-18deg);
  border: 2px solid rgba(255, 255, 255, .55);
  box-shadow: 0 8px 18px rgba(47, 111, 78, .12);
}

.grove-node-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(18deg);
  color: rgba(255, 255, 255, .92);
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(36, 53, 45, .22);
}

.forest {
  height: 184px;
  margin-top: 10px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, .78), transparent 24%),
    linear-gradient(180deg, #eef8f3 0%, #fbfff8 100%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  perspective: none;
}

.forest::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(82%, 300px);
  height: 58px;
  border-radius: 50%;
  background: #dcefd6;
  border: 1px solid rgba(126, 165, 112, .22);
  box-shadow: none;
  transform: translateX(-50%);
  z-index: 0;
}

.forest::after {
  display: none;
}

.plant-garden {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.plant-node,
.plant-node span {
  position: absolute;
  box-sizing: border-box;
}

.plant-node {
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  opacity: var(--alpha);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 10px rgba(47, 82, 59, .14));
}

.plant-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.plant-shadow {
  left: 22%;
  right: 22%;
  bottom: 2%;
  height: 10%;
  border-radius: 50%;
  background: rgba(64, 99, 66, .18);
}

.plant-stem {
  left: 48%;
  bottom: 14%;
  width: 8%;
  height: 54%;
  border-radius: 999px;
  background: #599966;
  transform-origin: bottom center;
}

.stem-b,
.stem-c {
  display: none;
}

.plant-leaf {
  left: 48%;
  bottom: 30%;
  width: 30%;
  height: 16%;
  border-radius: 100% 0 100% 0;
  background: color-mix(in srgb, var(--c), #2f7a50 28%);
  transform-origin: left center;
}

.leaf-a {
  transform: rotate(-28deg);
}

.leaf-b {
  transform: rotate(148deg);
}

.leaf-c {
  display: none;
}

.plant-head {
  left: 50%;
  top: 15%;
  width: 52%;
  height: 52%;
  transform: translateX(-50%);
}

.plant-tier,
.plant-petal,
.plant-center,
.grain {
  display: none;
}

.plant-stage-seedling .plant-head {
  display: none;
}

.plant-stage-seedling .plant-stem {
  height: 34%;
}

.plant-stage-seedling .plant-leaf {
  width: 34%;
  height: 18%;
  bottom: 22%;
}

.plant-stage-growing .plant-head {
  opacity: .72;
  transform: translateX(-50%) scale(.78);
}

.plant-stage-growing .plant-petal,
.plant-stage-growing .plant-center,
.plant-stage-growing .grain,
.plant-stage-growing .plant-tier {
  opacity: .72;
}

.plant-stage-mature .plant-head {
  transform: translateX(-50%) scale(1);
}

.plant-sunflower .plant-petal,
.plant-sunflower .plant-center {
  display: block;
}

.plant-sunflower .plant-petal {
  left: 42%;
  top: 2%;
  width: 18%;
  height: 45%;
  border-radius: 999px 999px 55% 55%;
  background: var(--c);
  transform-origin: 50% 105%;
}

.plant-sunflower .p1 { transform: rotate(0deg); }
.plant-sunflower .p2 { transform: rotate(45deg); }
.plant-sunflower .p3 { transform: rotate(90deg); }
.plant-sunflower .p4 { transform: rotate(135deg); }
.plant-sunflower .p5 { transform: rotate(180deg); }
.plant-sunflower .p6 { transform: rotate(225deg); }
.plant-sunflower .p7 { transform: rotate(270deg); }
.plant-sunflower .p8 { transform: rotate(315deg); }

.plant-sunflower .plant-center {
  left: 27%;
  top: 27%;
  width: 46%;
  height: 46%;
  border-radius: 50%;
  background: #7a5630;
  border: 3px solid #f4c75d;
}

.plant-wheat .plant-head,
.plant-wheat .grain {
  display: block;
}

.plant-wheat .plant-head {
  top: 4%;
  height: 72%;
}

.plant-wheat .plant-stem {
  height: 70%;
  background: #b8873c;
}

.plant-wheat .grain {
  left: 45%;
  width: 20%;
  height: 18%;
  border-radius: 50% 50% 50% 8%;
  background: var(--c);
}

.plant-wheat .g1 { top: 5%; transform: rotate(-32deg); }
.plant-wheat .g2 { top: 16%; transform: translateX(65%) rotate(32deg); }
.plant-wheat .g3 { top: 28%; transform: rotate(-32deg); }
.plant-wheat .g4 { top: 40%; transform: translateX(65%) rotate(32deg); }
.plant-wheat .g5 { top: 52%; transform: rotate(-32deg); }
.plant-wheat .g6 { top: 64%; transform: translateX(65%) rotate(32deg); }

.plant-pine .plant-tier {
  display: block;
  left: 50%;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 34px solid var(--c);
  transform: translateX(-50%);
}

.plant-pine .tier-a {
  top: 2%;
  border-left-width: 18px;
  border-right-width: 18px;
  border-bottom-width: 28px;
}

.plant-pine .tier-b {
  top: 22%;
}

.plant-pine .tier-c {
  top: 45%;
  border-left-width: 30px;
  border-right-width: 30px;
  border-bottom-width: 38px;
}

.plant-pine .plant-stem {
  height: 28%;
  background: #7a5a36;
}

.plant-bamboo .plant-stem {
  width: 9%;
  height: 72%;
  background: repeating-linear-gradient(180deg, var(--c) 0 16px, #5f4aa0 16px 19px);
}

.plant-bamboo .stem-b,
.plant-bamboo .stem-c {
  display: block;
  width: 7%;
  height: 62%;
  background: repeating-linear-gradient(180deg, var(--c) 0 14px, #5f4aa0 14px 17px);
}

.plant-bamboo .stem-b {
  left: 34%;
  transform: rotate(-8deg);
}

.plant-bamboo .stem-c {
  left: 61%;
  transform: rotate(8deg);
}

.plant-bamboo .plant-head {
  display: none;
}

.plant-bamboo .plant-leaf {
  background: #6cbb78;
}

.plant-bamboo .leaf-a { bottom: 58%; left: 52%; }
.plant-bamboo .leaf-b { bottom: 44%; left: 38%; }
.plant-bamboo .leaf-c { display: block; bottom: 66%; left: 33%; transform: rotate(158deg); }

.plant-chrysanthemum .plant-petal,
.plant-chrysanthemum .plant-center {
  display: block;
}

.plant-chrysanthemum .plant-petal {
  left: 45%;
  top: 0;
  width: 12%;
  height: 48%;
  border-radius: 999px 999px 40% 40%;
  background: var(--c);
  transform-origin: 50% 105%;
}

.plant-chrysanthemum .p1 { transform: rotate(0deg); }
.plant-chrysanthemum .p2 { transform: rotate(40deg); }
.plant-chrysanthemum .p3 { transform: rotate(80deg); }
.plant-chrysanthemum .p4 { transform: rotate(120deg); }
.plant-chrysanthemum .p5 { transform: rotate(180deg); }
.plant-chrysanthemum .p6 { transform: rotate(220deg); }
.plant-chrysanthemum .p7 { transform: rotate(260deg); }
.plant-chrysanthemum .p8 { transform: rotate(320deg); }

.plant-chrysanthemum .plant-center {
  left: 34%;
  top: 34%;
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background: #f0be59;
}

.plant-orchid .plant-petal,
.plant-orchid .plant-center {
  display: block;
}

.plant-orchid .plant-petal {
  background: var(--c);
  border-radius: 70% 30% 70% 30%;
}

.plant-orchid .p1 { left: 36%; top: 0; width: 28%; height: 42%; }
.plant-orchid .p2 { left: 12%; top: 25%; width: 34%; height: 32%; transform: rotate(-35deg); }
.plant-orchid .p3 { right: 12%; top: 25%; width: 34%; height: 32%; transform: rotate(35deg); }
.plant-orchid .p4 { left: 28%; bottom: 8%; width: 44%; height: 32%; transform: rotate(45deg); }
.plant-orchid .p5 { display: block; left: 40%; top: 38%; width: 20%; height: 22%; border-radius: 50%; background: #f3d87a; }

.plant-orchid .plant-center {
  left: 43%;
  top: 42%;
  width: 14%;
  height: 14%;
  border-radius: 50%;
  background: #fff0a4;
}

.forest-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.repair-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.repair-entry:last-child {
  border-bottom: 0;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--leaf);
  font-weight: 900;
}

.backup-card {
  gap: 8px;
  justify-content: space-between;
}

.file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

dialog {
  width: min(760px, calc(100vw - 28px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(28, 43, 34, .38);
  backdrop-filter: blur(4px);
}

.dialog-card {
  background: var(--paper);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px;
}

.dialog-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dialog-card p {
  line-height: 1.6;
  margin-bottom: 14px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
  max-height: 52vh;
  overflow: auto;
}

.history-date {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  display: grid;
  align-content: center;
  gap: 3px;
}

.history-date strong {
  font-size: 14px;
}

.history-date span {
  color: var(--muted);
  font-size: 11px;
}

.history-date.has-entry {
  background: #edf7ed;
  border-color: #b9d3bd;
}

.history-date.has-meta {
  background: #fff4e4;
  border-color: #ebd0a7;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(20px);
  min-width: 220px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(36, 53, 45, .94);
  color: #fff;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.forest-card .forest {
  height: 188px;
  margin-top: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eef8f3 0%, #fbfff8 100%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  perspective: none;
}

.forest-card .forest::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: min(86%, 312px);
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(145deg, #9fcf7c, #5d9a57 68%, #3f7d45);
  border: 0;
  box-shadow:
    0 16px 26px rgba(47, 111, 78, .18),
    inset -24px -18px 20px rgba(44, 101, 55, .2),
    inset 18px 14px 18px rgba(255, 255, 255, .24);
  transform: translateX(-50%) skewY(-4deg) scaleY(.62);
  z-index: 0;
}

.forest-card .forest::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: min(68%, 238px);
  height: 22px;
  border-radius: 50%;
  background: rgba(48, 81, 56, .16);
  filter: blur(4px);
  transform: translateX(-50%);
  z-index: 0;
}

.forest-card .plant-garden {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.forest-card .plant-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  opacity: var(--alpha);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 10px rgba(47, 82, 59, .14));
}

.forest-card .plant-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

  .right-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100vw - 18px, 620px);
    margin: 9px auto;
    grid-template-columns: 1fr;
  }

  .main-panel {
    order: 1;
  }

  .right-panel {
    order: 2;
  }

  .sidebar {
    order: 3;
  }

  .sidebar,
  .main-panel,
  .right-panel {
    padding: 14px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    justify-content: stretch;
  }

  .top-actions > * {
    flex: 1 1 auto;
  }

  .meta-grid,
  .dimension-grid,
  .todo-board,
  .right-panel {
    grid-template-columns: 1fr;
  }

  .weather-card {
    grid-column: auto;
  }

  .todo-form {
    flex-direction: column;
  }

  .todo-edit {
    grid-template-columns: 1fr;
  }

  .todo-form > *,
  .todo-edit > * {
    flex-basis: auto;
    width: 100%;
  }

  .dimension-todo > * {
    width: 100%;
  }

  .dimension-todo,
  .dimension-todo-row,
  .dimension-todo-edit {
    grid-template-columns: 1fr;
  }

  .dimension-todo-actions {
    justify-content: flex-start;
  }

  .backup-card {
    flex-direction: column;
  }

  .button,
  .date-picker {
    justify-content: center;
  }
}
