/* Completed challenges are personal history, separate from today's goals. */
#completed-challenges{margin-top:28px}.completed-home-section>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer;font-size:16px;font-weight:600;color:var(--ink);padding:0 0 10px}.completed-home-section>summary::-webkit-details-marker{display:none}.completed-section-count{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.completed-section-count svg{width:16px;height:16px;transform:rotate(0deg)}.completed-home-section[open] .completed-section-count svg{transform:rotate(90deg)}
.completed-card-list{display:grid;gap:12px}.completed-challenge-card{padding:18px;border:1px solid var(--line,#303030);border-radius:18px;background:var(--surface,#181818);min-width:0;margin:0 0 12px}.completed-card-list .completed-challenge-card{margin:0}.completed-card-heading{display:flex;align-items:center;gap:12px}.completed-card-heading>div{min-width:0;flex:1}.completed-card-trophy{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:12px;color:var(--success,#d5f56a);background:#d5f56112}.completed-card-trophy svg{width:23px;height:23px}.completed-card-heading small{display:block;color:var(--success,#d5f56a);font-size:11px;font-weight:600;letter-spacing:.09em;margin-bottom:4px}.completed-card-heading h3{font-size:16px;line-height:1.25;margin:0;color:var(--ink,#f5f5ed);overflow-wrap:anywhere}
.completed-challenge-card button.completed-more{padding:10px;margin:-7px -7px -7px 0;border:0;min-height:44px;width:44px;flex:0 0 44px;display:grid;place-items:center;background:transparent;color:var(--muted);border-radius:50%}.completed-more svg{width:20px;height:20px}.completed-challenge-card .completed-card-total{font-size:13px;color:var(--muted);margin:14px 0 0;line-height:1.5}.completed-card-total span{padding:0 4px}.completed-challenge-card .completed-card-date{font-size:12px;color:var(--muted);margin:4px 0 0}.completed-card-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:10px}.completed-card-actions button,.completed-challenge-card button.completed-restore{display:inline-flex;align-items:center;gap:5px;font-size:13px;line-height:1.3;min-height:44px;margin:0;padding:6px 0;border:0;background:transparent;color:var(--success,#d5f56a);text-align:left}.completed-card-actions button:last-child:not(:first-child){color:var(--muted)}.completed-card-actions svg{width:15px;height:15px}.completed-challenge-card button.completed-restore{width:100%;justify-content:center;border:1px solid var(--line,#333);border-radius:10px;color:var(--ink);margin-top:8px}
.archive-options-sheet .archive-sheet-title{font-size:20px;font-weight:650;color:var(--ink);line-height:1.3}.archive-options-sheet .archive-sheet-note{font-size:16px}.archive-options-sheet .archive-sheet-detail{font-size:13px;line-height:1.6;color:var(--muted);margin:16px 0 24px}.archive-options-sheet [data-save-archive]{justify-content:center;text-align:center}
.challenge-archive-toast{position:fixed;z-index:1000;bottom:calc(82px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:calc(100% - 32px);max-width:420px;box-sizing:border-box;border:1px solid var(--line,#333);border-radius:16px;background:#222;color:#f5f5ed;padding:14px 16px;box-shadow:0 10px 30px #0008}.challenge-archive-toast p{font-size:14px;line-height:1.4;margin:0}.challenge-archive-toast>div{display:flex;align-items:center;gap:18px}.challenge-archive-toast button{border:0;background:none;color:var(--success,#d5f56a);padding:6px 0;min-height:44px;font-size:13px;margin:0}.challenge-archive-toast [data-close-toast]{margin-left:auto;display:grid;place-items:center;width:36px;color:#aaa}.challenge-archive-toast svg{width:18px;height:18px}
