/* More Plus tools (public/ui/plus-more.js): price changes, what the shelves are worth, your year, dates in the
   calendar, at the store, give a month. Colours come from the app's tokens, so Looks and dark mode apply. */

.sw-ic, .as-ic { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--okbg); color: var(--ok); }
.sw-ic svg, .as-ic svg { width: 1.35rem; height: 1.35rem; }
.shelfworth .row { gap: .8rem; align-items: center; }
.sw-num { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.yearlink { display: flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; }
.yearlink .grow { display: flex; flex-direction: column; }
.yearlink > svg { width: 1.1rem; color: var(--muted); }

/* Prices that changed */
.pchg li { cursor: pointer; }
.pchg-pct { flex: none; display: inline-flex; align-items: center; gap: .2rem; font-weight: 700; font-size: .9rem; padding: .15rem .5rem; border-radius: 99px; font-variant-numeric: tabular-nums; }
.pchg-pct svg { width: 1rem; height: 1rem; }
.pchg-pct.up { background: var(--badbg); color: var(--bad); }
.pchg-pct.down { background: var(--okbg); color: var(--ok); }

/* Your year */
.yhero { display: flex; align-items: center; gap: 1rem; background: var(--okbg); }
.yhero .grow { display: flex; flex-direction: column; gap: .15rem; }
.yhero-num { font-size: 2.1rem; line-height: 1.05; color: var(--ok); font-variant-numeric: tabular-nums; }
.yring { width: 84px; height: 84px; flex: none; }
.yring circle { fill: none; stroke-width: 3.6; } .yring .bg { stroke: var(--badbg); } .yring .fg { stroke: var(--ok); stroke-linecap: round; }
.yring text { font-size: 8.5px; font-weight: 700; text-anchor: middle; fill: var(--ink); }
.ytiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .6rem 0 1rem; }
.ytile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .5rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; min-width: 0; }
.ytile b { font-size: 1.15rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ytile .small { color: var(--muted); line-height: 1.2; }
.yt-ic svg { width: 1.3rem; height: 1.3rem; color: var(--muted); }
.ytile.ok .yt-ic svg, .ytile.ok b { color: var(--ok); }
.ytile.bad .yt-ic svg, .ytile.bad b { color: var(--bad); }
.ytop { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .2rem; }
.ytop-i { flex: none; width: 4.6rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; }
.ytop-i .small { line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Dates in your calendar */
.calflow { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: .4rem 0 .6rem; }
.cf-step { width: 3.2rem; height: 3.2rem; border-radius: 14px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); }
.cf-step svg { width: 1.6rem; height: 1.6rem; color: var(--accent); }
.cf-arrow { color: var(--muted); font-size: 1.2rem; }
.calpage { flex: none; width: 2.8rem; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); text-align: center; background: var(--card); display: flex; flex-direction: column; }
.cp-m { background: var(--bad); color: #fff; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .1rem 0; }
.cp-d { font-size: 1.1rem; padding: .1rem 0 .15rem; }

/* At the store */
#atstore { margin: .6rem 0 0; }
.atstore-go { width: 100%; }
.atstore { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.atstore .grow { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.atstore.on { background: var(--okbg); border-color: transparent; }
.atstore.them { background: var(--warnbg); border-color: transparent; }
.atstore.them .as-ic { background: var(--card); color: var(--warn); }
.atstore.on .as-ic { animation: as-walk 1.2s ease-in-out infinite alternate; }
@keyframes as-walk { from { transform: translateX(-2px); } to { transform: translateX(2px); } }
@media (prefers-reduced-motion: reduce) { .atstore.on .as-ic { animation: none; } }

/* Give a month */
.giftpic { display: flex; align-items: center; justify-content: center; gap: .7rem; margin: .6rem 0; position: relative; }
.gp-box, .gp-ppl { width: 4rem; height: 4rem; border-radius: 18px; display: grid; place-items: center; }
.gp-box { background: var(--warnbg); color: var(--accent); }
.gp-ppl { background: var(--okbg); color: var(--ok); }
.gp-box svg, .gp-ppl svg { width: 2rem; height: 2rem; }
.gp-arrow { color: var(--muted); font-size: 1.4rem; }
.gp-tag { position: absolute; bottom: -.4rem; right: calc(50% - 5.4rem); background: var(--ink); color: var(--card); font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 99px; }
.gcodes li { display: flex; align-items: center; flex-wrap: nowrap; gap: .7rem; }
.gcodes li .grow { min-width: 0; }
.gc-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; font-size: 1.05rem; }
.gcodes li.used .gc-code { text-decoration: line-through; color: var(--muted); }
.gcodes li > svg { width: 1.3rem; color: var(--ok); }

.yt-ic .pimg { display: block; height: 48px; width: auto; margin-bottom: .2rem; }
.yhero > .pimg { flex: none; height: 72px; width: auto; }
