#gps-recording-panel[hidden] { display: none !important; }
#gps-recording-panel {
    position: fixed;
    z-index: 1100;
    left: 12px;
    right: 12px;
    bottom: calc(var(--mobile-navigation-height, 54px) + 12px);
    max-width: 430px;
    margin: 0 auto;
    padding: 14px 16px 10px;
    border: 1px solid #e5e8e5;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 5px 24px rgba(30, 55, 40, .13);
    color: #303532;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
body.gps-recording #map-info-bar,
body.gps-recording #map-bottom-bar,
body.gps-recording #map-empty-state,
body.gps-recording.route-incomplete #map-empty-state,
body.gps-recording #sidebar,
body.gps-recording #sidebar-toggle,
body.gps-recording #elevation-profile-overlay { display: none !important; }
.gps-recording-heading { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; }
.gps-recording-heading > span { display: flex; align-items: center; gap: 7px; }
.gps-recording-heading i { width: 7px; height: 7px; background: #a2aaa5; border-radius: 50%; }
.is-running .gps-recording-heading i { background: #15814c; box-shadow: 0 0 0 4px #e7f3ec; }
#gps-recording-center { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f2f5f3; color: #526157; padding: 6px; cursor: pointer; }
#gps-recording-center svg { width: 20px; height: 20px; }
.gps-recording-stats { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); margin: 8px 0; text-align: center; }
.gps-recording-stats > div { display: flex; flex-direction: column; gap: 1px; }
.gps-recording-stats strong { font-size: 21px; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; }
.gps-recording-stats span { font-size: 10px; color: #818982; }
#gps-recording-message { margin: 8px 0 10px; font-size: 11px; line-height: 1.5; min-height: 33px; color: #536859; text-align: center; }
.gps-recording-actions { display: flex; gap: 8px; }
.gps-recording-actions button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 10px; border: 0; border-radius: 24px; font: 600 12px 'Poppins', sans-serif; cursor: pointer; }
.gps-recording-actions svg { width: 20px; height: 20px; fill: currentColor; }
#gps-recording-play { color: #fff; background: #15814c; }
#gps-recording-stop { color: #45534a; background: #eef2ef; }
.gps-recording-actions button:disabled { opacity: .5; cursor: wait; }
.gps-recording-note { margin: 9px 0 0; text-align: center; font-size: 9px; line-height: 1.4; color: #879188; }
.gps-discard { display: block; margin: 16px auto 0; padding: 6px 8px; border: 0; background: transparent; color: #8e514c; font: 11px 'Poppins', sans-serif; cursor: pointer; }
#mobile-nav-record { display: none; }
@media (max-width: 767px) {
    #mobile-navigation button,
    #mobile-navigation #mobile-nav-record {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 4px 0;
        font-size: 9px;
        line-height: 13px;
    }
    #mobile-navigation button svg { width: 20px; height: 20px; flex: 0 0 20px; }
    #mobile-navigation button span { white-space: nowrap; }
}

.gps-recording-duration strong { font-size: 18px; line-height: 27.3px; }
#phone-portrait-notice[hidden] { display: none !important; }
#phone-portrait-notice {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    place-items: center;
    padding: 20px;
    box-sizing: border-box;
    background: #f7f9fb;
    font-family: 'Poppins', sans-serif;
    touch-action: none;
}
.phone-portrait-card {
    max-width: 340px;
    padding: 22px 28px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 4px 20px rgba(30, 55, 40, .06);
    text-align: center;
    color: #15814c;
}
.phone-portrait-card p { margin: 12px 0 0; color: #303532; font-size: 14px; line-height: 1.6; }
body.phone-landscape { overflow: hidden !important; }
body.phone-landscape > :not(#phone-portrait-notice),
body.phone-landscape > :not(#phone-portrait-notice) * { visibility: hidden !important; }
@media (max-width: 350px) {
    .gps-recording-stats strong { font-size: 18px; }
    .gps-recording-duration strong { font-size: 15px; line-height: 23.4px; }
}

#custom-modal .modal-btn.gps-save-empty:disabled,
#custom-modal .modal-btn.gps-save-empty:disabled:hover {
    background: #fbe9e7;
    color: #ceaaa6;
    border-color: #f3d9d6;
    box-shadow: none;
    opacity: 1;
    cursor: not-allowed;
}
