/* Direction workspace: one viewport, with details available on demand. */
#alignment-popup.focus-dialog{padding:0!important;overflow:hidden;background:#e8eee3;overscroll-behavior:none}
#alignment-popup.focus-dialog .alignment-layout{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0}
#alignment-popup.focus-dialog .direction-card{position:absolute;inset:0 0 82px;display:flex;flex-direction:column;border:0;border-radius:0;padding:64px 12px 8px;background:transparent;width:auto;overflow:hidden}
#alignment-popup.focus-dialog .direction{flex:1;min-height:0;height:auto;width:100%;max-width:none;aspect-ratio:auto;border-radius:20px}
#alignment-popup.focus-dialog .card-top{position:absolute;top:16px;left:64px;right:64px;justify-content:center;font-size:9px;letter-spacing:.8px}
#alignment-popup.focus-dialog .card-top #direction-caption{max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#alignment-popup.focus-dialog .direction-message{flex:none;margin:8px 0 0;font-size:18px;font-weight:700;line-height:1.3;max-height:70px;overflow:auto}
#alignment-popup.focus-dialog .gyro-readout{flex:none;font-size:10px;margin:3px 0 0;max-height:35px;overflow:auto}
#alignment-popup.focus-dialog .direction-legend,#alignment-popup.focus-dialog .preview-note,#alignment-popup.focus-dialog .dial-left,#alignment-popup.focus-dialog .dial-right{display:none}
#alignment-popup.focus-dialog .alignment-panel{display:none;position:absolute;z-index:30;top:64px;right:12px;width:min(390px,calc(100% - 24px));max-height:calc(100dvh - 166px);overflow:auto;padding:20px;border:1px solid #c5d1be;border-radius:20px;background:#f7f8f2fa;box-shadow:0 12px 60px #163b3530;overscroll-behavior:contain}
#alignment-popup.focus-details .alignment-panel{display:block}
#alignment-popup.focus-dialog #result-info{max-height:none;overflow:visible}
#alignment-popup.focus-dialog .popup-close,#alignment-popup.focus-dialog .focus-info{position:absolute;top:max(12px,env(safe-area-inset-top));z-index:40;width:44px;height:44px;border-radius:14px;border:1px solid #c7d3be;background:#f7f8f2ed;color:#174b40;box-shadow:0 3px 15px #173c3510;margin:0;padding:10px}
#alignment-popup.focus-dialog .popup-close{left:12px;right:auto;font-size:26px;display:grid;place-items:center;padding:0}
#alignment-popup.focus-dialog .focus-info{right:12px}
.focus-icon svg{display:block;width:24px;height:24px;flex:none;pointer-events:none}
#alignment-popup .focus-toolbar{position:absolute;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));height:58px;z-index:40;display:flex;align-items:center;justify-content:center;gap:10px;padding:5px 10px;width:max-content;max-width:calc(100% - 24px);margin:auto;background:#f7f8f2f2;border:1px solid #c7d3be;border-radius:20px;box-shadow:0 5px 24px #173c3520}
#alignment-popup .focus-toolbar #result-actions{display:contents}
#alignment-popup .focus-toolbar .focus-icon,#alignment-popup .focus-toolbar #result-actions .focus-icon{display:grid;place-items:center;margin:0;padding:10px;width:44px;height:44px;min-height:44px;min-width:44px;border:0;border-radius:13px;background:transparent;color:#174b40;flex:none}
#alignment-popup .focus-toolbar #lock,#alignment-popup .focus-toolbar #prayer{background:#174b40;color:white}
#alignment-popup .focus-toolbar #reset-directions{color:#8b5043}
.focus-icon:hover,.focus-icon[aria-expanded=true]{background:#dce7cf!important;color:#174b40!important}
.focus-prayer#prayer-screen{position:relative;display:flex;height:100dvh;padding:64px 12px 20px;gap:0;overflow:hidden}
.prayer-active main{padding:0}
.focus-prayer#prayer-screen #prayer-direction{width:100%;max-width:none;flex:1;min-height:0;height:auto;aspect-ratio:auto;margin:0;border-radius:20px}
.focus-prayer#prayer-screen h1{position:absolute;top:23px;left:70px;right:70px;margin:0;font-size:14px;text-align:center;letter-spacing:2px}
.focus-prayer#prayer-screen>p[data-t],.focus-prayer#prayer-screen .direction-legend{display:none}
.focus-prayer#prayer-screen #prayer-angle{position:static;max-width:none;width:100%;font-size:18px;margin:12px 0 0;flex:none;max-height:70px;overflow:auto}
.focus-prayer#prayer-screen #exit-prayer,.focus-prayer#prayer-screen #reset-prayer,.focus-prayer#prayer-screen .focus-info{position:absolute;top:max(12px,env(safe-area-inset-top));z-index:20;margin:0;width:44px;height:44px;min-height:44px;border-radius:14px;border:1px solid #c7d3be;padding:10px;display:grid;place-items:center;background:#f7f8f2ed;color:#174b40}
.focus-prayer#prayer-screen #exit-prayer{left:12px}
.focus-prayer#prayer-screen .focus-info{right:12px}
.focus-prayer#prayer-screen #reset-prayer{top:auto;bottom:70px;right:24px;color:#8b5043}
.focus-prayer.focus-details#prayer-screen>p[data-t]{display:block;position:absolute;z-index:30;top:65px;right:12px;max-width:300px;width:calc(100% - 24px);padding:16px;background:#f7f8f2f5;border-radius:14px;box-shadow:0 5px 25px #173c3520}
.focus-prayer.focus-details#prayer-screen .direction-legend{display:flex;position:absolute;z-index:30;top:170px;right:12px;max-width:300px;background:#f7f8f2f5;border-radius:14px;padding:12px}
@media(min-width:850px){#alignment-popup.focus-dialog .direction-card{left:10%;right:10%}#alignment-popup.focus-dialog .alignment-panel{right:24px}}
@media(max-height:500px) and (orientation:landscape){#alignment-popup.focus-dialog .direction-card{inset:0 80px 0 0;padding:10px 12px}#alignment-popup.focus-dialog .card-top{display:none}#alignment-popup .focus-toolbar{left:auto;right:12px;top:65px;bottom:12px;width:54px;height:auto;flex-direction:column;gap:4px;padding:5px}#alignment-popup.focus-dialog .popup-close{left:auto;right:72px}#alignment-popup.focus-dialog .focus-info{right:12px}#alignment-popup.focus-dialog .direction-message{font-size:14px}#alignment-popup.focus-dialog .alignment-panel{right:80px;top:12px;max-height:calc(100dvh - 24px)}.focus-prayer#prayer-screen{padding:12px 72px 12px 12px}.focus-prayer#prayer-screen h1{display:none}.focus-prayer#prayer-screen #exit-prayer{left:auto;right:12px}.focus-prayer#prayer-screen .focus-info{top:68px}.focus-prayer#prayer-screen #reset-prayer{right:12px;bottom:12px}.focus-prayer#prayer-screen #prayer-angle{font-size:14px;margin:6px 0 0}}

#alignment-popup.focus-dialog .direction-card{align-self:stretch;height:calc(100% - 82px);margin:0}
@media(max-height:500px) and (orientation:landscape){#alignment-popup.focus-dialog .direction-card{height:100%}}

#alignment-popup.focus-dialog .direction,.focus-prayer#prayer-screen #prayer-direction{container-type:size}
.focus-dialog .direction-ring,.focus-prayer .direction-ring{inset:auto;left:50%;top:50%;width:76cqmin;height:76cqmin;transform:translate(-50%,-50%)}

#alignment-popup.focus-dialog .popup-close svg{width:20px;height:20px}
