/* Scoped to the optional analytics controls. */
.od-analytics { position: fixed; inset: auto 16px 16px; z-index: 10000; margin: auto; max-width: 780px; max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface, #fff); color: var(--text, #18202a); border: 1px solid var(--line, #d9e1ea); border-radius: 12px; padding: 18px 20px; box-shadow: 0 6px 28px #10182430; font-size: 14px; line-height: 1.5; }
.od-analytics[hidden] { display: none; }
.od-analytics h2 { font-size: 18px; margin: 0 0 6px; }
.od-analytics p { margin: 0 0 12px; }
.od-analytics details { margin: 8px 0 14px; }
.od-analytics summary { cursor: pointer; text-decoration: underline; }
.od-analytics details p { margin-top: 8px; }
.od-analytics-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.od-analytics-actions button { flex: 1 1 180px; padding: 10px 14px; border: 1px solid var(--link, #163b66); border-radius: 6px; background: var(--surface, #fff); color: var(--link, #163b66); font: inherit; font-weight: 600; cursor: pointer; }
.od-analytics-actions button:hover { background: var(--surface-soft, #f0f3f8); }
.od-analytics-toggle { border: 0; background: transparent; color: inherit; font: inherit; padding: 2px 4px; text-decoration: underline; cursor: pointer; }
.od-analytics :focus-visible, .od-analytics-toggle:focus-visible { outline: 3px solid #163b66; outline-offset: 3px; }
@media print { .od-analytics, .od-analytics-toggle { display: none !important; } }
