:root{--bg-screen:#f5eedc;--bg-card:#e4dcc6;--text-primary:#4a3f35;--text-quote:#5a4b3f;--text-muted:#5a4b3f;--btn-primary:#7c8f62;--btn-primary-hover:#6e8a52;--btn-primary-active:#5f7846;--border-color:#8b7d70;--shadow:rgba(74,63,53,.08);--focus-ring:#7c8f62}*{box-sizing:border-box}body,html{margin:0;padding:0;background-color:var(--bg-screen);color:var(--text-primary);font-family:Georgia,Times New Roman,serif;line-height:1.75;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.card{background-color:var(--bg-card);border-radius:12px;padding:20px;box-shadow:0 2px 8px var(--shadow);border:1px solid var(--border-color)}.btn{background-color:var(--btn-primary);color:var(--text-primary);border:none;border-radius:8px;padding:12px 24px;font-size:16px;font-family:inherit;cursor:pointer;transition:background-color .2s ease,transform .1s ease;min-height:44px}.btn:hover{background-color:var(--btn-primary-hover);box-shadow:0 4px 12px rgba(74,63,53,.12)}.btn:active{background-color:var(--btn-primary-active);transform:translateY(1px);box-shadow:0 2px 8px rgba(74,63,53,.18)}.btn:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}input,select,textarea{background-color:var(--bg-card);color:var(--text-primary);border:1px solid var(--border-color);border-radius:8px;padding:12px;font-size:16px;font-family:inherit;transition:border-color .2s ease;min-height:44px}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--focus-ring)}input::placeholder,textarea::placeholder{color:var(--text-muted);opacity:1}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:6px;border-radius:999px;background:var(--border-color);outline:none}input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:var(--border-color)}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:var(--btn-primary);border:2px solid var(--bg-card);margin-top:-6px;box-shadow:0 0 0 1px var(--border-color)}input[type=range]::-moz-range-track{height:6px;border-radius:999px;background:var(--border-color)}input[type=range]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:var(--btn-primary);border:2px solid var(--bg-card);box-shadow:0 0 0 1px var(--border-color)}.quote{font-style:italic;color:var(--text-quote);border-left:4px solid var(--btn-primary);padding-left:16px;margin:16px 0}.quote footer{font-style:normal;font-size:.9em;color:var(--text-muted);margin-top:8px}h1,h2,h3,h4,h5,h6{color:var(--text-primary);font-weight:600;line-height:1.3;margin:0 0 16px}h1{font-size:28px}h2{font-size:26px}h3{font-size:22px}p{margin:0 0 12px;font-size:17px}label{color:var(--text-primary)}nav{background-color:var(--bg-card);border-top:1px solid var(--border-color)}nav a{color:var(--text-primary);text-decoration:none;padding:12px 16px;transition:color .2s ease}nav a.active,nav a:hover{color:var(--btn-primary)}nav a.active{font-weight:600}.nav-icon{display:inline-flex;align-items:center;justify-content:center;font-size:20px}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));grid-gap:16px;gap:16px;margin:20px 0}.stat-card{text-align:center}.stat-number{font-size:32px;font-weight:600;color:var(--btn-primary)}.stat-label{color:var(--text-muted);font-size:14px;margin-top:4px}.stats-period-selector{display:flex;flex-wrap:wrap;gap:8px}.stats-period-btn{padding:8px 12px;font-size:14px;border-radius:999px}.stats-period-btn--active{box-shadow:0 0 0 2px var(--focus-ring)}.stats-day-chart{display:flex;align-items:flex-end;gap:6px}.stats-day-chart__column{flex:1 1;display:flex;flex-direction:column;align-items:center;min-width:16px}.stats-day-chart__avg{font-size:10px;color:var(--text-quote);margin-bottom:4px}.stats-day-chart__bar-wrapper{width:100%;display:flex;justify-content:center;align-items:flex-end}.stats-day-chart__bar{width:60%;background-color:var(--btn-primary);border-radius:999px 999px 0 0}.stats-day-chart__label{margin-top:4px;font-size:10px;color:var(--text-muted)}.stats-type-legend{display:flex;flex-direction:column;gap:8px}.stats-type-legend__item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:999px;background-color:var(--bg-screen);border:1px solid var(--border-color);cursor:pointer}.stats-type-legend__item--active{background-color:var(--bg-card)}.stats-type-legend__dot{width:10px;height:10px;border-radius:50%;background-color:var(--btn-primary);flex-shrink:0}.stats-type-legend__label{flex:1 1;text-align:left;font-size:14px;color:var(--text-primary)}.stats-type-legend__count{font-size:13px;color:var(--text-muted)}.review-emotions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));grid-gap:12px;gap:12px}.review-emotion-card{text-align:left;padding:12px 14px;border-radius:12px;border:1px solid var(--border-color);background-color:var(--bg-screen);cursor:pointer;transition:box-shadow .15s ease,transform .1s ease,border-color .15s ease,background-color .15s ease}.review-emotion-card:hover{box-shadow:0 2px 8px var(--shadow);transform:translateY(-1px)}.review-emotion-card--analyzed{background-color:var(--bg-card);border-color:var(--btn-primary)}.review-emotion-card__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.review-emotion-card__title{font-size:15px;font-weight:600}.review-emotion-card__badge{font-size:11px;padding:2px 8px;border-radius:999px;border:1px solid var(--border-color);color:var(--text-muted)}.review-emotion-card__meta{font-size:12px;color:var(--text-muted);margin-bottom:6px}.review-emotion-card__reason{font-size:13px;color:var(--text-primary)}.review-modal-overlay{position:fixed;inset:0;background-color:rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;z-index:50}.review-modal{max-width:560px;width:calc(100% - 32px);background-color:var(--bg-screen);border-radius:16px;box-shadow:0 12px 32px rgba(0,0,0,.25);border:1px solid var(--border-color);padding:20px 20px 16px}.today-entries-list{display:flex;flex-direction:column;gap:12px}.today-entry-card{padding:12px;background-color:var(--bg-screen);border-radius:10px;border:1px solid var(--border-color);animation:slideUp .25s ease-out both}.today-entry-card__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.today-entry-card__title{font-size:15px;color:var(--btn-primary)}.today-entry-card__meta{font-size:13px;color:var(--text-muted)}.today-entry-card__reason{margin:0;font-size:14px}.today-fab{position:fixed;right:20px;bottom:80px;width:56px;height:56px;border-radius:50%;border:none;background-color:var(--btn-primary);color:var(--text-primary);font-size:28px;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px var(--shadow);cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease}.today-fab:hover{transform:translateY(-1px);box-shadow:0 6px 16px var(--shadow)}.today-fab:active{transform:translateY(1px) scale(.97)}.daily-quote-card{position:relative}.quote--flip{animation:flip .4s ease-out}@media (max-width:768px){.card{padding:16px;margin:0 16px}h1{font-size:24px}h2{font-size:20px}h3{font-size:18px}}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.fade-in{animation:fadeIn .3s ease-out}