.trail-actions > .ui-block-a, .trail-actions > .ui-block-b { width:var(--trail-column,50%); }
.trail-actions > div > [role=button] { max-width:96%; }
.trail-actions .trail-entry,.trail-detail .trail-entry {
    display:var(--trail-show,none); align-items:center; justify-content:center;
    cursor:pointer; white-space:nowrap; background:#227482; color:white;
    border:0; border-radius:7px; font:500 13px/21px Arial,sans-serif;
}
.trail-actions .trail-entry { width:min(31%,100px); margin:15px 0; padding:0; }
.trail-detail { text-align:center; }
.trail-detail .trail-entry { padding:8px 20px; margin:8px auto; font-size:16px; }
.trail-entry:focus-visible { outline:3px solid #162f43; outline-offset:2px; }
.trail-view { display:block; width:100%; height:82vh; height:82dvh; min-height:420px; border:0; }
.trail-shared-dialog[open] {
    position:fixed; inset:0; box-sizing:border-box; display:block; width:min(100%,1200px);
    height:100dvh; max-width:100%; max-height:100%; margin:auto; padding:0; border:0;
    background:#fff; color:#193847; overflow-y:auto; overscroll-behavior:contain;
}
.trail-shared-dialog::backdrop { background:rgba(15,37,47,.6); }
html:has(#wd-shared-map.trail-shared-dialog[open]) { overflow:hidden; }
.trail-shared-dialog header { display:grid; grid-template-columns:6.5rem minmax(0,1fr) 6.5rem; align-items:center; column-gap:6px; padding:8px 8px; background:#205d6b; color:white; }
.trail-shared-title { min-width:0; text-align:center; }
.trail-shared-status { margin-top:2px; font-size:.875rem; line-height:1.2; }
.trail-shared-dialog header h1 { margin:0; min-width:0; text-align:center; overflow-wrap:anywhere; font-size:1.2rem; color:inherit; }
.trail-shared-dialog header button { justify-self:start; padding:8px 12px; background:white; color:#205d6b; border:0; border-radius:6px; font:inherit; white-space:nowrap; cursor:pointer; }
@media(max-width:640px) {
    .trail-shared-dialog header { grid-template-columns:44px minmax(0,1fr) 44px; padding:4px; gap:6px; }
    .trail-shared-dialog header button { position:relative; width:44px; height:44px; padding:0; font-size:0; }
    .trail-shared-dialog header button::before {
        content:""; position:absolute; inset:0; margin:auto; width:24px; height:24px; background:currentColor;
        mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12H4m7-7-7 7 7 7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    }
}
.trail-shared-dialog p { margin:8px 14px; }
#sometecmap #wd-shared-map.trail-shared-dialog[open] > #map01 {
    display:block; width:100%!important; height:clamp(210px,47dvh,520px)!important;
}
@media(min-width:800px) {
    #wd-shared-map.trail-shared-dialog[open] { display:flex; flex-direction:column; }
    .trail-shared-dialog > header,.trail-shared-dialog > p,.trail-shared-profile { flex:none; }
    #sometecmap #wd-shared-map.trail-shared-dialog[open] > #map01 {
        flex:1 0 130px; min-height:130px; height:0!important;
    }
}
.trail-shared-profile { display:block; width:100%; height:240px; border:0; }
.trail-shared-dialog:not(.trail-map-ready) #map01 { visibility:hidden; }
