.phone { position: relative; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.phone::before { content: ""; position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: #607585; box-shadow: 0 0 0 3px #60758522; }
.phone.ringing::before { background: #f2b936; box-shadow: 0 0 14px #f2b936; animation: lineFlash .75s infinite alternate; }
.phone.connected::before { background: #2dcf72; box-shadow: 0 0 10px #2dcf7288; }
.phone.hold::before { background: #e87d2e; box-shadow: 0 0 10px #e87d2e88; }
.phone-line-timer { margin-top: 6px; color: #d9e7ef; font: 700 .72rem Consolas, monospace; letter-spacing: .04em; }
.phone.ringing .phone-line-timer { color: #ffd66b; }
.phone.connected .phone-line-timer { color: #62e99b; }

.radio { position: relative; overflow: hidden; }
.radio-meter { height: 7px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin: 8px 0; }
.radio-meter i { display: block; background: #263c49; border-radius: 2px; transition: background .12s ease, transform .12s ease; }
.radio.tx .radio-meter i { animation: meterPulse .65s infinite alternate; }
.radio.tx .radio-meter i:nth-child(-n+7) { background: #2dcf72; }
.radio.tx .radio-meter i:nth-child(n+8):nth-child(-n+10) { background: #f2b936; }
.radio.tx .radio-meter i:nth-child(n+11) { background: #e14848; }
.radio-channel-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; font-size: .67rem; }
.radio-channel-status strong { color: #dcebf2; }
.radio.tx .radio-channel-status strong { color: #ff7d86; }

.unit { position: relative; transition: background .25s ease, transform .25s ease; }
.unit::before { content: ""; width: 9px; height: 9px; position: absolute; left: -3px; border-radius: 50%; background: #607585; box-shadow: 0 0 8px currentColor; }
.unit[data-status="available"]::before, .unit[data-status="clear"]::before { background: #2dcf72; }
.unit[data-status="dispatched"]::before { background: #f2b936; }
.unit[data-status="en route"]::before { background: #2794d8; }
.unit[data-status="on scene"]::before { background: #e14848; }
.unit[data-status="transporting"]::before { background: #9c63e6; }
.unit[data-status="out of service"]::before { background: #747e85; }
.unit-status-change { animation: unitChange .8s ease; }

.incident-clock { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 4px 7px; color: #f1f6f8; font: 700 .68rem Consolas, monospace; background: #101d27dd; border: 1px solid #395366; border-radius: 4px; }
.incident-clock::before { content: ""; width: 7px; height: 7px; background: #e14848; border-radius: 50%; box-shadow: 0 0 8px #e14848aa; }

.recommendation.recommendation-ready { position: relative; padding-right: 90px; }
.dispatch-recommended { position: absolute; top: 9px; right: 9px; min-height: 29px; padding: 5px 8px; font-size: .62rem; background: #15733e; border-color: #2dcf72; }

.console-toast-stack { position: fixed; top: 76px; right: 14px; z-index: 30; display: grid; gap: 7px; width: min(340px, calc(100vw - 28px)); pointer-events: none; }
.console-toast { padding: 10px 12px; color: #edf7fb; font-size: .73rem; background: #0d1c26f2; border: 1px solid #355264; border-left: 4px solid #2794d8; border-radius: 5px; box-shadow: 0 8px 28px #0009; animation: toastIn .25s ease; }
.console-toast.alert { border-left-color: #f2b936; }
.console-toast.radio-alert { border-left-color: #e14848; }

.unit-marker { transition: transform .4s ease, background .25s ease; }
.unit-marker:hover { transform: scale(1.12); }
.incident-marker { animation: incidentBreathe 2.2s infinite ease-in-out; }

@keyframes lineFlash { to { transform: scale(1.35); opacity: .55; } }
@keyframes meterPulse { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
@keyframes unitChange { 40% { background: #1c3c4e; transform: translateX(3px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes incidentBreathe { 50% { filter: brightness(1.25); } }

@media (prefers-reduced-motion: reduce) {
  .phone.ringing, .phone.ringing::before, .radio.tx .radio-meter i, .incident-marker { animation: none; }
}