#mj-app { font-family: system-ui, sans-serif; max-width: 480px; margin: 0 auto; padding: 12px 16px env(safe-area-inset-bottom); }
#mj-title { font-size: 1.4rem; margin: 0 0 16px; }
#mj-history-title { font-size: 1.1rem; margin: 24px 0 8px; }
.mj-mood-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.mj-mood-btn { flex: 1; min-width: 44px; padding: 10px 4px; font-size: 0.9rem; border: 2px solid #ccc; border-radius: 8px; background: #fff; cursor: pointer; text-align: center; }
.mj-mood-sel { border-color: #4a90e2; background: #e8f0fb; font-weight: bold; }
.mj-optional-toggle { margin-bottom: 8px; }
#mj-toggle-detail { background: none; border: none; color: #4a90e2; cursor: pointer; font-size: 0.9rem; padding: 4px 0; }
.mj-detail-hidden { display: none; }
#mj-detail label { display: block; font-size: 0.85rem; margin: 10px 0 4px; }
#mj-detail select, #mj-detail textarea { width: 100%; box-sizing: border-box; padding: 8px; font-size: 1rem; border: 1px solid #ccc; border-radius: 6px; }
.mj-actions { display: flex; gap: 10px; margin-top: 12px; }
#mj-save-btn { flex: 1; padding: 12px; background: #4a90e2; color: #fff; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; }
#mj-cancel-btn { padding: 12px 16px; background: #eee; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; }
.mj-hidden { display: none !important; }
.mj-card { background: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.mj-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.mj-emoji { font-size: 1.6rem; }
.mj-date { font-size: 0.8rem; color: #666; flex: 1; }
.mj-tag { background: #e8f0fb; color: #4a90e2; font-size: 0.75rem; border-radius: 12px; padding: 2px 8px; }
.mj-note { font-size: 0.9rem; color: #333; margin: 4px 0 8px; white-space: pre-wrap; }
.mj-card-actions { display: flex; gap: 8px; }
.mj-btn-edit, .mj-btn-del { padding: 6px 14px; border: none; border-radius: 6px; cursor: pointer; font-size: 0.85rem; }
.mj-btn-edit { background: #eee; }
.mj-btn-del { background: #fdecea; color: #c0392b; }
.mj-empty { color: #999; text-align: center; padding: 24px 0; }
.mj-error { background: #fdecea; color: #c0392b; padding: 10px; border-radius: 6px; margin-top: 12px; }