/* Conquistas sociais: componentes leves, neutros nos temas PURE. */
.amlealt-milestone-composer-button{border:1px solid var(--border-default,#d7dae2);background:var(--surface-secondary,#f4f5f8);color:var(--text-primary,inherit);border-radius:999px;padding:9px 13px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;margin-right:auto}
.amlealt-milestone-composer-button:hover{border-color:var(--secondary,#3038ff)}
.amlealt-milestone-card{margin:6px 0 15px;padding:18px;border-radius:22px;border:1px solid var(--border-subtle,#e0e3e9);background:var(--surface-secondary,#f5f6fa);color:var(--text-primary,#182137);overflow:hidden}
.amlealt-milestone-card .amlealt-milestone-eyebrow{display:flex;justify-content:space-between;gap:12px;letter-spacing:.08em;font-size:10px;font-weight:800;opacity:.7}
.amlealt-milestone-center{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;padding:22px 8px 10px;text-align:center}
.amlealt-milestone-center strong{font-size:clamp(21px,5vw,31px);line-height:1.2;overflow-wrap:anywhere}
.amlealt-milestone-symbol{font-size:44px;line-height:1;filter:drop-shadow(0 5px 6px rgba(0,0,0,.08))}
.amlealt-milestone-card p{text-align:center;margin:0 0 16px;font-size:13px}
.amlealt-milestone-card>small{display:block;border-top:1px solid var(--border-subtle,#e0e3e9);padding-top:11px;font-size:10px;opacity:.7}
.amlealt-milestone-card.is-trophy .amlealt-milestone-symbol{font-size:42px}
.amlealt-milestone-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(520px,calc(100vw - 24px));max-width:520px;max-height:min(85dvh,760px);min-height:0;overflow:hidden;border:1px solid var(--border-default,#d9dce6);border-radius:25px;padding:0;color:var(--text-primary,#1f2937);background:var(--surface-primary,#fff);box-shadow:0 24px 80px rgba(0,0,0,.25);overscroll-behavior:contain;touch-action:pan-y}
.amlealt-milestone-dialog::backdrop{background:rgba(0,0,0,.46)}
.amlealt-milestone-dialog[open]{display:flex;flex-direction:column}\n.amlealt-milestone-dialog-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px 12px;border-bottom:1px solid var(--border-subtle,#d9dce6)}
.amlealt-milestone-dialog-head h2{font-size:19px;margin:0}
.amlealt-milestone-dialog-head button{width:35px;height:35px;border:0;border-radius:50%;background:var(--surface-secondary,#f2f4f7);font-size:23px;color:inherit;cursor:pointer}
.amlealt-milestone-dialog-body{min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:20px 22px 24px}
.amlealt-milestone-dialog-body>p,.amlealt-milestone-prefs p{font-size:12px;line-height:1.6;opacity:.8;margin:0 0 16px}
.amlealt-milestone-preview{margin:12px 0}
.amlealt-milestone-label{font-weight:700;font-size:12px;display:block;margin-bottom:7px}
.amlealt-milestone-dialog textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;min-height:75px;border:1px solid var(--border-default,#d9dce6);border-radius:13px;padding:12px;background:var(--surface-secondary,#f5f6fa);color:inherit;font:inherit}
.amlealt-milestone-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:16px}
.amlealt-milestone-actions button,.amlealt-milestone-prefs button,.amlealt-milestone-hub-item button,.amlealt-milestone-notice button{border:1px solid var(--border-default,#d5d9e1);border-radius:13px;padding:10px 15px;color:inherit;background:var(--surface-secondary,#f2f3f6);font:inherit;font-weight:700;font-size:12px;cursor:pointer}
.amlealt-milestone-actions [data-publish],.amlealt-milestone-prefs [data-save],.amlealt-milestone-notice [data-share]{color:#fff;background:var(--secondary,#3038ff);border-color:transparent}
.amlealt-milestone-actions button:disabled,.amlealt-milestone-prefs button:disabled{opacity:.6;cursor:wait}
.amlealt-milestone-hub-list{display:grid;gap:10px;margin:15px 0 22px}
.amlealt-milestone-hub-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid var(--border-subtle,#d5d9e1);border-radius:14px;font-size:12px;font-weight:700}
.amlealt-milestone-empty{padding:12px;background:var(--surface-secondary,#f5f6fa);border-radius:14px}
.amlealt-milestone-prefs{border-top:1px solid var(--border-subtle,#d9dce6);padding-top:19px}
.amlealt-milestone-prefs h3{font-size:15px;margin:0 0 12px}
.amlealt-milestone-prefs label{display:flex;gap:9px;align-items:center;margin:12px 0;font-size:13px}
.amlealt-milestone-prefs input{accent-color:var(--secondary,#3038ff);width:17px;height:17px}
.amlealt-milestone-prefs p{margin-top:12px}
.amlealt-milestone-notice{position:fixed;left:50%;bottom:calc(25px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(460px,calc(100% - 24px));z-index:9999;box-sizing:border-box;border:1px solid var(--border-default,#d9dce6);border-radius:20px;padding:14px;background:var(--surface-primary,#fff);color:var(--text-primary,#1f2937);box-shadow:0 13px 45px rgba(0,0,0,.18);font-size:13px;font-weight:700}
.amlealt-milestone-notice>div{display:flex;justify-content:flex-end;gap:8px;margin-top:11px}
@media(prefers-reduced-motion:reduce){.amlealt-milestone-card *{animation:none!important;transition:none!important}}

.amlealt-milestone-available{border-top:1px solid var(--border-subtle,#e1e5ed);margin-top:22px;padding-top:19px}
.amlealt-milestone-available h3{font-size:15px;margin:0 0 9px}
.amlealt-milestone-available>p{font-size:12px;line-height:1.5;color:var(--text-muted,#64748b)}
.amlealt-milestone-pref-option{display:flex!important;align-items:flex-start!important;gap:12px!important;padding:13px 12px;border:1px solid var(--border-subtle,#dfe3ea);border-radius:14px;cursor:pointer;background:var(--surface-secondary,#f6f7fa);min-height:52px;box-sizing:border-box}
.amlealt-milestone-pref-option input[type=checkbox]{flex:0 0 20px;width:20px;height:20px;margin:1px 0;cursor:pointer;pointer-events:auto}
.amlealt-milestone-pref-option span{display:grid;gap:4px;min-width:0}
.amlealt-milestone-pref-option strong{font-size:13px;font-weight:700;line-height:1.4}
.amlealt-milestone-pref-option small{font-size:11px;line-height:1.4;color:var(--text-muted,#64748b)}
.amlealt-milestone-pref-option:has(input:checked){border-color:var(--secondary,#3038ff)}
.amlealt-milestone-prefs [data-save]{min-height:44px;display:block;width:100%;margin-top:12px}
.amlealt-milestone-feedback{font-size:12px;line-height:1.5;margin:10px 0;color:var(--text-muted,#64748b)}
.amlealt-milestone-hub-item button,.amlealt-milestone-actions button{min-height:44px}
@media(max-width:600px){
 .amlealt-milestone-dialog{inset:auto 0 0;width:100%;max-width:none;max-height:90dvh;margin:0;border-radius:22px 22px 0 0;border-bottom:0}
 .amlealt-milestone-dialog-body{padding:16px 17px calc(24px + env(safe-area-inset-bottom))}
 .amlealt-milestone-dialog-head{padding:17px 18px 11px}
 .amlealt-milestone-hub-item{gap:8px}
 .amlealt-milestone-hub-item span{min-width:0;overflow-wrap:anywhere}
 .amlealt-milestone-hub-item button{flex:0 0 auto}
}
