/* Shared ally-ring visuals. */
.ally-compact { display:grid;grid-template-columns:94px minmax(0,1fr);gap:15px;align-items:center;margin:20px 0 26px;padding:16px 18px;border:1px solid #dbe3d7;border-radius:18px;background:#f7f8f0 }
.ally-compact-art { width:94px }
.ally-ring-svg { display:block;width:100%;height:auto;overflow:visible }
.ally-orbit { fill:none;stroke:#e3e9df;stroke-width:.5 }
.ally-unit { fill:#fffef8;stroke:#b5c9bc;stroke-width:.9 }
.ally-unit.is-lit { fill:#276f5a;stroke:#276f5a }
.ally-center-number { fill:#204d40;font:500 24px system-ui,sans-serif;letter-spacing:-1px }
.ally-center-label { fill:#698273;font:6.5px system-ui,sans-serif;letter-spacing:.3px }
.ally-leaf { fill:none;stroke:#77947f;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round }
.ally-compact-copy h2 { font-size:17px;margin:0 0 5px }
.ally-compact-copy p { margin:4px 0;font-size:14px;line-height:1.6 }
.ally-compact-copy .ally-compact-caption { font-size:12px;color:#6c8074 }
.ally-compact-total strong { font-size:21px;font-weight:650 }
.ally-compact-copy .text-btn { font-size:12px;padding:4px 0;min-height:32px;line-height:1.5 }
.ally-ring-note { font-size:11px;color:#6c8074 }
.ally-loading { grid-column:1/-1;padding:22px 0;color:var(--muted, #52685c);font-size:14px;text-align:center;min-height:90px }
.ally-full-focus { text-align:center;padding:0 0 24px }
.ally-kicker { color:#8a7957;font-size:13px;letter-spacing:.08em;margin:0 0 8px }
.ally-full-art { width:min(240px,72%);margin:0 auto 14px }
.ally-full-focus h2 { font-size:24px;line-height:1.55;margin:4px 0 10px }
.ally-full-focus>.ally-ring-current { font-size:13px;color:#6d8074;margin:0 0 14px }
.ally-focus-caption { font-size:15px;color:#486657;line-height:1.8;margin:0 }
.ally-round-complete { margin:24px auto 0;padding:18px;border:1px solid #dfd8bd;border-radius:14px;background:#fcf8e9;max-width:440px;text-align:left }
.ally-round-complete strong { color:#6e603d }
.ally-round-complete p { font-size:14px;line-height:1.8;margin:8px 0 0;color:#6f735f }
.ally-history { border-top:1px solid var(--line, #dbe3d7);border-bottom:1px solid var(--line, #dbe3d7);margin:0 0 26px;padding:15px 0 }
.ally-history summary, .ally-counting summary { cursor:pointer;line-height:1.7;font-size:14px;color:var(--green, #245b48) }
.ally-history-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:16px;margin-top:20px }
.ally-history-grid article { display:grid;justify-items:center;gap:5px;text-align:center;background:#f7f8f0;border-radius:12px;padding:10px }
.ally-history-grid svg { width:86px }
.ally-history-grid strong { font-size:14px }
.ally-history-grid article>span { font-size:11px;color:var(--muted, #52685c) }
.ally-section-heading h2, .ally-recent h2 { font-size:19px;margin:0 0 12px }
.ally-section-heading>p { font-size:15px;line-height:1.8;margin:0 0 18px }
.ally-section-heading .small { font-size:11px;white-space:nowrap }
.ally-evidence-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px }
.ally-evidence-grid article { padding:18px 16px;border:1px solid #dbe4d7;border-radius:15px;background:#f6f8f1;min-width:0 }
.ally-evidence-grid article>span { font-size:14px;display:block }
.ally-evidence-grid article>strong { display:block;font-size:30px;font-weight:550;color:var(--green, #245b48);line-height:1.8 }
.ally-evidence-grid small { font-size:13px;font-weight:400;margin-left:5px }
.ally-evidence-grid p { font-size:11px;color:var(--muted, #52685c);line-height:1.7;margin:0 }
.ally-evidence-note { font-size:13px;line-height:1.8;color:#718074;margin:16px 0 12px }
.ally-counting { padding:12px 0 18px;margin-bottom:28px;border-bottom:1px solid var(--line, #dbe3d7) }
.ally-counting p { font-size:13px;color:var(--muted, #52685c);line-height:1.9;margin:12px 0 }
.ally-recent { margin:0 0 28px }
.ally-event { display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:14px;align-items:center;width:100%;border:0;border-bottom:1px solid #e2e8de;border-radius:0;background:transparent;padding:17px 0;text-align:left;color:var(--ink, #254b3d) }
.ally-event strong { display:block;font-size:15px;font-weight:550 }
.ally-event small { display:block;color:var(--muted, #52685c);font-size:11px;line-height:1.7;margin-top:4px }
.ally-event-dot, .ally-feedback-dot { display:inline-block;width:7px;height:7px;border-radius:50%;background:#36745d }
.ally-save-feedback { border-top:1px solid #d7e0cf;margin:20px 0;padding:17px 0 0;text-align:left;color:var(--green, #245b48) }
.ally-save-feedback>p { font-size:14px;line-height:1.9;margin:0 0 8px }
.ally-save-feedback .ally-feedback-dot { margin-right:7px;vertical-align:1px }
.ally-save-feedback .text-btn { font-size:13px }
.ally-save-feedback .ally-stage-title { font-size:15px;font-weight:650;color:var(--ink, #254b3d);margin-top:12px }
.ally-save-feedback .ally-stage-text { font-size:13px;color:var(--muted, #52685c) }
.ally-unit.is-new, .ally-feedback-dot.is-new { animation:ally-illuminate .65s ease-out 1;transform-box:fill-box;transform-origin:center }
.ally-toggle { display:flex;gap:10px;align-items:center;font-size:14px;margin:12px 0 }
.ally-toggle input { width:18px;height:18px;margin:0;flex:0 0 auto }
.ally-settings-pair { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px }
.ally-settings-pair input { min-width:0;width:100% }
.ally-milestone-edit { display:grid;gap:14px;margin-top:18px }
.ally-milestone-edit textarea { min-height:95px }
.ally-milestone-edit label { font-size:14px }
.ally-audio-feedback .ally-save-feedback { margin-bottom:0 }
.ally-full-page .training-record-choice { padding:18px }
.ally-full-page .training-record-choice>strong { font-size:17px }
@keyframes ally-illuminate { 0%{opacity:.35;transform:scale(.8)}55%{opacity:1;transform:scale(1.15)}100%{opacity:1;transform:scale(1)} }
@media(max-width:540px) {
  .ally-compact { grid-template-columns:80px minmax(0,1fr);gap:12px;padding:14px 12px;margin:18px 0 24px }
  .ally-compact-art { width:80px }
  .ally-compact-copy h2 { font-size:16px }
  .ally-compact-copy p { font-size:12px }
  .ally-compact-copy .ally-compact-caption { font-size:11px }
  .ally-compact-total strong { font-size:19px }
  .ally-compact-copy .text-btn { font-size:11px }
  .ally-full-page .body { padding:26px 22px }
  .ally-full-focus h2 { font-size:21px }
  .ally-focus-caption { font-size:13px }
  .ally-evidence-grid article { padding:16px 12px }
  .ally-evidence-grid article>span { font-size:13px }
  .ally-full-art { width:210px }
  .ally-full-focus>p { line-height:1.8 }
  .ally-settings-pair { grid-template-columns:1fr }
}
@media(prefers-reduced-motion:reduce) {
  .ally-unit.is-new, .ally-feedback-dot.is-new { animation:none }
}
.ally-ring-svg.is-small .ally-center-label { display:none }
.ally-full-page.is-empty .ally-evidence, .ally-full-page.is-empty .ally-counting { display:none }
.ally-ring-only-footer { border-top:1px solid var(--line, #dbe3d7);padding-top:20px;margin-top:26px }
.ally-ring-only-footer .primary { width:100% }
.ally-compact { position:relative;isolation:isolate;overflow:hidden;grid-template-columns:minmax(170px,32%) minmax(0,1fr);gap:22px;padding:20px 22px;border:1px solid #e4e3ce;border-radius:19px;background:radial-gradient(ellipse at 17% 42%,#fffef7 0,transparent 57%),radial-gradient(ellipse at 88% 10%,#f8f1db88 0,transparent 50%),#faf8ed;box-shadow:inset 0 0 28px #f8f3df66;margin:20px 0 26px }
.ally-compact-art { position:relative;z-index:1;width:100%;max-width:232px;justify-self:center }
.ally-compact-copy { position:relative;z-index:1;min-width:0 }
.ally-compact-copy h2 { font-size:24px;line-height:1.35;font-weight:700;color:#164b3f;margin:0 0 8px }
.ally-compact-copy .ally-compact-total { font-size:17px;font-weight:550;line-height:1.65;color:#214a3d;margin:0 }
.ally-compact-total strong { font-size:30px;line-height:1.15;font-weight:650;letter-spacing:-.5px }
.ally-compact-copy .ally-compact-caption { font-size:13px;line-height:1.8;color:#486354;margin:8px 0 12px }
.ally-compact-copy .ally-welcome { font-size:14px;line-height:1.7;margin:0;color:#486354 }
.ally-ring-note { font-size:11px;color:#718069;white-space:nowrap }
.ally-card-landscape { position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none }
.ally-card-seedling { position:absolute;right:0;top:4px;width:132px;height:114px;opacity:.63;pointer-events:none;z-index:0 }
.ally-wreath .ally-unit, .ally-wreath .ally-unit.is-lit { fill:none;stroke:none }
.ally-wreath .ally-orbit { stroke:#c8d1b0;stroke-width:.3;opacity:.35 }
.ally-wreath .ally-center-number { font-size:19px;font-weight:650;fill:#154d3f;letter-spacing:-.25px }
.ally-wreath .ally-progress-divider, .ally-wreath .ally-progress-total { font-size:10.5px;font-weight:600;letter-spacing:0 }
.ally-wreath .ally-center-label, .ally-wreath.is-card .ally-center-label { display:block;font-size:6.2px;fill:#748369;letter-spacing:0 }
.ally-wreath .ally-empty-label { font-size:6.5px }
.ally-wreath.is-small:not(.is-card) .ally-center-number { font-size:24px }
.ally-wreath.is-small:not(.is-card) .ally-center-label { display:none }
.ally-full-art .ally-wreath { filter:drop-shadow(0 4px 12px #d6debd33) }
.ally-garden-path { display:flex;list-style:none;gap:0;margin:13px 0 17px;padding:0;width:100%;position:relative }
.ally-garden-stage { position:relative;flex:1 1 0;min-width:0;display:flex;align-items:center;flex-direction:column;text-align:center;color:#456052;gap:2px }
.ally-garden-stage:not(:first-child):before { content:"";position:absolute;z-index:-1;top:9px;right:50%;width:100%;height:3px;background:#d2d8bf }
.ally-garden-stage.is-reached:not(:first-child):before { background:#7f9f83 }
.ally-garden-node { box-sizing:border-box;width:20px;height:20px;display:grid;place-items:center;border:2px solid #d6ddc8;border-radius:50%;background:#eef0df;box-shadow:inset 0 1px 3px #fffef6,0 1px 3px #6f87651a;margin:0 0 4px }
.ally-garden-node i { display:block;width:5px;height:5px;border-radius:50%;background:#f8f9ed }
.ally-garden-stage.is-reached .ally-garden-node { border-color:#2c7c64;background:#2c7c64;box-shadow:0 1px 5px #2b6d4830 }
.ally-garden-node svg { width:15px;height:15px;fill:none;stroke:#fffef5;stroke-width:2;stroke-linecap:round;stroke-linejoin:round }
.ally-garden-stage strong { font-size:13px;font-weight:650;line-height:1.4 }
.ally-garden-stage-label { font-size:11px;line-height:1.55;max-width:100%;word-break:keep-all;overflow-wrap:normal }
.ally-support-label { white-space:nowrap }
.ally-compact-copy .ally-garden-action { display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:38px;margin:0;padding:7px 18px;border:1px solid #c9dbca;border-radius:24px;background:#fbfcf5cc;box-shadow:0 2px 4px #6b8e6521;font-size:13px;font-weight:650;line-height:1.5;color:#285b49 }
.ally-compact-copy .ally-garden-action:hover { background:#f5faee;border-color:#9dbb9e }
.ally-compact-copy .ally-garden-action:focus-visible { outline:2px solid var(--green, #245b48);outline-offset:3px }
.ally-compact-copy .ally-garden-action:active { transform:translateY(1px) }
@media(min-width:850px) {
  .ally-compact { min-height:250px }
  .ally-compact-copy .ally-compact-caption { max-width:440px }
}
@media(min-width:541px) and (max-width:680px) {
  .ally-compact { grid-template-columns:155px minmax(0,1fr);gap:16px;padding:18px }
  .ally-compact-copy h2 { font-size:22px }
  .ally-compact-copy .ally-compact-total { font-size:16px }
  .ally-compact-copy .ally-compact-caption { font-size:12px }
  .ally-garden-stage-label { font-size:10px }
  .ally-card-seedling { width:96px;height:84px;opacity:.4 }
}
@media(max-width:540px) {
  .ally-compact { grid-template-columns:116px minmax(0,1fr);column-gap:12px;row-gap:8px;padding:16px 14px;margin:18px 0 24px;min-height:0 }
  .ally-compact-art { grid-column:1;grid-row:1/4;width:120px;max-width:none;align-self:center }
  .ally-compact-copy { display:contents }
  .ally-compact-copy h2 { grid-column:2;grid-row:1;align-self:end;font-size:18px;line-height:1.4;margin:0 }
  .ally-compact-copy .ally-compact-total, .ally-compact-copy .ally-welcome { grid-column:2;grid-row:2;align-self:center;font-size:13px;line-height:1.7;margin:0 }
  .ally-compact-total strong { font-size:26px }
  .ally-compact-copy .ally-compact-caption { grid-column:2;grid-row:3;align-self:start;font-size:11px;line-height:1.75;margin:0 }
  .ally-garden-path { grid-column:1/-1;grid-row:4;margin:8px 0 5px;z-index:1 }
  .ally-compact-copy .ally-garden-action { grid-column:1/-1;grid-row:5;justify-self:start;position:relative;z-index:1;font-size:12px;min-height:37px;padding:7px 17px }
  .ally-garden-stage-label { font-size:10.5px }
  .ally-garden-stage strong { font-size:12px }
  .ally-card-seedling { width:83px;height:72px;top:0;right:-4px;opacity:.3 }
  .ally-ring-note { font-size:10px;display:block;line-height:1.4 }
  .ally-garden-node { width:18px;height:18px }
  .ally-garden-stage:not(:first-child):before { top:8px }
}
@media(max-width:360px) {
  .ally-compact { grid-template-columns:96px minmax(0,1fr);gap:8px;padding:15px 11px }
  .ally-compact-art { width:100px }
  .ally-compact-copy h2 { font-size:17px }
  .ally-compact-copy .ally-compact-total { font-size:12px }
  .ally-compact-total strong { font-size:24px }
  .ally-garden-stage-label { font-size:10px }
  .ally-compact-copy .ally-compact-caption { font-size:10.5px }
}
.ally-home-fold { margin-block: 16px;
  border-block: 1px solid #dce5dc; }
.ally-home-summary { display: grid;
  grid-template-columns: minmax(0, 1fr) auto .55rem;
  gap: .65rem;
  align-items: center;
  min-height: 48px;
  padding: 8px 9px;
  list-style: none;
  line-height: 1.5;
  cursor: pointer; }
.ally-home-summary::-webkit-details-marker { display: none; }
.ally-home-summary::after { content: '';
  width: .42rem;
  height: .42rem;
  justify-self: center;
  border-right: 1.5px solid #547061;
  border-bottom: 1.5px solid #547061;
  transform: translateY(-.1rem) rotate(45deg); }
.ally-home-fold[open] > .ally-home-summary::after { transform: translateY(.1rem) rotate(225deg); }
.ally-home-title { color: #315647; font-weight: 600; font-size: .94rem; }
.ally-home-count { color: #52685c; font-size: .86rem; text-align: end; font-variant-numeric: tabular-nums; }
.ally-home-summary:focus-visible { outline: 2px solid #337353; outline-offset: -2px; border-radius: 5px; }
.ally-home-fold .ally-compact { margin-block: 0 12px; }
@media (hover: hover) {
  .ally-home-summary:hover { background: #f2f5ef; }
}

.ally-home-summary {
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) .55rem;
}
.ally-home-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 0;
  text-align: end;
  color: #52685c;
}
.ally-home-meta .ally-home-count {
  font-size: .875rem;
  color: #315647;
}
.ally-home-count strong { font-weight: 720; }
.ally-home-progress, .ally-compact-progress {
  color: #52685c;
  font-size: .77rem;
  font-variant-numeric: tabular-nums;
}
.ally-compact-progress {
  display: block;
  margin-top: 2px;
  line-height: 1.5;
}
.ally-empty-label { font-size: 6.3px; }

.ally-full-focus {
  text-align: center;
  padding-block: 1rem;
}
.ally-full-focus h2 { margin: 0; }
.ally-ring-current { margin: .3rem 0 1rem; }
.ally-full-art { margin-inline: auto; }
.ally-history-grid article .ally-ring-svg { width: 74px; max-width: 100%; margin-inline: auto; }
.ally-ring-footnote {
  margin-block: 1.1rem;
  padding: .65rem .9rem;
  border-inline-start: 2px solid #a0b39a;
  color: #52685c;
  font-size: .88rem;
}
.ally-ring-footnote p { margin: .22em 0; }
.ally-ring-only-footer > a { text-decoration: none; }

.ally-save-feedback {
  color: #284f3f;
  margin-block: .85rem;
  padding: .75rem .9rem;
  border: 1px solid #d5e3d4;
  border-radius: 12px;
  background: #f3f7ee;
}
.ally-save-feedback p { margin-block: .25rem; }
.ally-leaf-feedback-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem .65rem;
}
.ally-leaf-feedback-line > span:not(.ally-feedback-dot) {
  color: #52685c;
  font-size: .88rem;
}
.ally-feedback-link { color: #285941; }
.ally-milestone-result {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: .8rem 1rem;
  align-items: center;
  margin-block: .8rem .55rem;
  padding-block: .85rem;
  border-block: 1px solid #dbe5d6;
}
.ally-milestone-result[hidden] { display: none; }
.ally-finish-art { max-width: 96px; }
.ally-finish-copy h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.ally-finish-copy p { font-size: .87rem; }
.ally-finish-copy .ally-finish-continue {
  padding: .38rem 0;
  border: 0;
  background: transparent;
  color: #285941;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

@media (max-width: 365px) {
  .ally-home-summary { gap: .35rem; }
  .ally-home-title { font-size: .87rem; }
  .ally-home-meta .ally-home-count { font-size: .8rem; }
  .ally-home-progress { font-size: .72rem; }
  .ally-milestone-result { grid-template-columns: 68px minmax(0, 1fr); }
}

@keyframes ally-sprout-grow {
  from { opacity: .55; transform: scale(.87); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .ally-wreath-sprout.is-growing {
    transform-box: view-box;
    transform-origin: 50% 44%;
    animation: ally-sprout-grow 650ms ease-out both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ally-save-feedback .is-new { animation: none; }
}
