/* Mad Minute compact home (shared add-on, see mm-home.js). Uses each app's own color tokens. */

/* 1) Tests card */
.mmh-tests { gap: 10px; }
.mmh-tests .mmh-h { margin: 0; padding-right: 40px; }
.mmh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mmh-btn {
  display: flex; flex-direction: column; gap: 2px; text-align: left; cursor: pointer;
  background: transparent; color: var(--text); font: inherit;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.mmh-btn b { font-size: 15px; }
.mmh-btn span { font-size: 12px; color: var(--text-dim); }
.mmh-main { background: var(--amber); border-color: var(--amber); color: #1a1205; }
.mmh-main span { color: #1a1205; opacity: .8; }
.mmh-btn:active { transform: scale(0.98); }
.mmh-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.mmh-hint { font-size: 12px; color: var(--text-dim); line-height: 1.4; }
.mmh-tests .place-never { justify-content: flex-start; }

/* roadmap card after placement: slimmer */
.ck-home.mmh-slim { padding-top: 12px; padding-bottom: 12px; gap: 4px; }
.ck-home.mmh-slim .rec-topic { font-size: 16px; }
.ck-home.mmh-slim .ck-meta { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 2) path card: one line, no step bubbles (the Map tab has the whole path) */
#pathCard { padding-top: 12px; padding-bottom: 12px; gap: 0; }
#pathCard .path-steps, #pathCard #pathNextMeta { display: none; }
#pathCard .rec-topic { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 3) Team / Crew overview lives in its tab, not on home */
#crewCard { display: none !important; }

/* 4) after placement: goal + rank side by side, next gap on one line */
.mmh-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mmh-stats.one { grid-template-columns: 1fr; }
.mmh-stats > .card { padding: 12px; margin: 0; min-width: 0; }
.mmh-stats .daily-card { gap: 10px; align-items: center; }
.mmh-stats .goal-ring, .mmh-stats .goal-ring svg { width: 44px; height: 44px; }
.mmh-stats .goal-ring > span { font-size: 11px; }
.mmh-stats .daily-xp { font-size: 16px; }
.mmh-stats #dailyStreak { font-size: 11px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mmh-stats #rankCard { gap: 8px; justify-content: center; }
.mmh-stats .rank-line { gap: 10px; }
.mmh-stats .badge { width: 36px; height: 40px; }
.mmh-stats .rank-name { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mmh-stats .meter { height: 5px; }
.mmh-stats #homeRankSub { display: none; }
#recCard { padding-top: 12px; padding-bottom: 12px; }
#recCard > div { min-width: 0; }
#recCard .rec-topic { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#recCard .rec-meta { font-size: 12px; }

/* 5) Settings row: tap to open */
.mmh-settings { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.mmh-settings > summary {
  list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer;
}
.mmh-settings > summary::-webkit-details-marker { display: none; }
.mmh-set-t { font-weight: 600; font-size: 14px; }
.mmh-set-s { flex: 1; font-size: 12px; color: var(--text-dim); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mmh-set-c { color: var(--text-dim); font-size: 18px; transition: transform .2s ease; }
.mmh-settings[open] .mmh-set-c { transform: rotate(90deg); }
.mmh-settings > summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 14px; }
.mmh-set-body { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 12px; }
.mmh-set-retake .btn { width: 100%; }
/* Daily review: only when there's something to review */
#homeActions:has(#reviewBtn:disabled) { display: none; }
#reviewBtn:disabled { display: none; }
