/* Adapted from the approved ../hifi completion prototype; scoped for flow nodes. */
.hf-feedback{--hf-accent:#426da5;--hf-resource:#b47735;position:relative;display:flex;flex-direction:column;gap:16px;min-height:100%;padding:24px;color:#243d5b;background:radial-gradient(ellipse at 15% 0%,#eef5fb 0,transparent 38%),radial-gradient(ellipse at 95% 16%,#fbf3f3 0,transparent 34%),#fff;text-align:center;font-family:'Segoe UI','Microsoft YaHei',sans-serif;isolation:isolate}
.hf-feedback *{box-sizing:border-box}.hf-feedback h2,.hf-feedback p{margin:0}.hf-feedback[data-state=success],.hf-feedback[data-state=goal]{--hf-accent:#c8952e;--hf-resource:#ed693f}.hf-feedback[data-resource=inspiration]{--hf-resource:#3085f4}.hf-feedback[data-state=repeat],.hf-feedback[data-state=history]{--hf-resource:#87909b}
.hf-result-heading{display:flex;flex-direction:column;align-items:center;gap:8px;flex-shrink:0}.hf-completion-mark{display:grid;place-items:center;width:52px;height:52px;margin:8px 0;border-radius:50%;background:var(--hf-accent);box-shadow:0 0 0 7px #426da51b,0 0 0 14px #426da50c;color:white;font-size:28px}.hf-completion-mark svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.hf-result-heading h2{font-size:26px;line-height:1.25;letter-spacing:-.025em;color:#243d5b}.hf-result-heading strong{font-size:16px}.hf-result-heading p{font-size:13px;line-height:1.6;color:#4d6380;text-align:left}.hf-result-heading small{font-size:12px;color:#697d92}
.hf-feedback[data-state=success] .hf-completion-mark,.hf-feedback[data-state=goal] .hf-completion-mark{width:60px;height:60px;background:linear-gradient(145deg,#ffeaa4,#e7b644 68%,#c68e28);box-shadow:0 0 0 8px #e6bb5222,0 0 26px #e5b84255;color:#533e17}
.hf-reward-panel{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;min-height:216px;padding:16px;border:1px solid #edf0f3;border-radius:16px;background:#ffffffd9;flex-shrink:0}.hf-receipt-status{align-self:flex-end;display:flex;align-items:center;gap:6px;color:#8c681f;font-size:11px;font-weight:650;padding:4px 8px;border-radius:999px;background:#fff8e7}.hf-receipt-symbol{display:grid;place-items:center;width:16px;height:16px;background:#f0d494;color:#513b14;border-radius:50%;font-size:11px}.hf-feedback[data-state=pending] .hf-receipt-symbol,.hf-feedback[data-state=confirming] .hf-receipt-symbol,.hf-feedback[data-state=entry] .hf-receipt-symbol{background:transparent;border:2px solid #deb878;border-right-color:transparent;color:transparent;animation:hf-receipt-turn 1.1s linear infinite}
.hf-resource-icon{width:56px;height:64px;fill:var(--hf-resource);overflow:visible;filter:drop-shadow(0 5px 8px #e18e3330)}.hf-feedback[data-resource=inspiration] .hf-resource-icon{filter:drop-shadow(0 5px 8px #3085f42b)}.hf-resource-name{font-size:16px;font-weight:650}.hf-feedback .hf-resource-amount{font-size:20px;line-height:1.3;font-weight:750;color:#493611}.hf-feedback .hf-resource-amount.is-numeric{font-size:40px;font-variant-numeric:tabular-nums}.hf-feedback .hf-resource-detail{font-size:12px;line-height:1.5;color:#697d92}.hf-query{min-height:32px;padding:6px 12px;border:1px solid #9aacc0;border-radius:8px;background:#fff;color:#284c74;font-size:13px;font-weight:650}
.hf-day-progress{padding:0 4px;flex-shrink:0}.hf-progress-copy{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;font-size:14px}.hf-progress-copy strong{font-weight:650}.hf-progress-copy b{color:var(--hf-accent);font-size:21px}.hf-progress-copy strong>span{padding:0 3px;color:#8c969f}.hf-progress-copy small{font-size:11px;color:#697d92}.hf-progress-slots{position:relative;display:block;width:calc(100% - 12px);height:32px;margin-top:8px}.hf-progress-track{position:absolute;top:12px;left:0;width:100%;height:8px;border-radius:5px;background:#e8e7e2;overflow:hidden}.hf-progress-fill{display:block;width:100%;height:100%;border-radius:5px;background:var(--hf-accent);transform:scaleX(calc(var(--count)/3));transform-origin:left center}.hf-slot{position:absolute;top:4px;left:calc(var(--slot)*100%/3);width:24px;height:24px;display:grid;place-items:center;border:2px solid #d1d3d1;border-radius:50%;transform:translateX(-50%);background:white}.hf-slot.is-complete{border-color:var(--hf-accent);background:var(--hf-accent)}.hf-slot svg{width:17px;height:17px;fill:none;stroke:white;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.hf-return{display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:auto;padding:12px 16px;border-radius:11px;background:#426da5;color:white;font-size:16px;font-weight:700;flex-shrink:0}.hf-feedback[data-state=success] .hf-return,.hf-feedback[data-state=goal] .hf-return{background:linear-gradient(135deg,#e8c15e,#cf9b36);color:#392b15;box-shadow:0 7px 20px #c799382d}
.hf-feedback-fx{position:absolute;inset:0;pointer-events:none;z-index:5;color:var(--hf-resource)}.hf-collection-piece{position:absolute;width:24px;height:24px;opacity:0;pointer-events:none}.hf-collection-piece svg{display:block;width:100%;height:100%;fill:var(--hf-resource);filter:drop-shadow(0 2px 2px #00000018)}.hf-contact-ring{position:absolute;width:80px;height:80px;border:3px solid currentColor;border-radius:50%;opacity:0;pointer-events:none}@keyframes hf-receipt-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.hf-feedback *{animation:none!important;transition:none!important}.hf-feedback-fx{display:none}}
.hf-feedback{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.hf-feedback[data-state=reopen][data-receipt=pending] .hf-receipt-symbol{background:transparent;border:2px solid #deb878;border-right-color:transparent;color:transparent}.hf-feedback[data-state=reopen][data-resource=inspiration]{--hf-resource:#3085f4}
.hf-feedback[data-resource=energy]{--hf-resource:#ed693f}.hf-feedback[data-resource=inspiration]{--hf-resource:#3085f4}
