/* Alarm feedback and compact, collision-safe launcher tiles. */
.medical-help-button.pressed::before,.medical-help-button.pressed::after{content:"";position:absolute;inset:-14px;z-index:-1;border:3px solid rgba(255,31,70,.78);border-radius:50%;pointer-events:none;animation:medicalSignalRing 1.35s ease-out infinite}
.medical-help-button.pressed::after{inset:-28px;border-width:2px;animation-delay:.42s}
.medical-help-card .medical-help-status,.mvd-panic-card .mvd-panic-status{border:1px solid var(--status-border,color-mix(in srgb,#64748b 38%,var(--line)));background:color-mix(in srgb,var(--status-color,#64748b) 13%,var(--surface-soft));box-shadow:inset 4px 0 0 var(--status-color,#64748b);transition:background .22s,border-color .22s,box-shadow .22s}
.medical-help-card .medical-help-status strong,.mvd-panic-card .mvd-panic-status strong{color:var(--status-color,#64748b)!important}
.status-alarm{--status-color:#ed233e;--status-border:#ed233e}.status-accepted{--status-color:#f08a24;--status-border:#f08a24}.status-progress{--status-color:#d49b12;--status-border:#d49b12}.status-dispatched{--status-color:#3478f6;--status-border:#3478f6}.status-cancel-requested{--status-color:#d97706;--status-border:#d97706}.status-resolved{--status-color:#16a36a;--status-border:#16a36a}.status-cancelled{--status-color:#68788a;--status-border:#68788a}.status-false-alarm{--status-color:#64748b;--status-border:#64748b}.status-failed{--status-color:#c91f37;--status-border:#c91f37}
.medical-help-card.status-changed .medical-help-status,.mvd-panic-card.status-changed .mvd-panic-status{animation:operatorStatusChanged 1.8s ease both}
.bottom-nav-folder-dialog [data-nav-folder-close]{right:9px!important;top:4px!important;width:30px!important;height:30px!important;border-width:1px!important;border-radius:10px!important;font-size:20px!important;box-shadow:0 4px 12px rgba(180,25,18,.3)!important}
.bottom-nav-folder-items button{grid-template-rows:34px minmax(20px,auto)!important;align-content:center!important;gap:5px!important;overflow:hidden!important}
.bottom-nav-folder-items button .bottom-nav-icon{align-self:center!important;width:34px!important;height:34px!important;margin:0 auto!important;overflow:visible!important}
.bottom-nav-folder-items .bottom-nav-icon>.pegas-color-icon{width:32px!important;height:32px!important;border-radius:10px!important;padding:5px!important}
.bottom-nav-folder-items button b{align-self:start!important;max-width:100%!important;min-height:20px!important;margin:0!important;padding:0 2px!important;overflow:hidden!important;line-height:1.14!important;text-align:center!important;-webkit-line-clamp:2!important}
.workspace-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;column-gap:3px!important;min-height:calc(76px + env(safe-area-inset-bottom))!important;padding:5px 4px max(5px,env(safe-area-inset-bottom))!important}
.workspace-nav button{min-width:0!important;min-height:62px!important;padding:4px 2px!important;border:1px solid transparent!important;border-radius:14px!important}
.workspace-nav .bottom-nav-icon,.workspace-nav .nav-group-icon{width:36px!important;height:36px!important;border-radius:11px!important}
.workspace-nav .bottom-nav-icon>.pegas-color-icon,.workspace-nav .nav-group-icon>.pegas-color-icon{width:34px!important;height:34px!important;border-radius:10px!important;padding:5px!important}
.workspace-nav button b{max-width:100%;overflow:hidden;font-size:8.5px!important;line-height:1.05;text-overflow:ellipsis;white-space:nowrap}
.workspace-nav button.active{transform:translateY(-2px) scale(1.025)!important;border-color:color-mix(in srgb,var(--accent,#ff8617) 68%,transparent)!important;background:color-mix(in srgb,var(--accent,#ff8617) 24%,var(--surface))!important;color:var(--accent,#ff8617)!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--accent,#ff8617) 20%,transparent),0 7px 18px color-mix(in srgb,var(--accent,#ff8617) 24%,transparent)!important}
.workspace-nav button.active b{font-weight:950!important}.workspace-nav button.active .bottom-nav-icon{transform:scale(1.06);filter:saturate(1.2) brightness(1.08)}
body[data-theme=vision] .workspace-nav button.active{border:2px solid #ffe500!important;background:#ffe500!important;color:#000!important;box-shadow:none!important}
.scud-home-point{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.scud-home-favorites>div.reordering{touch-action:none;cursor:grabbing}.scud-home-favorites>div.reordering .scud-home-point{pointer-events:auto}.scud-home-favorites>div.reordering .scud-home-point.dragging{outline:3px solid #ff9a22;outline-offset:2px}
@keyframes medicalSignalRing{0%{opacity:.95;transform:scale(.86)}75%,100%{opacity:0;transform:scale(1.15)}}
@keyframes operatorStatusChanged{0%{transform:scale(.97);filter:brightness(1)}18%{transform:scale(1.025);filter:brightness(1.24)}45%{transform:scale(1);filter:brightness(1.08)}100%{filter:none}}
@media(prefers-reduced-motion:reduce){.medical-help-button.pressed::before,.medical-help-button.pressed::after,.medical-help-card.status-changed .medical-help-status,.mvd-panic-card.status-changed .mvd-panic-status{animation:none}.medical-help-button.pressed::before{opacity:1}.medical-help-button.pressed::after{display:none}}
@media(max-width:370px){.bottom-nav-folder-items button{grid-template-rows:31px minmax(19px,auto)!important}.bottom-nav-folder-items button .bottom-nav-icon{width:31px!important;height:31px!important}.bottom-nav-folder-items .bottom-nav-icon>.pegas-color-icon{width:29px!important;height:29px!important}.bottom-nav-folder-dialog [data-nav-folder-close]{top:3px!important;right:7px!important}.workspace-nav{column-gap:2px!important;padding-inline:3px!important}.workspace-nav button{padding-inline:1px!important}.workspace-nav .bottom-nav-icon,.workspace-nav .nav-group-icon{width:34px!important;height:34px!important}.workspace-nav .bottom-nav-icon>.pegas-color-icon,.workspace-nav .nav-group-icon>.pegas-color-icon{width:32px!important;height:32px!important}.workspace-nav button b{font-size:7.5px!important}}
