.device-lines .maglock-state { display: flex; align-items: center; gap: 3px; width: fit-content; padding: 2px 4px; border: 1px solid #ffffff45; border-radius: 3px; background: #06110dbb; }
.task-status { position: relative; }
.task-status .footer-door-button { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); min-width: 58px; height: 21px; border: 1px solid #f2a3a5; border-radius: 4px; background: #b83e48; color: #fff; font-size: 8px; cursor: pointer; }
.task-status .footer-door-button:hover { background: #9d2936; }
.task-status .footer-door-button.control-active { background: #287a5d; border-color: #9bd2b6; }
.maglock-state .maglock-led { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #a5acb1; }
.maglock-state.maglock-closed .maglock-led { background: #48dc86; box-shadow: 0 0 7px #48dc86; }
.maglock-state b { font-weight: 600; }
.device-lines .maglock-open { border-color: #ff606a; background: #651c29e8; color: #fff; animation: maglock-alert-pulse 1s ease-in-out infinite alternate; }
.maglock-state.maglock-open .maglock-led { background: #ff3447; box-shadow: 0 0 9px #ff3447; }
.maglock-warning { position: absolute; z-index: 4; top: 31%; right: 2%; display: grid; gap: 4px; padding: 7px 9px; border-left: 3px solid #ff3649; background: #641622d9; color: #fff; text-shadow: 0 1px 2px #26060a; font-size: 10px; pointer-events: none; animation: maglock-alert-pulse 1s ease-in-out infinite alternate; }
.maglock-warning span { font-size: 9px; }
@keyframes maglock-alert-pulse { from { opacity: .82; } to { opacity: 1; } }
@media(max-width:800px) { .task-status .footer-door-button { min-width: 48px; height: 18px; font-size: 6px; } }
@media(max-width:520px) { .task-status .footer-door-button { left: 50%; transform: translate(-50%, -50%); } }

.test-door-info { position: absolute; top: 42px; left: 6px; z-index: 2; max-width: calc(100% - 12px); display: grid; gap: 2px; padding: 4px 5px; border: 1px solid #8796af60; border-radius: 4px; background: #0b1736e8; color: #e9f0ff; font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; }
.test-door-info [data-test-door-state] { color: #ffd3a0; }
.test-door-info.test-door-ready [data-test-door-state] { color: #b6f5ce; }
.task-status .footer-door-button:disabled, .camera-bottom-tools button:disabled { background: #384255; border-color: #a9b3c4; cursor: not-allowed; }
