/* Shared milestones: visible progress without daily streak pressure. */
:root body .client-achievements {
  min-width: 0;
  color: #171a17;
  text-align: left;
}
:root body .progress-panel-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
:root body .client-achievements-progress-button {
  display: inline-flex;
  width: auto !important;
  min-width: 0 !important;
  height: 48px;
  padding: 0 16px !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #171a17;
  background: #d6ff35;
  border: 1px solid #b8dd22;
  border-radius: 14px !important;
  box-shadow: 0 5px 14px rgba(37, 48, 23, .16);
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
}
:root body .client-achievements-progress-button svg { width: 22px; height: 22px; }
:root body .client-achievements-progress-button:focus-visible { outline: 3px solid #263418; outline-offset: 3px; }
:root body .client-achievements-dialog {
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 54px clamp(16px, 3vw, 32px) 28px;
  overflow: auto;
  color: #171a17;
  background: #f7f8f3;
  border: 1px solid #d9ddd4;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(20, 26, 15, .28);
}
:root body .client-achievements-dialog::backdrop { background: rgba(15, 19, 13, .58); backdrop-filter: blur(3px); }
:root body .client-achievements-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px;
  padding: 0 !important;
  place-items: center;
  color: #263418;
  background: #edf1e5;
  border: 1px solid #d6dccd;
  border-radius: 50% !important;
  font: 700 1.45rem/1 inherit;
  cursor: pointer;
}
:root body .client-achievements-home {
  grid-column: 1 / -1;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #d9ddd4;
  border-radius: 22px;
  background: #fff;
}
:root body .client-achievements-room { margin: 0; }
@media (max-width: 700px) {
  :root body .dashboard-page .progress-panel-heading { display: flex !important; align-items: flex-start !important; }
  :root body .dashboard-page .progress-panel-heading > div:first-child { flex: 1; }
  :root body .progress-panel-actions .status-pill { display: none; }
}
:root body .achievement-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
:root body .achievement-section-heading .kicker { margin: 0 0 5px; font-size: .65rem; letter-spacing: .11em; color: #5b6551; }
:root body .achievement-section-heading h3 { margin: 0; font-size: clamp(1.25rem, 3.6vw, 1.7rem); font-weight: 850; letter-spacing: -.035em; line-height: 1.15; text-transform: none; }
:root body .achievement-link,
:root body .achievement-retry { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; padding: 9px 14px; border: 1px solid #d6dccd; border-radius: 12px; background: #f4f6ed; color: #263418; line-height: 1.3; font-family: inherit; font-size: .8rem; font-weight: 750; cursor: pointer; }
:root body .achievement-link span { font-size: 1.15rem; }
:root body .achievement-collection-count { padding: 8px 12px; border-radius: 99px; background: #edf1e5; font-size: .75rem; font-weight: 750; }
:root body .achievement-intro,
:root body .achievement-state { margin: 0 0 20px; color: #666d60; font-size: .9rem; line-height: 1.6; }
:root body .achievement-level { display: flex; gap: 24px; align-items: center; padding: 28px; border: 1px solid #313b29; border-radius: 18px; color: #fff; background: radial-gradient(ellipse at 0 0, #364128, #182017 70%); }
:root body .achievement-level.is-compact { gap: 16px; padding: 20px; }
:root body .achievement-level-medallion { display: grid; flex: 0 0 84px; width: 84px; height: 96px; place-content: center; position: relative; color: #d6ff35; background: #d6ff3512; border: 1px solid #d6ff3566; border-radius: 24px 24px 34px 34px; }
:root body .achievement-level-medallion svg { width: 38px; height: 38px; }
:root body .achievement-level-medallion b { margin-top: 3px; text-align: center; font-size: 1.1rem; line-height: 1; }
:root body .is-compact .achievement-level-medallion { flex-basis: 62px; width: 62px; height: 76px; border-radius: 18px 18px 26px 26px; }
:root body .is-compact .achievement-level-medallion svg { width: 29px; height: 29px; }
:root body .achievement-level-copy { flex: 1; min-width: 0; }
:root body .achievement-eyebrow { display: block; margin: 0 0 6px; color: #d6ff35; font-size: .66rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
:root body .achievement-level-copy h3,
:root body .achievement-level-copy h4 { margin: 0 0 14px; color: #fff; font-size: clamp(1.4rem, 3.6vw, 2rem); font-weight: 850; line-height: 1.15; letter-spacing: -.025em; text-transform: none; }
:root body .is-compact .achievement-level-copy h4 { font-size: 1.3rem; margin-bottom: 10px; }
:root body .achievement-xp-label { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 9px; font-size: .74rem; line-height: 1.4; }
:root body .achievement-xp-label strong { color: #f6ffdd; font-weight: 750; font-variant-numeric: tabular-nums; }
:root body .achievement-xp-label span { color: #b9c4ac; }
:root body .achievement-progress { display: block; width: 100%; height: 7px; margin: 0; overflow: hidden; appearance: none; border: 0; border-radius: 9px; background: #e4e8df; color: #718a18; }
:root body .achievement-progress::-webkit-progress-bar { border-radius: 9px; background: #e4e8df; }
:root body .achievement-progress::-webkit-progress-value { border-radius: 9px; background: #718a18; }
:root body .achievement-progress::-moz-progress-bar { border-radius: 9px; background: #718a18; }
:root body .achievement-level .achievement-progress { background: #4b5542; color: #d6ff35; }
:root body .achievement-level .achievement-progress::-webkit-progress-bar { background: #4b5542; }
:root body .achievement-level .achievement-progress::-webkit-progress-value { background: #d6ff35; }
:root body .achievement-level .achievement-progress::-moz-progress-bar { background: #d6ff35; }
:root body .achievement-home-next { display: flex; align-items: center; gap: 12px; padding-top: 18px; min-width: 0; }
:root body .achievement-mini-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 12px; background: #eff4df; color: #536620; }
:root body .achievement-mini-icon svg { width: 23px; height: 23px; }
:root body .achievement-home-next > div { flex: 1; min-width: 0; }
:root body .achievement-home-next small { display: block; font-size: .64rem; color: #69735d; }
:root body .achievement-home-next strong { display: block; margin: 3px 0; font-size: .88rem; }
:root body .achievement-home-next div > span { display: block; color: #686e60; font-size: .73rem; line-height: 1.5; }
:root body .achievement-earned-count { padding-left: 15px; border-left: 1px solid #e0e5d8; text-align: center; font-size: 1.4rem; font-weight: 850; }
:root body .achievement-earned-count small { max-width: 55px; margin-top: 3px; font-size: .61rem; font-weight: 550; line-height: 1.3; }
:root body .achievement-how { margin: 14px 0 24px; color: #626b56; font-size: .8rem; line-height: 1.6; }
:root body .achievement-how summary { padding: 9px 0; min-height: 44px; cursor: pointer; font-weight: 700; }
:root body .achievement-how p { margin: 0 0 12px; font-size: .8rem; }
:root body .achievement-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
:root body .achievement-filters button { min-height: 44px; padding: 9px 14px; border: 1px solid #dce0d6; border-radius: 99px; background: #fff; color: #5c6651; font-family: inherit; font-size: .76rem; font-weight: 750; cursor: pointer; }
:root body .achievement-filters button[aria-pressed="true"] { background: #d6ff35; border-color: #d6ff35; color: #202719; }
:root body .client-achievements :is(.achievement-filters button, .achievement-link, .achievement-retry) { width: auto !important; inline-size: auto !important; }
:root body .client-achievements .achievement-filters button { border-radius: 99px !important; }
:root body .achievement-badge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
:root body .achievement-badge { display: flex; flex-direction: column; gap: 0; min-width: 0; margin: 0; padding: 20px; border: 1px solid #dce0d6; border-radius: 18px; background: #fafbf8; text-align: center; }
:root body .achievement-badge.is-earned { background: #fff; box-shadow: 0 3px 10px #17200c05; }
:root body .achievement-badge-top { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
:root body .achievement-badge-emblem { display: grid; place-items: center; flex: 0 0 auto; width: 108px; height: 108px; color: #858e7b; }
:root body .achievement-badge-emblem svg { width: 28px; height: 28px; }
:root body .achievement-badge-art { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; border: 0; border-radius: 0; background: transparent; }
:root body .achievement-tier { padding: 3px 9px; border-radius: 99px; background: #edf0e8; color: #6b7263; font-size: .58rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
:root body .achievement-tier-bronze.is-earned { background: linear-gradient(180deg, #fffaf4, #fff 65%); }
:root body .achievement-tier-silver.is-earned { background: linear-gradient(180deg, #f5f9fc, #fff 65%); }
:root body .achievement-tier-gold.is-earned { background: linear-gradient(180deg, #fffbed, #fff 65%); }
:root body .achievement-tier-platinum.is-earned { background: linear-gradient(180deg, #f5f3fc, #fff 65%); }
:root body .achievement-tier-bronze.is-earned .achievement-tier { background: #f5e8d9; color: #785535; }
:root body .achievement-tier-silver.is-earned .achievement-tier { background: #e9eff4; color: #4e6779; }
:root body .achievement-tier-gold.is-earned .achievement-tier { background: #fbf0cc; color: #80621d; }
:root body .achievement-tier-platinum.is-earned .achievement-tier { background: #ede9f5; color: #69617d; }
:root body .achievement-badge.is-locked .achievement-badge-art { filter: grayscale(.9); opacity: .48; }
:root body .achievement-medal-preview { width: 64px; height: 64px; flex: 0 0 64px; padding: 0; border: 0; border-radius: 0; background: transparent; }
:root body .achievement-badge h4 { margin: 0 0 7px; color: #27321f; font-size: .93rem; line-height: 1.3; letter-spacing: -.02em; font-weight: 800; text-transform: none; }
:root body .achievement-badge p { flex: 1; margin: 0 0 18px; color: #717967; font-size: .74rem; line-height: 1.55; }
:root body .achievement-badge-earned { display: flex; gap: 5px; align-items: center; justify-content: center; color: #546b2d; font-size: .65rem; font-weight: 700; line-height: 1.5; }
:root body .achievement-badge-earned svg,
:root body .achievement-badge-target svg { flex: 0 0 13px; width: 13px; height: 13px; }
:root body .achievement-badge-target { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 9px; font-size: .62rem; color: #717967; }
:root body .achievement-badge-target span { display: flex; align-items: center; gap: 5px; }
:root body .achievement-badge-target strong { font-weight: 700; white-space: nowrap; }
:root body .achievement-celebration { position: relative; overflow: hidden; padding: 20px; margin: 0 0 14px; border: 1px solid #bfd862; border-radius: 16px; background: #f3fbdc; }
:root body .achievement-celebration[hidden] { display: none !important; }
:root body .achievement-celebration .achievement-eyebrow { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; color: #4c621b; }
:root body .achievement-celebration h3 { position: relative; margin: 5px 0 16px; color: #263a11; font-size: 1.2rem; font-weight: 850; letter-spacing: -.025em; line-height: 1.3; text-transform: none; }
:root body .achievement-celebration ul { position: relative; display: grid; gap: 12px; margin: 13px 0 0; padding: 0; list-style: none; }
:root body .achievement-celebration li { display: flex; align-items: center; gap: 10px; margin: 0; }
:root body .achievement-celebration li strong,
:root body .achievement-celebration li div > span { display: block; color: #30471e; font-size: .85rem; line-height: 1.4; }
:root body .achievement-celebration li div > span { margin-top: 2px; color: #687754; font-size: .73rem; }
:root body .achievement-celebration .achievement-mini-icon { background: #d6ff35; color: #354819; }
:root body .achievement-celebration .achievement-medal-preview { background: transparent; }
:root body .achievement-celebration-confetti { position: absolute; inset: 0; pointer-events: none; }
:root body .achievement-celebration-confetti i { position: absolute; left: calc(var(--piece) * 10%); top: -12px; width: 5px; height: 9px; border-radius: 1px; background: #99ae3d; opacity: 0; animation: achievement-confetti 1.6s ease-out calc(var(--piece) * 45ms) both; }
:root body .achievement-celebration-confetti i:nth-child(3n) { background: #c7a353; }
:root body .achievement-celebration-confetti i:nth-child(3n + 1) { background: #8ab0a6; }
@keyframes achievement-confetti { 10% { opacity: .7; } 100% { transform: translateY(190px) rotate(220deg); opacity: 0; } }
:root body .client-achievements button:focus-visible,
:root body .achievement-how summary:focus-visible { outline: 3px solid #718a18; outline-offset: 3px; }
@media (max-width: 460px) {
  :root body .achievement-level { gap: 14px; padding: 18px; }
  :root body .achievement-level-medallion { flex-basis: 58px; width: 58px; height: 76px; border-radius: 18px 18px 24px 24px; }
  :root body .achievement-level-medallion svg { width: 28px; height: 28px; }
  :root body .achievement-badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  :root body .achievement-badge { padding: 14px 12px; border-radius: 14px; }
  :root body .achievement-badge-top { flex-direction: column; gap: 7px; margin-bottom: 12px; }
  :root body .achievement-badge-emblem { width: 88px; height: 88px; }
  :root body .achievement-badge h4 { font-size: .84rem; }
  :root body .achievement-tier { margin: 0; }
  :root body .achievement-badge-earned { align-items: flex-start; }
  :root body .achievement-badge-earned svg { margin-top: 2px; }
  :root body .achievement-filters { gap: 6px; }
  :root body .achievement-filters button { padding: 8px 11px; font-size: .69rem; }
  :root body .achievement-home-next { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { :root body .achievement-celebration-confetti { display: none; } }
