#stats-settings {
  position:absolute; right:max(7px,env(safe-area-inset-right)); bottom:6px; z-index:2;
  border:1px solid #c6ad85; border-radius:7px; padding:6px 10px; color:#fdf2d7;
  font:14px "Trebuchet MS",system-ui,sans-serif; background:#244d44; cursor:pointer;
}
#stats-consent {
  width:min(30rem,88vw); max-height:90dvh; overflow:auto; box-sizing:border-box;
  color:#412b23; border:5px solid transparent; border-radius:16px; padding:clamp(14px,3vw,28px);
  background:linear-gradient(#fff3d8,#fff3d8) padding-box,repeating-linear-gradient(45deg,#ad5140 0 8px,#f7e4b9 8px 16px,#427262 16px 24px,#f7e4b9 24px 32px) border-box;
  font:16px/1.42 "Trebuchet MS",system-ui,sans-serif;
}
#stats-consent::backdrop { background:#172b26ad; }
#stats-consent .stats-brand { display:flex; align-items:center; gap:8px; font:italic bold 20px Georgia,serif; color:#275449; }
#stats-consent .stats-brand img { height:26px; width:auto; }
#stats-consent h2 { color:inherit; font:600 clamp(21px,4vw,28px)/1.18 Georgia,serif; margin:12px 0 8px; }
#stats-consent p { margin:8px 0; }
#stats-consent summary, #stats-delete { color:#275449; text-decoration:underline; cursor:pointer; }
#stats-consent details p, #stats-local, #stats-note { font-size:14px; }
#stats-consent .stats-actions { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 8px; }
#stats-consent .stats-actions button { flex:1 1 110px; padding:9px; min-height:44px; color:#275449; background:#fff3d8; border:1.5px solid #275449; border-radius:9px; font-family:inherit; font-size:16px; font-weight:600; cursor:pointer; }
#stats-consent .stats-actions button:hover { background:#e5ebd6; }
#stats-delete { background:none; border:0; padding:4px 0; font:inherit; font-size:14px; }
@media (max-height:450px) { #stats-consent { padding:12px 17px; } #stats-consent .stats-brand { display:none; } }
