.wish-banner {
  background: linear-gradient(135deg, #fffbeb, #fef9c3);
  border: 1.5px solid #fde68a;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

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

.wish-banner .wish-label {
  font-size: 11px;
  color: #92400e;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.wish-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(146, 64, 14, .15);
  background: rgba(255,255,255,.7);
  color: #92400e;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.wish-preview {
  font-size: 15px;
  line-height: 1.5;
  color: #78350f;
  font-weight: 500;
}

.wish-expanded {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  color: #92400e;
  line-height: 1.7;
  white-space: pre-wrap;
}

.wish-banner.open .wish-expanded { display: block; }

.score-block {
  text-align: center;
  padding: 10px 0 14px;
}

.score-top-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
  color: var(--muted);
  margin-bottom: 8px;
}

.score-number {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
}

.score-number.positive { color: var(--green); }
.score-number.negative { color: var(--red); }
.score-number.zero { color: var(--muted); }

.score-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 500;
}

.today-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.today-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
}

.section-tone-morning {
  background: linear-gradient(180deg, #fbfefc 0%, #f7fcf8 100%);
  border-color: #edf7ef;
}

.section-tone-day {
  background: linear-gradient(180deg, #f8fdf9 0%, #f1faf3 100%);
  border-color: #e7f3ea;
}

.section-tone-evening {
  background: linear-gradient(180deg, #f6fcf7 0%, #eef8f0 100%);
  border-color: #e1efe5;
}

.section-tone-general {
  background: linear-gradient(180deg, #f3fbf5 0%, #ebf7ee 100%);
  border-color: #dceee2;
}

.section-tone-minus {
  background: linear-gradient(180deg, #fff1f4 0%, #ffe8ec 100%);
  border-color: #efc7d0;
}

.section-tone-notes {
  background: linear-gradient(180deg, #fffdf7 0%, #fff9ea 100%);
  border-color: #f4ead0;
}

.today-section-head {
  width: 100%;
  border: none;
  background: transparent;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  color: var(--text);
}

.today-section-arrow {
  color: var(--muted);
  transition: transform .18s ease;
}

.today-section.open .today-section-arrow {
  transform: rotate(180deg);
}

.today-section-body {
  display: block;
  padding: 0 12px 12px;
}

.habit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all .15s;
  border: 1.5px solid transparent;
}

.habit-item:active { transform: scale(.98); }
.habit-item.checked-item { border-color: var(--green-light); background: #f0fdf4; }

.habit-checkbox {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.habit-checkbox.checked.plus {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 2px 6px rgba(22,163,74,.3);
}

.habit-checkbox.checked.minus {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 2px 6px rgba(220,38,38,.3);
}

.habit-checkbox.checked::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.habit-name { flex: 1; font-size: 15px; font-weight: 500; }
.habit-weight { font-size: 14px; color: var(--muted); font-weight: 700; min-width: 30px; text-align: right; }

.diary-textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px 16px;
  border: 1.5px solid rgba(229,231,235,.9);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.75;
  resize: vertical;
  outline: none;
  font-family: inherit;
  color: var(--text);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-sm);
}

.diary-textarea::placeholder {
  color: #a7afbc;
  white-space: pre-line;
}

.diary-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
  background: white;
}

.today-section.open .diary-textarea {
  min-height: 260px;
}

/* ===== live goals ===== */

.goal-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goal-add-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.goal-add-input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid rgba(229,231,235,.9);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.35;
  background: rgba(255,255,255,.88);
  color: var(--text);
  outline: none;
}

.goal-add-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
  background: white;
}

.goal-add-btn {
  border: none;
  background: var(--text);
  color: white;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.goal-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goal-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 4px;
}

.goal-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(229,231,235,.85);
  box-shadow: var(--shadow-sm);
}

.goal-item.done {
  background: rgba(240,253,244,.88);
  border-color: rgba(34,197,94,.28);
}

.goal-check-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  color: transparent;
}

.goal-check-btn.checked {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.goal-text-wrap {
  min-width: 0;
}

.goal-text {
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.goal-item.done .goal-text {
  color: #14532d;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.goal-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.goal-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  color: var(--text);
}

@media (max-width: 768px) {
  .goal-card {
    flex-direction: column;
  }

  .goal-check-btn {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .goal-add-form {
    flex-direction: column;
  }

  .goal-add-btn {
    min-height: 42px;
  }

  .goal-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .goal-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 44px;
  }
}


/* ===== today ui patch 02 ===== */

.goal-card-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 4px;
}

.goal-card-meta {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 12px;
}

.goal-card .goal-items {
  margin-bottom: 12px;
}

.goal-card .goal-add-form {
  margin-top: 0;
}

.goal-card .goal-items:empty + .goal-add-form {
  margin-top: 0;
}

@media (max-width: 640px) {
  .goal-card-title {
    font-size: 13px;
  }

  .goal-card-meta {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .goal-card .goal-items {
    margin-bottom: 10px;
  }
}

/* ===== today usage guide ===== */

.today-usage-guide {
  position: relative;
  overflow: hidden;
  margin: 2px 0 2px;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(202,166,75,.14), transparent 30%),
    radial-gradient(circle at bottom left, rgba(15,107,82,.10), transparent 28%),
    linear-gradient(180deg, rgba(255,249,237,.97) 0%, rgba(246,236,211,.93) 100%);
  border: 1px solid rgba(202,166,75,.18);
  box-shadow: var(--shadow-sm);
}

.today-usage-guide::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(215,184,106,1) 0%, rgba(154,116,40,1) 48%, rgba(15,107,82,1) 100%);
}

.today-usage-guide-head {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.today-usage-guide-kicker {
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .9px;
  font-weight: 800;
  color: #8a6928;
  margin-bottom: 6px;
}

.today-usage-guide-title {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
  color: #23180c;
}

.today-usage-guide-subtitle {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.68;
  color: #5c4a26;
}

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

.today-usage-guide-card {
  position: relative;
  min-width: 0;
  padding: 14px 14px 13px;
  border-radius: 16px;
  border: 1px solid rgba(202,166,75,.16);
  background: rgba(255,252,246,.82);
  box-shadow: 0 8px 18px rgba(56, 39, 10, 0.06);
}

.today-usage-guide-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  opacity: .95;
}

.today-usage-guide-card-habits::before {
  background: linear-gradient(180deg, #0f6b52 0%, #0b4f3d 100%);
}

.today-usage-guide-card-notes::before {
  background: linear-gradient(180deg, #caa64b 0%, #8a6928 100%);
}

.today-usage-guide-card-label {
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .7px;
  font-weight: 800;
  color: #8a6928;
  margin-bottom: 6px;
}

.today-usage-guide-card-title {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  color: #23180c;
  margin-bottom: 6px;
}

.today-usage-guide-card-text {
  font-size: 13px;
  line-height: 1.64;
  color: #5c4a26;
}

@media (max-width: 640px) {
  .today-usage-guide {
    padding: 14px;
    border-radius: 16px;
  }

  .today-usage-guide-title {
    font-size: 15px;
  }

  .today-usage-guide-subtitle,
  .today-usage-guide-card-text {
    font-size: 12px;
    line-height: 1.6;
  }

  .today-usage-guide-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .today-usage-guide-card {
    padding: 12px 12px 11px;
    border-radius: 14px;
  }
}

/* ===== today section dividers ===== */

.today-section-divider {
  position: relative;
  overflow: hidden;
  margin: 4px 0 2px;
  padding: 14px 16px 13px;
  border-radius: 18px;
  border: 1px solid rgba(202,166,75,.16);
  box-shadow: var(--shadow-sm);
}

.today-section-divider::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(215,184,106,1) 0%, rgba(154,116,40,1) 50%, rgba(15,107,82,1) 100%);
}

.today-section-divider-habits {
  background:
    radial-gradient(circle at top right, rgba(15,107,82,.10), transparent 28%),
    linear-gradient(180deg, rgba(255,249,237,.97) 0%, rgba(246,236,211,.93) 100%);
}

.today-section-divider-journal {
  background:
    radial-gradient(circle at top right, rgba(202,166,75,.14), transparent 30%),
    linear-gradient(180deg, rgba(255,249,237,.97) 0%, rgba(247,238,216,.93) 100%);
}

.today-section-divider-kicker {
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 800;
  color: #8a6928;
  margin-bottom: 5px;
}

.today-section-divider-title {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
  color: #23180c;
  margin-bottom: 6px;
}

.today-section-divider-text {
  font-size: 13px;
  line-height: 1.62;
  color: #5c4a26;
}

@media (max-width: 640px) {
  .today-section-divider {
    padding: 12px 14px 11px;
    border-radius: 16px;
  }

  .today-section-divider-title {
    font-size: 15px;
  }

  .today-section-divider-text {
    font-size: 12px;
    line-height: 1.56;
  }
}

@media (max-width: 768px) {
  .goal-card {
    flex-direction: column;
  }
}
