/* ==========================================================================
   Chique — Stats screen
   Summary cards, usage ring, ranking lists, horizontal bars and the SVG donut chart.
   ========================================================================== */

/* ----- summary cards ----- */
.statcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 8px; text-align: center; box-shadow: var(--shadow); display: grid; gap: 2px; }
.stat b { font-family: var(--font-display); font-size: 2rem; font-weight: 500; line-height: 1.1; color: var(--accent); }
.stat span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; }

/* ----- usage ring ----- */
.usage { display: flex; align-items: center; gap: 18px; }
.usage > div { min-width: 0; }
.usage h2 { margin-bottom: 4px !important; }
.ring { width: 96px; height: 96px; flex: none; }
.ring-n { font-size: 8.5px; font-weight: 700; fill: var(--text); font-family: var(--font-display); }

/* ----- two-column layout on wider screens ----- */
.two-col { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ----- most / least worn ranking ----- */
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rank li { display: flex; align-items: center; gap: 10px; }
.rank img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface2); flex: none; }
.rk { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 700; display: grid; place-items: center; flex: none; }
.rn { display: grid; min-width: 0; flex: 1; }
.rn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.rc { font-weight: 700; color: var(--accent); }

/* ----- horizontal bar chart ----- */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 96px 1fr 28px; align-items: center; gap: 10px; font-size: .88rem; }
.bl { display: flex; align-items: center; gap: 7px; }
.bar { height: 10px; border-radius: 6px; background: var(--surface2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--accent); transition: width .6s var(--ease); }
.bars b { text-align: right; }

/* ----- donut chart + legend ----- */
.donut-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.donut { width: 132px; height: 132px; flex: none; }
.donut-n { font-size: 8px; font-weight: 700; fill: var(--text); font-family: var(--font-display); }
.donut-l { font-size: 3.2px; fill: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; flex: 1; min-width: 150px; }
.legend li { display: flex; align-items: center; gap: 8px; }
