.sos-dialog-open{overflow:hidden}
.sos-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:22px;border:2px solid #f0b4b4;background:linear-gradient(135deg,#fff8f7,#fff);box-shadow:0 8px 24px rgba(148,20,32,.1)}
.sos-panel-copy{min-width:0}.sos-panel h2{margin:2px 0 5px;color:#8f111c}.sos-panel p{margin:0;max-width:680px}.sos-eyebrow{display:block;color:#a81422;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.sos-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-height:52px;padding:12px 18px;border:0;border-radius:10px;background:#b42318;color:#fff;box-shadow:0 6px 14px rgba(180,35,24,.26);font:inherit;font-weight:800;cursor:pointer}.sos-trigger:hover,.sos-confirm:hover{background:#851521}.sos-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:rgba(23,33,43,.68)}.sos-overlay[hidden]{display:none}.sos-dialog-card{position:relative;width:min(560px,100%);max-height:min(720px,calc(100vh - 40px));overflow:auto;padding:30px;border:2px solid #dc7474;border-radius:16px;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.3)}.sos-close{position:absolute;right:14px;top:10px;width:34px;height:34px;border:0;border-radius:50%;background:#f3f4f6;color:#4b5563;font-size:24px;line-height:1;cursor:pointer}.sos-close:hover{background:#fee2e2;color:#991b1b}.sos-dialog-card h2{margin:3px 0 8px;color:#8f111c}.sos-dialog-intro{margin:0 0 17px}.sos-consent{align-items:flex-start;padding:12px;border:1px solid #f1c0c0;border-radius:9px;background:#fff8f7;color:#4b1c1f;line-height:1.45}.sos-consent input{margin-top:4px;flex:0 0 auto}.sos-privacy-note{margin:13px 0 0;color:#66727d;font-size:12px;line-height:1.45}.sos-status{min-height:26px;margin:16px 0 6px;color:#8f111c;font-size:14px;font-weight:700}.sos-recording-indicator{display:flex;align-items:center;gap:9px;margin:10px 0;padding:10px 12px;border-radius:8px;background:#fff1f1;color:#9f1825;font-size:13px;font-weight:700}.sos-recording-indicator[hidden]{display:none}.sos-recording-indicator strong{margin-left:auto;font-variant-numeric:tabular-nums}.sos-pulse{width:10px;height:10px;border-radius:50%;background:#c8202f;box-shadow:0 0 0 0 rgba(200,32,47,.5);animation:sos-pulse 1.2s infinite}.sos-dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.sos-confirm{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 15px;border:0;border-radius:8px;background:#b42318;color:#fff;font:inherit;font-weight:800;cursor:pointer}.sos-confirm:disabled{background:#b9a2a4;cursor:not-allowed}.sos-result{margin-top:16px;padding:14px;border:1px solid #b7dfc3;border-radius:9px;background:#eefbf1;color:#185c2c;line-height:1.55}.sos-result[hidden]{display:none}.sos-result strong{color:#14532d}.sos-result a{color:#155b86;font-weight:700}.sos-update-form{min-width:170px}.sos-update-form select,.sos-update-form textarea{margin-bottom:6px;font-size:12px;padding:7px 8px}.sos-update-form textarea{min-height:48px}.sos-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}.sos-table-wrap audio{width:150px;height:32px}.sos-registration-fields{margin:15px 0 0;padding:14px;border:1px solid #f0c3c3;border-radius:10px;background:#fffafa}.sos-registration-title{margin:0;color:#7f1d1d;font-size:14px;font-weight:800}.sos-registration-help{margin:4px 0 11px;color:#66727d;font-size:12px;line-height:1.45}.sos-registration-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sos-registration-grid label{display:block;color:#4b5563;font-size:12px;font-weight:700}.sos-registration-grid input{display:block;width:100%;margin-top:5px;padding:10px 11px;border:1px solid #d1d5db;border-radius:7px;background:#fff;color:#1f2937;font:inherit}.sos-registration-grid input:read-only{background:#f3f4f6;color:#4b5563}.sos-registration-memory{margin:9px 0 0;color:#166534;font-size:12px;font-weight:700}.sos-registration-memory[hidden]{display:none}.sos-registration-complete{border-color:#bbdfc4;background:#f3fff5}
@keyframes sos-pulse{70%{box-shadow:0 0 0 8px rgba(200,32,47,0)}100%{box-shadow:0 0 0 0 rgba(200,32,47,0)}}
@media(max-width:700px){.sos-panel{display:block;padding:20px}.sos-trigger{width:100%;margin-top:17px}.sos-dialog-card{padding:25px 18px}.sos-dialog-actions{display:grid;grid-template-columns:1fr}.sos-dialog-actions button{width:100%}.sos-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sos-table-wrap .table{min-width:900px}.sos-registration-grid{grid-template-columns:1fr}}
.badge-received{background:#fff5df;color:#a34e00}.badge-contacted{background:#e5f2ff;color:#1769aa}.badge-false_alarm{background:#f2e8ff;color:#6840a0}

/* Medium circular SOS control with a tactile press state. Keep this override
 * after the responsive rules so it remains round on small screens too. */
.sos-trigger{flex-direction:column;width:116px;height:116px;min-height:116px;padding:14px;border-radius:50%;gap:4px;box-shadow:0 7px 0 #78120f,0 14px 24px rgba(180,35,24,.28);font-size:15px;line-height:1.15;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}
.sos-trigger span{text-align:center}
.sos-trigger:hover{background:#981a16;transform:translateY(-2px);box-shadow:0 9px 0 #78120f,0 17px 28px rgba(180,35,24,.3)}
.sos-trigger:active{background:#851521;transform:translateY(5px);box-shadow:0 2px 0 #78120f,0 5px 12px rgba(180,35,24,.2)}
.sos-trigger:focus-visible{outline:3px solid #f5c2c0;outline-offset:4px}
@media(max-width:700px){.sos-trigger{width:108px;height:108px;min-height:108px;margin:17px auto 0}}

@keyframes sos-warning{0%,100%{transform:scale(1);box-shadow:0 7px 0 #78120f,0 0 0 0 rgba(180,35,24,.48)}50%{transform:scale(1.045);box-shadow:0 8px 0 #78120f,0 0 0 12px rgba(180,35,24,0)}}
.sos-trigger{animation:sos-warning 1.8s ease-in-out infinite}
.sos-trigger:active{animation:none}
@media(max-width:700px){.sos-trigger{width:156px;height:156px;min-height:156px;margin:22px auto 6px;font-size:18px}}
@media(max-width:700px){.sos-trigger{display:flex}}
@media(prefers-reduced-motion:reduce){.sos-trigger{animation:none}}

/* Prevent long Tamil SOS copy and result links from overlapping. */
.sos-panel-copy{flex:1 1 auto;min-width:0}
.sos-panel h2,.sos-panel p,.sos-dialog-card h2,.sos-dialog-intro,.sos-consent,.sos-privacy-note,.sos-result{overflow-wrap:anywhere;word-break:normal}
.sos-result{line-height:1.7}
@media(max-width:700px){.sos-panel-copy{text-align:center;margin-bottom:4px}.sos-panel p{margin-left:auto;margin-right:auto}.sos-panel{gap:10px}.sos-dialog-card{width:100%;max-width:560px;max-height:calc(100vh - 24px);padding:22px 16px}.sos-result{font-size:14px;line-height:1.65}}
.sos-result small{display:inline-block;margin-top:3px;color:#526b5a;line-height:1.45}.sos-live-status{color:#2e7d32;font-weight:700}
