/* Optional analytics controls, scoped to keep workspace controls unchanged. */
#analytics-consent{box-sizing:border-box;position:fixed;z-index:1000;inset:auto 12px max(12px,env(safe-area-inset-bottom)) auto;display:flex;align-items:center;gap:16px;width:min(650px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:16px;border:1px solid #b9ac8f;border-radius:7px;background:#fbf7ee;color:#29493b;box-shadow:0 6px 28px #2a231833;font:14px/1.5 system-ui,sans-serif;text-align:left}
#analytics-consent[hidden]{display:none}
#analytics-consent strong{font-weight:650}
#analytics-consent p{margin:5px 0 7px;color:#51574e;font:inherit}
#analytics-consent a{color:#29493b;text-underline-offset:3px}
#analytics-consent .analytics-consent-actions{display:flex;flex-direction:column;gap:8px;flex-shrink:0}
#analytics-consent button{box-sizing:border-box;min-height:44px;padding:8px 12px;border:1px solid #71836d;border-radius:5px;background:#f7f5ed;color:#29493b;font:600 14px/1.3 system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
#analytics-consent button:hover{background:#e9ede3}
#analytics-preferences{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:4px 6px;border:0;border-radius:3px;background:transparent;color:#29493b;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#analytics-consent :is(button,a):focus-visible,#analytics-preferences:focus-visible{outline:3px solid #aa8c48;outline-offset:2px}
#analytics-consent:focus-visible{outline:3px solid #aa8c48;outline-offset:-3px}
@media(max-width:600px){#analytics-consent{flex-direction:column;align-items:stretch;gap:10px;padding:12px}#analytics-consent .analytics-consent-actions{flex-direction:row}#analytics-consent button{flex:1}}

@media(min-width:901px) and (pointer:fine){.site-footer #analytics-preferences{min-height:22px}}
@media(min-width:1200px) and (pointer:fine){#sketchbook .editor>footer #analytics-preferences{flex-shrink:0;min-height:22px;padding:0 4px;font-size:11px}}
