.sms-community{margin:1.75rem 0 2.25rem;padding:clamp(1.25rem,4vw,2.5rem);border-radius:20px;background:#2449ea;color:#fff;text-align:center;box-shadow:0 8px 24px #2449ea20}
.sms-community h2{color:#fff;margin:0 0 1.35rem;font-size:clamp(1.25rem,2.5vw,1.75rem);line-height:1.25}
.sms-grid,.sms-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:1rem}
.sms-tile{min-width:0;border:1px solid #ffffff45;border-radius:14px;padding:1rem .55rem;display:flex;flex-direction:column;gap:.35rem;align-items:center}
.sms-tile strong{font-size:clamp(1.65rem,3.4vw,2.65rem);font-weight:800;font-variant-numeric:tabular-nums;color:#ffcb45;line-height:1.1;overflow-wrap:anywhere}
.sms-tile span,.sms-tile small{color:#fff;line-height:1.35}.sms-tile small{font-size:.8rem}
.sms-admin-grid{margin:1rem 0}.sms-test-form{padding:.75rem 0;border-top:1px solid #e5e7eb}.sms-test-form button{margin:.45rem 0 .45rem .5rem}
@media(max-width:420px){.sms-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.sms-tile:only-child{grid-column:1/-1}.sms-tile strong{font-size:1.65rem}.sms-tile span{font-size:.9rem}}

/* Statistics V1.1: admin-only styles, no changes to the public counters. */
#sm-statistics{min-width:0;overflow:visible;color:#111827}
#sm-statistics .sms-intro,#sm-statistics .sms-help{color:#657184;font-size:.875rem;line-height:1.55;margin:.25rem 0 1rem}
#sm-statistics .sms-admin-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin:1rem 0 1.5rem}
#sm-statistics .sms-admin-tile{background:#f4f6ff;border:1px solid #e0e6f0;border-radius:12px;padding:1rem;min-width:0;display:flex;flex-direction:column;gap:.35rem}
#sm-statistics .sms-admin-tile b{font-size:clamp(1.5rem,2.5vw,2rem);line-height:1.1;color:#2449ea;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#sm-statistics .sms-admin-tile span{font-size:.82rem;line-height:1.35;color:#4b5563;overflow-wrap:anywhere}
#sm-statistics .sms-settings{max-width:none;width:100%;border:1px solid #e0e6f0;border-radius:14px;padding:1.25rem;margin:0;background:#fff}
#sm-statistics .sms-settings h3{margin:0 0 .85rem;font-size:1.1rem}
#sm-statistics .sms-master{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#eaf0ff;border:1px solid #d7e1ff;border-radius:10px;padding:.85rem 1rem;margin:0 0 .5rem;cursor:pointer}
#sm-statistics .sms-master span,#sm-statistics .sms-metric-control span{display:flex;flex-direction:column;gap:.2rem;min-width:0}
#sm-statistics .sms-settings strong{font-size:.9rem;font-weight:700;line-height:1.35;color:#111827}
#sm-statistics .sms-settings small{font-size:.8rem;font-weight:400;line-height:1.4;color:#657184}
#sm-statistics input[type=checkbox],#sm-test-data input[type=checkbox]{width:18px;height:18px;min-width:18px;max-width:18px;min-height:18px;padding:0;margin:0;flex:0 0 18px;display:inline-block;appearance:auto;-webkit-appearance:auto;accent-color:#2449ea;cursor:pointer;vertical-align:middle;box-shadow:none}
#sm-statistics input.sms-switch{appearance:none;-webkit-appearance:none;position:relative;width:44px;min-width:44px;max-width:44px;height:25px;min-height:25px;flex-basis:44px;border:1px solid #8995a8;border-radius:999px;background:#c0c8d4;transition:background .15s}
#sm-statistics input.sms-switch::before{content:'';position:absolute;top:3px;left:3px;width:17px;height:17px;background:white;border-radius:50%;box-shadow:0 1px 3px #11182735;transition:transform .15s}
#sm-statistics input.sms-switch:checked{background:#2449ea;border-color:#2449ea}
#sm-statistics input.sms-switch:checked::before{transform:translateX(19px)}
#sm-statistics input[type=checkbox]:focus-visible,#sm-test-data input[type=checkbox]:focus-visible{outline:2px solid #2449ea;outline-offset:3px}
#sm-statistics .sms-metric-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.4rem .8rem;padding:.8rem 0;border-bottom:1px solid #e0e6f0}
#sm-statistics .sms-metric-control{display:flex;align-items:center;gap:.75rem;cursor:pointer;margin:0;min-width:0}
#sm-statistics .sms-visibility{font-size:.8rem;font-weight:600;color:#657184;white-space:nowrap}
#sm-statistics .sms-is-visible{color:#19653b}
#sm-statistics .sms-progress{grid-column:1/-1;margin:0 0 0 30px;width:calc(100% - 30px);height:5px;appearance:none;-webkit-appearance:none;border:0;border-radius:10px;background:#eaf0ff;overflow:hidden;display:block;accent-color:#2449ea}
#sm-statistics .sms-progress::-webkit-progress-bar{background:#eaf0ff;border-radius:10px}
#sm-statistics .sms-progress::-webkit-progress-value{background:#2449ea;border-radius:10px}
#sm-statistics .sms-progress::-moz-progress-bar{background:#2449ea;border-radius:10px}
#sm-statistics .sms-confirm,#sm-test-data .sms-test-form label{display:flex;align-items:flex-start;gap:.75rem;cursor:pointer;font-size:.85rem;line-height:1.5;font-weight:500}
#sm-statistics .sms-confirm{margin:1rem 0}
#sm-statistics .sms-confirm input,#sm-test-data .sms-test-form label input{margin-top:2px}
#sm-statistics .sms-save{display:flex;justify-content:flex-end}
#sm-statistics .sms-help{margin:1rem 0 0}
#sm-test-data .sms-test-form button{margin:.75rem 0 0 30px}
@media(max-width:760px){#sm-statistics .sms-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#sm-statistics .sms-settings{padding:.85rem}#sm-statistics .sms-admin-tile{padding:.8rem}}
@media(max-width:420px){#sm-statistics{padding:14px}#sm-statistics .sms-master{padding:.7rem}#sm-statistics .sms-metric-row{gap:.4rem .45rem}#sm-statistics .sms-metric-control{gap:.5rem}#sm-statistics .sms-save .btn{width:100%}#sm-statistics .sms-progress{margin-left:26px;width:calc(100% - 26px)}}
@media(prefers-reduced-motion:reduce){#sm-statistics input.sms-switch,#sm-statistics input.sms-switch::before{transition:none}}
