/* Phone share flows (Create a Journey, Add a Place): one page of collapsible parts. See share-flow.mjs.
   Create a Journey also uses the parts on desktop (body.sf-wide); create-journey-desktop.css arranges them. */
@media all{
 html body.share-flow{--sf-bg:#f5fbfd;--sf-surface:#fff;--sf-ink:#123b61;--sf-ink2:#2c4d6b;--sf-muted:#58748c;--sf-line:#dbeaf1;--sf-ctl:#9fbccb;--sf-accent:#00849b;--sf-accent-ink:#fff;--sf-tint:#e5f5fb;--sf-danger:#b3261e;--sf-gold:#f2b33d;color:var(--sf-ink)}
 html:root body.share-flow,html:root body.share-flow main{background:var(--sf-bg)!important}
 html[data-theme=dark] body.share-flow{--sf-bg:#171f22;--sf-surface:#202d32;--sf-ink:#edf4f7;--sf-ink2:#d3e0e6;--sf-muted:#abc2cc;--sf-line:#3a505b;--sf-ctl:#4f6c78;--sf-accent:#83dfd3;--sf-accent-ink:#10201f;--sf-tint:#243e45;--sf-danger:#f29a9a}

 /* The steps, sidebars and repeated panels give way to the parts. */
 html body.share-flow :is(.cj-hero,.add-hero,.cj-editor-heading,.add-steps,.cj-sidebar,.add-sidebar,.page-footer,.cj-leg-modes,.cj-local-note,.add-local-note){display:none!important}
 html body.share-flow :is(#create-journey-form,#add-place-form)>:not(.sf-shell){display:none!important}
 html body.share-flow main:is(.cj-main,.add-main){width:auto!important;max-width:none!important;margin:0!important;padding:0 0 calc(96px + env(safe-area-inset-bottom))!important;background:var(--sf-bg)}
 html body.share-flow .add-columns{display:block;margin:0;padding:0}
 html body.share-flow :is(#create-journey-form,#add-place-form){display:block;margin:0;padding:0!important;border:0;background:none!important;box-shadow:none}
 html body.share-flow .sf-shell{font-family:Arial,Helvetica,sans-serif;color:var(--sf-ink)}
 html body.share-flow .ts-select:has(>.sf-proxied)>.ts-select-trigger{display:none!important}
 html body.share-flow .sf-proxied{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;border:0!important;white-space:nowrap}
 html body.share-flow .sf-icon{display:inline-block;flex:none;width:18px;height:18px;background:currentColor;mask:var(--sf-icon) center/contain no-repeat;-webkit-mask:var(--sf-icon) center/contain no-repeat}
 html body.share-flow .sf-shell :is(button,summary,a,input,select,textarea,label):focus-visible{outline:2px solid var(--sf-accent);outline-offset:2px}

 /* Header */
 html body.share-flow .sf-bar{position:sticky;top:0;z-index:40;display:grid;grid-template-columns:44px minmax(0,1fr) auto 40px;align-items:center;gap:6px;height:56px;padding:0 8px;background:var(--sf-bg);border-bottom:1px solid var(--sf-line)}
 html body.share-flow .sf-bar>:is(button,a){min-width:0;min-height:44px;padding:0;border:0;background:none;color:var(--sf-ink)!important;display:flex;align-items:center;justify-content:center;cursor:pointer}
 html body.share-flow .sf-back svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
 html body.share-flow .sf-title{margin:0;font:700 16px/1.3 Arial,Helvetica,sans-serif!important;color:var(--sf-ink)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html body.share-flow .sf-bar>.sf-saved{padding:0 6px;font:700 13px/1 Arial,Helvetica,sans-serif;color:var(--sf-accent)}
 html body.share-flow .sf-bar>.sf-saved.is-saved{font-weight:400;font-size:12px;color:var(--sf-muted);cursor:default}
 html body.share-flow .sf-bar>.sf-saved:disabled{opacity:1}
 html body.share-flow .sf-more span{font-size:18px;font-weight:700;line-height:1}
 html body.share-flow .sf-menu{position:absolute;top:50px;right:12px;z-index:45;width:min(280px,calc(100vw - 24px));max-height:calc(100vh - 90px);overflow:auto;display:flex;flex-direction:column;padding:6px;border-radius:14px;background:var(--sf-surface);border:1px solid var(--sf-line);box-shadow:0 14px 34px rgba(0,0,0,.25)}
 html body.share-flow .sf-menu[hidden]{display:none}
 html body.share-flow .sf-menu .contribution-tools{display:flex;flex-direction:column;align-items:stretch;gap:0;margin:0;padding:0;font-size:14px;background:none;border:0}
 html body.share-flow .sf-menu .contribution-tools>span:first-child{display:none}
 html body.share-flow .sf-menu :is(.contribution-tools>a,.add-alternatives a,#cj-export,#download-place-draft){display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 12px;border:0;border-radius:10px;background:none;box-shadow:none;color:var(--sf-ink)!important;font:700 14px/1.35 Arial,Helvetica,sans-serif;text-decoration:none;text-align:left;justify-content:flex-start;width:100%}
 html body.share-flow .sf-menu :is(.contribution-tools>a,.add-alternatives a,#cj-export,#download-place-draft):hover{background:var(--sf-tint)}
 html body.share-flow .sf-menu :is(#cj-export,#download-place-draft) svg{width:18px;height:18px}
 html body.share-flow .sf-menu .contribution-tools>.button{margin:4px 6px;min-height:40px}
 html body.share-flow .sf-menu>section:not(.add-alternatives){margin:4px 6px 0;padding:10px 6px 6px;border:0;border-top:1px solid var(--sf-line);border-radius:0;background:none;box-shadow:none;font-size:12px;line-height:1.4;color:var(--sf-muted)}
 html body.share-flow .sf-menu>section:not(.add-alternatives) :is(h2,h3,strong,p,small,span){font-size:12px!important;line-height:1.4;margin:0 0 4px;color:var(--sf-muted)!important}
 html body.share-flow .sf-menu>section:not(.add-alternatives) .button{min-height:36px;margin-top:4px;padding:0 12px;font-size:12px}
 html body.share-flow .sf-menu .add-alternatives{margin:4px 0 0;padding:4px 0 0;border:0;border-top:1px solid var(--sf-line);border-radius:0;background:none;box-shadow:none}
 html body.share-flow .sf-menu .add-alternatives h3{margin:6px 12px 2px;font:700 11px/1.4 Arial,Helvetica,sans-serif!important;letter-spacing:.1em;text-transform:uppercase;color:var(--sf-muted)!important}
 html body.share-flow .sf-menu .add-alternatives a>img,html body.share-flow .sf-menu .add-alternatives a>span[aria-hidden]{display:none}
 html body.share-flow .sf-menu .add-alternatives a span{display:flex;flex-direction:column;gap:2px}
 html body.share-flow .sf-menu .add-alternatives small{font-weight:400;font-size:12px;color:var(--sf-muted)}

 /* Cover hero */
 html body.share-flow .sf-hero{position:relative;height:170px;margin:16px 16px 0;border-radius:18px;overflow:hidden;color:#fff;background:linear-gradient(135deg,#0b5f6e,#123b61)}
 html body.add-place-page.share-flow .sf-hero{height:190px}
 html body.share-flow .sf-hero>img{display:block;width:100%;height:100%;object-fit:cover;filter:none!important}
 html body.share-flow .sf-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,14,16,.1),rgba(8,14,16,.85))}
 html body.share-flow .sf-hero.is-empty::after{background:linear-gradient(180deg,rgba(8,14,16,0),rgba(8,14,16,.45))}
 html body.share-flow .sf-hero-badge{position:absolute;z-index:1;top:12px;left:12px;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.94);color:#123b61;font:700 12px/1.2 Arial,Helvetica,sans-serif}
 html body.share-flow .sf-hero-badge[hidden],html body.share-flow .sf-hero-meta[hidden]{display:none}
 html body.share-flow .sf-hero-text{position:absolute;z-index:1;left:16px;right:16px;bottom:14px;display:flex;flex-direction:column;gap:6px}
 html body.share-flow .sf-hero-title{font:700 19px/1.25 Arial,Helvetica,sans-serif;color:#fff!important;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
 html body.add-place-page.share-flow .sf-hero-title{font-size:24px}
 html body.share-flow .sf-hero-meta{display:flex;align-items:center;gap:6px;min-width:0;font-size:13px;color:#e3ecee}
 html body.share-flow .sf-hero-place{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 html body.share-flow .sf-flag{flex:none;width:16px;height:16px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 1.5px #fff;filter:none!important}
 html body.share-flow .sf-flag[hidden]{display:none}
 html body.share-flow .sf-hero-stars{margin-left:auto;flex:none;color:var(--sf-gold);letter-spacing:-1px}
 html body.share-flow .sf-hero-progress{display:flex;align-items:center;gap:10px;font:700 12px/1 Arial,Helvetica,sans-serif}
 html body.share-flow .sf-bar-track{flex:1;height:6px;border-radius:3px;background:rgba(255,255,255,.3);overflow:hidden}
 html body.share-flow .sf-bar-track>span{display:block;height:6px;background:#fff;transition:width .2s}
 html body.share-flow .sf-note:not([hidden]){display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 16px 0;padding:10px 12px;border-radius:12px;background:var(--sf-tint);color:var(--sf-ink2);font-size:13px;line-height:1.45}
 html body.share-flow .sf-note p{flex-basis:100%;margin:0}
 html body.share-flow .sf-note-action{min-height:36px;padding:0 14px;border:1.5px solid var(--sf-accent);border-radius:999px;background:none;color:var(--sf-accent);font:700 13px/1 Arial,Helvetica,sans-serif;cursor:pointer}
 /* A sent request stays in the note as a settled confirmation, not a greyed-out button. */
 html body.share-flow .sf-note-action:disabled{border-color:transparent;background:var(--sf-surface);color:var(--sf-ink2);opacity:1;cursor:default}
 /* The menu's allowance panel has its own request button; the note carries the editor's copy. */
 html body.share-flow .sf-menu .contribution-tools>[data-request-allowance]{display:none}
 html body.share-flow .sf-status>[role=status]:not([hidden]){display:block;margin:12px 16px 0;padding:10px 12px;border:0;border-radius:12px;background:var(--sf-tint)!important;color:var(--sf-ink2)!important;font-size:13px;line-height:1.45}

 /* Parts */
 html body.share-flow .sf-parts{display:flex;flex-direction:column;gap:10px;padding:16px 16px 24px}
 html body.share-flow .sf-part{min-width:0;margin:0!important;border-radius:16px;background:var(--sf-surface);border:1.5px solid var(--sf-line);scroll-margin-top:64px}
 html body.share-flow .sf-part.is-open{border-color:var(--sf-accent)}
 html body.share-flow .sf-part-heading{margin:0;font:inherit!important}
 html body.share-flow .sf-part-toggle{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-height:60px;padding:14px;border:0;border-radius:15px;background:none;color:var(--sf-ink);text-align:left;cursor:pointer;font-family:Arial,Helvetica,sans-serif}
 html body.share-flow .sf-dot{display:flex;align-items:center;justify-content:center;width:32px;height:32px;box-sizing:border-box;border-radius:50%;border:1.5px solid var(--sf-ctl);color:var(--sf-ink);font:700 13px/1 Arial,Helvetica,sans-serif}
 html body.share-flow .sf-part.is-done .sf-dot{background:var(--sf-accent);border-color:var(--sf-accent);color:var(--sf-accent-ink)}
 html body.share-flow .sf-part-text{display:flex;flex-direction:column;gap:2px;min-width:0}
 html body.share-flow .sf-part-title{font:700 15px/1.3 Arial,Helvetica,sans-serif;color:var(--sf-ink)}
 html body.share-flow .sf-part-title small{font:700 11px/1 Arial,Helvetica,sans-serif;letter-spacing:.03em;text-transform:uppercase;color:var(--sf-muted)}
 html body.share-flow .sf-part-summary{font-size:12px;line-height:1.4;color:var(--sf-muted);overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
 html body.share-flow .sf-part-cta{font:700 13px/1 Arial,Helvetica,sans-serif;color:var(--sf-accent)}
 html body.share-flow .sf-part>.sf-part-body{display:none!important}
 html body.share-flow .sf-part.is-open>.sf-part-body{display:flex!important;flex-direction:column;gap:16px;min-width:0;padding:14px 14px 16px;border-top:1px solid var(--sf-line);font-family:Arial,Helvetica,sans-serif;color:var(--sf-ink)}
 html body.share-flow .sf-done{align-self:flex-end;height:40px;min-height:40px;padding:0 20px;border:0;border-radius:999px;background:var(--sf-accent);color:var(--sf-accent-ink);font:700 14px/1 Arial,Helvetica,sans-serif;cursor:pointer}

 /* Fields inside parts */
 html body.share-flow .sf-part-body :is(h2,h3){display:none}
 html body.share-flow .sf-part-body .sf-label,html body.share-flow .sf-part-body legend,html body.share-flow .sf-part-body label>span:first-child{margin:0;padding:0;font:700 12px/1.4 Arial,Helvetica,sans-serif!important;color:var(--sf-muted)!important}
 html body.share-flow .sf-part-body em{color:var(--sf-muted);font-style:normal}
 html body.share-flow .sf-part-body .sf-help,html body.share-flow .sf-part-body .cj-intro,html body.share-flow .sf-part-body small{margin:0;font-size:12px;line-height:1.45;color:var(--sf-muted)}
 html body.share-flow .sf-part-body .sf-help[hidden],html body.share-flow .sf-part-body [hidden]:not(.sf-part-body){display:none!important}
 html body.share-flow .sf-part-body fieldset{min-width:0;margin:0;padding:0;border:0;display:flex;flex-direction:column;gap:8px;background:none}
 html body.share-flow .sf-part-body legend{float:left;width:100%;margin-bottom:8px}
 html body.share-flow .sf-part-body legend+*{clear:both}
 html body.share-flow .sf-part-body :where(label){display:flex;flex-direction:column;gap:6px;margin:0;font:700 12px/1.4 Arial,Helvetica,sans-serif;color:var(--sf-muted)}
 html body.share-flow .sf-part-body :where(input:not([type=checkbox],[type=radio],[type=range],[type=file]),select,textarea,.ts-select-trigger){box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--sf-ctl)!important;border-radius:12px;background:var(--sf-bg)!important;color:var(--sf-ink)!important;font:400 16px/1.45 Arial,Helvetica,sans-serif;box-shadow:none}
 html body.share-flow .sf-part-body textarea{min-height:96px;resize:vertical}
 html body.share-flow .sf-part-body output{display:block;margin-top:-10px;text-align:right;font-size:12px;color:var(--sf-muted)}
 html body.share-flow .sf-part-body details>summary{width:max-content;max-width:100%;min-height:32px;display:flex;align-items:center;list-style:none;cursor:pointer;font:700 13px/1.3 Arial,Helvetica,sans-serif;color:var(--sf-accent)}
 html body.share-flow .sf-part-body details>summary::-webkit-details-marker{display:none}
 html body.share-flow .sf-part-body details:not(.sf-more-options)>summary::before{content:'+\00a0'}
 html body.share-flow .sf-part-body details[open]{display:flex;flex-direction:column;gap:10px}
 html body.share-flow .sf-link{width:max-content;padding:0;border:0;background:none;color:var(--sf-accent)!important;font:700 13px/1.3 Arial,Helvetica,sans-serif;text-decoration:none;cursor:pointer}

 /* Chips: checkbox and radio labels, and proxy buttons */
 html body.share-flow .sf-part-body :is(.cj-checks,.cj-choices,.add-tags,.add-check-grid,.sf-choices){display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;border:0;grid-template-columns:none}
 html body.share-flow .sf-part-body :is(.cj-checks,.cj-choices,.add-tags,.add-check-grid)>label,html body.share-flow .sf-part-body .sf-chip{position:relative;flex:0 0 auto;display:inline-flex;flex-direction:row;align-items:center;gap:0;min-height:34px;height:auto;width:auto;margin:0;padding:6px 12px;box-sizing:border-box;border:1.5px solid var(--sf-ctl);border-radius:999px;background:var(--sf-surface);color:var(--sf-ink)!important;font:700 13px/1.25 Arial,Helvetica,sans-serif!important;cursor:pointer;box-shadow:none;text-align:center}
 html body.share-flow .sf-part-body :is(.cj-checks,.cj-choices,.add-tags,.add-check-grid)>label>*{all:unset;font:inherit;color:inherit}
 html body.share-flow .sf-part-body :is(.cj-checks,.cj-choices,.add-tags,.add-check-grid)>label :is(svg,img,.cj-option-icon){display:none!important}
 html body.share-flow .sf-part-body :is(.cj-checks,.cj-choices,.add-tags,.add-check-grid)>label>input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
 html body.share-flow .sf-part-body :is(.cj-checks,.cj-choices,.add-tags,.add-check-grid)>label:has(input:checked),html body.share-flow .sf-part-body .sf-chip[aria-pressed=true]{background:var(--sf-accent);border-color:var(--sf-accent);color:var(--sf-accent-ink)!important}
 html body.share-flow .sf-part-body :is(.cj-checks,.cj-choices,.add-tags,.add-check-grid)>label:has(input:focus-visible){outline:2px solid var(--sf-accent);outline-offset:2px}
 html body.share-flow .sf-part-body .sf-scroll{flex-wrap:nowrap;overflow-x:auto;margin:-2px -14px 0;padding:2px 14px;scrollbar-width:none}
 html body.share-flow .sf-part-body .sf-scroll>.sf-chip{flex:none;white-space:nowrap}
 html body.share-flow .sf-part-body .sf-segments{flex-wrap:nowrap;gap:4px;padding:4px;border:1px solid var(--sf-line);border-radius:12px;background:var(--sf-bg)}
 html body.share-flow .sf-part-body .sf-segments>.sf-chip{flex:1;justify-content:center;min-width:0;min-height:40px;padding:6px 4px;border:0;border-radius:9px;background:none;white-space:nowrap}
 html body.share-flow .sf-part-body .sf-segments>.sf-chip[aria-pressed=true]{background:var(--sf-accent)}
 html body.share-flow .sf-part-body .sf-step{flex:none;width:34px;height:34px;min-width:34px;min-height:34px;padding:0;border:1.5px solid var(--sf-ctl);border-radius:50%;background:var(--sf-surface);color:var(--sf-ink);font:700 18px/1 Arial,Helvetica,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center}
 html body.share-flow .sf-part-body .sf-stepper{display:flex;align-items:center;gap:6px}
 html body.share-flow .sf-part-body .sf-money::before{content:'€';order:1;margin-right:-6px;font:700 16px/1 Arial,Helvetica,sans-serif;color:var(--sf-ink)}
 html body.share-flow .sf-part-body .sf-money>.sf-step:first-child{order:0}
 html body.share-flow .sf-part-body .sf-money>input{order:2;width:48px!important;min-height:36px!important;padding:0 2px!important;border:0!important;background:none!important;text-align:left;font:700 16px/1 Arial,Helvetica,sans-serif!important;-moz-appearance:textfield}
 html body.share-flow .sf-part-body .sf-money>.sf-step:last-child{order:3}
 html body.share-flow .sf-part-body :is(.sf-money input,.cj-counter input)::-webkit-inner-spin-button{display:none}
 html body.share-flow .sf-field-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0}

 /* Journey · Basics */
 html body.share-flow .sf-part-body .cj-dates{display:flex;align-items:end;gap:8px}
 html body.share-flow .sf-part-body .cj-dates>label{flex:1 1 0;min-width:0}
 html body.share-flow .sf-part-body .cj-dates>svg{flex:none;width:16px;height:16px;margin-bottom:14px;color:var(--sf-muted)}
 html body.share-flow .sf-part-body .ts-date{position:relative;display:block;width:100%}
 html body.share-flow .sf-part-body .ts-date>input{padding-right:40px!important}
 html body.share-flow .sf-part-body .ts-calendar-trigger{position:absolute;top:50%;right:4px;transform:translateY(-50%);width:36px;height:36px;min-height:36px;padding:0;border:0;background:none;color:var(--sf-accent)}
 html body.share-flow .sf-part-body .cj-party-counters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
 html body.share-flow .sf-part-body .cj-party-row{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;padding:10px 6px;border:1px solid var(--sf-line);border-radius:12px;background:var(--sf-bg)}
 html body.share-flow .sf-part-body .cj-party-row>label{align-items:center;text-align:center}
 html body.share-flow .sf-part-body .cj-party-row small{display:none}
 html body.share-flow .sf-part-body .cj-counter{display:flex;align-items:center;gap:4px;border:0;background:none}
 html body.share-flow .sf-part-body .cj-counter>button{width:30px;height:30px;min-width:30px;min-height:30px;padding:0;border:1.5px solid var(--sf-ctl);border-radius:50%;background:var(--sf-surface);color:var(--sf-ink);font:700 16px/1 Arial,Helvetica,sans-serif}
 html body.share-flow .sf-part-body .cj-counter>input{width:30px!important;min-height:30px!important;padding:0!important;border:0!important;background:none!important;text-align:center;font:700 16px/1 Arial,Helvetica,sans-serif!important;-moz-appearance:textfield}
 html body.share-flow .sf-part-body .cj-account-options details>summary::before{content:''}
 html body.share-flow .sf-part-body .cj-account-options :is(a,.text-link){font:700 13px/1.3 Arial,Helvetica,sans-serif;color:var(--sf-accent)!important}

 /* Journey · Stops & route */
 html body.share-flow .sf-part-body .sf-map{position:relative;height:200px;margin:-6px 0 0;border-radius:14px;overflow:hidden;border:1px solid var(--sf-line);background:var(--sf-tint)}
 html body.share-flow .sf-map .cj-map-preview{position:absolute;inset:0;display:block;margin:0;padding:0;border:0}
 html body.share-flow .sf-map .cj-live-map{display:block;width:100%;height:100%;border:0}
 html body.share-flow .sf-map .cj-map-preview>label{position:absolute;z-index:1;top:8px;left:8px;right:8px;display:block;font-size:0}
 html body.share-flow .sf-map .cj-map-preview>label :is(select,.ts-select-trigger){width:auto!important;max-width:100%;min-height:32px!important;padding:4px 10px!important;border:0!important;border-radius:999px;background:rgba(255,255,255,.94)!important;color:#123b61!important;font:700 12px/1.2 Arial,Helvetica,sans-serif!important;box-shadow:0 2px 8px rgba(0,0,0,.18)}
 html body.share-flow .sf-map .cj-map-status{position:absolute;left:8px;bottom:48px;right:8px;margin:0;font-size:12px;color:#123b61}
 html body.share-flow .sf-map .cj-map-status:empty{display:none}
 html body.share-flow .sf-map #cj-open-route{position:absolute;z-index:1;right:10px;bottom:10px;display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 12px;border:0;border-radius:999px;background:rgba(255,255,255,.94)!important;color:#123b61!important;font:700 12px/1 Arial,Helvetica,sans-serif;box-shadow:0 2px 8px rgba(0,0,0,.18)}
 html body.share-flow .sf-map #cj-open-route svg{width:14px;height:14px}
 html body.share-flow .sf-map #cj-open-route::after{content:'↗'}
 html body.share-flow .sf-map:has(.rm-has-route-info) #cj-open-route{bottom:auto;top:48px}
 html body.share-flow .sf-map:has(.rm-has-route-info) .cj-map-status{bottom:116px;background:var(--sf-surface);border-radius:6px;padding:4px}
/* Route editing controls and links stay in flow, clear of the map and one another. */
html body.share-flow .sf-part-body .sf-map:has(.rm-route-adjustment){height:auto;min-height:0;overflow:visible}
html body.share-flow .sf-map .cj-map-preview:has(.rm-route-adjustment){position:relative;inset:auto}
html body.share-flow .sf-map .cj-map-preview:has(.rm-route-adjustment) .cj-live-map{height:300px;border-radius:14px}
html body.share-flow .sf-map .rm-route-adjustment{padding:12px}
 html body.share-flow #cj-stop-list{display:flex;flex-direction:column;gap:0;margin:-6px 0 0}
 html body.share-flow .sf-part-body .cj-stop{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;border:1px solid var(--sf-line);border-radius:12px;background:var(--sf-surface);box-shadow:none}
 html body.share-flow .sf-part-body .cj-stop:not(.is-open)>:not(.sf-stop-row){display:none!important}
 html body.share-flow .sf-part-body .cj-stop.is-open{padding-bottom:12px;border-color:var(--sf-ctl)}
 html body.share-flow .sf-part-body .cj-stop.is-open>:not(.sf-stop-row){margin:0 12px}
 html body.share-flow .sf-stop-row{display:grid;grid-template-columns:30px minmax(0,1fr) 48px;align-items:center;gap:10px;width:100%;min-height:64px;padding:8px 10px 8px 12px;border:0;border-radius:12px;background:none;color:var(--sf-ink);text-align:left;cursor:pointer;font-family:Arial,Helvetica,sans-serif}
 html body.share-flow .sf-stop-number{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--sf-accent);color:var(--sf-accent-ink);font:700 13px/1 Arial,Helvetica,sans-serif}
 html body.share-flow .sf-stop-text{display:flex;flex-direction:column;gap:2px;min-width:0}
 html body.share-flow .sf-stop-text strong{font:700 14px/1.3 Arial,Helvetica,sans-serif;color:var(--sf-ink)!important;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 html body.share-flow .sf-stop-text small{font-size:12px;line-height:1.35;color:var(--sf-muted)}
 html body.share-flow .sf-part-body .cj-stop-header{order:99;display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;padding:0;border:0;background:none}
 html body.share-flow .sf-part-body .cj-stop-header strong{display:none}
 html body.share-flow .sf-part-body .cj-stop-header button{min-height:36px;padding:0;border:0;background:none;color:var(--sf-accent);font:700 13px/1 Arial,Helvetica,sans-serif;cursor:pointer}
 html body.share-flow .sf-part-body .cj-stop-header button:disabled{opacity:.4}
 html body.share-flow .sf-part-body .cj-stop-header [data-stop-remove]{margin-left:auto;color:var(--sf-danger)}
 html body.share-flow .sf-part-body .cj-stop .cj-field-grid{display:grid;grid-template-columns:minmax(0,1fr) 128px;gap:8px;align-items:start}
 html body.share-flow .sf-part-body .cj-stop .cj-field-grid>label:has([data-stop-field=name]){order:-1}
 html body.share-flow .sf-part-body label:has(>[data-stop-field=day]){display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:4px}
 html body.share-flow .sf-part-body label:has(>[data-stop-field=day])>span{grid-column:1/-1}
 html body.share-flow .sf-part-body [data-stop-field=day]{padding:0!important;text-align:center;font-weight:700!important;-moz-appearance:textfield}
 html body.share-flow .sf-part-body [data-stop-field=day]::-webkit-inner-spin-button{display:none}
 html body.share-flow .sf-part-body .cj-stop-location{margin-top:-6px!important;font-size:12px;color:var(--sf-muted)}
 html body.share-flow .sf-part-body .cj-stop-activities legend{float:none}
 html body.share-flow .sf-part-body .cj-stop-photos{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;border:0;background:none}
 html body.share-flow .sf-part-body .cj-stop-photos>.sf-field-head{flex-basis:100%}
 html body.share-flow .sf-photo-count{font:700 12px/1 Arial,Helvetica,sans-serif;color:var(--sf-muted)}
 html body.share-flow .sf-part-body [data-stop-photos]{display:contents}
 html body.share-flow .sf-part-body .cj-stop-photos [data-photo-add]{order:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:76px;height:76px;min-height:76px;padding:4px;border:1.5px dashed var(--sf-accent);border-radius:10px;background:none;color:var(--sf-accent);font:700 11px/1.2 Arial,Helvetica,sans-serif;box-shadow:none}
 html body.share-flow .sf-part-body .cj-stop-photos [data-photo-add] svg{width:20px;height:20px}
 html body.share-flow .sf-part-body [data-stop-photos] figure{order:2;position:relative;width:76px;height:76px;margin:0;border-radius:10px;overflow:hidden}
 html body.share-flow .sf-part-body [data-stop-photos] figure img{width:100%;height:100%;object-fit:cover;filter:none!important}
 html body.share-flow .sf-part-body [data-stop-photos] figcaption{display:none}
 html body.share-flow .sf-part-body [data-stop-photos] figure.is-cover::after{content:'Cover';position:absolute;left:4px;bottom:4px;padding:2px 6px;border-radius:6px;background:rgba(255,255,255,.94);color:#123b61;font:700 10px/1.2 Arial,Helvetica,sans-serif}
 html body.share-flow .sf-part-body :is([data-stop-photos] [data-photo-remove],.remove-photo){position:absolute;z-index:2;top:4px;right:4px;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;border:0;border-radius:50%;background:rgba(8,14,16,.7)!important;color:#fff!important;font-size:0!important;cursor:pointer;display:flex;align-items:center;justify-content:center}
 html body.share-flow .sf-part-body :is([data-stop-photos] [data-photo-remove],.remove-photo)::before{content:'✕';font:400 11px/1 Arial,Helvetica,sans-serif}
 /* 24px close targets get a 44px tap area. */
 html body.share-flow .sf-part-body :is([data-stop-photos] [data-photo-remove],.remove-photo)::after{content:'';position:absolute;inset:-10px}
 html body.share-flow .sf-leg{position:relative;align-self:flex-start;margin:0 0 0 26px;padding:8px 0 8px 18px;border-left:2px dashed var(--sf-ctl)}
 html body.share-flow .sf-leg::after{content:'▾';position:absolute;right:12px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--sf-ink);font-size:11px}
 html body.share-flow .sf-part-body .sf-leg :is(select,.ts-select-trigger){width:auto!important;min-height:34px!important;padding:4px 30px 4px 12px!important;border:0!important;border-radius:999px;background:var(--sf-tint)!important;color:var(--sf-ink)!important;font:700 12px/1.2 Arial,Helvetica,sans-serif!important;appearance:none;-webkit-appearance:none}
 html body.share-flow .sf-part-body .sf-leg .ts-select-trigger::after{display:none}
 html body.share-flow .sf-part-body #cj-stop-list>.cj-stop+.cj-stop{margin-top:10px}
 html body.share-flow .sf-part-body #cj-add-stop{width:100%;height:42px;min-height:42px;border:1.5px dashed var(--sf-accent);border-radius:12px;background:none;color:var(--sf-accent);font:700 13px/1 Arial,Helvetica,sans-serif;box-shadow:none}
 html body.share-flow .sf-part-body .cj-coverage{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px;margin-top:-8px}
 html body.share-flow .sf-part-body .cj-coverage>legend{display:none}
 html body.share-flow .sf-part-body #cj-countries{display:contents}
 html body.share-flow .sf-part-body #cj-countries>span{order:1;display:inline-flex;align-items:center;gap:4px;min-height:34px;padding:0 6px 0 12px;border-radius:999px;background:var(--sf-accent);color:var(--sf-accent-ink);font:700 13px/1 Arial,Helvetica,sans-serif}
 html body.share-flow .sf-part-body #cj-countries button{min-width:28px;min-height:28px;padding:0;border:0;background:none;color:inherit;font-size:16px}
 html body.share-flow .sf-part-body .cj-coverage>label:first-of-type{order:2;font-size:0;flex:1 1 150px}
 html body.share-flow .sf-part-body .cj-coverage>label:first-of-type :is(select,.ts-select-trigger){min-height:34px!important;padding:4px 12px!important;border:1.5px dashed var(--sf-ctl)!important;border-radius:999px;background:none!important;font:700 13px/1.2 Arial,Helvetica,sans-serif!important}
 html body.share-flow .sf-part-body .cj-coverage>label:last-of-type{order:3;flex-basis:100%;margin-top:10px}
 html body.share-flow .sf-part-body #cj-calculate-distance{align-self:flex-start;min-height:36px;margin-top:-8px;padding:0;border:0;background:none!important;color:var(--sf-accent)!important;font:700 13px/1.3 Arial,Helvetica,sans-serif;box-shadow:none}
 html body.share-flow .sf-part-body :is(#cj-distance-status:empty){display:none}
 html body.share-flow .sf-part-body #cj-distance-result{padding:10px 12px;border-radius:12px;background:var(--sf-tint);font-size:13px}

 /* Journey · Cover & permission */
 html body.share-flow .sf-part-body .cj-cover-image{position:relative;height:170px;min-height:0;aspect-ratio:auto;margin:0;border-radius:14px;overflow:hidden;background:var(--sf-tint);border:0}
 html body.share-flow .sf-part-body .cj-cover-image>img{width:100%;height:100%;object-fit:cover}
 html body.share-flow .sf-part-body .cj-cover-image:not(.is-empty) #cj-change-cover{display:none}
 html body.share-flow .sf-part-body #cj-change-cover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;height:100%;padding:12px;border:1.5px dashed var(--sf-accent);border-radius:14px;background:none;color:var(--sf-accent);text-align:center;box-shadow:none}
 html body.share-flow .sf-part-body #cj-change-cover strong{font:700 14px/1.3 Arial,Helvetica,sans-serif;color:var(--sf-accent)!important}
 /* The older editor paints this hint white for a dark empty cover; here it sits on the light tint and must wrap inside the drop zone. */
 html body.share-flow .sf-part-body #cj-change-cover small{max-width:100%;font-size:11px;line-height:1.45;color:var(--sf-muted)!important;white-space:normal;overflow-wrap:anywhere}
 html body.share-flow .sf-part-body #cj-adjust-cover{position:absolute;right:10px;bottom:10px;min-height:32px;padding:0 12px;border:0;border-radius:999px;background:rgba(255,255,255,.94)!important;color:#123b61!important;font:700 12px/1 Arial,Helvetica,sans-serif;box-shadow:0 2px 8px rgba(0,0,0,.18)}
 html body.share-flow .sf-part-body #cj-adjust-cover img{display:none}
 html body.share-flow .sf-part-body [data-photo-add]:not(.cj-stop-photos [data-photo-add]){align-self:flex-start;min-height:36px;padding:0 14px;border:1.5px solid var(--sf-ctl);border-radius:999px;background:none;color:var(--sf-ink);font:700 13px/1 Arial,Helvetica,sans-serif;box-shadow:none}
 html body.share-flow .sf-part-body label:has(>[name=consent]),html body.share-flow .sf-part-body .add-consent{display:grid!important;grid-template-columns:24px minmax(0,1fr);align-items:start;gap:12px;margin:0;padding:14px;border:1px solid var(--sf-line);border-radius:12px;background:var(--sf-bg);color:var(--sf-ink2)!important;font:400 14px/1.45 Arial,Helvetica,sans-serif!important}
 html body.share-flow .sf-part-body :is(label:has(>[name=consent]),.add-consent)>input{width:22px;height:22px;margin:0;accent-color:var(--sf-accent)}
 html body.share-flow .sf-part-body .add-consent>span{font:inherit!important;color:inherit!important}
 html body.share-flow .sf-part-body .add-consent a{color:var(--sf-accent)!important;font-weight:700}

 /* Journey · Costs */
 html body.share-flow .sf-range{width:100%;margin:0;accent-color:var(--sf-accent)}
 html body.share-flow .sf-total{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:12px 14px;border-radius:12px;background:var(--sf-tint);font-size:12px;color:var(--sf-muted)}
 html body.share-flow .sf-total strong{font:700 15px/1.2 Arial,Helvetica,sans-serif;color:var(--sf-ink)!important}

 /* Place · The place */
 html body.share-flow .sf-part-body .add-location-search{position:relative;display:flex;flex-direction:row;align-items:center;gap:8px;height:48px;padding:0 4px 0 12px;border:1px solid var(--sf-ctl);border-radius:12px;background:var(--sf-bg)}
 html body.share-flow .sf-part-body .add-location-search>svg{flex:none;width:18px;height:18px;color:var(--sf-accent)}
 html body.share-flow .sf-part-body .add-location-search>input{flex:1;min-height:44px!important;padding:0!important;border:0!important;background:none!important}
 html body.share-flow .sf-part-body #clear-add-location{flex:none;width:40px;height:40px;min-height:40px;padding:0;border:0;background:none;color:var(--sf-muted);font-size:20px}
 html body.share-flow .sf-part-body #add-location-map{position:relative;height:170px;min-height:0;margin:-6px 0 0;border-radius:14px;overflow:hidden;border:1px solid var(--sf-line);background:var(--sf-tint)}
 html body.share-flow .sf-part-body #add-location-map .add-map-canvas{position:absolute;inset:0}
 html body.share-flow .sf-map-actions{position:absolute;z-index:1;left:10px;right:10px;bottom:10px;display:flex;justify-content:space-between;gap:8px;pointer-events:none}
 html body.share-flow .sf-map-actions>button{pointer-events:auto;position:static;width:auto;min-height:32px;padding:0 12px;border:0!important;border-radius:999px!important;background:rgba(255,255,255,.94)!important;color:#123b61!important;font:700 12px/1 Arial,Helvetica,sans-serif;box-shadow:0 2px 8px rgba(0,0,0,.18)}
 html body.share-flow .sf-map-actions>#use-add-location::before{content:'◎ '}
 html body.share-flow .sf-part-body #add-location-map+.sf-help,html body.share-flow .sf-part-body .sf-help+.add-coordinate-details{margin-top:-10px}
 html body.share-flow .sf-part-body .add-coordinate-details{margin:0;padding:0;border:0;background:none}
 html body.share-flow .sf-part-body .add-coordinate-details .add-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 html body.share-flow .sf-part-body .add-tag-field legend{display:flex;justify-content:space-between}

 /* Place · Photos */
 html body.share-flow .sf-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 html body.share-flow .sf-part-body #add-photo-strip{display:contents}
 html body.share-flow .sf-part-body #add-drop-zone{order:-1;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;aspect-ratio:1;min-height:0;margin:0;padding:6px;border:1.5px dashed var(--sf-accent);border-radius:12px;background:none;color:var(--sf-accent);cursor:pointer;font:700 12px/1.2 Arial,Helvetica,sans-serif}
 html body.share-flow .sf-part-body #add-drop-zone>:not(input):not(.add-upload-icon){display:none}
 html body.share-flow .sf-part-body #add-drop-zone .add-upload-icon{width:22px;height:22px}
 html body.share-flow .sf-part-body #add-drop-zone::after{content:'Add photos'}
 html body.share-flow .sf-part-body #add-drop-zone.is-full{opacity:.45;pointer-events:none}
 html body.share-flow .sf-part-body #add-drop-zone>input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
 html body.share-flow .sf-part-body .add-photo-tile{position:relative;aspect-ratio:1;margin:0;padding:0;border:3px solid transparent;border-radius:12px;overflow:hidden;box-sizing:border-box;background:var(--sf-tint)}
 html body.share-flow .sf-part-body .add-photo-tile:has(.cover-photo[aria-pressed=true]){border-color:var(--sf-accent)}
 html body.share-flow .sf-part-body .add-photo-tile>img{width:100%;height:100%;object-fit:cover;border-radius:8px;filter:none!important}
 html body.share-flow .sf-part-body .add-photo-tile .add-photo-metadata,html body.share-flow .sf-part-body #add-photo-strip .mc-photo-order{display:none!important}
 html body.share-flow .sf-part-body .add-photo-tile .cover-photo{position:absolute;inset:0;z-index:1;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none!important;color:transparent!important;font-size:0!important;box-shadow:none;cursor:pointer}
 html body.share-flow .sf-part-body .add-photo-tile .cover-photo[aria-pressed=true]::after{content:'Cover';position:absolute;left:6px;bottom:6px;padding:2px 6px;border-radius:6px;background:rgba(255,255,255,.94);color:#123b61;font:700 10px/1.2 Arial,Helvetica,sans-serif}
 html body.share-flow .sf-cover-meta{display:flex;flex-direction:column;gap:10px}
 html body.share-flow .sf-cover-meta:empty{display:none}
 html body.share-flow .sf-part-body .sf-more-options>summary{color:var(--sf-muted)}
 html body.share-flow .sf-part-body #add-photo-progress:not([hidden]){margin:0;font-size:12px;color:var(--sf-muted)}

 /* Place · Your visit */
 html body.share-flow .sf-stars{display:flex;align-items:center;margin:-10px 0 0 -6px}
 html body.share-flow .sf-star{width:44px;height:44px;min-height:44px;padding:0;border:0;background:none;color:var(--sf-ctl);font:32px/1 Arial,Helvetica,sans-serif;cursor:pointer}
 html body.share-flow .sf-star.is-on{color:var(--sf-gold)}
 html body.share-flow .sf-rating-word{margin-left:auto;font:700 14px/1 Arial,Helvetica,sans-serif;color:var(--sf-ink)}
 html body.share-flow .sf-part-body label:has(>.sf-proxied){gap:0}

 /* Place · Practical details */
 html body.share-flow .sf-months{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-top:-8px}
 html body.share-flow .sf-part-body .sf-months>.sf-chip{min-height:36px;padding:0;border-radius:10px;justify-content:center}
 html body.share-flow .sf-part-body .sf-choices.sf-segments{margin-top:-8px}
 html body.share-flow .sf-part-body .sf-months+.sf-help{margin-top:-8px}
 html body.share-flow .sf-fee{display:flex;align-items:center;gap:10px}
 html body.share-flow .sf-label+.sf-fee{margin-top:-8px}

 /* Footer */
 html body.share-flow .sf-footer{position:fixed;z-index:50;left:0;right:0;bottom:0;display:grid;grid-template-columns:1fr 1.6fr;gap:10px;padding:12px 16px calc(16px + env(safe-area-inset-bottom));background:var(--sf-bg);border-top:1px solid var(--sf-line);font-family:Arial,Helvetica,sans-serif}
 html body.share-flow .sf-footer>button{height:50px;min-height:50px;border-radius:14px;font:700 16px/1 Arial,Helvetica,sans-serif;cursor:pointer}
 html body.share-flow .sf-preview{border:1.5px solid var(--sf-ctl);background:var(--sf-surface);color:var(--sf-ink)}
 html body.share-flow .sf-publish{border:0;background:var(--sf-accent);color:var(--sf-accent-ink)}
 html body.share-flow .sf-publish[aria-disabled=true]{opacity:.45}
 html body.share-flow .sf-footer>button:disabled{opacity:.45;cursor:default}
 html body.share-flow.rb-keyboard-open .sf-footer{position:static}
 html body.share-flow:has(dialog[open]) .sf-footer{visibility:hidden}

 /* Place preview sheet */
 html body.share-flow .sf-sheet{position:fixed;inset:auto 0 0;width:100%;max-width:100%;max-height:90vh;margin:0;padding:10px 16px calc(18px + env(safe-area-inset-bottom));box-sizing:border-box;border:0;border-radius:22px 22px 0 0;background:var(--sf-bg);color:var(--sf-ink);font-family:Arial,Helvetica,sans-serif;overflow:auto}
 html body.share-flow .sf-sheet::backdrop{background:rgba(8,14,16,.5)}
 html body.share-flow .sf-handle{display:block;width:40px;height:4px;margin:0 auto 10px;border-radius:2px;background:var(--sf-ctl)}
 html body.share-flow .sf-sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
 html body.share-flow .sf-sheet-head h2{margin:0;font:700 16px/1.3 Arial,Helvetica,sans-serif!important;color:var(--sf-ink)!important}
 html body.share-flow .sf-close{width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:none;color:var(--sf-ink);font-size:16px;cursor:pointer}
 html body.share-flow .sf-preview-card{border:1px solid var(--sf-line);border-radius:16px;overflow:hidden;background:var(--sf-surface)}
 html body.share-flow .sf-preview-photo{position:relative;height:180px;background:linear-gradient(135deg,#0b5f6e,#123b61)}
 html body.share-flow .sf-preview-photo img{width:100%;height:100%;object-fit:cover;filter:none!important}
 html body.share-flow .sf-preview-photo span{position:absolute;left:10px;bottom:10px;padding:5px 10px;border-radius:999px;background:rgba(8,14,16,.72);color:#fff;font:700 12px/1.2 Arial,Helvetica,sans-serif}
 html body.share-flow .sf-preview-card h3{margin:12px 14px 4px;font:700 18px/1.3 Arial,Helvetica,sans-serif!important;color:var(--sf-ink)!important}
 html body.share-flow .sf-preview-meta{display:flex;align-items:center;gap:6px;margin:0 14px;font-size:13px;color:var(--sf-muted)}
 html body.share-flow .sf-preview-meta .sf-flag{box-shadow:none}
 html body.share-flow .sf-preview-text{margin:10px 14px 0;font-size:14px;line-height:1.5;color:var(--sf-ink2);overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
 html body.share-flow .sf-preview-tags{display:flex;flex-wrap:wrap;gap:6px;margin:10px 14px 0}
 html body.share-flow .sf-preview-tags:empty{display:none}
 html body.share-flow .sf-preview-tags span{padding:4px 10px;border-radius:999px;background:var(--sf-tint);color:var(--sf-ink);font:700 12px/1.2 Arial,Helvetica,sans-serif}
 html body.share-flow .sf-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 0;padding:12px 14px;border-top:1px solid var(--sf-line)}
 html body.share-flow .sf-facts dt{font:700 11px/1.3 Arial,Helvetica,sans-serif;color:var(--sf-muted)}
 html body.share-flow .sf-facts dd{margin:2px 0 0;font:700 13px/1.3 Arial,Helvetica,sans-serif;color:var(--sf-ink)}
}
/* Extra costs the traveller names: an editable title, Remove, and a dashed "Add a cost" card (journey-share.mjs). */
/* Until the share layout takes over (phones and 1024px+), hold back the old step editor so it never flashes
   on load. A short loading card shows instead; if scripts fail, the page is revealed after 8 seconds anyway. */
@keyframes sf-reveal{to{visibility:visible}}
@media(max-width:767px),(min-width:1024px){
 html body:not(.share-flow) :is(.cj-hero,.add-hero,.cj-editor-heading,.add-steps){display:none!important}
 html body:not(.share-flow) main:is(.cj-main,.add-main){position:relative}
 html body:not(.share-flow) main:is(.cj-main,.add-main)>*{visibility:hidden;animation:sf-reveal 0s linear 8s forwards}
 html body:not(.share-flow) main:is(.cj-main,.add-main)::before{content:'Loading…';position:absolute;z-index:1;top:24px;left:0;right:0;display:flex;align-items:flex-end;min-height:180px;padding:24px 28px;border-radius:20px;background:linear-gradient(160deg,#0f5a68,#0b2f40);color:#e5f5fb;font:700 15px/1.4 Arial,Helvetica,sans-serif;animation:sf-pulse 1.4s ease-in-out infinite alternate,sf-hide 0s linear 8s forwards}
 html[data-theme=dark] body:not(.share-flow) main:is(.cj-main,.add-main)::before{background:linear-gradient(160deg,#16424b,#0d2229);color:#d3e0e6}
 @media(max-width:767px){html body:not(.share-flow) main:is(.cj-main,.add-main)::before{top:16px;left:16px;right:16px;min-height:150px;padding:20px}}
}
@keyframes sf-pulse{to{opacity:.6}}
@keyframes sf-hide{to{visibility:hidden}}
@media(prefers-reduced-motion:reduce){html body:not(.share-flow) main:is(.cj-main,.add-main)::before{animation:sf-hide 0s linear 8s forwards}}
/* Journey title counter: a nudge from 60 characters, and a clear note on older titles over 70. */
#cj-title-count.is-near{color:#7a5200!important}
#cj-title-count.is-over{color:#a3322a!important}
html[data-theme=dark] #cj-title-count.is-near{color:#f4d394!important}
html[data-theme=dark] #cj-title-count.is-over{color:#ffb8b2!important}

/* Stop rows: a ▾/▴ toggle (the whole row opens the stop), and the stop's first photo only when it has one. */
html body.share-flow .sf-stop-row{grid-template-columns:30px minmax(0,1fr);grid-auto-flow:column;grid-auto-columns:auto}
html body.share-flow .sf-stop-toggle{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--sf-tint);color:var(--sf-accent)}
html body.share-flow .sf-stop-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
html body.share-flow .sf-stop-row[aria-expanded=true] .sf-stop-toggle svg{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){html body.share-flow .sf-stop-toggle svg{transition:none}}
/* Stop photos: a large "Add photos of {stop}" frame until the stop has its own photos, then an "Add more" tile. */
html body.share-flow .sf-part-body .cj-stop-photos [data-photo-add] .sf-photo-add-icon{display:flex;align-items:center;justify-content:center}
html body.share-flow .sf-part-body .cj-stop-photos [data-photo-add] .sf-photo-add-text{display:flex;flex-direction:column;align-items:center;gap:3px}
html body.share-flow .sf-part-body .cj-stop-photos [data-photo-add] .sf-photo-add-text strong{font:700 11px/1.2 Arial,Helvetica,sans-serif;color:inherit}
html body.share-flow .sf-part-body .cj-stop-photos [data-photo-add] .sf-photo-add-text small{display:none}
html body.share-flow .sf-part-body .cj-stop-photos.is-empty [data-photo-add]{flex-direction:row;justify-content:flex-start;gap:12px;width:100%;height:auto;min-height:72px;padding:12px 14px;border-radius:12px;background:var(--sf-tint);text-align:left}
html body.share-flow .sf-part-body .cj-stop-photos.is-empty .sf-photo-add-icon{flex:none;width:42px;height:42px;border-radius:50%;background:var(--sf-accent);color:var(--sf-accent-ink)}
html body.share-flow .sf-part-body .cj-stop-photos.is-empty .sf-photo-add-text{align-items:flex-start}
html body.share-flow .sf-part-body .cj-stop-photos.is-empty .sf-photo-add-text strong{font:700 14px/1.3 Arial,Helvetica,sans-serif;color:var(--sf-ink)}
html body.share-flow .sf-part-body .cj-stop-photos.is-empty .sf-photo-add-text small{display:block;font:400 12px/1.4 Arial,Helvetica,sans-serif;color:var(--sf-muted)}
/* Mixed stretches (Car → Train): further ways of travelling, "Changed at" and the add link, at every width. */
html body.share-flow .sf-leg-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
html body.share-flow .sf-leg-panel{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
html body.share-flow .sf-leg-panel[hidden]{display:none}
html body.share-flow .sf-leg-steps{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
html body.share-flow .sf-leg-change{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;width:min(420px,100%)}
html body.share-flow .sf-leg-change label{flex:1 0 100%;color:var(--sf-ink2);font:700 13px/1.3 Arial,Helvetica,sans-serif}
html body.share-flow .sf-part-body .sf-leg-change label small{display:inline!important;margin:0 0 0 4px!important;color:var(--sf-muted);font-size:12px;font-weight:400}
html body.share-flow .sf-part-body .sf-leg-change input{flex:1;min-width:0;min-height:38px;margin:0;padding:0 12px;border:1px solid var(--sf-line);border-radius:10px;background:var(--sf-surface);color:var(--sf-ink);font:400 14px Arial,Helvetica,sans-serif}
html body.share-flow .sf-leg-then{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
html body.share-flow .sf-leg-then-label{color:var(--sf-muted);font:700 13px Arial,Helvetica,sans-serif}
html body.share-flow .sf-part-body .sf-leg-then :is(select,.ts-select-trigger){width:auto!important;min-height:34px!important;padding:4px 30px 4px 12px!important;border:0!important;border-radius:999px;background:var(--sf-tint)!important;color:var(--sf-ink)!important;font:700 12px/1.2 Arial,Helvetica,sans-serif!important}
html body.share-flow .sf-part-body :is(.sf-leg-add,.sf-leg-remove,.sf-leg-clear){display:inline-flex;align-items:center;min-height:32px;margin:0;padding:0 4px;border:0;background:none;color:var(--sf-accent);font:700 13px Arial,Helvetica,sans-serif;cursor:pointer}
html body.share-flow .sf-part-body .sf-leg-remove{color:var(--sf-danger)}
html body.share-flow .sf-part-body .sf-leg-done{display:inline-flex;align-items:center;min-height:34px;margin:2px 0 0;padding:0 16px;border:0;border-radius:999px;background:var(--sf-accent);color:var(--sf-accent-ink);font:700 13px Arial,Helvetica,sans-serif;cursor:pointer}
html body.share-flow .sf-leg-hint,html body.share-flow .sf-leg-note{margin:0;color:var(--sf-muted);font-size:12px;line-height:1.4}
html body.share-flow .sf-part-body .sf-leg-then>:is(select,.ts-select){flex:0 0 auto;width:auto!important;max-width:100%}
html body.share-flow .sf-part-body .sf-leg-change>label{display:block!important;flex:1 0 100%;margin:0!important}

html body.share-flow .sf-map .cj-map-preview:has(.rm-route-adjustment)>label{position:relative;inset:auto;padding:12px 12px 0}
html body.share-flow .sf-map:has(.rm-route-adjustment) #cj-open-route{position:relative;inset:auto;margin:10px 12px;min-height:44px}
html body.share-flow .sf-map:has(.rm-route-adjustment) .cj-map-status{position:relative;inset:auto;padding:8px 12px}
html body.share-flow .sf-map .rm-route-legend{padding:10px 12px}
