.growth-widget { container-type: inline-size; max-width: var(--content-narrow, 720px); margin: var(--section-gap, 40px) auto 0; padding: 16px; border: 1px solid var(--line, #d9d5ca); border-radius: 12px; background: color-mix(in srgb, var(--paper, #fffdf7) 92%, var(--ink, #1e2523)); }
.growth-title { margin: 0 0 12px; font-size: 11px; font-weight: 750; letter-spacing: .1em; line-height: 1.5; text-transform: uppercase; color: color-mix(in srgb, var(--ink, #20241e) 68%, transparent); }
.growth-live { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.growth-state, .growth-action-status { min-height: 1.4rem; margin: 8px 0 0; color: var(--ink, #20241e); font-size: 14px; }
.growth-state:empty, .growth-action-status:empty { min-height: 0; margin: 0; }
.growth-state:empty { display: none; }
.growth-state[data-state="error"], .growth-action-status[data-state="error"] { color: var(--danger, #a83b35); }
.growth-state[data-state="success"], .growth-action-status[data-state="success"] { color: var(--success, #286849); }
.growth-art { flex: 0 0 auto; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 174px; margin: 0; text-align: center; }
.growth-art-image { width: 4.5rem; height: auto; aspect-ratio: 1; image-rendering: pixelated; object-fit: contain; border: 1px solid rgba(22, 27, 38, .14); border-radius: 12px; background: #f7f5ee; }
.growth-pixel-stage { position: relative; width: 144px; height: 174px; flex: none; }
.growth-pixel-stage .growth-pixel-layer {
  display: block; width: 144px; height: 174px; max-width: none; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; object-fit: fill; aspect-ratio: auto;
  image-rendering: crisp-edges; image-rendering: pixelated;
}
.growth-pixel-stage .growth-pixel-base { position: relative; z-index: 1; }
@container (max-width: 12rem) {
  .growth-art { min-height: 116px; }
  .growth-pixel-stage, .growth-pixel-stage .growth-pixel-layer { width: 96px; height: 116px; }
}
[data-growth-art-status]{ margin: 0; max-width: 7rem; color: var(--muted, #66706b); font-size: 11px; line-height: 1.4; }
[data-growth-art-status]:empty{ display: none; }
.growth-summary { flex: 0 1 auto; min-width: 0; width: min(100%, 15rem); display: flex; flex-direction: column; gap: 8px; }
.growth-level { display: block; min-height: 1.6em; margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.growth-progress { margin: 0; }
.growth-progress meter {
  display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 8px;
  border: 0; border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, var(--ink, #20241e) 12%, transparent);
}
.growth-progress meter::-webkit-meter-bar { background: color-mix(in srgb, var(--ink, #20241e) 12%, transparent); border: 0; height: 8px; border-radius: 999px; }
.growth-progress meter::-webkit-meter-optimum-value { background: var(--ink, #20241e); border-radius: 999px; }
.growth-progress meter::-moz-meter-bar { background: var(--ink, #20241e); border-radius: 999px; }
.growth-meta { margin: 0; color: var(--muted, #66706b); font-size: 12px; font-variant-numeric: tabular-nums; }
.growth-change { margin: 8px 0 0; color: var(--success, #286849); font-size: 14px; }
.growth-actions { display: grid; gap: 8px; row-gap: 0; align-items: start; margin-top: 12px; justify-items: center; }
.growth-actions > :not(:first-child):not(:empty) { margin-top: 8px; }
.growth-summary > .growth-actions { margin-top: 4px; }
.growth-summary > .growth-details { margin-top: 4px; padding-top: 4px; }
.growth-paused { margin: 0; font-size: 14px; color: var(--muted, #66706b); }
.growth-details { margin-top: 8px; border-top: 1px solid var(--line, #d9d5ca); padding-top: 8px; }
.growth-details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 650; font-size: 14px; }
.growth-details p { max-width: 42rem; color: var(--muted, #66706b); }
@container (min-width: 34rem) {
  .growth-title { text-align: center; }
  .growth-live { flex-direction: row; align-items: center; justify-content: center; gap: 32px; text-align: left; }
  .growth-summary { flex: 0 1 20rem; }
  .growth-actions { justify-items: start; }
  .growth-details summary { justify-content: flex-start; }
}
@container (min-width: 48rem) {
  .growth-art { min-height: 232px; }
  .growth-pixel-stage, .growth-pixel-stage .growth-pixel-layer { width: 192px; height: 232px; }
}
@media (prefers-reduced-motion: reduce) {
.growth-widget, .growth-widget::before, .growth-widget::after,
  .growth-widget *, .growth-widget *::before, .growth-widget *::after {
    transition: none !important; animation: none !important; scroll-behavior: auto !important;
  }
}

.growth-milestone { margin-block: 12px; padding: 12px; border: 1px solid var(--line, #d9d5ca); border-left: 4px solid var(--success, #286849); border-radius: 12px; background: var(--paper, #fffdf7); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.growth-milestone[hidden] { display: none; }
.growth-milestone h3 { margin: 0; font-size: 16px; }
.growth-milestone .button { white-space: normal; }
@media (max-width: 480px) { .growth-widget { padding: 12px; } }
