.couple-space-roadtrip-overlay {
    position: absolute;
    inset: 0;
    z-index: 100230;
    border-radius: inherit;
    background: linear-gradient(180deg, #fff8fb 0%, #fdf2f5 48%, #fffdfc 100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.couple-space-roadtrip-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.couple-space-roadtrip-shell {
    position: relative;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px calc(12px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    color: #6a4c56;
    overflow: hidden;
}

body.roadtrip-restaurant-extras-active .travel-extras-modal {
    z-index: 100330;
}

body.roadtrip-restaurant-extras-active .travel-extras-mini-map {
    z-index: 100340;
}

body.roadtrip-restaurant-extras-active .travel-extras-restaurant-menu-sheet {
    z-index: 100350;
}

body.roadtrip-restaurant-extras-active .travel-extras-menu-sheet-collapsed-tab {
    z-index: 100351;
}

body.roadtrip-restaurant-extras-active .travel-extras-restaurant-menu-sheet:not(.is-collapsed):not(.is-roadtrip-dragged) {
    left: calc(var(--roadtrip-extras-left, 0px) + 14px) !important;
    right: auto !important;
    width: min(380px, calc(var(--roadtrip-extras-width, 100vw) - 28px)) !important;
    max-width: calc(var(--roadtrip-extras-width, 100vw) - 28px) !important;
}

body.roadtrip-restaurant-extras-active .travel-extras-restaurant-menu-sheet.is-roadtrip-dragging {
    cursor: grabbing;
    opacity: 0.94;
    user-select: none;
    touch-action: none;
}

body.roadtrip-restaurant-extras-active .travel-extras-restaurant-menu-sheet.is-collapsed .travel-extras-menu-sheet-collapsed-tab {
    left: var(--roadtrip-extras-left, 0px) !important;
    top: calc(var(--roadtrip-extras-top, 0px) + var(--roadtrip-extras-height, 100vh) * 0.5) !important;
}

.roadtrip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    position: relative;
    z-index: 30;
    overflow: visible;
}

.couple-space-roadtrip-overlay.is-recorder-view .roadtrip-header {
    display: none;
}

.couple-space-roadtrip-overlay.is-summary-modal-open .roadtrip-header {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.roadtrip-back {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 22px rgba(212, 153, 173, 0.16);
    color: #6a4c56;
    font-size: 24px;
    line-height: 1;
}

.roadtrip-title-wrap {
    flex: 1;
    min-width: 0;
}

.roadtrip-date-avatar-pair {
    display: none;
    position: relative;
    z-index: 40;
    flex: 0 0 auto;
    width: 116px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
}

.couple-space-roadtrip-overlay.is-date-view .roadtrip-date-avatar-pair {
    display: inline-flex;
}

.roadtrip-date-avatar {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 240, 245, 0.96);
    color: #b96d86;
    box-shadow: 0 10px 20px rgba(212, 153, 173, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    padding: 0;
    box-sizing: border-box;
}

.roadtrip-date-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.roadtrip-date-avatar-char {
    border-color: rgba(239, 164, 185, 0.78);
    cursor: pointer;
    z-index: 2;
}

.roadtrip-date-avatar-user {
    margin-left: -8px;
    border-color: rgba(180, 217, 209, 0.84);
    z-index: 1;
}

.roadtrip-date-avatar-infinity {
    position: relative;
    z-index: 3;
    margin: 0 -2px;
    padding: 0 3px;
    color: #cc7892;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.9);
}

.roadtrip-char-mood-popup {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 100520;
    width: min(260px, calc(100vw - 48px));
    max-height: min(48vh, 360px);
    overflow-y: auto;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(236, 181, 201, 0.58);
    background: rgba(255, 251, 253, 0.96);
    box-shadow: 0 18px 42px rgba(154, 119, 132, 0.24);
    color: #6f4e5b;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px) scale(0.98);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.roadtrip-char-mood-popup::-webkit-scrollbar {
    display: none;
}

.roadtrip-char-mood-popup.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.roadtrip-char-mood-section + .roadtrip-char-mood-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(218, 156, 178, 0.34);
}

.roadtrip-char-mood-label {
    margin-bottom: 5px;
    color: #c66f8b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: center;
}

.roadtrip-char-mood-env-text,
.roadtrip-char-mood-emotion-text,
.roadtrip-char-mood-loading {
    font-size: 12.5px;
    line-height: 1.65;
    color: #765361;
    white-space: pre-wrap;
}

.roadtrip-title {
    font-size: 17px;
    font-weight: 900;
    color: #6f4e5b;
}

.couple-space-roadtrip-overlay.is-date-view .roadtrip-title-wrap {
    padding: 4px 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.36);
    box-shadow: 0 8px 20px rgba(212, 153, 173, 0.12);
}

.couple-space-roadtrip-overlay.is-date-view .roadtrip-title {
    font-size: 15px;
    letter-spacing: 0.02em;
}

.roadtrip-subtitle {
    margin-top: 2px;
    font-size: 11px;
    color: #a48690;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.couple-space-roadtrip-overlay.is-date-view .roadtrip-subtitle {
    font-size: 10.5px;
    color: #9b7181;
}

.roadtrip-recorder-btn {
    flex: 0 0 auto;
    height: 32px;
    border: none;
    border-radius: 999px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 18px rgba(212, 153, 173, 0.12);
    color: #8a6875;
    font-size: 12px;
    font-weight: 800;
}

.roadtrip-view {
    display: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.roadtrip-view::-webkit-scrollbar,
.roadtrip-chat::-webkit-scrollbar,
.roadtrip-tools::-webkit-scrollbar,
.roadtrip-route-list::-webkit-scrollbar,
.roadtrip-fuel-card-list::-webkit-scrollbar,
.roadtrip-panel-modal::-webkit-scrollbar,
.roadtrip-settings-panel::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.roadtrip-view.is-active {
    display: flex;
    flex-direction: column;
}

.roadtrip-panel,
.roadtrip-recorder-head,
.roadtrip-replay-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 0 22px;
    box-sizing: border-box;
}

.roadtrip-view-recorder {
    padding-top: 0;
}

.roadtrip-view-recorder .roadtrip-recorder-head {
    position: relative;
    margin-top: 0;
    padding-top: 32px;
    align-items: center;
    text-align: center;
}

.roadtrip-recorder-back {
    position: absolute;
    left: 18px;
    top: 18px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 22px rgba(212, 153, 173, 0.16);
    color: #6a4c56;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.roadtrip-view-recorder .roadtrip-kicker {
    align-self: center;
}

.roadtrip-panel-head,
.roadtrip-recorder-head,
.roadtrip-replay-card {
    padding: 18px;
    border: 1px solid rgba(236, 181, 201, 0.58);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 14px 30px rgba(222, 129, 153, 0.13);
}

.roadtrip-kicker {
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #c66f8b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(222, 129, 153, 0.12);
}

.roadtrip-panel-head h2,
.roadtrip-recorder-head h2,
.roadtrip-replay-card h2 {
    margin: 10px 0 4px;
    color: #6f4e5b;
    font-size: 22px;
}

.roadtrip-panel-head p,
.roadtrip-recorder-head p,
.roadtrip-replay-card p {
    margin: 0;
    color: #9a7c85;
    font-size: 13px;
    line-height: 1.6;
}

.roadtrip-form {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 30px rgba(222, 129, 153, 0.12);
}

.roadtrip-field {
    display: grid;
    gap: 6px;
    color: #8a6875;
    font-size: 12px;
    font-weight: 900;
}

.roadtrip-input {
    width: 100%;
    height: 42px;
    border: 1px solid rgba(227, 182, 197, 0.72);
    border-radius: 14px;
    box-sizing: border-box;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #6a4c56;
    font-size: 14px;
    -webkit-appearance: none;
    appearance: none;
}

.roadtrip-input:focus,
.roadtrip-chat-input:focus {
    outline: none;
    border-color: #de8199;
    box-shadow: 0 0 0 3px rgba(222, 129, 153, 0.12);
}

.roadtrip-search-btn,
.roadtrip-route-pick,
.roadtrip-composer-side,
.roadtrip-tools button {
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #ee9db0 0%, #da7e96 100%);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(222, 129, 153, 0.22);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.roadtrip-search-btn {
    height: 44px;
    margin-top: 4px;
    font-size: 14px;
}

.roadtrip-search-btn:disabled,
.roadtrip-input:disabled,
.roadtrip-composer-side:disabled {
    opacity: 0.68;
}

.roadtrip-status,
.roadtrip-empty,
.roadtrip-loading {
    color: #9a7c85;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.roadtrip-route-list,
.roadtrip-fuel-card-list {
    display: grid;
    gap: 12px;
}

.roadtrip-route {
    padding: 14px;
    border: 1px solid rgba(236, 181, 201, 0.6);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 24px rgba(222, 129, 153, 0.12);
}

.roadtrip-route-top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
}

.roadtrip-route-index {
    color: #c66f8b;
    font-size: 11px;
    font-weight: 900;
}

.roadtrip-route h3 {
    margin: 4px 0 0;
    color: #6f4e5b;
    font-size: 16px;
}

.roadtrip-route-pick {
    flex: 0 0 auto;
    min-width: 76px;
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.roadtrip-route-meta,
.roadtrip-route-waypoints,
.roadtrip-route-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.roadtrip-route-meta span,
.roadtrip-route-waypoints span,
.roadtrip-route-tips em {
    border-radius: 999px;
    background: rgba(248, 224, 234, 0.78);
    color: #8a6875;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.roadtrip-route-meta span,
.roadtrip-route-waypoints span,
.roadtrip-route-tips em {
    padding: 4px 8px;
}

.roadtrip-route p {
    margin: 10px 0 0;
    color: #806570;
    font-size: 13px;
    line-height: 1.65;
}

.roadtrip-date-card {
    position: relative;
    flex: 0 0 auto;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(236, 181, 201, 0.58);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(239, 247, 252, 0.82));
    box-shadow: 0 14px 28px rgba(154, 119, 132, 0.12);
    overflow: hidden;
}

.roadtrip-date-card-main {
    position: relative;
    z-index: 2;
    padding-right: 92px;
}

.roadtrip-date-chip {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #c66f8b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.roadtrip-date-title {
    margin-top: 8px;
    color: #6f4e5b;
    font-size: 17px;
    font-weight: 900;
}

.roadtrip-date-meta,
.roadtrip-date-weather {
    margin-top: 4px;
    color: #8a6875;
    font-size: 12px;
    line-height: 1.45;
}

.roadtrip-date-car {
    position: absolute;
    right: 16px;
    bottom: 22px;
    width: 88px;
    height: 30px;
    border-radius: 14px 24px 8px 8px;
    background: linear-gradient(180deg, #d88ca0, #bcded1);
    box-shadow: inset 0 -6px 0 rgba(105, 76, 86, 0.12);
}

.roadtrip-date-car::before {
    content: "";
    position: absolute;
    left: 18px;
    top: -13px;
    width: 42px;
    height: 20px;
    border-radius: 18px 18px 5px 5px;
    background: rgba(255, 255, 255, 0.78);
    clip-path: polygon(12% 100%, 30% 0, 78% 0, 100% 100%);
}

.roadtrip-date-car::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -7px;
    height: 14px;
    background:
        radial-gradient(circle at 10px 7px, #4f4f55 0 6px, #fdf4f7 7px 9px, transparent 10px),
        radial-gradient(circle at calc(100% - 10px) 7px, #4f4f55 0 6px, #fdf4f7 7px 9px, transparent 10px);
}

.roadtrip-chat {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 2px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.roadtrip-message {
    display: flex;
}

.roadtrip-message.is-user {
    justify-content: flex-end;
}

.roadtrip-message.is-tip,
.roadtrip-message.is-narration {
    justify-content: center;
}

.roadtrip-bubble {
    max-width: 82%;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    color: #6f4e5b;
    font-size: 14px;
    line-height: 1.65;
    box-shadow: 0 8px 18px rgba(212, 153, 173, 0.12);
    white-space: pre-wrap;
    word-break: break-word;
}

.roadtrip-message.is-user .roadtrip-bubble {
    background: linear-gradient(180deg, #ee9db0, #da7e96);
    color: #fff;
}

.roadtrip-message.is-narration .roadtrip-bubble,
.roadtrip-message.is-tip .roadtrip-bubble {
    max-width: 92%;
    background: rgba(255, 255, 255, 0.62);
    color: #8a6875;
    font-size: 13px;
}

.roadtrip-tools {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    touch-action: pan-x;
}

.roadtrip-tools button {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.88);
    color: #9a6074;
    box-shadow: 0 8px 16px rgba(222, 129, 153, 0.13);
    user-select: none;
}

.roadtrip-composer {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 8px;
    align-items: end;
    padding-top: 4px;
}

.roadtrip-composer-side {
    height: 38px;
    font-size: 13px;
}

.roadtrip-chat-input {
    width: 100%;
    min-height: 38px;
    max-height: 120px;
    resize: none;
    border: 1px solid rgba(227, 182, 197, 0.72);
    border-radius: 16px;
    box-sizing: border-box;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #6a4c56;
    font-size: 14px;
    line-height: 1.45;
}

.roadtrip-fuel-card {
    position: relative;
    min-height: 152px;
    border: none;
    border-radius: 22px;
    overflow: hidden;
    padding: 16px;
    text-align: left;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.88) 0 12%, transparent 13%),
        linear-gradient(135deg, #f9f2f5 0%, #f1d9e3 42%, #d9e9f7 100%);
    box-shadow: 0 16px 34px rgba(126, 126, 145, 0.16);
    color: #5d5968;
}

.roadtrip-fuel-card::before {
    content: "";
    position: absolute;
    right: -36px;
    top: -28px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
}

.roadtrip-fuel-brand {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #6e7e99;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.roadtrip-fuel-title {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    color: #424956;
    font-size: 22px;
    font-weight: 950;
}

.roadtrip-fuel-meta,
.roadtrip-fuel-route {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    color: #7a7280;
    font-size: 12px;
    line-height: 1.45;
}

.roadtrip-fuel-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28px;
    background: linear-gradient(90deg, rgba(220, 112, 142, 0.72), rgba(157, 190, 225, 0.72));
}

.roadtrip-modal {
    position: absolute;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 14px;
    box-sizing: border-box;
    background: rgba(85, 62, 72, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.roadtrip-modal.show {
    display: flex;
}

.roadtrip-sheet,
.roadtrip-panel-modal,
.roadtrip-settings-panel {
    width: 100%;
    max-height: calc(100% - 18px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border: 1px solid rgba(236, 181, 201, 0.58);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 48px rgba(154, 119, 132, 0.22);
    box-sizing: border-box;
}

.couple-space-roadtrip-shell .travel-offline-settings-panel {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.couple-space-roadtrip-shell .travel-offline-settings-panel::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.couple-space-roadtrip-shell .travel-offline-settings-field--preset,
.couple-space-roadtrip-shell .travel-offline-settings-field--beautify {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 14px;
    row-gap: 6px;
}

.couple-space-roadtrip-shell .travel-offline-settings-field--preset > span,
.couple-space-roadtrip-shell .travel-offline-settings-field--beautify > span {
    padding-top: 10px;
    white-space: nowrap;
}

.couple-space-roadtrip-shell .travel-offline-preset-row,
.couple-space-roadtrip-shell .travel-offline-beautify-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    min-width: 0;
}

.couple-space-roadtrip-shell .travel-offline-preset-entry-hint,
.couple-space-roadtrip-shell .travel-offline-beautify-hint {
    flex: 1 1 100%;
}

.couple-space-roadtrip-shell .travel-offline-settings-actions {
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.couple-space-roadtrip-shell .travel-offline-settings-actions .travel-offline-settings-btn {
    flex: 0 0 auto;
    min-width: 112px;
}

.couple-space-roadtrip-overlay .offline-travel-long-memory-modal {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2147483000 !important;
    background: #fff !important;
    border-radius: inherit !important;
    overflow: hidden !important;
}

.couple-space-roadtrip-overlay .offline-travel-long-memory-modal.show {
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    pointer-events: auto !important;
}

.couple-space-roadtrip-overlay .offline-travel-long-memory-modal .chat-long-memory-content {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    background: #fff !important;
}

.couple-space-roadtrip-overlay .offline-travel-long-memory-edit-modal {
    z-index: 2147483001 !important;
}

.roadtrip-sheet {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.roadtrip-sheet-title {
    color: #6f4e5b;
    font-size: 17px;
    font-weight: 900;
    text-align: center;
}

.roadtrip-sheet-btn,
.roadtrip-settings-actions button,
.roadtrip-preset-row button,
.roadtrip-chip-row button,
.roadtrip-modal-add {
    min-height: 38px;
    border: none;
    border-radius: 999px;
    padding: 0 14px;
    background: linear-gradient(180deg, #ee9db0 0%, #da7e96 100%);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(222, 129, 153, 0.18);
}

.roadtrip-sheet-btn.is-ghost,
.roadtrip-settings-actions button.is-ghost {
    background: rgba(248, 224, 234, 0.86);
    color: #9a6074;
}

.roadtrip-panel-modal,
.roadtrip-settings-panel {
    padding: 14px;
}

.roadtrip-modal-head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.roadtrip-modal-head button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: rgba(248, 224, 234, 0.78);
    color: #8a6875;
    font-size: 22px;
    font-weight: 900;
}

.roadtrip-modal-head h3 {
    margin: 0;
    color: #6f4e5b;
    font-size: 17px;
    text-align: center;
}

.roadtrip-restaurant-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px;
    gap: 8px;
}

.roadtrip-chip-row,
.roadtrip-restaurant-list,
.roadtrip-place-list,
.roadtrip-preset-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.roadtrip-chip-row {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.roadtrip-chip-row::-webkit-scrollbar {
    display: none;
}

.roadtrip-chip-row button {
    flex: 0 0 auto;
    min-height: 30px;
    background: rgba(248, 224, 234, 0.88);
    color: #9a6074;
    box-shadow: none;
}

.roadtrip-restaurant-card,
.roadtrip-place-card,
.roadtrip-preset-item,
.roadtrip-summary-card {
    display: block;
    width: 100%;
    border: 1px solid rgba(236, 181, 201, 0.58);
    border-radius: 20px;
    padding: 12px;
    box-sizing: border-box;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 252, 0.78));
    color: #6f4e5b;
    text-align: left;
}

.roadtrip-summary-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.roadtrip-summary-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    color: #9a7c85;
    font-size: 11px;
    font-weight: 900;
}

.roadtrip-summary-card-head div {
    display: flex;
    gap: 6px;
}

.roadtrip-summary-card-head button {
    border: none;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(248, 224, 234, 0.9);
    color: #9a6074;
    font-size: 11px;
    font-weight: 900;
}

.roadtrip-restaurant-card h4,
.roadtrip-place-card h4,
.roadtrip-preset-item h4 {
    margin: 0 0 6px;
    color: #6f4e5b;
    font-size: 15px;
}

.roadtrip-restaurant-card p,
.roadtrip-place-card p,
.roadtrip-preset-item p,
.roadtrip-summary-card p {
    margin: 4px 0 0;
    color: #8a6875;
    font-size: 12px;
    line-height: 1.5;
}

.roadtrip-settings-field {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    color: #8a6875;
    font-size: 12px;
    font-weight: 900;
}

.roadtrip-settings-field input,
.roadtrip-settings-field textarea {
    width: 100%;
    border: 1px solid rgba(227, 182, 197, 0.72);
    border-radius: 14px;
    box-sizing: border-box;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #6a4c56;
    font-size: 14px;
}

.roadtrip-settings-field input {
    height: 40px;
}

.roadtrip-settings-field textarea {
    resize: vertical;
    min-height: 92px;
}

.roadtrip-preset-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.roadtrip-preset-row small,
.roadtrip-settings-hint {
    color: #9a7c85;
    font-size: 12px;
    line-height: 1.55;
}

.roadtrip-settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.roadtrip-preset-item {
    position: relative;
    padding-right: 88px;
}

.roadtrip-preset-item-actions {
    position: absolute;
    right: 10px;
    top: 10px;
    display: grid;
    gap: 6px;
}

.roadtrip-preset-item-actions button {
    border: none;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(248, 224, 234, 0.9);
    color: #9a6074;
    font-size: 11px;
    font-weight: 900;
}

.roadtrip-preset-item.enabled {
    border-color: rgba(218, 126, 150, 0.8);
}

.roadtrip-photo {
    max-width: 190px;
    max-height: 220px;
    border-radius: 16px;
    display: block;
}

.roadtrip-restaurant-mini-map {
    position: fixed;
    right: 18px;
    bottom: 112px;
    z-index: 100260;
    width: min(260px, calc(100vw - 32px));
    border: 1px solid rgba(236, 181, 201, 0.68);
    border-radius: 22px;
    padding: 12px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(154, 119, 132, 0.22);
    transition: width 0.24s ease, opacity 0.24s ease, transform 0.18s ease;
    user-select: none;
    touch-action: none;
}

.roadtrip-restaurant-mini-map.is-shrunken {
    width: 96px;
    opacity: 0.78;
}

.roadtrip-restaurant-mini-map.is-idle-dim {
    opacity: 0.46;
}

.roadtrip-restaurant-mini-map.is-shrunken .roadtrip-restaurant-mini-name,
.roadtrip-restaurant-mini-map.is-shrunken .roadtrip-restaurant-mini-distance,
.roadtrip-restaurant-mini-map.is-shrunken .roadtrip-restaurant-mini-actions {
    display: none;
}

.roadtrip-restaurant-mini-map.is-shrunken .roadtrip-restaurant-mini-svg {
    width: 100%;
    height: 60px;
}

.roadtrip-restaurant-mini-map.is-dragging {
    cursor: grabbing;
    opacity: 0.92;
}

.roadtrip-restaurant-mini-handle {
    width: 38px;
    height: 6px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: rgba(218, 126, 150, 0.32);
}

.roadtrip-restaurant-mini-name {
    color: #6f4e5b;
    font-size: 14px;
    font-weight: 900;
}

.roadtrip-restaurant-mini-distance {
    margin-top: 4px;
    color: #8a6875;
    font-size: 12px;
}

.roadtrip-restaurant-mini-svg {
    width: 100%;
    height: 118px;
    margin-top: 6px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 248, 251, 0.92), rgba(238, 247, 252, 0.88));
}

.roadtrip-restaurant-mini-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.roadtrip-restaurant-mini-actions button,
.roadtrip-menu-sheet-foot button,
.roadtrip-menu-qty-row button,
.roadtrip-payer-panel button {
    border: none;
    border-radius: 999px;
    min-height: 34px;
    padding: 0 12px;
    background: linear-gradient(180deg, #ee9db0 0%, #da7e96 100%);
    color: #fff;
    font-weight: 900;
}

.roadtrip-restaurant-menu-sheet {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 100270;
    max-height: min(72vh, 560px);
    display: none;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border: 1px solid rgba(236, 181, 201, 0.68);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 56px rgba(120, 88, 101, 0.26);
    overflow: hidden;
}

.roadtrip-restaurant-menu-sheet.show {
    display: grid;
}

.roadtrip-restaurant-menu-sheet.is-collapsed {
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
    overflow: visible;
}

.roadtrip-restaurant-menu-sheet.is-collapsed > :not(.roadtrip-menu-collapsed-tab) {
    display: none;
}

.roadtrip-menu-collapsed-tab {
    display: none;
    position: fixed;
    left: var(--roadtrip-menu-collapsed-left, 0px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 100271;
    width: auto;
    height: auto;
    padding: 14px 6px;
    border: none;
    border-left: none;
    border-radius: 0 14px 14px 0;
    background: linear-gradient(135deg, #ffb1c5 0%, #c44d6a 100%);
    color: #fff;
    writing-mode: vertical-rl;
    letter-spacing: 4px;
    font-weight: 900;
    box-shadow: 2px 4px 12px rgba(140, 70, 100, 0.28);
    transition: opacity 0.24s ease, filter 0.24s ease;
}

.roadtrip-restaurant-menu-sheet.is-collapsed .roadtrip-menu-collapsed-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.roadtrip-restaurant-menu-sheet.is-collapsed.is-idle-dim .roadtrip-menu-collapsed-tab {
    opacity: 0.42;
    filter: blur(0.2px);
}

.roadtrip-menu-sheet-head,
.roadtrip-menu-sheet-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 248, 251, 0.94);
}

.roadtrip-menu-sheet-head h3 {
    margin: 0;
    color: #6f4e5b;
    font-size: 16px;
}

.roadtrip-menu-sheet-head button {
    width: 36px;
    height: 32px;
    border: none;
    border-radius: 12px;
    background: rgba(248, 224, 234, 0.88);
    color: #9a6074;
    font-weight: 900;
}

.roadtrip-menu-sheet-body {
    overflow-y: auto;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.roadtrip-menu-section {
    margin-bottom: 14px;
}

.roadtrip-menu-section h4 {
    margin: 0 0 8px;
    color: #9a6074;
    font-size: 13px;
}

.roadtrip-menu-section ul {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.roadtrip-menu-dish {
    border: 1px solid rgba(236, 181, 201, 0.56);
    border-radius: 18px;
    padding: 10px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 252, 0.8));
}

.roadtrip-menu-dish-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #6f4e5b;
    font-weight: 900;
}

.roadtrip-menu-dish-head em {
    margin-left: 6px;
    color: #d97892;
    font-size: 11px;
    font-style: normal;
}

.roadtrip-menu-dish p {
    margin: 6px 0;
    color: #8a6875;
    font-size: 12px;
    line-height: 1.5;
}

.roadtrip-menu-qty-row {
    display: grid;
    grid-template-columns: 1fr 34px 54px 34px;
    gap: 6px;
    align-items: center;
    color: #9a7c85;
    font-size: 12px;
}

.roadtrip-menu-qty-row input {
    width: 100%;
    height: 34px;
    border: 1px solid rgba(227, 182, 197, 0.72);
    border-radius: 12px;
    text-align: center;
}

.roadtrip-payer-modal {
    position: fixed;
    inset: 0;
    z-index: 100280;
    display: none;
    align-items: flex-end;
    padding: 14px;
    box-sizing: border-box;
    background: rgba(85, 62, 72, 0.18);
}

.roadtrip-payer-modal.show {
    display: flex;
}

.roadtrip-payer-mask {
    position: absolute;
    inset: 0;
}

.roadtrip-payer-panel {
    position: relative;
    width: 100%;
    display: grid;
    gap: 10px;
    border-radius: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 56px rgba(120, 88, 101, 0.26);
}

.roadtrip-payer-panel h3,
.roadtrip-payer-panel p {
    margin: 0;
    color: #6f4e5b;
}

.roadtrip-payer-panel small {
    display: block;
    margin-top: 3px;
    opacity: 0.78;
}

.roadtrip-camera-modal {
    position: fixed;
    inset: 0;
    z-index: 100290;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
    background: rgba(40, 30, 36, 0.72);
}

.roadtrip-camera-modal.show {
    display: flex;
}

.roadtrip-camera-inner {
    width: min(420px, 100%);
    display: grid;
    gap: 12px;
    color: #fff;
    text-align: center;
}

.roadtrip-camera-stage {
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.84);
    border-radius: 32px;
    aspect-ratio: 3 / 4;
    background: #111;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
}

.roadtrip-camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.roadtrip-camera-controls {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 10px;
}

.roadtrip-camera-controls button {
    min-height: 42px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #9a6074;
    font-weight: 900;
}

html[data-appearance="dark"] .couple-space-roadtrip-overlay {
    background: linear-gradient(180deg, #151518 0%, #1f2024 48%, #25262b 100%);
}

html[data-appearance="dark"] .couple-space-roadtrip-shell,
html[data-appearance="dark"] .roadtrip-title,
html[data-appearance="dark"] .roadtrip-panel-head h2,
html[data-appearance="dark"] .roadtrip-recorder-head h2,
html[data-appearance="dark"] .roadtrip-replay-card h2,
html[data-appearance="dark"] .roadtrip-route h3,
html[data-appearance="dark"] .roadtrip-date-title {
    color: #f5f5f7;
}

html[data-appearance="dark"] .roadtrip-panel-head,
html[data-appearance="dark"] .roadtrip-form,
html[data-appearance="dark"] .roadtrip-route,
html[data-appearance="dark"] .roadtrip-date-card,
html[data-appearance="dark"] .roadtrip-bubble,
html[data-appearance="dark"] .roadtrip-recorder-head,
html[data-appearance="dark"] .roadtrip-replay-card,
html[data-appearance="dark"] .roadtrip-sheet,
html[data-appearance="dark"] .roadtrip-panel-modal,
html[data-appearance="dark"] .roadtrip-settings-panel,
html[data-appearance="dark"] .roadtrip-restaurant-card,
html[data-appearance="dark"] .roadtrip-place-card,
html[data-appearance="dark"] .roadtrip-preset-item,
html[data-appearance="dark"] .roadtrip-summary-card {
    background: rgba(44, 44, 46, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-appearance="dark"] .roadtrip-input,
html[data-appearance="dark"] .roadtrip-chat-input,
html[data-appearance="dark"] .roadtrip-settings-field input,
html[data-appearance="dark"] .roadtrip-settings-field textarea {
    background: rgba(30, 30, 32, 0.92);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f5f5f7;
}

html[data-appearance="dark"] .roadtrip-panel-head p,
html[data-appearance="dark"] .roadtrip-recorder-head p,
html[data-appearance="dark"] .roadtrip-replay-card p,
html[data-appearance="dark"] .roadtrip-status,
html[data-appearance="dark"] .roadtrip-route p,
html[data-appearance="dark"] .roadtrip-date-meta,
html[data-appearance="dark"] .roadtrip-date-weather {
    color: rgba(235, 235, 245, 0.66);
}
