/* ================= tasks page ================= */
.task-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--text-3);
  padding: 8px 6px 3px;
}
.task-group-label .line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line-2);
}
.task-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* ================= finance ================= */
.fin-hero {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
.fin-hero .big {
  font-size: 1.65rem;
  font-weight: 660;
  font-family: var(--font-num);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.catrow {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 550;
  color: var(--text-2);
  padding: 3px 0;
}
.catrow .bar {
  height: 5px;
}
.amount {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 620;
  font-size: var(--fs-sm);
}
.txn-day {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--text-3);
  padding: 9px 6px 3px;
}
.txn-day .line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line-2);
}
.amount.pos {
  color: var(--ok);
}
.amount.neg {
  color: #b96a74;
}

/* ================= mood ================= */
.mood-face {
  color: var(--text-2);
}
.mood-dist {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mood-dist-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--text-2);
  font-weight: 550;
}
.mood-note {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ================= health ================= */
.health-input {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  min-width: 0;
}
.health-input .ico {
  color: var(--text-3);
}
.health-input input {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: var(--font-num);
  font-size: var(--fs-sm);
  font-weight: 620;
  padding: 0;
  min-width: 0;
}
.health-input input:focus {
  outline: none;
}
.health-input .unit {
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-weight: 550;
  flex: 0 0 auto;
}
.water-cups {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.water-cup {
  width: 18px;
  height: 22px;
  border-radius: 4px 4px 7px 7px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}
.water-cup.is-on {
  background: var(--info-soft);
  border-color: var(--accent-2);
}
.water-cup:hover {
  border-color: var(--accent-2);
}

/* ================= focus ================= */
.focus-hero {
  display: flex;
  gap: 14px;
  align-items: stretch;
  flex-wrap: wrap;
}
.focus-hero > .main-timer {
  flex: 1 1 320px;
  min-width: 0;
}
.trend {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 82px;
}
.trend-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: 100%;
  justify-content: flex-end;
}
.trend-bar {
  width: 100%;
  max-width: 30px;
  border-radius: 5px 5px 3px 3px;
  background: var(--accent-2);
  min-height: 3px;
  transition: height 0.3s ease;
  position: relative;
}
.trend-col.is-today .trend-bar {
  background: var(--accent);
}
.trend-col.is-empty .trend-bar {
  background: var(--surface-3);
}
.trend-col span {
  font-size: 9.5px;
  color: var(--text-3);
  font-weight: 600;
}
.trend-col b {
  font-size: 9.5px;
  color: var(--text-2);
  font-weight: 650;
  font-family: var(--font-num);
}

/* ================= english / study ================= */
.word-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  min-width: 0;
}
.word-row:hover {
  background: var(--surface-2);
}
.word-main {
  min-width: 0;
  flex: 1 1 auto;
}
.word-en {
  font-size: var(--fs-sm);
  font-weight: 620;
}
.word-en.is-mastered {
  color: var(--text-3);
  text-decoration: line-through;
}
.word-cn {
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.ring {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  position: relative;
}
.ring-svg {
  display: block;
  width: 52px;
  height: 52px;
}
.ring-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ring .ring-txt {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 660;
  font-family: var(--font-num);
}
.ring .ring-txt small {
  font-size: 8.5px;
  font-weight: 600;
  color: var(--text-3);
  font-family: var(--font);
  letter-spacing: 0.04em;
}

/* ================= recipes ================= */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--gap);
}
.recipe-card {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
  transition: all 0.16s ease;
  min-width: 0;
}
.recipe-card:hover {
  box-shadow: var(--shadow-lift);
  border-color: var(--line);
}
.recipe-name {
  font-size: var(--fs-sm);
  font-weight: 640;
}
.recipe-emoji-free {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--beige-soft);
  color: #8a7145;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.recipe-meta {
  display: flex;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-weight: 550;
}
.ing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.step {
  display: flex;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.55;
}
.step b {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 1px;
}

/* ================= news ================= */
.news-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 0;
}
.news-row:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
}
.news-row.is-read .news-title {
  color: var(--text-3);
}
.news-title {
  font-size: var(--fs-sm);
  font-weight: 570;
  line-height: 1.4;
  word-break: break-word;
}
.news-note {
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-top: 2px;
  line-height: 1.5;
  word-break: break-word;
}
.news-kind {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--surface-2);
  color: var(--text-2);
}

/* ================= settings ================= */
.set-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line-2);
  min-width: 0;
}
.set-row:last-child {
  border-bottom: 0;
}
.set-row .set-main {
  min-width: 0;
  flex: 1 1 auto;
}
.set-row .set-title {
  font-size: var(--fs-sm);
  font-weight: 580;
}
.set-row .set-desc {
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-top: 1px;
  line-height: 1.5;
}
.set-row .set-ctl {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.set-row .set-ctl .inp {
  width: 86px;
  height: 28px;
}
.swatches {
  display: flex;
  gap: 6px;
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  padding: 0;
}
.swatch.is-active {
  box-shadow: 0 0 0 2px var(--accent);
}
.swatch[data-swatch="lavender"] {
  background: #9b8ad0;
}
.swatch[data-swatch="pink"] {
  background: #d79ab4;
}
.swatch[data-swatch="beige"] {
  background: #bfa47c;
}
.swatch[data-swatch="mint"] {
  background: #7fb29a;
}
.swatch[data-swatch="ink"] {
  background: #8b93b8;
}

/* ================= misc ================= */
.hint {
  font-size: var(--fs-xs);
  color: var(--text-3);
  line-height: 1.55;
}
.big-amount {
  font-family: var(--font-num);
  font-size: 1.15rem;
  font-weight: 660;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.cal-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  cursor: default;
  border: 1px solid transparent;
}
.cal-cell.has {
  color: var(--accent-ink);
}
.cal-cell.is-today {
  border-color: var(--accent-2);
}
.cal-cell.is-blank {
  background: transparent;
}
