.counter-controls { max-width:760px;padding:24px;background:white;border:1px solid #dedfdc;border-radius:14px; }
.counter-controls label { margin-top:0; }
#gif-file { display:block;max-width:100%;min-width:0;margin-top:10px; }
#gif-file::file-selector-button { font:inherit;padding:10px;border:1px solid #237D69;background:#fff;color:#185f50;border-radius:6px;margin-right:12px; }
.counter-actions,.store-buttons { display:flex;gap:12px;flex-wrap:wrap;margin:20px 0; }
.counter-actions button,.store-buttons .button { margin-top:0; }
.secondary { background:white;color:#185f50;border:1px solid var(--accent); }
button:disabled { opacity:.5;cursor:default; }
.counter-error { padding:12px;background:#fff3f3;border:1px solid #982c2c;border-radius:8px;color:#712020; }
.counter-result { max-width:760px;padding:24px;margin:30px 0;background:white;border:2px solid var(--accent);border-radius:14px; }
.counter-result h2 { margin-top:0;color:#185f50; }
.source-name { font-weight:650; }
.gif-metrics { margin:24px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px; }
.gif-metrics dt { font-size:15px;color:#68716c; }
.gif-metrics dd { margin:0;font-weight:650; }
#gif-delay-details summary { cursor:pointer;font-weight:650;padding:12px 0; }
table { width:100%;border-collapse:collapse;margin-top:16px; }
caption { text-align:left;font-size:15px;margin-bottom:10px; }
th,td { text-align:left;padding:10px;border-bottom:1px solid #ddd; }
.tool-cta { margin:40px 0; }
.guide p,.guide li { line-height:1.7; }
main,.body,.counter-controls,.counter-result { min-width:0; }
p,li,dd,h2,h3 { overflow-wrap:anywhere; }
.analytics-consent { position:fixed;bottom:16px;left:16px;right:16px;z-index:10;max-width:680px;margin:auto;padding:20px;background:#fff;border:1px solid var(--accent);border-radius:12px;box-shadow:0 5px 25px #0002; }
.analytics-consent h2 { margin:0;font-size:21px; }
.analytics-consent p { font-size:15px; }
.analytics-actions { display:flex;gap:12px;flex-wrap:wrap; }
.analytics-actions button { margin-top:12px; }
.analytics-actions .secondary { background:white;color:#185f50;border:1px solid var(--accent); }
.analytics-preferences { margin-top:0;font-size:14px; }
[hidden] { display:none!important; }
@media(max-width:640px){.counter-controls,.counter-result{padding:18px}.counter-actions{display:grid;grid-template-columns:1fr}.counter-actions button{width:100%;font-size:16px}.gif-metrics{grid-template-columns:1fr}.analytics-consent{bottom:8px;left:8px;right:8px;max-height:70vh;overflow:auto}}
