/* Optional analytics retains its existing consent logic and tab lifetime. */
.analytics-preferences-button {
 min-height:44px; padding:8px 12px; border:1px solid #385545; border-radius:6px;
 background:#15241c; color:#d5e9df; font:inherit; font-size:12px; line-height:1.4; cursor:pointer;
}
.analytics-preferences-button:hover { border-color:#76c99e; background:#1d3226; }
.analytics-preferences {
 position:fixed; inset:auto auto 20px 20px; z-index:1000; margin:0; box-sizing:border-box;
 width:min(440px,calc(100% - 40px)); max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px);
 overflow:auto; padding:22px; border:1px solid #496353; border-radius:12px;
 color-scheme:dark; color:#edf4ef; background:#142019; font:inherit; line-height:1.55;
 box-shadow:0 12px 48px #0006;
}
.analytics-preferences-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 12px; }
.analytics-preferences h2 { margin:0; font-size:18px; font-weight:650; line-height:1.35; letter-spacing:normal; }
.analytics-preferences p { margin:0; }
.analytics-preferences-question { font-size:14px; color:#d0ded5; }
.analytics-preferences .analytics-preferences-status { margin-top:12px; padding:9px 12px; border-left:2px solid #7cd5a4; background:#1c2d22; color:#d7edde; font-size:13px; }
.analytics-preferences-detail { margin-top:14px; font-size:13px; }
.analytics-preferences-detail summary { width:fit-content; min-height:32px; color:#9ce7bc; cursor:pointer; }
.analytics-preferences-detail p { padding-top:8px; color:#bfcec5; }
.analytics-preferences-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:16px; }
.analytics-preferences-actions button {
 min-height:46px; padding:10px 12px; border:1px solid #799e87; border-radius:6px;
 color:#e2f2e8; background:#20382a; font:inherit; font-size:14px; font-weight:600; line-height:1.35; cursor:pointer;
}
.analytics-preferences-actions button:hover { border-color:#a2e8bc; background:#2b4937; }
.analytics-preferences-actions button:disabled { opacity:.5; cursor:not-allowed; }
.analytics-preferences .analytics-preferences-close {
 flex:none; min-height:44px; padding:6px 8px; border:0; border-radius:4px;
 color:#c0d2c6; background:transparent; font:inherit; font-size:12px; cursor:pointer;
}
.analytics-preferences-close span { margin-left:6px; font-size:19px; vertical-align:middle; }
.analytics-preferences-close:hover { color:#fff; background:#263d2e; }
.analytics-preferences-footer { display:flex; flex-direction:column; gap:8px; margin-top:16px; padding-top:14px; border-top:1px solid #385141; color:#b4c8bb; font-size:12px; }
.analytics-preferences-footer a { width:fit-content; color:#9ce7bc; text-underline-offset:3px; }
.analytics-preferences :is(button,summary,a):focus-visible,
.analytics-preferences-button:focus-visible { outline:2px solid #a2e8bc; outline-offset:3px; }
@media(max-width:600px) {
 .analytics-preferences { inset:auto 12px 12px; width:calc(100% - 24px); max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); padding:18px; }
 .analytics-preferences-actions { gap:8px; }
 .analytics-preferences-actions button { padding-inline:8px; }
}
@media(max-width:360px) { .analytics-preferences-actions { grid-template-columns:1fr; } }
