/* =====================================================================
   Profile: "Your progress" (a mastery row per course and this week's XP) and the progress under a locked achievement.
   ===================================================================== */
.ov-card {
  display: grid;
  gap: 16px;
  padding: 14px;
}
.ov-courses {
  display: grid;
  gap: 12px;
}
.ov-row {
  display: grid;
  gap: 6px;
}
.ov-c {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  margin: -6px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}
.ov-c:hover {
  transform: translateY(-2px);
  background: var(--line);
}
.ov-c:focus-visible,
.ov-lec:focus-visible,
.ov-det summary:focus-visible {
  outline: 3px solid var(--u, var(--ink));
  outline-offset: 2px;
}
.ov-det {
  margin-left: 56px;
}
.ov-det summary {
  cursor: pointer;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
}
.ov-lecs {
  display: grid;
  gap: 4px;
  padding-top: 6px;
}
.ov-lec {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.ov-lec:hover {
  background: var(--line);
}
.ov-lb {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.ov-lb > i {
  display: block;
  height: 100%;
  background: var(--u);
  transform-origin: 0 50%;
}
@media (prefers-reduced-motion: reduce) {
  .ov-c {
    transition: none;
  }
  .ov-c:hover {
    transform: none;
  }
}
.ov-ct {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ov-ct b {
  color: var(--ink);
  font-weight: 900;
}
.ov-ct > span:not(.ov-bar) {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.ov-bar {
  position: relative;
  display: block;
  height: 10px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.ov-bar > span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--u);
  transform-origin: 0 50%;
}
.ov-pc {
  flex: none;
  min-width: 44px;
  text-align: right;
  color: var(--u-ink);
  font-size: 15px;
  font-weight: 900;
}

/* the week: seven bars, a dashed line at the daily goal */
.ov-week {
  padding-top: 14px;
  border-top: 2px solid var(--line-soft);
}
.ov-wh {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.ov-wh b {
  color: var(--ink);
  font-weight: 900;
}
.ov-wh span {
  color: var(--amber-ink);
  font-weight: 900;
}
.ov-bars {
  --bh: 80px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.ov-bars::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc((1 - var(--goal)) * var(--bh));
  border-top: 2px dashed var(--line-2);
  pointer-events: none;
}
.ov-d {
  display: grid;
  grid-template-rows: var(--bh) auto auto;
  justify-items: center;
  gap: 2px;
}
.ov-d i {
  align-self: end;
  width: 100%;
  max-width: 30px;
  height: calc(var(--h) * var(--bh));
  min-height: 4px;
  border-radius: 8px 8px 4px 4px;
  background: var(--line);
}
.ov-d.has i {
  background: var(--gold);
}
.ov-d.met i {
  background: var(--teal);
}
.ov-d span {
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 900;
}
.ov-d.today span {
  color: var(--amber-ink);
}
.ov-d em {
  color: var(--text-dim);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  min-height: 1.2em;
}

/* a locked achievement: how far along it is */
.ach-prog {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 4px;
}
.ach-bar {
  position: relative;
  display: block;
  width: 80%;
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.ach-bar i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--teal);
  transform-origin: 0 50%;
}
.ach-prog em {
  color: var(--text-dim);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

/* Profile: daily goal chip near the top, smaller mascot shelf */
.pf-goal {
  display: inline-block;
  margin: 10px 0 12px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

button.pf-goal {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
