/* V4.42 — Walking-mode safety dock: simple surface, advanced safety behind sheets. */
.tesla-safety-dock{position:absolute;left:50%;bottom:178px;transform:translateX(-50%);z-index:640;display:flex;gap:8px;padding:7px;background:rgba(255,255,255,.92);border:1px solid rgba(10,48,73,.14);border-radius:18px;backdrop-filter:blur(14px);box-shadow:0 8px 28px rgba(5,35,54,.13)}
.tesla-safety-dock button{min-height:44px;border:0;border-radius:13px;padding:0 14px;background:#eef3f6;color:#0b2f49;font-weight:850;font-size:13px;display:flex;align-items:center;gap:7px;cursor:pointer}
.tesla-safety-dock button b{font-size:18px;line-height:1}.tesla-safety-dock .is-danger{background:#b42318;color:#fff}.tesla-safety-dock .is-warn{background:#fff2cc;color:#624600}
.safety-sheet[hidden]{display:none!important}.safety-sheet{position:absolute;z-index:950;inset:auto 18px 18px 18px;max-height:74%;overflow:auto;background:#fff;border:1px solid rgba(12,48,72,.15);border-radius:28px;box-shadow:0 22px 55px rgba(6,33,50,.25);padding:22px;color:#0b2f49}
.safety-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.safety-sheet-head small{display:block;color:#9b6900;font-weight:900;letter-spacing:.12em;font-size:11px}.safety-sheet-head h3{margin:4px 0 0;font-size:24px;line-height:1.12}.safety-sheet-close{width:44px;height:44px;border-radius:14px;border:0;background:#eef3f6;font-size:24px;color:#0b2f49}
.safety-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.safety-type{min-height:58px;border:1px solid #dce4e8;background:#fff;border-radius:16px;padding:10px 12px;text-align:left;font-weight:800;color:#173d55}.safety-type.is-selected{border-color:#0d88b4;background:#eaf7fb;box-shadow:inset 0 0 0 1px #0d88b4}.safety-type span{font-size:20px;margin-right:6px}
.safety-field{display:block;margin-top:12px;font-weight:800}.safety-field textarea{width:100%;min-height:72px;margin-top:7px;border:1px solid #d6e0e5;border-radius:14px;padding:12px;font:inherit;resize:vertical}.safety-submit-row{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:14px}.safety-primary,.safety-secondary,.safety-call{min-height:50px;border:0;border-radius:15px;padding:0 18px;font-weight:900;font-size:15px}.safety-primary{background:#0e789e;color:#fff}.safety-secondary{background:#edf3f6;color:#15384d}.safety-call{display:flex;align-items:center;justify-content:center;background:#b42318;color:#fff;text-decoration:none}
.safety-status{margin-top:12px;padding:11px 13px;border-radius:13px;background:#f1f5f7;color:#506977;font-size:13px;line-height:1.45}.safety-status.is-ok{background:#e8f7ef;color:#17633e}.safety-status.is-warn{background:#fff4d8;color:#6c4c00}.safety-status.is-error{background:#fdecea;color:#8a2018}
.safety-nearby-list{display:grid;gap:9px;margin-top:10px}.safety-nearby-item{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;border:1px solid #dde5e9;border-radius:16px;padding:12px}.safety-nearby-item strong{display:block;font-size:15px}.safety-nearby-item small{display:block;margin-top:3px;color:#657b89;line-height:1.35}.safety-nearby-item button{min-height:42px;border:0;border-radius:12px;background:#0e789e;color:#fff;font-weight:850;padding:0 13px}.safety-pill{display:inline-block;margin:6px 5px 0 0;padding:4px 8px;border-radius:999px;background:#edf4f7;color:#315367;font-size:11px;font-weight:800}.safety-pill.safe{background:#e7f7ee;color:#12643b}
.emergency-hero{border-radius:20px;padding:16px;background:#fff0ee;border:1px solid #f2c8c2}.emergency-hero strong{display:block;color:#8f2118;font-size:19px}.emergency-hero p{margin:6px 0 0;color:#75433d;line-height:1.45}.emergency-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.emergency-location{margin-top:12px;padding:12px;border-radius:14px;background:#f2f6f8;font-size:13px;color:#516a78}.emergency-note{font-size:12px;color:#6b7e89;line-height:1.45;margin:12px 0 0}
.tesla-hazard-marker{width:28px;height:28px;border-radius:50% 50% 50% 6px;transform:rotate(-45deg);background:#c33127;border:3px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.25)}.tesla-hazard-marker:after{content:'!';display:grid;place-items:center;width:100%;height:100%;transform:rotate(45deg);color:#fff;font-weight:950;font-size:15px}.tesla-near-marker{width:18px;height:18px;border-radius:50%;background:#1b9463;border:3px solid #fff;box-shadow:0 3px 8px rgba(0,0,0,.2)}
@media(max-width:760px){.tesla-safety-dock{left:10px;right:10px;bottom:166px;transform:none;justify-content:center}.tesla-safety-dock button{flex:1;justify-content:center;padding:0 7px;font-size:11px;gap:5px}.tesla-safety-dock button span{display:inline!important;white-space:nowrap}.tesla-safety-dock button b{font-size:13px}.tesla-safety-dock .is-danger{min-width:112px}.tesla-safety-dock .is-danger b{font-size:10px;letter-spacing:.04em}.safety-sheet{inset:auto 10px 10px 10px;max-height:78%;border-radius:24px;padding:18px}.safety-type-grid{grid-template-columns:1fr 1fr}.emergency-actions{grid-template-columns:1fr}.safety-submit-row{grid-template-columns:1fr}.safety-sheet-head h3{font-size:21px}}
@media(min-width:900px) and (orientation:landscape){.tesla-safety-dock{left:auto;right:22px;bottom:24px;transform:none}.safety-sheet{left:auto;right:22px;bottom:84px;width:min(470px,40vw);max-height:72%}}
