#settings-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.4);
}

#settings-modal .settings-content {
    position: relative;
    width: 460px;
    max-width: 100%;
    max-height: calc(100dvh - 40px);
    padding: 0 28px 24px;
    overflow-y: auto;
    background: #ffffff;
}

.settings-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #E5E8E5;
    margin-bottom: 24px;
}

.settings-tabs button {
    flex: 1;
    padding: 12px 0 13px;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    color: #777777;
    font: 500 14px 'Poppins', sans-serif;
    cursor: pointer;
}

.settings-tabs button:hover {
    color: #1B6E4B;
}

.settings-tabs button[aria-selected="true"] {
    color: #1B6E4B;
    border-bottom-color: #1B6E4B;
    font-weight: 600;
}

#settings-modal [hidden] {
    display: none !important;
}

.settings-panel {
    min-height: 180px;
    margin-bottom: 24px;
    color: #555555;
    font-size: 14px;
    line-height: 1.5;
}

.settings-panel .modal-body {
    margin-bottom: 0;
}

#settings-modal button:focus-visible {
    outline: 2px solid #1B6E4B;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    #settings-modal .settings-content { padding: 0 18px 20px; }
    .settings-tabs { gap: 10px; }
}

#settings-modal .settings-close {
    position: static;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #777777;
    cursor: pointer;
}

#settings-modal .settings-close:hover {
    background: #F7F8F6;
    color: #303532;
}

#settings-modal .settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0 10px;
}

#settings-modal #settings-heading {
    margin: 0;
    color: #303532;
    font-size: 22px;
    line-height: 30px;
    font-weight: 600;
}

.settings-route-data {
    margin-top: 20px;
}

.settings-route-data h3 {
    margin: 0 0 10px;
    color: #303532;
    font-size: 14px;
    font-weight: 600;
}

.settings-route-data dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    margin: 0;
    font-size: 13px;
}

.settings-route-data dd {
    margin: 0;
    color: #303532;
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.share-export-section {
    margin-top: 24px;
}

.share-export-section h3 {
    margin: 0 0 10px;
    color: #303532;
    font-size: 14px;
    font-weight: 600;
}

.share-export-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 16px;
    border: 1px solid #dce4df;
    border-radius: 9px;
    background: #e7f3ec;
    color: #15814c;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.share-export-btn:hover {
    background: #d8ecdf;
}

.share-export-btn:focus-visible {
    outline: 2px solid #15814c;
    outline-offset: 2px;
}
