/* SEKCJA 2 — wpisy wjeżdżają jak powiadomienia, „rozpoznaję nastrój…” zmienia się w kolorowy nastrój. */

.am-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.am-points li { position: relative; padding-left: 22px; }
.am-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: #C0705A; }

.am-card { padding: 20px; border-radius: 28px; background: #FFFDF8; border: 1px solid #E7DDCB; box-shadow: 0 30px 60px -34px rgba(43,35,32,.45); }
.am-card__head { padding-bottom: 14px; border-bottom: 1px solid #EFE6D8; }
.am-card__kicker { margin: 0 0 6px; font: 600 11px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: #8A7E70; }
.am-counter { margin: 0; font: 500 15px/1.3 var(--font-text); color: #2B2320; }
.am-counter__n { font: 600 32px/1 var(--font-display); letter-spacing: -.02em; color: #C0705A; font-variant-numeric: tabular-nums; margin-right: 4px; }
.am-bar { margin-top: 10px; height: 6px; border-radius: 999px; background: #F1E9DC; overflow: hidden; }
.am-bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, #E9B949, #C0705A); transition: width .2s linear; }

.am-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-height: 380px; }
.am-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #F9F4EC; animation: am-drop .55s cubic-bezier(.2,.9,.25,1.15) backwards; }
@keyframes am-drop { from { opacity: 0; transform: translateY(-26px) scale(.96); } }
.am-item__text { margin: 0; font: 400 15px/1.4 Georgia, serif; color: #2B2320; }
.am-item__meta { display: block; margin-top: 3px; font: 500 11px/1.2 var(--font-text); color: #8A7E70; }
.am-tag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font: 600 12px/1 var(--font-text); white-space: nowrap; }
.am-tag--busy { color: #8A7E70; background: linear-gradient(90deg, #EFE6D8 25%, #F8F2E8 50%, #EFE6D8 75%); background-size: 200% 100%; animation: am-shimmer 1s linear infinite; }
.am-tag--busy::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #C0B4A4; border-top-color: transparent; animation: am-spin .7s linear infinite; }
.am-tag--done { color: #2B2320; background: color-mix(in srgb, var(--m) 30%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m) 55%, #fff); animation: am-pop .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes am-shimmer { to { background-position: -200% 0; } }
@keyframes am-spin { to { transform: rotate(360deg); } }
@keyframes am-pop { from { transform: scale(.6); opacity: 0; } }

.am-replay { margin-top: 12px; padding: 8px 14px; border: 0; border-radius: 999px; background: #F3EBDD; font: 600 12px/1 var(--font-text); color: #2B2320; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; }
.am-card.is-done .am-replay { opacity: 1; pointer-events: auto; }
.am-replay:hover { background: #EADFCB; }

@media (max-width: 639px) {
  .am-card { padding: 16px; border-radius: 22px; }
  .am-list { min-height: 420px; }
  .am-item { grid-template-columns: 1fr; gap: 8px; }
  .am-tag { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .am-item, .am-tag--busy, .am-tag--busy::before, .am-tag--done { animation: none; }
}
