.mm-gpx-splitter {
    --mm-gpx-orange: #ff4903;
    --mm-gpx-orange-dark: #d93d00;
    --mm-gpx-blue: #126dff;
    --mm-gpx-blue-soft: #eef5ff;
    --mm-gpx-red: #d71919;
    --mm-gpx-text: #172033;
    --mm-gpx-muted: #667085;
    --mm-gpx-border: #dbe2ea;
    --mm-gpx-border-strong: #c7d0db;
    --mm-gpx-soft: #f7f9fb;
    --mm-gpx-success: #177245;
    --mm-gpx-warning: #9a6700;
    --mm-gpx-error: #b42318;
    --mm-gpx-sticky-offset: 64px;

    color: var(--mm-gpx-text);
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 12px 0;
    box-shadow: none;
}

.mm-gpx-splitter [hidden] {
    display: none !important;
}

.mm-gpx-splitter__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.mm-gpx-splitter *,
.mm-gpx-splitter *::before,
.mm-gpx-splitter *::after {
    box-sizing: border-box;
}

.mm-gpx-splitter__layout {
    display: grid;
    grid-template-columns: minmax(520px, 53%) minmax(400px, 1fr);
    gap: clamp(16px, 1.6vw, 22px);
    align-items: start;
}

.mm-gpx-splitter__main {
    min-width: 0;
}

.mm-gpx-splitter__header,
.mm-gpx-splitter__upload,
.mm-gpx-splitter__results {
    display: grid;
    gap: 12px;
}

.mm-gpx-splitter__title,
.mm-gpx-splitter__subtitle {
    margin: 0;
    line-height: 1.2;
}

.mm-gpx-splitter__title {
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    letter-spacing: -.02em;
}

.mm-gpx-splitter__subtitle {
    font-size: 1.2rem;
    padding-left: 11px;
    border-left: 3px solid var(--mm-gpx-orange);
}

.mm-gpx-splitter__intro,
.mm-gpx-splitter__summary,
.mm-gpx-splitter__map-hint {
    margin: 0;
    color: var(--mm-gpx-muted);
    line-height: 1.55;
}

.mm-gpx-splitter__upload {
    margin-top: 18px;
}

.mm-gpx-splitter__label {
    font-weight: 800;
    font-size: .95rem;
}

.mm-gpx-splitter__dropzone {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "icon copy button"
        "icon hint button";
    align-items: center;
    gap: 5px 18px;
    width: 100%;
    min-height: 116px;
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(250, 251, 253, .98));
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
    isolation: isolate;
}

.mm-gpx-splitter__dropzone-hit {
    position: absolute;
    inset: 8px;
    border-radius: 10px;
    pointer-events: none;
    z-index: -1;
}

.mm-gpx-splitter__dropzone:hover,
.mm-gpx-splitter__dropzone:focus-visible,
.mm-gpx-splitter__dropzone--dragging {
    border-color: var(--mm-gpx-orange);
    background: linear-gradient(180deg, #fffdfb, #fff7f2);
    box-shadow: 0 0 0 3px rgba(255, 73, 3, .07), 0 8px 20px rgba(31, 41, 55, .06);
}

.mm-gpx-splitter__dropzone:focus-visible {
    outline: none;
}

.mm-gpx-splitter__dropzone--dragging {
    transform: translateY(-1px);
}

.mm-gpx-splitter__dropzone--busy {
    opacity: .72;
    pointer-events: none;
}

.mm-gpx-splitter__drop-icon {
    grid-area: icon;
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #fff1eb;
    border: 1px solid #f5c8b4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.mm-gpx-splitter__drop-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 22px;
    transform: translate(-50%, -50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22' fill='none'%3E%3Cpath d='M9 14V3' stroke='%23ff4903' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M5.5 6.5L9 3l3.5 3.5' stroke='%23ff4903' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4.5 10.5v6a1.5 1.5 0 0 0 1.5 1.5h6a1.5 1.5 0 0 0 1.5-1.5v-6' stroke='%23ff4903' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.mm-gpx-splitter__drop-icon::after {
    content: none;
}

.mm-gpx-splitter__drop-copy {
    grid-area: copy;
    display: grid;
    gap: 2px;
    min-width: 0;
}

.mm-gpx-splitter__drop-title {
    font-size: 1.08rem;
    line-height: 1.25;
    color: var(--mm-gpx-ink);
}

.mm-gpx-splitter__drop-text,
.mm-gpx-splitter__drop-hint,
.mm-gpx-splitter__file-name {
    color: var(--mm-gpx-muted);
    overflow-wrap: anywhere;
}

.mm-gpx-splitter__drop-text {
    font-size: .95rem;
}

.mm-gpx-splitter__drop-hint {
    grid-area: hint;
    font-size: .82rem;
}

.mm-gpx-splitter__file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mm-gpx-splitter__file-button {
    grid-area: button;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid var(--mm-gpx-orange);
    border-radius: 8px;
    background: var(--mm-gpx-orange);
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 4px 10px rgba(255, 73, 3, .12);
    transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.mm-gpx-splitter__file-button:hover,
.mm-gpx-splitter__file-button:focus-visible {
    background: var(--mm-gpx-orange-dark);
    border-color: var(--mm-gpx-orange-dark);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 6px 14px rgba(255, 73, 3, .17);
}

.mm-gpx-splitter__file:focus-visible ~ .mm-gpx-splitter__file-button {
    outline: 3px solid rgba(255, 73, 3, .24);
    outline-offset: 2px;
}

.mm-gpx-splitter__file:disabled ~ .mm-gpx-splitter__file-button {
    opacity: .5;
    cursor: not-allowed;
}

.mm-gpx-splitter__selected-file {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 11px;
    background: #f8fbf9;
    border: 1px solid #d8e7dd;
    border-radius: 7px;
    font-size: .88rem;
}

.mm-gpx-splitter__selected-file-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: var(--mm-gpx-success);
}

.mm-gpx-splitter__message {
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 7px;
    border: 1px solid transparent;
    font-weight: 650;
    line-height: 1.45;
}

.mm-gpx-splitter__message--info {
    color: #18436b;
    background: #edf6ff;
    border-color: #b9ddff;
}

.mm-gpx-splitter__message--success {
    color: var(--mm-gpx-success);
    background: #f3fbf6;
    border-color: #c9ead3;
}

.mm-gpx-splitter__message--warning {
    color: var(--mm-gpx-warning);
    background: #fff8e6;
    border-color: #f7d070;
}

.mm-gpx-splitter__message--error {
    color: var(--mm-gpx-error);
    background: #fff1f0;
    border-color: #f3b4ae;
}

.mm-gpx-splitter__results {
    margin-top: 20px;
}

.mm-gpx-splitter__results-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}

.mm-gpx-splitter__actions,
.mm-gpx-splitter__footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mm-gpx-splitter__results-head .mm-gpx-splitter__actions {
    flex-wrap: nowrap;
}

.mm-gpx-splitter__options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    background: rgba(247, 249, 251, .94);
    border: 1px solid #e5e9ee;
    border-radius: 7px;
}

.mm-gpx-splitter__option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
}

.mm-gpx-splitter__option select,
.mm-gpx-splitter__name-input {
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--mm-gpx-border-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--mm-gpx-text);
}

.mm-gpx-splitter__option select {
    min-width: 220px;
}

.mm-gpx-splitter__option select:focus,
.mm-gpx-splitter__name-input:focus {
    outline: 0;
    border-color: var(--mm-gpx-orange);
    box-shadow: 0 0 0 3px rgba(255, 73, 3, .11);
}

.mm-gpx-splitter__table-wrap {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--mm-gpx-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, .97);
}

.mm-gpx-splitter__table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.mm-gpx-splitter__table th,
.mm-gpx-splitter__table td {
    padding: 9px;
    border-bottom: 1px solid #e5e9ee;
    text-align: left;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.mm-gpx-splitter__table th {
    background: #f8fafc;
    color: #475467;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .015em;
    line-height: 1.2;
    white-space: nowrap;
}

.mm-gpx-splitter__table tr:last-child td {
    border-bottom: 0;
}

.mm-gpx-splitter__row {
    transition: background .15s ease, box-shadow .15s ease;
}

.mm-gpx-splitter__row--warning {
    background: #fffaf0;
}

.mm-gpx-splitter__row--selected td {
    background: var(--mm-gpx-blue-soft);
}

.mm-gpx-splitter__row--selected td:first-child {
    box-shadow: inset 3px 0 0 var(--mm-gpx-blue);
}

.mm-gpx-splitter__row--map-hover td {
    background: #e6f1ff;
}

.mm-gpx-splitter__table th:nth-child(1),
.mm-gpx-splitter__table td:nth-child(1) {
    width: 48px;
    padding-left: 10px;
    padding-right: 6px;
    text-align: center;
}

.mm-gpx-splitter__table th:nth-child(2),
.mm-gpx-splitter__table td:nth-child(2) {
    width: 148px;
}

.mm-gpx-splitter__table th:nth-child(3),
.mm-gpx-splitter__table td:nth-child(3) {
    width: 78px;
}

.mm-gpx-splitter__table th:nth-child(4),
.mm-gpx-splitter__table td:nth-child(4) {
    width: 82px;
}

.mm-gpx-splitter__table th:nth-child(5),
.mm-gpx-splitter__table td:nth-child(5) {
    width: 60px;
    text-align: center;
}

.mm-gpx-splitter__table th:nth-child(6),
.mm-gpx-splitter__table td:nth-child(6) {
    width: 70px;
    text-align: center;
}

.mm-gpx-splitter [data-role="section-select"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--mm-gpx-blue);
    cursor: pointer;
}

.mm-gpx-splitter__name-input {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mm-gpx-splitter__badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
    white-space: nowrap;
}

.mm-gpx-splitter__badge--ok {
    color: var(--mm-gpx-success);
    background: #e9f8ef;
}

.mm-gpx-splitter__badge--warning {
    position: relative;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    padding: 0;
    color: var(--mm-gpx-warning);
    background: #fff0c2;
    cursor: help;
}

.mm-gpx-splitter__badge--warning::before,
.mm-gpx-splitter__badge--warning::after {
    position: absolute;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 20;
}

.mm-gpx-splitter__badge--warning::before {
    content: "";
    bottom: calc(100% + 2px);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #172033;
}

.mm-gpx-splitter__badge--warning::after {
    content: attr(data-tooltip);
    bottom: calc(100% + 13px);
    width: max-content;
    max-width: 240px;
    padding: 7px 9px;
    transform: translateX(-50%);
    border-radius: 6px;
    background: #172033;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
}

.mm-gpx-splitter__badge--warning:hover::before,
.mm-gpx-splitter__badge--warning:hover::after,
.mm-gpx-splitter__badge--warning:focus-visible::before,
.mm-gpx-splitter__badge--warning:focus-visible::after {
    opacity: 1;
}

.mm-gpx-splitter__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--mm-gpx-orange);
    border-radius: 6px;
    background: var(--mm-gpx-orange);
    color: #fff;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.mm-gpx-splitter__button:hover,
.mm-gpx-splitter__button:focus-visible {
    background: var(--mm-gpx-orange-dark);
    border-color: var(--mm-gpx-orange-dark);
    color: #fff;
}

.mm-gpx-splitter__button:focus-visible {
    outline: 3px solid rgba(255, 73, 3, .2);
    outline-offset: 2px;
}

.mm-gpx-splitter__button:active {
    transform: translateY(1px);
}

.mm-gpx-splitter__button:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.mm-gpx-splitter__button--ghost {
    background: #fff;
    color: var(--mm-gpx-orange-dark);
}

.mm-gpx-splitter__button--ghost:hover,
.mm-gpx-splitter__button--ghost:focus-visible {
    background: #fff3ea;
    color: var(--mm-gpx-orange-dark);
}

.mm-gpx-splitter__button--small {
    min-height: 34px;
    min-width: 54px;
    padding: 8px 10px;
}

.mm-gpx-splitter__footer-actions {
    justify-content: flex-end;
}

.mm-gpx-splitter__map-panel {
    position: sticky;
    top: var(--mm-gpx-sticky-offset);
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #e1e6ec;
    border-radius: 9px;
    box-shadow: 0 8px 22px rgba(23, 32, 51, .055);
}

.mm-gpx-splitter__map-hint {
    min-height: 2.8em;
    max-height: 2.8em;
    overflow: hidden;
    font-size: .9rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mm-gpx-splitter__map-canvas {
    position: relative;
    display: block;
    min-height: 455px;
    aspect-ratio: auto;
    overflow: hidden;
    background: #d8e1df;
    border: 1px solid #d7dde3;
    border-radius: 7px;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.mm-gpx-splitter__map-canvas--dragging {
    cursor: grabbing;
}

.mm-gpx-splitter__map-canvas--loading {
    cursor: wait;
}

.mm-gpx-splitter__map-loader {
    position: absolute;
    inset: 0;
    z-index: 18;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .18);
    pointer-events: none;
}

.mm-gpx-splitter__map-spinner {
    width: 46px;
    height: 46px;
    border: 4px solid rgba(255, 255, 255, .92);
    border-top-color: var(--mm-gpx-orange);
    border-right-color: rgba(255, 73, 3, .34);
    border-radius: 50%;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 4px 16px rgba(23, 32, 51, .14);
    animation: mm-gpx-map-spin .72s linear infinite;
}

@keyframes mm-gpx-map-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mm-gpx-splitter__map-spinner {
        animation-duration: 1.8s;
    }
}

.mm-gpx-splitter__map-tiles,
.mm-gpx-splitter__map-svg {
    position: absolute;
    inset: 0;
}

.mm-gpx-splitter__map-tiles {
    z-index: 1;
}

.mm-gpx-splitter__map-tile {
    position: absolute;
    width: 256px;
    height: 256px;
    max-width: none;
    user-select: none;
    pointer-events: none;
}

.mm-gpx-splitter__map-svg {
    z-index: 2;
    width: 100%;
    height: 100%;
}

.mm-gpx-splitter__map-route,
.mm-gpx-splitter__map-selected,
.mm-gpx-splitter__map-highlight,
.mm-gpx-splitter__map-hit {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.mm-gpx-splitter__map-route {
    stroke: var(--mm-gpx-red);
    stroke-width: 4;
    opacity: .9;
    pointer-events: none;
}

.mm-gpx-splitter__map-selected {
    stroke: var(--mm-gpx-blue);
    stroke-width: 7;
    filter: drop-shadow(0 2px 3px rgba(18, 109, 255, .24));
    pointer-events: none;
}

.mm-gpx-splitter__map-highlight {
    stroke: #65adff;
    stroke-width: 10;
    opacity: .82;
    filter: drop-shadow(0 2px 4px rgba(18, 109, 255, .3));
    pointer-events: none;
}

.mm-gpx-splitter__map-hit {
    stroke: rgba(255, 255, 255, 0);
    stroke-width: 26;
    pointer-events: stroke;
    cursor: pointer;
}

.mm-gpx-splitter__map-hit:focus-visible {
    outline: none;
    stroke: rgba(101, 173, 255, .28);
}

.mm-gpx-splitter__map-canvas--dragging .mm-gpx-splitter__map-hit {
    cursor: grabbing;
}

.mm-gpx-splitter__map-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    transform: translate(-50%, -50%);
    max-width: 220px;
    padding: 12px 14px;
    color: var(--mm-gpx-muted);
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(217, 225, 234, .9);
    border-radius: 8px;
    text-align: center;
    pointer-events: none;
}

.mm-gpx-splitter__map-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
    pointer-events: auto;
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(80, 91, 103, .35);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(31, 41, 51, .18);
}

.mm-gpx-splitter__map-control {
    position: relative;
    z-index: 21;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(80, 91, 103, .2);
    background: #fff;
    color: #1f2933;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.mm-gpx-splitter__map-control:last-child {
    border-bottom: 0;
}

.mm-gpx-splitter__map-control:hover,
.mm-gpx-splitter__map-control:focus-visible {
    background: #f3f6f8;
}

.mm-gpx-splitter__map-attribution {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding: 2px 5px;
    background: rgba(255, 255, 255, .82);
    color: #1f2933;
    font-size: 10px;
    line-height: 1.25;
}

.mm-gpx-splitter__map-attribution a {
    color: #1f2933;
    text-decoration: none;
}

.mm-gpx-splitter__map-attribution a:hover,
.mm-gpx-splitter__map-attribution a:focus {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .mm-gpx-splitter__layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mm-gpx-splitter__main {
        display: contents;
    }

    .mm-gpx-splitter__header {
        order: 1;
        width: 100%;
    }

    .mm-gpx-splitter__upload {
        order: 2;
        width: 100%;
        margin-top: 8px;
    }

    .mm-gpx-splitter__main > .mm-gpx-splitter__message,
    .mm-gpx-splitter__main > noscript {
        order: 3;
        width: 100%;
    }

    .mm-gpx-splitter__map-panel {
        order: 4;
        position: static;
        width: 100%;
    }

    .mm-gpx-splitter__results {
        order: 5;
        width: 100%;
        margin-top: 2px;
    }

    .mm-gpx-splitter__map-canvas {
        min-height: 380px;
        aspect-ratio: auto;
    }
}

@media (max-width: 720px) {
    .mm-gpx-splitter {
        padding: 0;
        margin: 10px 0;
        border-radius: 0;
        box-shadow: none;
    }

    .mm-gpx-splitter__title {
        font-size: 1.55rem;
    }

    .mm-gpx-splitter__intro {
        font-size: .93rem;
    }

    .mm-gpx-splitter__dropzone {
        grid-template-columns: 48px minmax(0, 1fr);
        grid-template-areas:
            "icon copy"
            "hint hint"
            "button button";
        min-height: 0;
        gap: 8px 10px;
        padding: 14px;
    }

    .mm-gpx-splitter__drop-icon {
        width: 44px;
        height: 44px;
    }

    .mm-gpx-splitter__file-button {
        width: 100%;
        min-height: 46px;
        margin-top: 0;
    }

    .mm-gpx-splitter__selected-file {
        align-items: flex-start;
    }

    .mm-gpx-splitter__results-head,
    .mm-gpx-splitter__option {
        align-items: stretch;
        flex-direction: column;
    }

    .mm-gpx-splitter__actions,
    .mm-gpx-splitter__footer-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .mm-gpx-splitter__footer-actions {
        grid-template-columns: 1fr;
    }

    .mm-gpx-splitter__button,
    .mm-gpx-splitter__option select {
        width: 100%;
        min-width: 0;
    }

    .mm-gpx-splitter__options {
        padding: 12px;
    }

    .mm-gpx-splitter__map-panel {
        padding: 9px;
        border-radius: 7px;
    }

    .mm-gpx-splitter__map-hint {
        min-height: auto;
        max-height: none;
        -webkit-line-clamp: 3;
        font-size: .85rem;
    }

    .mm-gpx-splitter__map-canvas {
        min-height: 290px;
        aspect-ratio: auto;
        border-radius: 6px;
    }

    .mm-gpx-splitter__table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .mm-gpx-splitter__table,
    .mm-gpx-splitter__table tbody,
    .mm-gpx-splitter__table tr,
    .mm-gpx-splitter__table td {
        display: block;
        width: 100% !important;
    }

    .mm-gpx-splitter__table {
        background: transparent;
    }

    .mm-gpx-splitter__table thead {
        display: none;
    }

    .mm-gpx-splitter__table tbody {
        display: grid;
        gap: 8px;
    }

    .mm-gpx-splitter__table tr {
        overflow: hidden;
        background: rgba(255, 255, 255, .98);
        border: 1px solid var(--mm-gpx-border);
        border-radius: 7px;
        box-shadow: 0 3px 10px rgba(23, 32, 51, .035);
    }

    .mm-gpx-splitter__table tr.mm-gpx-splitter__row--selected {
        border-color: #a8c8ff;
        box-shadow: 0 0 0 2px rgba(18, 109, 255, .08);
    }

    .mm-gpx-splitter__table td {
        position: relative;
        display: grid;
        grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        min-height: 44px;
        padding: 8px 10px;
        border-bottom: 1px solid #edf0f3;
        text-align: left !important;
        background: transparent;
    }

    .mm-gpx-splitter__table td::before {
        content: attr(data-label);
        color: #667085;
        font-size: .74rem;
        font-weight: 800;
        letter-spacing: .02em;
        text-transform: uppercase;
    }

    .mm-gpx-splitter__table td:last-child {
        border-bottom: 0;
    }

    .mm-gpx-splitter__row--selected td:first-child {
        box-shadow: inset 3px 0 0 var(--mm-gpx-blue);
    }

    .mm-gpx-splitter__row--selected td {
        background: var(--mm-gpx-blue-soft);
    }

    .mm-gpx-splitter__table td:nth-child(2) {
        align-items: start;
    }

    .mm-gpx-splitter__name-input {
        min-height: 44px;
    }

    .mm-gpx-splitter [data-role="section-select"] {
        width: 24px;
        height: 24px;
    }

    .mm-gpx-splitter__button--small {
        min-height: 42px;
        width: auto;
        justify-self: start;
    }
}

@media (max-width: 430px) {
    .mm-gpx-splitter__actions {
        grid-template-columns: 1fr;
    }

    .mm-gpx-splitter__map-canvas {
        min-height: 260px;
    }

    .mm-gpx-splitter__table td {
        grid-template-columns: 86px minmax(0, 1fr);
        padding-inline: 10px;
    }
}
