#daily-mood {
  margin: 8px 22px 3px;
  padding: 12px 17px 13px;
  border: 1px solid #fff9;
  border-radius: 22px;
  background: linear-gradient(108deg,#fffdfbdc,#fdfbfff0);
  box-shadow: 0 5px 22px #55406508;
  color: #51475b;
}
.mood-head,.mood-head>div,.mood-options,.mood-options button,.mood-reply,.mood-detail,.mood-monthbar,.mood-permission {
  display: flex;
  align-items: center;
}
.mood-head,.mood-monthbar,.mood-permission { justify-content: space-between; }
.mood-head>div { flex-wrap: wrap; column-gap: 9px; }
.mood-head h2 { margin: 0; font-size: 15px; font-weight: 640; line-height: 1.4; color: #52465d; }
.mood-head small,.mood-edit { color: #796e82; font-size: 12px; }
.mood-edit,.mood-calendar-link,.mood-options button,.mood-monthbar button,.mood-day.marked,.mood-permission { padding: 0; border: 0; background: transparent; }
.mood-edit { min-height: 28px; padding-inline: 3px; }
.mood-calendar-link { color: #81758b; width: 36px; height: 32px; display: grid; place-items: center; margin-right: -7px; }
.mood-calendar-link:hover,.mood-edit:hover { color: #514062; }
.mood-options { justify-content: space-between; flex-wrap: nowrap; gap: 4px; margin-top: 2px; }
.mood-options button { min-height: 42px; flex: 1; justify-content: center; gap: 6px; color: #53495d; font-size: 13px; border-radius: 15px; }
.mood-options button:hover { background: #f1ecf7; }
.mood-options button:active .mood-stamp { transform: scale(.88); }
.mood-stamp { display: inline-grid; place-items: center; width: 29px; height: 29px; flex: none; border-radius: 46% 54% 49% 51%; transition: transform .18s ease; }
.mood-stamp svg { width: 19px; height: 19px; }
.stamp-grounded { color: #96682c; background: #f9e9c7; }
.stamp-still { color: #517e79; background: #dceee8; }
.stamp-thinking { color: #5e7098; background: #e5eaf7; }
.stamp-tired { color: #826b92; background: #ece1f1; }
.mood-reply { min-height: 46px; gap: 10px; margin-top: 2px; animation: mood-appear .3s ease both; }
.mood-reply .mood-stamp { animation: mood-pop .38s ease both; }
.mood-reply strong,.mood-detail strong { font-size: 13px; color: #574b63; }
.mood-reply p,.mood-detail p { margin: 2px 0 0; font-size: 13px; color: #6a6071; line-height: 1.55; }
#mood-calendar-body { margin-top: 12px; }
.mood-monthbar { margin: 7px 0 13px; font-size: 16px; color: #584b65; }
.mood-monthbar button { display: grid; place-items: center; width: 40px; height: 36px; border-radius: 16px; color: #6a587d; background: #f4eff7; }
.mood-monthbar button[aria-disabled="true"] { opacity: .35; }
.mood-week,.mood-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; }
.mood-week { color: #807588; font-size: 12px; text-align: center; margin-bottom: 5px; }
.mood-grid { grid-auto-rows: minmax(43px,auto); }
.mood-day { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 9px; color: #5e5566; font-size: 13px; font-variant-numeric: tabular-nums; }
.mood-day.is-today { box-shadow: inset 0 0 0 1px #c0afcf; }
.mood-day.is-selected { background: #f3eef7; }
.mood-day.marked { gap: 1px; line-height: 14px; font-size: 11px; }
.mood-day .mood-stamp { width: 22px; height: 22px; }
.mood-day .mood-stamp svg { width: 15px; height: 15px; }
.mood-detail,.mood-empty { margin-top: 15px; border-top: 1px solid #e9e3ee; padding-top: 15px; }
.mood-detail { gap: 11px; }
.mood-empty,.mood-local { display: block; color: #746b7c; font-size: 12px; }
.mood-empty { margin-bottom: 0; }
.mood-permission { width: 100%; gap: 8px; min-height: 40px; color: #685b73; margin-top: 9px; font-size: 13px; }
.mood-permission i { display: inline-block; padding: 3px; width: 33px; height: 20px; border-radius: 28px; background: #d8d2df; }
.mood-permission i::before { content: ''; display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.mood-permission[aria-checked="true"] i { background: #867199; }
.mood-permission[aria-checked="true"] i::before { transform: translateX(13px); }
.sheet:has(#mood-calendar-body) .sheetactions { display: none; }
@keyframes mood-appear { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mood-pop { 0% {transform:scale(.86)} 55% {transform:scale(1.08)} 100% {transform:scale(1)} }
@media (max-width:360px) {
  #daily-mood { margin-inline: 14px; padding-inline: 12px; }
  .mood-options button { gap: 3px; }
  .mood-head>div { gap: 4px; }
}
@media (prefers-reduced-motion:reduce) {
  .mood-options .mood-stamp,.mood-reply,.mood-reply .mood-stamp,.mood-permission i::before { animation: none; transition: none; }
}
