:root {
  color-scheme: light;
  --ink: #173629;
  --muted: #6c766d;
  --faint: #929c93;
  --line: #dcded2;
  --surface: #f7f3e8;
  --canvas: #f1ede2;
  --soft: #ebece1;
  --green: #173d2d;
  --green-2: #315e49;
  --green-3: #dce6d5;
  --lime: #dff0a3;
  --orange: #d98552;
  --orange-soft: #f7e8dc;
  --red: #b65b51;
  --shadow: 0 22px 56px rgba(10, 34, 24, 0.15);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --sidebar: clamp(290px, 27vw, 410px);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 4%, rgba(220, 236, 165, 0.24), transparent 22rem),
    var(--canvas);
  font-size: 15px;
  line-height: 1.55;
}

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

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

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 30px 22px 24px;
  background: rgba(250, 252, 249, 0.9);
  border-right: 1px solid rgba(220, 228, 221, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 28px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: white;
  background: var(--green);
  border-radius: 14px 14px 14px 6px;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(53, 95, 75, 0.2);
}

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

.brand strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 21px;
  letter-spacing: 0.2px;
}

.brand small {
  margin-top: -2px;
  color: var(--faint);
  font-size: 11px;
}

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

.nav-list a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 0 15px;
  border-radius: 15px;
  color: #647169;
  font-weight: 600;
  transition: 160ms ease;
}

.nav-list a span {
  width: 22px;
  text-align: center;
  font-size: 21px;
  font-weight: 400;
}

.nav-list a:hover {
  color: var(--green);
  background: rgba(220, 233, 223, 0.55);
}

.nav-list a.active {
  color: var(--green);
  background: var(--green-3);
  box-shadow: inset 3px 0 var(--green);
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 24px;
}

.profile-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  transition: 160ms ease;
}

.profile-link:hover,
.profile-link.active {
  background: var(--soft);
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, var(--green-2), var(--green));
  font-family: Georgia, serif;
  font-size: 17px;
}

.profile-copy {
  min-width: 0;
}

.profile-copy strong,
.profile-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy strong {
  font-size: 13px;
}

.profile-copy small {
  color: var(--faint);
  font-size: 11px;
}

.workspace {
  grid-column: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 42px 64px;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 18px;
  background: linear-gradient(var(--canvas) 72%, rgba(244, 247, 242, 0));
}

.topbar h1,
.topbar p {
  margin: 0;
}

.topbar h1 {
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.6px;
}

.eyebrow {
  color: var(--green-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-chip,
.icon-button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.date-chip {
  display: flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.icon-button {
  width: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: 160ms ease;
}

.icon-button:hover {
  color: white;
  background: var(--green);
  border-color: var(--green);
  transform: rotate(20deg);
}

#app:focus {
  outline: none;
}

.page-stack {
  display: grid;
  gap: 22px;
  animation: page-in 260ms ease both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 24px;
  min-height: 248px;
  padding: clamp(28px, 4vw, 48px);
  color: white;
  background: linear-gradient(130deg, #2f5946, #507860);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -70px;
  bottom: -110px;
  border: 40px solid rgba(220, 236, 165, 0.14);
  border-radius: 48% 52% 42% 58%;
  transform: rotate(26deg);
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: #dceca5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-copy h2 {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.18;
  font-weight: 500;
}

.hero-copy p {
  max-width: 560px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.hero-metric {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-metric strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 1;
  font-weight: 500;
}

.hero-metric small {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.65);
}

.metric-bar {
  height: 7px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.metric-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: 160ms ease;
}

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

.btn-primary {
  color: white;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(53, 95, 75, 0.16);
}

.hero-panel .btn-primary {
  color: var(--green);
  background: white;
}

.btn-secondary {
  color: var(--green);
  background: var(--green-3);
}

.hero-panel .btn-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  color: var(--muted);
  background: white;
  border-color: var(--line);
}

.btn-danger {
  color: var(--red);
  background: #fbefed;
}

.btn-small {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

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

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.card {
  min-width: 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 233, 227, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: 0 9px 30px rgba(46, 74, 58, 0.045);
}

.card-head,
.section-head,
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-head {
  margin-bottom: 18px;
}

.card-head h2,
.card-head h3,
.section-head h2,
.card p {
  margin-top: 0;
}

.card-head h2,
.section-head h2 {
  margin-bottom: 3px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 22px;
}

.card-head h3 {
  margin-bottom: 0;
  font-size: 16px;
}

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

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

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: var(--green);
  background: var(--green-3);
  font-size: 19px;
}

.stat-card strong,
.stat-card small {
  display: block;
}

.stat-card strong {
  font-size: 23px;
  line-height: 1.15;
}

.stat-card small {
  color: var(--faint);
  font-size: 11px;
}

.list,
.compact-list {
  display: grid;
  gap: 11px;
}

.list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  transition: 160ms ease;
}

button.list-item {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.list-item:hover {
  border-color: #cad8cd;
  transform: translateY(-1px);
}

.list-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green-2);
  box-shadow: 0 0 0 5px var(--green-3);
}

.list-copy {
  min-width: 0;
}

.list-copy strong,
.list-copy span {
  display: block;
}

.list-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.list-copy span {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-meta {
  color: var(--faint);
  font-size: 11px;
  white-space: nowrap;
}

.status,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-3);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.status.todo { color: #66746b; background: #eef1ef; }
.status.doing { color: #3e7158; background: #dcebe0; }
.status.done { color: #527249; background: #e6efd9; }
.status.paused { color: #976032; background: var(--orange-soft); }
.status.overdue { color: #a95048; background: #fae6e4; }

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

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.filter-chip.active {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.search-box {
  min-width: min(100%, 250px);
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
}

.search-box:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(80, 124, 100, 0.11);
}

.plan-grid,
.note-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan-card,
.note-card,
.tool-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 19px;
  transition: 180ms ease;
}

.plan-card:hover,
.note-card:hover,
.tool-card:hover {
  transform: translateY(-2px);
  border-color: #c9d8cc;
  box-shadow: var(--shadow);
}

.plan-card h3,
.note-card h3,
.tool-card h3 {
  margin: 13px 0 8px;
  font-size: 17px;
}

.plan-card p,
.note-card p,
.tool-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
}

.plan-card-foot,
.note-card-foot,
.tool-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--faint);
  font-size: 11px;
}

.mini-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.mini-action {
  min-height: 30px;
  padding: 0 9px;
  color: var(--muted);
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.mini-action:hover {
  color: var(--green);
  border-color: #c9d8cc;
}

.categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 1px 7px;
  scrollbar-width: thin;
}

.category-pill {
  flex: 0 0 auto;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}

.category-pill.active {
  color: var(--green);
  background: var(--green-3);
  border-color: #bdd0c2;
}

.checkin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 20px;
}

.checkin-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

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

.check-circle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #cad8cd;
  border-radius: 50%;
  color: var(--green);
  background: var(--soft);
  font-size: 18px;
}

.checkin-item h3,
.checkin-item p {
  margin: 0;
}

.checkin-item h3 {
  font-size: 14px;
}

.checkin-item p {
  color: var(--faint);
  font-size: 11px;
}

.checkin-item-copy { min-width: 0; }

.checkin-item-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.tutorial-video-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.tutorial-video-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--soft);
}

.tutorial-video-card h3,
.tutorial-video-card p { margin: 0; }
.tutorial-video-card p { margin-top: 4px; color: var(--muted); font-size: 12px; }

.tutorial-video-card video,
.tutorial-video-current video {
  display: block;
  width: 100%;
  max-height: 520px;
  margin-top: 12px;
  background: #101813;
  border-radius: 13px;
}

.tutorial-video-legacy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.history-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

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

.history-date {
  width: 44px;
  height: 48px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 12px;
  color: var(--green);
  background: var(--green-3);
  line-height: 1;
}

.history-date strong { font-size: 16px; }
.history-date small { margin-top: 4px; font-size: 9px; }
.history-copy strong { display: block; font-size: 13px; }
.history-copy p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.history-copy { min-width: 0; }

.checkin-history-video {
  display: block;
  width: 100%;
  max-height: 260px;
  margin-top: 10px;
  background: #17221c;
  border-radius: 12px;
}

.empty-state {
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #cdd8cf;
  border-radius: 17px;
  background: linear-gradient(145deg, #fbfcfb, #f3f7f3);
}

.empty-state .empty-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  color: var(--green);
  background: var(--green-3);
  border-radius: 50% 50% 50% 18%;
  font-family: Georgia, serif;
  font-size: 24px;
}

.empty-state strong { color: var(--ink); }
.empty-state p { max-width: 340px; margin: 0 0 12px; font-size: 12px; }

.collection-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
}

.collection-side {
  align-self: start;
}

.collection-list {
  display: grid;
  gap: 6px;
}

.collection-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}

.collection-item:hover,
.collection-item.active {
  color: var(--green);
  background: var(--green-3);
}

.collection-item small {
  min-width: 22px;
  padding: 2px 6px;
  text-align: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.note-card.pinned {
  background: linear-gradient(150deg, #ffffff, #f5f8ee);
}

.note-card-preview {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  overflow: hidden;
  margin: 0 0 15px;
  padding: 0;
  background: var(--soft);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
}

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

.note-card-preview img {
  width: 100%;
  height: 116px;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.note-card-preview-1 img { height: 164px; }
.note-card-preview:hover img { transform: scale(1.025); }

.note-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.note-card .tag {
  min-height: 21px;
  color: #6d785d;
  background: #f1f5e8;
  font-size: 10px;
}

.tool-card {
  min-height: 220px;
}

.tool-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--green);
  background: var(--green-3);
  font-size: 24px;
}

.timer-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 26px;
  align-items: stretch;
}

.timer-clock {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  color: white;
  background: linear-gradient(145deg, #355f4b, #476f59);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.timer-mode {
  margin-bottom: 12px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.timer-time {
  font-family: Georgia, serif;
  font-size: clamp(58px, 8vw, 88px);
  line-height: 1;
  letter-spacing: -2px;
}

.timer-controls {
  display: flex;
  gap: 9px;
  margin-top: 24px;
}

.timer-clock .btn-primary {
  color: var(--green);
  background: white;
}

.timer-clock .btn-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.timer-settings {
  display: grid;
  align-content: start;
  gap: 16px;
}

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

.duration-button {
  min-height: 64px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  cursor: pointer;
  text-align: center;
}

.duration-button strong,
.duration-button small { display: block; }
.duration-button strong { font-size: 18px; }
.duration-button small { color: var(--faint); font-size: 10px; }
.duration-button.active { color: var(--green); background: var(--green-3); border-color: #bdd0c2; }

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 20px;
}

.profile-hero {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 340px;
  text-align: center;
  background: linear-gradient(145deg, #e7f0e8, #f7f9f1);
}

.profile-hero .avatar {
  width: 84px;
  height: 84px;
  margin-bottom: 16px;
  font-size: 36px;
  box-shadow: 0 14px 35px rgba(53, 95, 75, 0.2);
}

.profile-hero h2,
.profile-hero p { margin: 0; }
.profile-hero h2 { font-family: Georgia, "Songti SC", serif; font-size: 25px; }
.profile-hero p { margin-top: 6px; color: var(--muted); font-size: 12px; }

.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.setting-row:last-child { border-bottom: 0; }
.setting-row strong,
.setting-row span { display: block; }
.setting-row strong { font-size: 13px; }
.setting-row span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.setting-code { max-width: 250px; overflow: hidden; color: var(--green); font-family: ui-monospace, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.modal-layer[hidden] {
  display: none;
}

.modal-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 36, 29, 0.48);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(86vh, 820px);
  overflow-y: auto;
  padding: 30px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(20, 36, 27, 0.25);
  animation: modal-in 180ms ease both;
}

.modal-card.modal-wide { width: min(860px, 100%); }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--soft);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}

.modal-title {
  margin: 0 40px 5px 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 26px;
}

.modal-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
}

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

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field-full { grid-column: 1 / -1; }

.field label {
  color: #526159;
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.field textarea.editor-area { min-height: 300px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; line-height: 1.7; }

.note-image-field small { color: var(--muted); font-size: 11px; }
.checkin-video-field small { color: var(--muted); font-size: 11px; }
.tutorial-video-field { display: grid; gap: 10px; }
.tutorial-video-field small { color: var(--muted); font-size: 11px; }

.tutorial-video-current,
.legacy-video-notice {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.tutorial-video-current .mini-action { margin-top: 9px; }

.legacy-video-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.note-media-grid,
.note-detail-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.note-media-item {
  position: relative;
  min-width: 0;
  margin: 0;
}

.note-media-item img,
.note-detail-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.note-media-item button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  color: white;
  background: rgba(30, 40, 34, 0.72);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.note-detail-images { margin: 4px 0 20px; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
}

.detail-block {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.detail-block h3 { margin: 0 0 8px; font-size: 13px; }
.detail-block p { margin: 0; color: var(--muted); white-space: pre-wrap; }

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  padding: 0 0 20px 26px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-3);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline-item:last-child::after { display: none; }
.timeline-item strong { display: block; font-size: 13px; }
.timeline-item p { margin: 4px 0; color: var(--muted); font-size: 12px; }
.timeline-item small { color: var(--faint); font-size: 10px; }

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 28px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 16px;
  color: white;
  background: rgba(31, 42, 36, 0.92);
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(20, 30, 24, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: 180ms ease;
  font-size: 12px;
}

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

.toast.error { background: rgba(150, 63, 57, 0.94); }

.loading-state {
  min-height: 55vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted);
}

.loading-orbit {
  width: 42px;
  height: 42px;
  border: 3px solid var(--green-3);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-state {
  min-height: 380px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.error-state strong { font-size: 18px; }
.error-state p { max-width: 440px; margin: 0 0 10px; color: var(--muted); }

.mobile-nav { display: none; }

@media (max-width: 1100px) {
  :root { --sidebar: 210px; }
  .workspace { padding-inline: 28px; }
  .plan-grid, .note-grid, .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 6; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .workspace { padding: 0 18px calc(94px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 96px; padding-top: 18px; }
  .topbar h1 { font-size: 29px; }
  .date-chip { display: none; }
  .mobile-nav {
    position: fixed;
    z-index: 60;
    inset: auto 12px calc(10px + env(safe-area-inset-bottom)) 12px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 64px;
    padding: 6px;
    border: 1px solid rgba(215, 226, 218, 0.9);
    border-radius: 20px;
    background: rgba(253, 254, 252, 0.92);
    box-shadow: 0 14px 38px rgba(34, 57, 43, 0.14);
    backdrop-filter: blur(18px);
  }
  .mobile-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    color: var(--faint);
    border-radius: 14px;
  }
  .mobile-nav a span { font-size: 20px; line-height: 1; }
  .mobile-nav a small { font-size: 9px; }
  .mobile-nav a.active { color: var(--green); background: var(--green-3); }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-metric { min-height: 145px; }
  .checkin-layout,
  .timer-panel,
  .settings-grid { grid-template-columns: 1fr; }
  .collection-layout { grid-template-columns: 1fr; }
  .collection-side { position: static; }
  .collection-list { display: flex; overflow-x: auto; }
  .collection-item { flex: 0 0 auto; width: auto; }
  .modal-layer { padding: 10px; align-items: end; }
  .modal-card { width: 100%; max-height: 91vh; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 24px 24px 14px 14px; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

@media (max-width: 620px) {
  .hero-panel { min-height: 0; padding: 27px 22px; border-radius: 23px; }
  .hero-copy h2 { font-size: 32px; }
  .hero-metric { padding: 20px; }
  .stats-grid,
  .plan-grid,
  .note-grid,
  .tool-grid { grid-template-columns: 1fr; }
  .section-grid { grid-template-columns: 1fr; }
  .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 { grid-column: auto; }
  .card { padding: 19px; border-radius: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .toolbar { align-items: stretch; }
  .toolbar > .btn { width: 100%; }
  .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-chip { flex: 0 0 auto; }
  .search-box { width: 100%; }
  .checkin-item { grid-template-columns: auto minmax(0, 1fr); }
  .checkin-item .btn { grid-column: 1 / -1; width: 100%; }
  .timer-clock { min-height: 320px; }
  .duration-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .setting-row { grid-template-columns: 1fr; }
  .setting-code { max-width: 100%; }
}

@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;
  }
}

/* 2026 reference recreation: paper editorial shell + forest bento workspace */
html {
  background: var(--canvas);
}

body {
  min-height: 100vh;
  background-color: #f1ede2;
  background-image:
    linear-gradient(rgba(247, 244, 235, 0.08), rgba(247, 244, 235, 0.08)),
    url("/web-assets/branch-paper-botanical-v2.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

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

.sidebar {
  isolation: isolate;
  overflow: hidden;
  padding: clamp(38px, 5vw, 76px) clamp(28px, 3.5vw, 58px) 34px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.paper-grain {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 0 0, rgba(38, 60, 45, 0.055) 0 0.7px, transparent 0.8px 6px),
    linear-gradient(112deg, rgba(255, 255, 255, 0.34), transparent 46%);
  mix-blend-mode: multiply;
}

.brand {
  align-items: flex-start;
  gap: 16px;
  padding: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  margin-top: 10px;
  border-radius: 50% 50% 50% 16%;
  font-size: 14px;
  letter-spacing: -1px;
  box-shadow: none;
}

.brand-copy strong {
  color: var(--green);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(48px, 5.3vw, 78px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -3.8px;
}

.brand-copy small {
  margin-top: 14px;
  color: #50685a;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.brand-intro {
  margin: clamp(34px, 6vh, 68px) 0 30px 54px;
  color: #5f6f64;
  font-family: Georgia, "Songti SC", serif;
  font-size: 15px;
  line-height: 1.9;
}

.nav-list {
  width: min(250px, 100%);
  margin-left: 39px;
  gap: 2px;
}

.nav-list a {
  min-height: 42px;
  gap: 18px;
  padding: 0 12px;
  color: #68766d;
  border-radius: 4px;
  font-family: Georgia, "Songti SC", serif;
  font-weight: 500;
}

.nav-list a span {
  width: 20px;
  color: #9aa198;
  font-family: Inter, system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.nav-list a:hover {
  background: rgba(222, 240, 163, 0.28);
}

.nav-list a.active {
  color: var(--green);
  background: transparent;
  box-shadow: none;
}

.nav-list a.active::after {
  content: "";
  width: 26px;
  height: 1px;
  margin-left: auto;
  background: var(--green);
}

.sidebar-foot {
  position: relative;
  z-index: 2;
  padding-top: 18px;
}

.profile-link {
  border: 1px solid rgba(42, 72, 54, 0.1);
  background: rgba(249, 246, 237, 0.58);
}

.profile-link:hover,
.profile-link.active {
  background: rgba(223, 240, 163, 0.34);
}

.botanical {
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 230px;
  opacity: 0.75;
  pointer-events: none;
  transform: rotate(-28deg);
  display: none;
}

.botanical::before {
  content: "";
  position: absolute;
  left: 74px;
  bottom: 4px;
  width: 2px;
  height: 216px;
  border-radius: 99px;
  background: #7a9b76;
  transform: rotate(8deg);
  transform-origin: bottom;
}

.botanical i {
  position: absolute;
  width: 56px;
  height: 24px;
  border-radius: 90% 8% 90% 8%;
  background: #dff0a3;
  box-shadow: inset -8px -4px rgba(105, 139, 96, 0.12);
  transform-origin: 100% 50%;
}

.botanical i:nth-child(1) { left: 18px; top: 48px; transform: rotate(21deg); }
.botanical i:nth-child(2) { left: 77px; top: 78px; transform: scaleX(-1) rotate(14deg); }
.botanical i:nth-child(3) { left: 25px; top: 123px; transform: rotate(29deg); }
.botanical i:nth-child(4) { left: 77px; top: 150px; transform: scaleX(-1) rotate(16deg); }
.botanical-one { right: -15px; bottom: 108px; }
.botanical-two { left: -61px; bottom: -64px; transform: scale(0.72) rotate(28deg); opacity: 0.42; }

.forest-workspace {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: auto;
  max-width: none;
  min-height: calc(100vh - 32px);
  margin: 16px 16px 16px 0;
  padding: 0 clamp(22px, 3.3vw, 54px) 52px;
  color: #f7f3e8;
  background:
    radial-gradient(circle at 86% 5%, rgba(110, 153, 114, 0.26), transparent 26%),
    linear-gradient(142deg, #1b4634 0%, #123626 64%, #0e2e21 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 38px;
  box-shadow: 0 28px 80px rgba(18, 49, 34, 0.22);
}

.workspace-glow {
  position: absolute;
  z-index: -1;
  top: -110px;
  right: -90px;
  width: 380px;
  height: 330px;
  border: 50px solid rgba(221, 240, 163, 0.04);
  border-radius: 47% 53% 42% 58%;
  transform: rotate(18deg);
}

.topbar {
  min-height: 118px;
  padding: 28px 0 18px;
  color: #f8f3e7;
  background: linear-gradient(#193f30 74%, rgba(25, 63, 48, 0));
}

.topbar h1 {
  font-size: clamp(30px, 3.3vw, 48px);
  font-weight: 500;
  letter-spacing: -1.3px;
}

.eyebrow {
  color: var(--lime);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.date-chip,
.icon-button {
  color: rgba(248, 243, 231, 0.78);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

.icon-button:hover {
  color: var(--green);
  background: var(--lime);
  border-color: var(--lime);
}

.page-stack {
  gap: 18px;
}

.dashboard-welcome {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 5px 2px 11px;
}

.dashboard-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(223, 240, 163, 0.74);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.21em;
}

.dashboard-welcome h2 {
  margin: 0;
  color: #f7f1e4;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 500;
}

.btn-lime {
  color: var(--green);
  background: var(--lime);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(8, 27, 19, 0.16);
}

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

.bento-card {
  min-width: 0;
  overflow: hidden;
  padding: clamp(19px, 2.2vw, 30px);
  color: var(--ink);
  background: #f3efe3;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 25px;
  box-shadow: 0 14px 34px rgba(8, 29, 20, 0.12);
}

.bento-plans {
  grid-column: span 7;
  min-height: 333px;
  background:
    radial-gradient(circle at 96% 0, rgba(255, 255, 255, 0.5), transparent 28%),
    #dff0a3;
}

.bento-review { grid-column: span 5; min-height: 333px; }
.bento-note { grid-column: span 4; min-height: 260px; }
.bento-focus { grid-column: span 3; min-height: 260px; color: #f6f0e2; background: #2c6049; }
.bento-growth { grid-column: span 5; min-height: 260px; background: #dbe5d2; }

.bento-head,
.bento-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bento-head {
  justify-content: space-between;
  margin-bottom: 20px;
}

.bento-head h3 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 18px;
  font-weight: 600;
}

.bento-index {
  color: #78906d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.bento-focus .bento-index { color: var(--lime); }

.text-link {
  padding: 0;
  color: #526a59;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.desk-list,
.review-list {
  display: grid;
  gap: 8px;
}

.desk-row,
.review-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(35, 70, 49, 0.15);
  cursor: pointer;
}

.desk-row > span:nth-child(2),
.review-row > span:nth-child(2) { min-width: 0; }
.desk-row strong,
.desk-row small,
.review-row strong,
.review-row small { display: block; }
.desk-row strong,
.review-row strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.desk-row small,
.review-row small { margin-top: 2px; overflow: hidden; color: #718073; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.desk-check {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #4f6756;
  border: 1px solid rgba(28, 62, 43, 0.24);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
}

.desk-check.is-doing { color: var(--lime); background: var(--green); border-color: var(--green); font-size: 18px; }
.desk-arrow { color: #627467; font-size: 14px; }

.bento-foot {
  display: grid;
  grid-template-columns: auto minmax(60px, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-top: 17px;
  color: #68766b;
  font-size: 9px;
}

.bento-foot strong { color: var(--ink); font-size: 11px; }
.tiny-progress { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(27, 61, 43, 0.13); }
.tiny-progress i { display: block; height: 100%; border-radius: inherit; background: var(--green); }

.round-count {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: #dfe9d7;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 12px;
}

.review-row {
  grid-template-columns: auto minmax(0, 1fr);
  padding: 7px 0;
}

.review-dot {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: white;
  border: 1px solid #cbd2c7;
  border-radius: 50%;
  font-size: 10px;
}

.review-dot.done { background: var(--green-2); border-color: var(--green-2); }
.btn-ink { color: #f8f3e8; background: var(--green); }
.btn-block { width: 100%; margin-top: 16px; }

.desk-empty {
  width: 100%;
  min-height: 145px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: #526a59;
  background: rgba(255, 255, 255, 0.18);
  border: 1px dashed rgba(36, 71, 49, 0.24);
  border-radius: 15px;
  cursor: pointer;
}

.desk-empty span { font-size: 22px; }
.desk-empty small { font-size: 10px; }
.desk-empty.compact { min-height: 94px; }

.note-glyph { color: #718875; font-size: 18px; }
.note-paper {
  width: 100%;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(54, 78, 61, 0.08) 27px 28px),
    rgba(255, 255, 255, 0.48);
  border: 0;
  border-radius: 15px;
  cursor: pointer;
}

.note-paper strong { font-family: Georgia, "Songti SC", serif; font-size: 15px; }
.note-paper span { margin-top: 11px; color: #68756b; font-size: 11px; line-height: 1.8; }
.note-paper small { margin-top: auto; color: #809087; font-size: 9px; }

.focus-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px rgba(223, 240, 163, 0.1); }
.focus-time { margin-top: 8px; font-family: Georgia, serif; font-size: clamp(45px, 5vw, 68px); line-height: 1; letter-spacing: -3px; }
.focus-time span { color: var(--lime); }
.bento-focus p { margin: 15px 0 0; color: rgba(246, 240, 226, 0.62); font-size: 10px; }
.focus-start {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 10px 0;
  color: var(--lime);
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: 11px;
}
.focus-start b { width: 28px; height: 28px; display: grid; place-items: center; color: var(--green); background: var(--lime); border-radius: 50%; }

.growth-total { color: #5f7565; font-size: 9px; }
.growth-total strong { color: var(--green); font-family: Georgia, serif; font-size: 18px; }
.growth-chart {
  height: 135px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: clamp(6px, 1vw, 13px);
  padding: 10px 4px 0;
  border-bottom: 1px solid rgba(38, 72, 49, 0.16);
}

.growth-chart > span {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 6px;
}

.growth-chart i {
  width: 100%;
  height: var(--bar);
  display: block;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(#6b9476, #2d5b44);
}

.growth-chart span:last-child i { background: var(--lime); outline: 1px solid rgba(37, 69, 48, 0.12); }
.growth-chart small { color: #758478; text-align: center; font-size: 8px; }
.growth-caption { display: flex; justify-content: space-between; margin-top: 13px; color: #758478; font-size: 9px; }
.growth-caption strong { color: var(--green); }

/* Existing feature pages live inside the same reference-style forest frame. */
.forest-workspace .hero-panel { box-shadow: 0 16px 38px rgba(6, 27, 17, 0.18); }
.forest-workspace .card,
.forest-workspace .stat-card,
.forest-workspace .plan-card,
.forest-workspace .note-card,
.forest-workspace .tool-card,
.forest-workspace .category-pill,
.forest-workspace .filter-chip {
  color: var(--ink);
  background: #f4f0e5;
  border-color: rgba(255, 255, 255, 0.26);
}

.forest-workspace .card,
.forest-workspace .plan-card,
.forest-workspace .note-card,
.forest-workspace .tool-card { box-shadow: 0 14px 36px rgba(7, 28, 18, 0.12); }
.forest-workspace .list-item,
.forest-workspace .duration-button,
.forest-workspace .search-box { background: rgba(255, 255, 255, 0.52); }
.forest-workspace .subtle { color: #748078; }

@media (max-width: 1240px) {
  :root { --sidebar: 250px; }
  .sidebar { padding-inline: 28px; }
  .brand-copy strong { font-size: 50px; }
  .brand-intro { margin-left: 8px; }
  .nav-list { margin-left: 0; }
  .bento-plans { grid-column: span 7; }
  .bento-review { grid-column: span 5; }
  .bento-note { grid-column: span 4; }
  .bento-focus { grid-column: span 4; }
  .bento-growth { grid-column: span 4; }
}

@media (max-width: 980px) and (min-width: 821px) {
  :root { --sidebar: 210px; }
  .sidebar { padding-inline: 20px; }
  .brand-mark { display: none; }
  .brand-copy strong { font-size: 42px; }
  .brand-intro { margin-left: 0; font-size: 12px; }
  .dashboard-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento-plans, .bento-review { grid-column: span 6; }
  .bento-note, .bento-focus, .bento-growth { grid-column: span 3; }
  .bento-growth { grid-column: span 6; }
}

@media (max-width: 820px) {
  body { background: #e9e5d9; }
  .forest-workspace {
    min-height: calc(100vh - 16px);
    margin: 8px;
    padding: 0 15px calc(96px + env(safe-area-inset-bottom));
    border-radius: 28px;
  }
  .topbar { min-height: 92px; padding: 18px 4px 12px; background: linear-gradient(#193f30 78%, rgba(25, 63, 48, 0)); }
  .topbar h1 { font-size: 29px; }
  .mobile-nav { border-color: rgba(255, 255, 255, 0.52); background: rgba(244, 240, 229, 0.92); }
  .dashboard-welcome { align-items: flex-start; padding: 0 3px 8px; }
  .dashboard-welcome h2 { font-size: 20px; }
  .dashboard-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento-plans, .bento-review, .bento-growth { grid-column: span 6; }
  .bento-note, .bento-focus { grid-column: span 3; }
  .bento-card { border-radius: 21px; }
}

@media (max-width: 560px) {
  .forest-workspace { margin: 5px; padding-inline: 11px; border-radius: 24px; }
  .dashboard-welcome { display: grid; }
  .dashboard-welcome .btn { width: 100%; }
  .dashboard-bento { grid-template-columns: 1fr; gap: 10px; }
  .bento-plans, .bento-review, .bento-note, .bento-focus, .bento-growth { grid-column: auto; min-height: 0; }
  .bento-card { padding: 19px; }
  .bento-plans, .bento-review { min-height: 305px; }
  .bento-note, .bento-focus, .bento-growth { min-height: 235px; }
  .focus-time { font-size: 60px; }
  .growth-chart { height: 132px; }
}

/* Account entry and linked-login settings */
body.auth-mode {
  min-height: 100vh;
  background: #e7e2d5;
}

.auth-mode .app-shell { display: block; min-height: 100vh; }
.auth-mode .sidebar,
.auth-mode .topbar,
.auth-mode .workspace-glow,
.auth-mode .mobile-nav { display: none; }
.auth-mode .forest-workspace {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  padding: 16px;
}

.auth-story {
  position: relative;
  min-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 76px);
  overflow: hidden;
  color: #f7f2e6;
  background:
    radial-gradient(circle at 82% 14%, rgba(223, 240, 163, 0.22), transparent 18rem),
    radial-gradient(circle at 8% 96%, rgba(95, 142, 107, 0.32), transparent 21rem),
    linear-gradient(145deg, #1c4a36, #102f22 70%);
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(17, 48, 34, 0.22);
}

.auth-story::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -105px;
  width: 330px;
  height: 330px;
  border: 64px solid rgba(223, 240, 163, 0.07);
  border-radius: 48% 52% 44% 56%;
  transform: rotate(22deg);
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: max-content;
}

.auth-brand .brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--green);
  background: var(--lime);
  border: 0;
  border-radius: 16px 6px 16px 6px;
  font-size: 16px;
}

.auth-brand strong,
.auth-brand small { display: block; }
.auth-brand strong { font-family: Georgia, "Songti SC", serif; font-size: 27px; font-weight: 500; }
.auth-brand small { margin-top: -2px; color: rgba(247, 242, 230, 0.62); font-size: 10px; letter-spacing: 0.08em; }

.auth-story-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
  margin: auto 0;
  padding: 70px 0;
}

.auth-story-copy h1 {
  margin: 18px 0 22px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(40px, 3.8vw, 64px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.auth-story-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(247, 242, 230, 0.68);
  font-size: 14px;
}

.auth-points {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.auth-points span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  color: rgba(247, 242, 230, 0.78);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 11px;
}
.auth-points i { color: var(--lime); font-style: normal; font-size: 9px; }

.auth-panel {
  display: grid;
  place-items: center;
  padding: clamp(26px, 5vw, 76px);
}

.auth-card { width: min(100%, 430px); }
.auth-heading { margin-bottom: 24px; }
.auth-heading h2 { margin: 8px 0 7px; font-family: Georgia, "Songti SC", serif; font-size: 34px; font-weight: 600; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.auth-kicker { color: var(--green-2); font-size: 9px; font-weight: 800; letter-spacing: 0.18em; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  background: rgba(23, 61, 45, 0.07);
  border-radius: 13px;
}

.auth-tabs button {
  min-height: 38px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.auth-tabs button.active { color: var(--green); background: #fffdf8; box-shadow: 0 5px 15px rgba(20, 49, 35, 0.08); }

.auth-form { display: grid; gap: 15px; }
.auth-form .field label small { color: var(--faint); font-weight: 500; }
.auth-form .field input { min-height: 48px; background: rgba(255, 255, 255, 0.75); }
.auth-submit { min-height: 48px; margin-top: 3px; }

.phone-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.phone-input > span { padding: 0 12px; color: var(--muted); border-right: 1px solid var(--line); font-size: 12px; }
.field .phone-input input { min-height: 46px; padding-left: 12px; background: transparent; border: 0; border-radius: 0; }
.phone-input:focus-within { border-color: #77917f; box-shadow: 0 0 0 3px rgba(53, 95, 75, 0.1); }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; color: var(--faint); font-size: 10px; }
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn-wechat { color: #fff; background: #2e9b57; box-shadow: 0 8px 18px rgba(46, 155, 87, 0.14); }
.wechat-mark { display: grid; place-items: center; width: 21px; height: 21px; color: #2e9b57; background: white; border-radius: 50%; font-size: 10px; }
.mini-qr-login { display: grid; justify-items: center; padding: 4px 10px 2px; text-align: center; }
.mini-qr-login .modal-title { margin: 7px 0 4px; }
.mini-qr-login .modal-subtitle { max-width: 360px; margin-bottom: 20px; line-height: 1.7; }
.mini-qr-frame {
  position: relative;
  width: min(286px, 78vw);
  padding: 13px;
  border: 1px solid #dce7de;
  border-radius: 22px;
  background: linear-gradient(145deg, #f9fcf9, #eef5ef);
  box-shadow: 0 16px 38px rgba(38, 72, 52, 0.11);
}
.mini-qr-frame img { display: block; width: 100%; aspect-ratio: 1; border-radius: 14px; background: white; }
.mini-qr-env { position: absolute; top: 22px; right: 22px; padding: 4px 7px; color: #735532; background: #fff4dd; border: 1px solid #ead7bd; border-radius: 999px; font-size: 9px; font-weight: 800; }
.mini-qr-status { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--green); font-size: 12px; }
.mini-qr-status span { width: 8px; height: 8px; border-radius: 50%; background: #2e9b57; box-shadow: 0 0 0 5px rgba(46, 155, 87, 0.1); animation: qr-pulse 1.6s ease-in-out infinite; }
.mini-qr-status.is-warning { color: #956a29; }
.mini-qr-status.is-warning span { background: #d4a84b; box-shadow: 0 0 0 5px rgba(212, 168, 75, 0.12); }
.mini-qr-status.is-error { color: #a44646; }
.mini-qr-status.is-error span { background: #c75d5d; box-shadow: none; animation: none; }
.mini-qr-security { margin: 13px 0 0; color: var(--faint); font-size: 10px; line-height: 1.6; }
@keyframes qr-pulse { 50% { opacity: 0.45; transform: scale(0.82); } }
.auth-footnote { margin: 16px 0 0; color: var(--faint); text-align: center; font-size: 10px; }
.auth-message { margin: 0 0 16px; padding: 11px 13px; color: #735532; background: #f5e8d7; border: 1px solid #ead7bd; border-radius: 11px; font-size: 11px; }

.setting-control { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.binding-status { color: var(--faint) !important; font-size: 11px !important; }
.binding-status.is-bound { color: var(--green-2) !important; }

@media (max-width: 900px) {
  .auth-screen { grid-template-columns: 1fr; padding: 9px; }
  .auth-story { min-height: 360px; padding: 30px; border-radius: 25px; }
  .auth-story-copy { padding: 54px 0 38px; }
  .auth-story-copy h1 { font-size: clamp(34px, 8vw, 56px); }
  .auth-panel { padding: 46px 22px 60px; }
}

@media (max-width: 560px) {
  .auth-story { min-height: 310px; padding: 24px 21px; }
  .auth-brand .brand-mark { width: 42px; height: 42px; }
  .auth-brand strong { font-size: 23px; }
  .auth-story-copy { padding: 42px 0 24px; }
  .auth-story-copy h1 { margin: 12px 0 13px; font-size: 32px; }
  .auth-story-copy p { font-size: 11px; }
  .auth-points span { padding: 7px 10px; }
  .auth-panel { padding: 34px 12px 50px; }
  .auth-heading h2 { font-size: 29px; }
  .setting-control { justify-content: flex-start; flex-wrap: wrap; }
}

/* Rhythm Timeline redesign — selected Product Design direction */
body:not(.auth-mode) {
  background-color: #073b2b;
  background-image: url("/web-assets/branch-rhythm-forest-bg.png");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: cover;
  background-attachment: fixed;
}

body:not(.auth-mode) .app-shell {
  display: block;
}

body:not(.auth-mode) .sidebar {
  position: fixed;
  z-index: 70;
  inset: 0 0 auto;
  width: 100%;
  height: 96px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 0 clamp(28px, 3.2vw, 52px);
  overflow: visible;
  color: #f6f0e3;
  background: rgba(5, 53, 38, 0.94);
  border-bottom: 1px solid rgba(241, 237, 226, 0.15);
  backdrop-filter: blur(18px);
}

.brand {
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.brand-mark-img {
  width: 39px;
  height: 39px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

body:not(.auth-mode) .brand-copy strong {
  color: #f7f1e5;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -1.4px;
}

body:not(.auth-mode) .brand-copy small,
body:not(.auth-mode) .brand-intro,
body:not(.auth-mode) .paper-grain,
body:not(.auth-mode) .botanical,
body:not(.auth-mode) .sidebar-foot {
  display: none;
}

body:not(.auth-mode) .nav-list {
  width: auto;
  display: flex;
  align-items: stretch;
  gap: clamp(12px, 2.4vw, 34px);
  height: 96px;
  margin: 0 0 0 clamp(42px, 6vw, 92px);
}

body:not(.auth-mode) .nav-list a {
  position: relative;
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
  color: rgba(247, 241, 229, 0.74);
  background: transparent;
  border-radius: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 500;
}

body:not(.auth-mode) .nav-list a i {
  display: none;
}

body:not(.auth-mode) .nav-list a span {
  width: auto;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0;
}

body:not(.auth-mode) .nav-list a:hover,
body:not(.auth-mode) .nav-list a.active {
  color: #f8f3e7;
  background: transparent;
}

body:not(.auth-mode) .nav-list a.active::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 12px;
  width: auto;
  height: 2px;
  margin: 0;
  background: var(--lime);
  border-radius: 999px;
}

.rhythm-nav-date {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  margin-right: 350px;
  color: rgba(247, 241, 229, 0.76);
  font-family: Georgia, "Songti SC", serif;
  font-size: 14px;
  white-space: nowrap;
}

.rhythm-nav-date i {
  color: rgba(247, 241, 229, 0.58);
  font-size: 20px;
}

body.dashboard-mode .rhythm-nav-date {
  display: inline-flex;
  margin-right: 0;
}

body.dashboard-mode .sidebar {
  right: 344px;
  width: auto;
  padding-right: 24px;
}

body:not(.auth-mode) .sidebar-foot {
  display: block;
  flex: 0 0 auto;
  margin: 0 0 0 12px;
  padding: 0;
}

body:not(.auth-mode) .sidebar-foot .profile-link {
  width: 42px;
  height: 42px;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0;
  color: #f7f1e5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(247, 241, 229, 0.18);
  border-radius: 50%;
}

body:not(.auth-mode) .sidebar-foot .profile-link:hover,
body:not(.auth-mode) .sidebar-foot .profile-link.active {
  background: rgba(223, 240, 163, 0.18);
  border-color: rgba(223, 240, 163, 0.48);
}

body:not(.auth-mode) .sidebar-foot .avatar {
  width: 34px;
  height: 34px;
  color: #173d2d;
  background: #f4f0e5;
  font-size: 14px;
}

body:not(.auth-mode) .sidebar-foot .profile-copy,
body:not(.auth-mode) .sidebar-foot .profile-link > span:last-child {
  display: none;
}

.mobile-account-entry {
  display: none;
}

body:not(.auth-mode) .forest-workspace {
  grid-column: auto;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 96px clamp(28px, 3.2vw, 52px) 44px;
  overflow: visible;
  color: #f7f1e5;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body:not(.auth-mode) .workspace-glow {
  display: none;
}

body:not(.auth-mode) .topbar {
  top: 96px;
  min-height: 104px;
  padding: 24px 0 17px;
  background: rgba(7, 59, 43, 0.92);
  backdrop-filter: blur(16px);
}

body.dashboard-mode .topbar {
  display: none;
}

body.dashboard-mode .forest-workspace {
  padding: 96px 22px 0 clamp(28px, 3.2vw, 52px);
}

.rhythm-dashboard {
  width: min(100%, 1480px);
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(24px, 3vw, 46px);
  margin: 0 auto;
}

.rhythm-main {
  min-width: 0;
  padding: clamp(52px, 6vh, 74px) 0 46px clamp(20px, 4vw, 68px);
}

.rhythm-hero {
  padding-left: 36px;
}

.rhythm-kicker,
.rhythm-drawer-index {
  color: #bdd46e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rhythm-hero h2 {
  margin: 15px 0 0;
  color: #f5eee1;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(58px, 5.8vw, 86px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.rhythm-hero > p {
  margin: 22px 0 0;
  color: rgba(247, 241, 229, 0.53);
  font-family: Georgia, "Songti SC", serif;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.rhythm-completed {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  color: rgba(247, 241, 229, 0.84);
  font-size: 12px;
}

.rhythm-completed i {
  color: #dff0a3;
  font-size: 19px;
}

.rhythm-timeline {
  max-width: 1000px;
  margin-left: 24px;
  margin-top: clamp(32px, 5vh, 54px);
}

.rhythm-entry {
  position: relative;
  min-height: 126px;
  display: grid;
  grid-template-columns: 140px 44px minmax(0, 1fr);
  align-items: center;
}

.rhythm-entry:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 161px;
  top: calc(50% + 16px);
  bottom: calc(-50% + 16px);
  width: 1px;
  background: rgba(223, 240, 163, 0.5);
}

.rhythm-entry.upcoming:not(:last-child)::after {
  background: rgba(247, 241, 229, 0.23);
}

.rhythm-entry time {
  color: rgba(247, 241, 229, 0.46);
  font-family: Georgia, serif;
  font-size: 17px;
}

.rhythm-entry.current time {
  color: var(--lime);
  font-size: 25px;
}

.rhythm-marker {
  position: relative;
  z-index: 2;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #0a3b2b;
  background: #dff0a3;
  border: 2px solid #dff0a3;
  border-radius: 50%;
  font-size: 13px;
}

.rhythm-entry.upcoming .rhythm-marker {
  color: rgba(247, 241, 229, 0.56);
  background: #073b2b;
  border-color: rgba(247, 241, 229, 0.48);
}

.rhythm-entry.current .rhythm-marker {
  width: 36px;
  height: 36px;
  margin-left: -4px;
  color: #0a3b2b;
  outline: 1px solid rgba(223, 240, 163, 0.52);
  outline-offset: 8px;
  font-size: 14px;
}

.rhythm-entry-body {
  min-width: 0;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 8px 20px 20px;
  border-bottom: 1px solid rgba(247, 241, 229, 0.16);
}

.rhythm-entry.current .rhythm-entry-body {
  min-height: 132px;
  padding: 28px 30px 28px 38px;
  color: #103a2b;
  background: #dff0a3;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 19px;
}

.rhythm-entry-copy {
  min-width: 0;
}

.rhythm-entry-copy h3,
.rhythm-entry-copy p {
  margin: 0;
}

.rhythm-entry-copy h3 {
  overflow: hidden;
  color: #f7f1e5;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 24px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rhythm-entry-copy p {
  margin-top: 7px;
  overflow: hidden;
  color: rgba(247, 241, 229, 0.44);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rhythm-entry.current .rhythm-entry-copy h3 {
  color: #103a2b;
  font-size: clamp(25px, 2.5vw, 38px);
}

.rhythm-entry.current .rhythm-entry-copy p {
  color: #5b735f;
  font-size: 12px;
}

.rhythm-entry.upcoming .rhythm-entry-copy h3 {
  color: rgba(247, 241, 229, 0.64);
}

.rhythm-current-action,
.rhythm-row-action,
.rhythm-checkin-row,
.rhythm-checkin-empty,
.rhythm-focus-clock,
.rhythm-focus-start,
.rhythm-focus-settings {
  font: inherit;
  cursor: pointer;
}

.rhythm-current-action {
  flex: 0 0 auto;
  min-width: 190px;
  min-height: 57px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  color: #f7f1e5;
  background: #0a3b2b;
  border: 0;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
}

.rhythm-current-action:hover {
  background: #164b37;
  transform: translateY(-1px);
}

.rhythm-row-action {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: rgba(247, 241, 229, 0.46);
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.rhythm-row-action:hover {
  color: var(--lime);
  background: rgba(255, 255, 255, 0.06);
}

.rhythm-drawer {
  position: fixed;
  z-index: 80;
  top: 24px;
  right: 22px;
  bottom: 20px;
  width: 300px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 36px 27px 25px;
  overflow-y: auto;
  scrollbar-width: none;
  color: #173629;
  background: #f4f0e5;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(3, 31, 21, 0.18);
}

.rhythm-drawer::-webkit-scrollbar {
  display: none;
}

.rhythm-checkins {
  flex: 1 1 auto;
}

.rhythm-checkins > header,
.rhythm-checkins > header > div {
  display: flex;
  align-items: center;
}

.rhythm-checkins > header {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}

.rhythm-checkins > header > div {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.rhythm-checkins h3,
.rhythm-focus h3 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 25px;
  font-weight: 500;
}

.rhythm-checkins > header > span {
  color: #76827a;
  font-size: 10px;
}

.rhythm-drawer-index {
  color: #78906d;
  font-size: 8px;
}

.rhythm-checkin-list {
  display: grid;
}

.rhythm-checkin-row {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: #274638;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #dedfd4;
}

.rhythm-checkin-row > i:first-child {
  color: #8b968d;
  font-size: 24px;
}

.rhythm-checkin-row.done > i:first-child {
  color: #8fb24d;
}

.rhythm-checkin-row > i:last-child {
  color: #879189;
  font-size: 15px;
}

.rhythm-checkin-row strong,
.rhythm-checkin-row small,
.rhythm-checkin-empty strong,
.rhythm-checkin-empty small {
  display: block;
}

.rhythm-checkin-row strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rhythm-checkin-row small {
  margin-top: 2px;
  color: #8b948d;
  font-size: 9px;
}

.rhythm-checkin-empty {
  width: 100%;
  min-height: 110px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  color: #496253;
  text-align: left;
  background: #ebe9de;
  border: 1px dashed #c9cec2;
  border-radius: 15px;
}

.rhythm-checkin-empty > i {
  font-size: 28px;
}

.rhythm-checkin-empty small {
  margin-top: 3px;
  color: #818c84;
  font-size: 9px;
}

.rhythm-focus {
  flex: 0 0 auto;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid #d7d9ce;
}

.rhythm-focus header p {
  margin: 6px 0 0;
  color: #879087;
  font-size: 10px;
}

.rhythm-focus-clock {
  width: 214px;
  height: 214px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  margin: 21px auto;
  color: #123d2d;
  background: transparent;
  border: 3px solid #aec975;
  border-radius: 50%;
}

.rhythm-focus-clock:hover,
.rhythm-focus-clock.running {
  background: #edf1db;
}

.rhythm-focus-clock strong {
  font-family: Georgia, serif;
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -2px;
}

.rhythm-focus-clock span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #617962;
  font-size: 10px;
}

.rhythm-focus-start {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #f7f1e5;
  background: #0a3b2b;
  border: 0;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.rhythm-focus-start:hover {
  background: #164b37;
}

.rhythm-focus-settings {
  width: 100%;
  min-height: 43px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 0 7px;
  color: #7a857d;
  text-align: left;
  background: transparent;
  border: 0;
  font-size: 10px;
}

body:not(.auth-mode) .forest-workspace .card,
body:not(.auth-mode) .forest-workspace .stat-card,
body:not(.auth-mode) .forest-workspace .plan-card,
body:not(.auth-mode) .forest-workspace .note-card,
body:not(.auth-mode) .forest-workspace .tool-card {
  box-shadow: none;
}

@media (max-width: 1120px) {
  body:not(.auth-mode) .nav-list { margin-left: 34px; gap: 14px; }
  .rhythm-nav-date { display: none !important; }
  .rhythm-dashboard { grid-template-columns: minmax(0, 1fr) 292px; gap: 24px; }
  .rhythm-main { padding-left: 16px; }
  .rhythm-hero { padding-left: 78px; }
  .rhythm-timeline { margin-left: 0; }
  .rhythm-entry { grid-template-columns: 94px 44px minmax(0, 1fr); }
  .rhythm-entry:not(:last-child)::after { left: 115px; }
  .rhythm-current-action { min-width: 166px; }
  .rhythm-drawer { width: 292px; }
}

@media (max-width: 900px) and (min-width: 821px) {
  body:not(.auth-mode) .brand-copy strong { font-size: 27px; }
  body:not(.auth-mode) .nav-list { margin-left: 28px; gap: 10px; }
  body:not(.auth-mode) .nav-list a { font-size: 13px; }
  .rhythm-dashboard { grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; }
  .rhythm-hero { padding-left: 62px; }
  .rhythm-entry { grid-template-columns: 66px 36px minmax(0, 1fr); }
  .rhythm-entry:not(:last-child)::after { left: 83px; }
  .rhythm-entry.current .rhythm-entry-body { padding: 24px; }
  .rhythm-current-action { min-width: 54px; width: 54px; padding: 0; justify-content: center; }
  .rhythm-current-action span { display: none; }
  .rhythm-drawer { width: 270px; padding-inline: 21px; }
}

@media (max-height: 820px) and (min-width: 821px) {
  .rhythm-drawer { padding: 18px 24px 16px; }
  .rhythm-checkins > header { margin-bottom: 10px; }
  .rhythm-checkin-row { min-height: 46px; padding-block: 5px; }
  .rhythm-focus { margin-top: 10px; padding-top: 14px; }
  .rhythm-focus header p { display: none; }
  .rhythm-focus-clock { width: 146px; height: 146px; margin: 8px auto; }
  .rhythm-focus-clock strong { font-size: 39px; }
  .rhythm-focus-start { min-height: 40px; }
  .rhythm-focus-settings { min-height: 36px; margin-top: 4px; }
}

@media (max-width: 820px) {
  body:not(.auth-mode) .sidebar { display: none; }
  body:not(.auth-mode) .forest-workspace,
  body.dashboard-mode .forest-workspace {
    min-height: 100vh;
    margin: 0;
    padding: 0 12px calc(92px + env(safe-area-inset-bottom));
  }
  body:not(.auth-mode) .topbar { top: 0; }
  .rhythm-dashboard {
    min-height: 100vh;
    display: block;
    padding-top: 8px;
  }
  .rhythm-main { padding: 32px 6px 26px; }
  .rhythm-hero { padding-left: 0; }
  .rhythm-hero h2 { font-size: clamp(42px, 12vw, 60px); }
  .rhythm-timeline { margin-top: 32px; }
  .rhythm-entry { grid-template-columns: 58px 32px minmax(0, 1fr); min-height: 114px; }
  .rhythm-entry:not(:last-child)::after { left: 73px; }
  .rhythm-entry time { font-size: 13px; }
  .rhythm-entry.current time { font-size: 17px; }
  .rhythm-entry.current .rhythm-entry-body { min-height: 150px; display: grid; padding: 22px; }
  .rhythm-entry.current .rhythm-entry-copy h3 { white-space: normal; }
  .rhythm-current-action { width: 100%; min-width: 0; min-height: 46px; }
  .rhythm-entry-copy h3 { font-size: 18px; }
  .rhythm-drawer { position: static; width: auto; min-height: 0; margin: 0 0 22px; padding: 25px 20px; border-radius: 22px; }
  .rhythm-focus-clock { width: 174px; height: 174px; }
  .mobile-nav a i { font-size: 20px; line-height: 1; }
  body.dashboard-mode .mobile-account-entry {
    position: fixed;
    z-index: 75;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #f7f1e5;
    background: rgba(5, 53, 38, 0.82);
    border: 1px solid rgba(247, 241, 229, 0.22);
    border-radius: 50%;
    backdrop-filter: blur(12px);
  }
  body.dashboard-mode .mobile-account-entry i { font-size: 23px; }
}

@media (max-width: 480px) {
  .rhythm-main { padding-top: 25px; }
  .rhythm-hero h2 { font-size: 40px; letter-spacing: -0.055em; }
  .rhythm-hero > p { margin-top: 15px; }
  .rhythm-entry { grid-template-columns: 48px 28px minmax(0, 1fr); }
  .rhythm-entry:not(:last-child)::after { left: 61px; }
  .rhythm-entry-body { padding-left: 13px; }
  .rhythm-entry.current .rhythm-entry-body { padding: 19px; }
  .rhythm-entry.current .rhythm-entry-copy h3 { font-size: 23px; }
}
