/* UPDATE271_PUBLIC_TOUR_COMPOSER_TEXT_BRIDGE_20260812 */
/* UPDATE272_PUBLIC_TOUR_COMPOSER_COLORS_20260812 */
/* UPDATE274_PUBLIC_TOUR_COMPOSER_FIRST_BLUE_MAP_20260812 */
/* UPDATE276_PUBLIC_TOUR_COMPOSER_SELECT_AND_GREEN_MAP_20260812 */
/* UPDATE278_PUBLIC_TOUR_COMPOSER_ENDPOINTS_AND_GRAPHHOPPER_20260812 */
/* UPDATE280_PUBLIC_TOUR_COMPOSER_INDIVIDUAL_LENGTHS_20260812 */
/* UPDATE284_TEMP_TOUR_DETAIL_QR_NAVIGATION_20260812 */
/* UPDATE297_PLACES_ON_BOTH_TOUR_COMPOSER_MAPS_20260813 */
.rt271-page {
    color: #1f2f1f;
    background: linear-gradient(180deg, #dfeedd 0%, #edf6e9 52%, #f8fcf6 100%);
    padding: 34px 18px 58px;
}

.rt271-page * {
    box-sizing: border-box;
}

.rt297-place-popup {
    min-width: 150px;
    max-width: 250px;
    color: #173d24;
    font: 700 15px/1.4 Arial, sans-serif;
}

.rt297-place-popup a {
    display: block;
    color: #075f2d;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.rt297-place-popup a:hover,
.rt297-place-popup a:focus-visible {
    color: #003f1d;
    outline: 2px solid #237a3e;
    outline-offset: 3px;
}

.rt271-shell {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.rt271-hero {
    padding: clamp(25px, 4vw, 46px);
    border: 1px solid #b8d9b8;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(26, 72, 29, 0.09);
}

.rt271-page-title h1,
.rt271-page-title h2,
.rt271-page-title h3,
.rt271-page-title h4,
.rt271-page-title h5,
.rt271-page-title h6,
.rt271-page-title p {
    margin: 0;
    color: #214f27;
    font-size: clamp(2rem, 5vw, 3.45rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.rt271-intro {
    max-width: 760px;
    margin-top: 18px;
    color: #425b44;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.65;
}

.rt271-intro > :first-child,
.rt271-step-title > :first-child,
.rt271-step-text > :first-child,
.rt271-anywhere-title > :first-child,
.rt271-anywhere-text > :first-child,
.rt271-notice-text > :first-child {
    margin-top: 0;
}

.rt271-intro > :last-child,
.rt271-step-title > :last-child,
.rt271-step-text > :last-child,
.rt271-anywhere-title > :last-child,
.rt271-anywhere-text > :last-child,
.rt271-notice-text > :last-child {
    margin-bottom: 0;
}

.rt271-page ul,
.rt271-page ol {
    padding-left: 1.35em;
}

.rt271-page li + li {
    margin-top: 0.35em;
}

.rt271-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.rt271-step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    min-height: 190px;
    padding: 24px;
    border: 1px solid #cce4cc;
    border-radius: 20px;
    background: #ffffff;
}

.rt271-step:nth-child(1) {
    border-color: #b9d8ee;
    background: #edf7ff;
}

.rt271-step:nth-child(2) {
    border-color: #bddfc4;
    background: #edf8ef;
}

.rt271-step:nth-child(3) {
    border-color: #ecc2c2;
    background: #fff0f0;
}

.rt271-step-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2f7a39;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
}

.rt271-step-title h1,
.rt271-step-title h2,
.rt271-step-title h3,
.rt271-step-title h4,
.rt271-step-title h5,
.rt271-step-title h6,
.rt271-step-title p {
    margin: 2px 0 10px;
    color: #24552b;
    font-size: clamp(1.2rem, 2.2vw, 1.48rem);
    line-height: 1.25;
}

.rt271-step-text,
.rt271-anywhere-text,
.rt271-notice-text {
    color: #435845;
    font-size: 1rem;
    line-height: 1.62;
}

.rt271-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 18px;
    margin-top: 22px;
}

.rt271-anywhere,
.rt271-notice {
    padding: 25px;
    border-radius: 20px;
}

.rt271-anywhere {
    border: 1px solid #b9dcb9;
    background: #eaf6ea;
}

.rt271-anywhere-title h1,
.rt271-anywhere-title h2,
.rt271-anywhere-title h3,
.rt271-anywhere-title h4,
.rt271-anywhere-title h5,
.rt271-anywhere-title h6,
.rt271-anywhere-title p {
    margin: 0 0 10px;
    color: #225329;
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    line-height: 1.25;
}

.rt271-notice {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 14px;
    border: 1px solid #e4b7b7;
    background: #fff4f4;
}

.rt271-notice-mark {
    width: 12px;
    min-height: 100%;
    border-radius: 999px;
    background: #c54444;
}

.rt271-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #d4e6d4;
    border-radius: 18px;
    background: #f8fbf8;
}

.rt271-actions button {
    min-height: 46px;
    padding: 11px 19px;
    border: 1px solid #90ad93;
    border-radius: 999px;
    background: #edf3ed;
    color: #586a59;
    font: inherit;
    font-weight: 700;
    cursor: not-allowed;
    opacity: 1;
}

.rt271-actions button:not(:disabled) {
    border-color: #477f51;
    background: #e8f3e9;
    color: #285d32;
    cursor: pointer;
}

.rt271-actions button:not(:disabled):hover,
.rt271-actions button:not(:disabled):focus-visible {
    border-color: #27633a;
    background: #dcecdf;
}

.rt284-action-status {
    flex: 1 0 100%;
    padding: 10px 12px;
    border: 1px solid #b9d8ee;
    border-radius: 11px;
    background: #edf7ff;
    color: #174f77;
    font-weight: 700;
}

.rt284-action-status[data-state="error"] {
    border-color: #e4b7b7;
    background: #fff0f0;
    color: #7a2424;
}

.rt284-action-status[hidden] {
    display: none;
}

.rt274-map-section {
    margin-top: 22px;
    padding: 10px;
    border: 1px solid #b9d8ee;
    border-radius: 20px;
    background: #edf7ff;
    box-shadow: 0 12px 30px rgba(25, 93, 151, 0.09);
    overflow: hidden;
}

.rt274-map {
    width: 100%;
    height: clamp(440px, 55vw, 640px);
    min-height: 420px;
    border-color: #a8cce8;
    border-radius: 14px;
    background: #dcecf6;
}

.rt274-map[data-map-state="error"] {
    background: #fff4f4;
    border-color: #e4b7b7;
}

.rt276-selected-map-section {
    border-color: #bddfc4;
    background: #edf8ef;
    box-shadow: 0 12px 30px rgba(42, 116, 58, 0.09);
}

.rt276-selected-map {
    border-color: #acd4b4;
    background: #e4f1e6;
}

.rt276-selected-map[data-map-state="error"] {
    background: #fff4f4;
    border-color: #e4b7b7;
}

.rt278-connection-status {
    margin: 10px 2px 2px;
    padding: 11px 14px;
    border: 1px solid #e1c56b;
    border-radius: 12px;
    background: #fff8d9;
    color: #513f05;
    font-weight: 700;
    line-height: 1.4;
}

.rt278-connection-status[data-connection-state="loading"] {
    border-color: #b9d8ee;
    background: #edf7ff;
    color: #174f77;
}

.rt278-connection-status[data-connection-state="error"] {
    border-color: #e4b7b7;
    background: #fff0f0;
    color: #7a2424;
}

.rt278-connection-status[hidden] {
    display: none;
}

.rt280-length-overview {
    margin: 12px 2px 2px;
    padding: 15px;
    border: 1px solid #b7d9bd;
    border-radius: 14px;
    background: #ffffff;
    color: #203c26;
}

.rt280-length-overview[hidden] {
    display: none;
}

.rt280-length-overview h2 {
    margin: 0 0 10px;
    color: #245f31;
    font-size: 1.08rem;
    line-height: 1.35;
}

.rt280-length-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rt280-connector-lengths:not(:empty) {
    margin-top: 8px;
}

.rt280-length-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 9px 11px;
    border-left: 4px solid #1876d2;
    border-radius: 9px;
    background: #edf6ff;
    line-height: 1.4;
}

.rt280-length-item.rt280-connector-length-item {
    border-left-color: #d52d2d;
    background: #fff1f1;
}

.rt280-length-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.rt280-length-value {
    white-space: nowrap;
    font-weight: 800;
    color: #155a9e;
}

.rt280-connector-length-item .rt280-length-value {
    color: #9f2424;
}

.rt310-waypoint-controls {
    margin: 14px 2px 2px;
    padding: 16px;
    border: 1px solid #b7d9bd;
    border-radius: 14px;
    background: #f8fcf8;
    color: #203c26;
}

.rt310-waypoint-controls h2 {
    margin: 0 0 6px;
    color: #245f31;
    font-size: 1.1rem;
}

.rt310-waypoint-controls > p {
    margin: 0 0 12px;
    line-height: 1.45;
}

.rt310-route-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 0 0 14px;
    font-weight: 700;
}

.rt310-legend-item::before {
    display: inline-block;
    width: 28px;
    height: 5px;
    margin-right: 8px;
    border-radius: 4px;
    vertical-align: middle;
    content: '';
}

.rt310-legend-verified::before {
    background: #1876d2;
}

.rt310-legend-calculated::before {
    background: #d52d2d;
}

.rt310-waypoint-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rt310-waypoint-actions button,
.rt310-waypoint-item-actions button {
    min-height: 42px;
    border: 1px solid #18743a;
    border-radius: 10px;
    background: #fff;
    color: #165c2c;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.rt310-waypoint-actions button {
    padding: 9px 15px;
}

.rt310-waypoint-actions button[aria-pressed="true"],
.rt310-waypoint-actions button:last-child {
    background: #147a38;
    color: #fff;
}

.rt310-waypoint-actions button:disabled,
.rt310-waypoint-item-actions button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.rt310-waypoint-list {
    display: grid;
    gap: 9px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.rt310-waypoint-list[hidden] {
    display: none;
}

.rt310-waypoint-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
}

.rt310-waypoint-number,
.rt310-waypoint-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #d52d2d;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .35);
}

.rt310-waypoint-marker {
    padding: 0;
    cursor: pointer;
}

.rt310-waypoint-item input {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #93bf9b;
    border-radius: 9px;
    font: inherit;
}

.rt310-waypoint-item-actions {
    display: flex;
    gap: 5px;
}

.rt310-waypoint-item-actions button {
    width: 42px;
    padding: 4px;
    font-size: 1.25rem;
}

.rt310-length-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 0;
}

.rt310-length-summary > div {
    padding: 10px;
    border-radius: 9px;
    background: #f1f5f1;
}

.rt310-length-summary dt {
    font-size: .88rem;
}

.rt310-length-summary dd {
    margin: 3px 0 0;
    font-weight: 900;
}

.rt310-length-summary .rt310-length-total {
    background: #e3f4e6;
}

.rt276-selected-map-section[data-waypoint-mode="active"] .maplibregl-canvas {
    cursor: crosshair !important;
}

@media (max-width: 820px) {
    .rt271-page {
        padding: 20px 12px 40px;
    }

    .rt271-hero {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .rt271-steps,
    .rt271-lower-grid {
        grid-template-columns: 1fr;
    }

    .rt271-step {
        min-height: 0;
        padding: 20px;
    }

    .rt271-actions {
        padding: 16px;
    }

    .rt271-actions button {
        width: 100%;
    }

    .rt310-waypoint-actions button {
        flex: 1 1 220px;
    }

    .rt310-length-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .rt271-step {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
        padding: 17px;
    }

    .rt271-step-number {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .rt271-anywhere,
    .rt271-notice {
        padding: 20px;
    }

    .rt310-waypoint-item {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .rt310-waypoint-item-actions {
        grid-column: 2;
        justify-content: flex-end;
    }
}


@media (max-width: 820px) {
    .rt274-map-section {
        padding: 8px;
        border-radius: 18px;
    }

    .rt274-map {
        height: 58vh;
        min-height: 360px;
        max-height: 560px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .rt274-map {
        height: 55vh;
        min-height: 340px;
    }
}

/* UPDATE311_PUBLIC_SHORTCUT_EDITOR_AND_FINISH_CONFIRMATION_20260904 */
.rt312-shortcut-changes {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #c8dec9;
}
.rt312-shortcut-changes[hidden] { display: none; }
.rt312-shortcut-changes h3 {
    margin: 0 0 10px;
    color: #245f31;
    font-size: 1rem;
}
.rt312-shortcut-changes ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.rt312-shortcut-item {
    display: grid;
    grid-template-columns: minmax(170px, .8fr) minmax(320px, 1.7fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #efc15f;
    border-radius: 12px;
    background: #fff9ea;
}
.rt312-shortcut-item > strong { color: #6c4700; }
.rt312-shortcut-item dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}
.rt312-shortcut-item dl > div {
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
}
.rt312-shortcut-item dt { color: #526159; font-size: .82rem; }
.rt312-shortcut-item dd { margin: 2px 0 0; color: #163e24; font-weight: 800; }
.rt312-shortcut-remove {
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid #a33434;
    border-radius: 10px;
    background: #fff;
    color: #8f2323;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.rt312-shortcut-remove:hover,
.rt312-shortcut-remove:focus-visible {
    border-color: #7c1717;
    background: #fff1ef;
}
.rt311-shortcut-preview {
    margin-top: 16px;
    padding: 16px;
    border: 2px solid #d99b2b;
    border-radius: 14px;
    background: #fff9ea;
}
.rt311-shortcut-preview[hidden] { display: none; }
.rt311-shortcut-preview h3 { margin: 0 0 10px; color: #6c4700; }
.rt311-shortcut-preview dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}
.rt311-shortcut-preview dl > div { padding: 10px 12px; border-radius: 10px; background: #fff; }
.rt311-shortcut-preview dt { color: #526159; font-size: .9rem; }
.rt311-shortcut-preview dd { margin: 4px 0 0; color: #163e24; font-weight: 800; }
.rt311-shortcut-preview-actions,
.rt311-finish-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.rt311-shortcut-preview button,
.rt311-finish-dialog button {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #21723a;
    border-radius: 999px;
    background: #21723a;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.rt311-shortcut-preview button.rt311-secondary,
.rt311-finish-dialog button.rt311-secondary { background: #fff; color: #245f31; }
.rt311-finish-dialog {
    width: min(94vw, 620px);
    padding: 0;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 22px 70px rgba(8, 42, 20, .35);
}
.rt311-finish-dialog::backdrop { background: rgba(4, 24, 12, .58); }
.rt311-finish-dialog form { padding: 24px; }
.rt311-finish-dialog h2 {
    margin: 0 0 18px;
    color: #194b29;
    font-size: clamp(1.35rem, 4vw, 1.9rem);
}
.rt311-finish-dialog label { display: block; margin-bottom: 7px; color: #284c32; font-weight: 700; }
.rt311-finish-dialog select {
    width: 100%;
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid #9cc8a6;
    border-radius: 9px;
    background: #fff;
    color: #173f25;
    font: inherit;
}
.rt276-selected-map-section[data-shortcut-mode="active"] .maplibregl-canvas { cursor: crosshair !important; }

@media (max-width: 820px) {
    .rt312-shortcut-item { grid-template-columns: 1fr; }
    .rt312-shortcut-item dl { grid-template-columns: 1fr; }
    .rt312-shortcut-remove { width: 100%; }
    .rt311-shortcut-preview dl { grid-template-columns: 1fr; }
    .rt311-shortcut-preview-actions,
    .rt311-finish-actions { display: grid; }
    .rt311-shortcut-preview button,
    .rt311-finish-dialog button { width: 100%; }
}
