.studio-route-print {
    width: min(900px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 1px solid #ddd3e5;
    border-radius: 12px;
    background: #fffdf9;
    color: #211c28;
}
.studio-route-print::backdrop {
    background: #18121d99;
}
.route-print-toolbar {
    position: sticky;
    top: 0;
    z-index: 1001;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    background: #f1ebf7;
}
.route-print-toolbar button {
    min-height: 44px;
    cursor: pointer;
}
.route-print-content {
    padding: 24px;
    font: 15px/1.5 var(--sans, sans-serif);
}
.route-print-brand {
    color: #54329a;
    letter-spacing: 0.1em;
}
.route-print-content h1 {
    font-size: 36px;
    margin: 0 0 12px;
}
.route-print-content h2 {
    font-size: 20px;
    margin: 20px 0 8px;
}
.route-print-map {
    height: 360px;
    width: 100%;
    margin: 0 auto;
    background: #f4f1ec;
    border: 1px solid #b8a8c7;
    box-sizing: border-box;
}
.route-print-marker {
    border: 2px solid #54329a;
    border-radius: 50%;
    background: #fff;
    color: #211c28;
    text-align: center;
    font: bold 15px/24px sans-serif;
    box-sizing: border-box;
}
.route-print-note,
.route-print-credit {
    font-size: 12px;
    line-height: 1.5;
}
.route-print-credit {
    color: #555;
}
.route-print-stops {
    list-style: none;
    padding: 0;
}
.route-print-stops li {
    border-top: 1px solid #ddd3e5;
    padding: 4px 0 12px;
    break-inside: avoid;
}
.route-print-stops p {
    margin: 4px 0;
}
.route-print-address {
    font-weight: 600;
}
.route-print-mobile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    border-top: 1px solid #ddd3e5;
    margin-top: 20px;
    padding-top: 16px;
    break-inside: avoid;
}
.route-print-mobile > div {
    flex: 1 1 180px;
    min-width: 0;
}
.route-print-mobile h2 {
    margin-top: 0;
}
.route-print-qr {
    display: block;
    flex: 0 0 auto;
    background: #fff;
    max-width: none;
    image-rendering: pixelated;
}
.route-print-mobile-link {
    overflow-wrap: anywhere;
    color: #54329a;
    text-decoration: underline;
}
.route-print-local-note {
    font-size: 12px;
    line-height: 1.4;
    color: #6d3c14;
}
@page {
    size: A4;
    margin: 14mm;
}
@media print {
    html,
    body {
        height: auto !important;
        overflow: visible !important;
        background: #fff !important;
    }
    body:has(.studio-route-print) > :not(.studio-route-print) {
        display: none !important;
    }
    .studio-route-print[open] {
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 !important;
        border: 0;
        border-radius: 0;
        padding: 0;
        background: #fff;
    }
    .studio-route-print::backdrop,
    .route-print-toolbar {
        display: none !important;
    }
    .route-print-content {
        padding: 0;
        font: 10pt/1.4 sans-serif;
    }
    .route-print-content h1 {
        font-size: 24pt;
    }
    .route-print-content h2 {
        font-size: 13pt;
    }
    .route-print-map {
        height: 360px;
        break-inside: avoid;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .route-print-credit,
    .route-print-note {
        font-size: 8pt;
    }
    .route-print-stops li {
        break-inside: avoid;
    }
    .route-print-map *,
    .route-print-marker,
    .route-print-qr {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
