/* achievements: notice and dashboard grid (sd-badges.js) */
.sdb-toast { position: fixed; left: 16px; bottom: 16px; z-index: 2147482000; display: flex; align-items: center; gap: 12px; max-width: min(420px, calc(100vw - 32px)); padding: 12px 40px 12px 14px; border-radius: 12px; background: var(--paper, #fffdf8); color: var(--ink, #2a2024); border: 1px solid var(--gold, #b08a4e); box-shadow: 0 14px 34px rgba(0,0,0,.22); animation: sdb-in .35s ease-out both; font-size: .95rem; }
.sdb-toast.out { animation: sdb-out .3s ease-in both; }
.sdb-toast .sdb-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.sdb-toast .sdb-txt span { color: var(--muted, #6b6265); font-size: .88rem; }
.sdb-toast .sdb-link { flex: none; font-size: .88rem; color: var(--accent, #6b1e2e); }
.sdb-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; background: none; color: var(--muted, #6b6265); font-size: 20px; line-height: 1; cursor: pointer; border-radius: 6px; }
.sdb-medal { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gold, #b08a4e); color: var(--paper, #fffdf8); }
.sdb-medal svg { width: 24px; height: 24px; }
@keyframes sdb-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sdb-out { to { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .sdb-toast, .sdb-toast.out { animation: none; } }
@media (max-width: 700px) { body.has-tabbar .sdb-toast { bottom: 84px; } }
.sdb-sec { margin-top: 28px; }
.sdb-sub { color: var(--muted, #6b6265); margin: 4px 0 12px; }
.sdb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.sdb-b { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line, #e6ded3); border-radius: 10px; background: var(--paper, #fffdf8); }
.sdb-b .sdb-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.sdb-b .sdb-txt span { color: var(--muted, #6b6265); font-size: .86rem; }
.sdb-b:not(.on) .sdb-medal { background: none; border: 1.5px dashed var(--line, #d9cfc2); color: var(--muted, #8a8083); }
.sdb-b:not(.on) b { color: var(--muted, #6b6265); }
.sdb-b.secret .sdb-medal svg { opacity: .35; }
