.completion-dialog{width:min(1000px,calc(100vw - 32px));max-height:calc(100dvh - 28px);padding:0;border:1px solid #e0e4df;border-radius:22px;background:#f6f4ed;color:#1d2921;box-shadow:0 20px 100px #19332635;overflow:auto;overscroll-behavior:contain}
.completion-dialog::backdrop{background:#26362b45}.completion-top{display:flex;align-items:center;padding:16px 24px;gap:16px;border-bottom:1px solid #d8ded5}.completion-top .brand{font-size:19px;flex:1}.completion-top button{border:0;background:none;color:#69746e;font-size:12px;min-height:38px;padding:8px}.completion-top #completion-close{font-size:22px;min-width:38px}
.completion-goals{display:grid;grid-template-columns:1fr 1fr auto;gap:24px;align-items:center;margin:14px 22px 0;padding:12px 18px;border:1px solid #d8ded5;border-radius:12px;background:white}.completion-goals>div{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;align-items:center}.completion-goals span{font-size:11px;color:#707a73}.completion-goals strong{font-size:13px}.completion-goals progress{grid-column:2;grid-row:1/3;width:100%;height:8px;border:0;accent-color:#315b43;min-width:25px}.completion-goals>div:nth-child(2) progress{accent-color:#69aa81}
.completion-content{text-align:center;padding:16px 30px 22px}.completion-material{font-size:12px;color:#627169;margin:0 0 10px}.completion-emblem{width:104px;height:104px;border-radius:50%;background:#edf7ef;position:relative;margin:0 auto 12px;display:grid;place-items:center}.completion-dialog h1{font-size:36px;letter-spacing:-1.2px;line-height:1.15;margin:0 0 7px}.completion-dialog #completion-subtitle{font-size:16px;color:#627169;margin:0 0 12px}.completion-badge{display:inline-block;padding:7px 18px;border:1px solid #c8b6f6;border-radius:30px;color:#8061bd;background:#faf7ff;font-size:11px;letter-spacing:.5px;font-weight:650;margin:0 0 6px}
.completion-score{display:flex;flex-direction:column;margin:0 auto 12px;line-height:1}.completion-score strong{font-size:92px;letter-spacing:-5px;font-weight:800;line-height:1}.completion-score span{font-size:17px;font-weight:650;margin-top:2px}.completion-comparison{display:table;margin:0 auto 18px;padding:10px 18px;border-radius:10px;background:#ecf6ef;color:#377549;font-size:13px;line-height:1.4}
.completion-stats{display:grid;grid-template-columns:1fr 1fr 1fr;max-width:620px;margin:0 auto 14px}.completion-stats>div+div{border-left:1px solid #d8ded5}.completion-stats strong{display:block;font-size:27px;letter-spacing:-.5px}.completion-stats span{display:block;font-size:12px;color:#6d7870;margin-top:3px}.completion-record-note{font-size:11px;color:#72796f;margin:8px auto 12px;max-width:600px;line-height:1.5}
.completion-actions{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}.completion-actions>a,.completion-actions>button{padding:13px 23px;min-height:46px;border-radius:9px;border:1px solid #dfe3df;background:white;font:inherit;font-size:14px}.completion-actions .completion-primary{background:#315b43;color:white;border-color:#315b43;font-weight:600}.completion-actions #completion-progress{border:0;background:none;color:#5f7566;font-size:12px;text-decoration:underline}.completion-finish{font-size:12px;color:#6e7d71;margin:12px 0 0}.completion-dialog :focus-visible{outline:3px solid #d28249;outline-offset:3px}
.completion-sparks{position:absolute;inset:0;pointer-events:none}.completion-sparks i{position:absolute;width:6px;height:6px;background:#f07e35;border-radius:1px;left:50%;top:50%;opacity:0;--x:82px;--y:0px}.completion-sparks i:nth-child(2){--x:59px;--y:59px;background:#b798f0}.completion-sparks i:nth-child(3){--x:0px;--y:82px}.completion-sparks i:nth-child(4){--x:-59px;--y:59px;background:#d1b8f5}.completion-sparks i:nth-child(5){--x:-82px;--y:0px}.completion-sparks i:nth-child(6){--x:-59px;--y:-59px;background:#c3a0ee}.completion-sparks i:nth-child(7){--x:0px;--y:-82px}.completion-sparks i:nth-child(8){--x:59px;--y:-59px;background:#bd9ce6}
.completion-dialog[open] .completion-emblem{animation:completion-arrive .32s cubic-bezier(.2,.8,.3,1) both}.completion-dialog[open] .completion-score,.completion-dialog[open] .completion-stats{animation:completion-settle .3s .14s ease-out both}.completion-dialog[open] .completion-sparks i{animation:completion-spark .85s .08s ease-out both}
@keyframes completion-arrive{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}@keyframes completion-settle{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes completion-spark{0%{opacity:0;transform:translate(0,0) scale(.4)}25%{opacity:1}100%{opacity:0;transform:translate(var(--x),var(--y)) rotate(100deg) scale(.8)}}
@media(max-width:640px){.completion-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}.completion-top{padding:8px 12px;gap:4px}.completion-top .brand{font-size:17px}.completion-top button{font-size:10px}.completion-goals{gap:10px;margin:8px 10px 0;padding:8px 10px}.completion-goals>div{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.completion-goals strong{font-size:11px}.completion-goals span{font-size:10px}.completion-goals progress{height:6px}.completion-goals>strong{font-size:10px;max-width:65px}.completion-content{padding:12px 14px 16px}.completion-material{font-size:10px;margin-bottom:10px}.completion-emblem{width:78px;height:78px;margin-bottom:10px}.completion-emblem svg{width:66px;height:66px}.completion-dialog h1{font-size:27px;letter-spacing:-.7px}.completion-dialog #completion-subtitle{font-size:13px;margin-bottom:10px}.completion-score strong{font-size:76px;letter-spacing:-4px}.completion-score span{font-size:15px}.completion-badge{font-size:10px;padding:6px 12px}.completion-comparison{font-size:11px;margin-bottom:14px;padding:9px 12px}.completion-stats strong{font-size:23px}.completion-stats span{font-size:10px;padding:0 4px}.completion-actions{gap:8px}.completion-actions>a,.completion-actions>button{width:100%;min-height:44px;padding:11px}.completion-actions #completion-progress{padding:5px;min-height:30px}.completion-finish{font-size:11px;margin-top:6px}.completion-record-note{font-size:10px}}
@media(prefers-reduced-motion:reduce){.completion-dialog[open] .completion-emblem,.completion-dialog[open] .completion-score,.completion-dialog[open] .completion-stats{animation:completion-fade .12s ease-out both}.completion-dialog[open] .completion-sparks i{animation:none;display:none}@keyframes completion-fade{from{opacity:0}to{opacity:1}}}
.completion-top{position:sticky;top:0;z-index:2;background:#f6f4ed}
.completion-goals progress{appearance:none;background:#e5e7e3;border-radius:9px;overflow:hidden}.completion-goals progress::-webkit-progress-bar{background:#e5e7e3;border-radius:9px}.completion-goals progress::-webkit-progress-value{background:#315b43;border-radius:9px}.completion-goals progress::-moz-progress-bar{background:#315b43;border-radius:9px}.completion-goals>div:nth-child(2) progress::-webkit-progress-value{background:#69aa81}.completion-goals>div:nth-child(2) progress::-moz-progress-bar{background:#69aa81}
@media(min-width:641px) and (max-height:800px){.completion-top{padding:8px 20px}.completion-goals{padding:8px 14px;margin-top:10px}.completion-content{padding:12px 24px 18px}.completion-emblem{width:72px;height:72px;margin-bottom:8px}.completion-emblem svg{width:66px;height:66px}.completion-score strong{font-size:72px}.completion-score{margin-bottom:10px}.completion-dialog h1{font-size:32px}.completion-comparison{margin-bottom:12px}.completion-stats{margin-bottom:12px}}
.completion-goals progress.complete::-webkit-progress-value{background:#69aa81}.completion-goals progress.complete::-moz-progress-bar{background:#69aa81}
/* Keep only the result, readable statistics and the two next actions. */
.completion-dialog .completion-material,.completion-dialog .completion-goals span,.completion-dialog .completion-goals strong,.completion-dialog .completion-stats span,.completion-dialog .completion-badge{font-size:14px;line-height:1.4}
.completion-dialog .completion-comparison{font-size:16px;margin:10px auto 18px}
.completion-dialog .completion-actions>a,.completion-dialog .completion-actions>button{font-size:16px;min-height:48px}
@media(max-width:640px){.completion-dialog .completion-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}.completion-dialog .completion-actions>a,.completion-dialog .completion-actions>button{min-width:0;padding-inline:8px;white-space:normal;text-align:center}}
