/* Share a Journey v5 (journey-share.mjs, body.sf-v5): a fixed top area — the cover and trip bar from Make It Mine
   (mine-top.mjs, styled by mine-v3.css) — then three steps, on web and phones alike. The steps reuse the share-flow
   parts (share-flow.css, contribution-desktop.css, create-journey-desktop.css); this file gives them the v5 look. */
html body.share-flow.sf-v5{--sf-gutter:max(32px,calc((100% - 1216px) / 2));background:#f6fbfd}
html[data-theme=dark] body.share-flow.sf-v5{background:#131719}
@media (max-width:1023px){html body.share-flow.sf-v5{--sf-gutter:24px}}
@media (max-width:767px){html body.share-flow.sf-v5{--sf-gutter:14px}}
html body.share-flow.sf-v5 :is(.cj-hero,.cj-editor-heading,.cj-sidebar,.cj-inspiration){display:none!important}
html body.share-flow.sf-v5 main.cj-main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}

/* ---- The top area ------------------------------------------------------------------------------------------- */
/* Make It Mine's colours for the parts of its stylesheets used here. */
.sj-top,.sj-mm{--mm-bg:#f6fbfd;--mm-surface:#fff;--mm-ink:#0b315c;--mm-muted:#58758b;--mm-line:#d7e7ef;--mm-soft:#e7f1f5;--mm-dash:#b9d3de;--mm-faint:#8aa4b8;--mm-accent:#007f94;--mm-on:#fff;--mm-tint:#eaf7fd;--mm-fill:#0b7c8c}
html[data-theme=dark] :is(.sj-top,.sj-mm){--mm-bg:#131719;--mm-surface:#1d2327;--mm-ink:#e8f3f8;--mm-muted:#b7cbd8;--mm-line:#3f5b69;--mm-soft:#2c363b;--mm-dash:#4f6c78;--mm-faint:#71838c;--mm-accent:#80ded1;--mm-on:#102b2b;--mm-tint:#214340}
html body.sf-v5 .mm-flow.sj-top{display:block;gap:0;font-family:Arial,Helvetica,sans-serif;color:var(--mm-i)}
html body.sf-v5 .sj-top button{min-width:0;min-height:0;margin:0;font-family:Arial,Helvetica,sans-serif;letter-spacing:normal;text-transform:none}
/* The cover runs edge to edge; the bar lines up with the page. */
html body.sf-v5 .sj-top .mm3-cover{height:320px;border-radius:0}
html body.sf-v5 .sj-top .mm3-cover-top{padding:22px var(--sf-gutter) 0}
html body.sf-v5 .sj-top .mm3-bar-wrap{margin-top:-38px;padding:0 var(--sf-gutter)}
html body.sf-v5 .sj-top .mm3-cover-edit{display:flex;align-items:flex-start;gap:8px}
/* Draft options beside Edit cover: Save while there are changes, and the ⋯ menu. */
html body.sf-v5 .sj-top .mm3-tools{position:relative;display:flex;align-items:center;gap:8px}
html body.sf-v5 .sj-top .mm3-tools>.sf-saved{height:42px;padding:0 16px;border:0;border-radius:999px;background:#0b7c8c;color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.18);font:700 13px Arial,Helvetica,sans-serif;cursor:pointer}
html body.sf-v5 .sj-top .mm3-tools>.sf-saved.is-saved{display:none}
html body.sf-v5 .sj-top .mm3-tools>.sf-more{display:flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:var(--mm-s);color:var(--mm-i);box-shadow:0 6px 18px rgba(0,0,0,.18);cursor:pointer}
html body.sf-v5 .sj-top .mm3-tools>.sf-more span{font-size:20px;line-height:1}
html body.sf-v5 .sj-top .mm3-tools>.sf-menu{position:absolute;top:calc(100% + 8px);right:0;left:auto;z-index:60;width:280px}
html body.sf-v5 .sj-top .mm3-menu{right:0}
html body.sf-v5 .sj-top .mm3-menu-thumbs{display:flex;flex-wrap:wrap;gap:6px;padding:6px 8px 2px}
html body.sf-v5 .sj-top .mm3-menu-thumbs button{width:58px;height:44px;padding:0;border:2px solid transparent;border-radius:9px;overflow:hidden;background:var(--mm-m);cursor:pointer}
html body.sf-v5 .sj-top .mm3-menu-thumbs button[aria-pressed=true]{border-color:#0b7c8c}
html body.sf-v5 .sj-top .mm3-menu-thumbs img{display:block;width:100%;height:100%;object-fit:cover}
/* The bar: title, dates, travellers, trip cost and the fold arrow. */
html body.sf-v5 .sj-top .mm3-bar{grid-template-columns:minmax(0,1fr) minmax(0,1.42fr) minmax(0,1.02fr) auto auto}
html body.sf-v5 .sj-top .mm3-bar.is-folded{grid-template-columns:minmax(0,1fr) minmax(0,2.6fr) auto}
html body.sf-v5 .sj-top .mm3-cost{display:flex;align-items:center;gap:10px;height:50px;padding:0 16px 0 10px;border:0;border-radius:12px;background:#123b61;color:#fff;font-family:Arial,Helvetica,sans-serif;text-align:left;cursor:pointer}
html body.sf-v5 .sj-top .mm3-cost-tile{display:flex;flex:none;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;background:rgba(255,255,255,.14)}
html body.sf-v5 .sj-top .mm3-cost-text{display:flex;flex-direction:column;gap:1px;min-width:0}
html body.sf-v5 .sj-top .mm3-cost-text small{color:#bfe9ee;font-size:10px;font-weight:700;letter-spacing:.08em}
html body.sf-v5 .sj-top .mm3-cost-text strong{color:#fff;font-size:16px;line-height:1.1}
html body.sf-v5 .sj-top .mm3-bar.is-folded .mm3-cost{display:none}
html body.sf-v5 .sj-top .mm3-cost-card{display:none}
html body.sf-v5 .sj-top .mm3-people .cj-intro:empty{display:none}
@media (max-width:1100px) and (min-width:768px){
 html body.sf-v5 .sj-top .mm3-bar{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto auto}
 html body.sf-v5 .sj-top .mm3-bar.is-folded{grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto}
}
@media (max-width:767px){
 html body.sf-v5 .sj-top .mm3-top{margin:0}
 html body.sf-v5 .sj-top .mm3-cover{height:210px}
 html body.sf-v5 .sj-top .mm3-cover-top{padding:14px var(--sf-gutter) 0}
 html body.sf-v5 .sj-top .mm3-bar-wrap{margin-top:-34px}
 html body.sf-v5 .sj-top .mm3-bar,html body.sf-v5 .sj-top .mm3-bar.is-folded{grid-template-columns:minmax(0,1fr) auto}
 html body.sf-v5 .sj-top .mm3-bar>.mm3-cost{display:none}
 html body.sf-v5 .sj-top .mm3-tools>:is(.sf-saved,.sf-more){height:32px}
 html body.sf-v5 .sj-top .mm3-tools>.sf-more{width:32px}
 html body.sf-v5 .sj-top .mm3-tools>.sf-saved{padding:0 12px;font-size:12px}
 /* Trip cost: a full-width navy card under the bar. */
 html body.sf-v5 .sj-top .mm3-cost-card{display:flex;align-items:center;gap:12px;width:100%;margin:12px 0 0;padding:14px;border:0;border-radius:16px;background:#123b61;color:#fff;font-family:Arial,Helvetica,sans-serif;text-align:left;cursor:pointer}
 html body.sf-v5 .sj-top .mm3-cost-card .mm3-cost-tile{width:42px;height:42px;border-radius:12px}
 html body.sf-v5 .sj-top .mm3-cost-card .mm3-cost-text{flex:1;gap:2px}
 html body.sf-v5 .sj-top .mm3-cost-card .mm3-cost-text small{font-size:12px}
 html body.sf-v5 .sj-top .mm3-cost-card .mm3-cost-text span{color:#d9e6ec;font-size:13px}
 html body.sf-v5 .sj-top .mm3-cost-card>strong{color:#fff;font-size:26px;line-height:1}
}
html[data-theme=dark] body.sf-v5 .sj-top :is(.mm3-cost,.mm3-cost-card){background:#0f3350;box-shadow:inset 0 0 0 1px #2a5878}

/* ---- The stepper -------------------------------------------------------------------------------------------- */
html body.share-flow.sf-v5 .sf-status{margin:0 var(--sf-gutter)}
html body.share-flow.sf-v5 .sf-parts{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 var(--sf-gutter);padding:22px 0 32px}
html body.share-flow.sf-v5 .sf-part-toggle{flex-direction:row;align-items:center;gap:12px;height:58px;padding:0 14px;border:1px solid var(--sf-line);border-radius:14px}
html body.share-flow.sf-v5 .sf-part.is-open .sf-part-toggle{border-color:#0b7c8c}
html body.share-flow.sf-v5 .sf-part-toggle .sf-dot{flex:none;width:32px;height:32px;font-size:13px}
html body.share-flow.sf-v5 .sf-part.is-open .sf-part-toggle .sf-dot{border-color:#0b7c8c;background:#0b7c8c;color:#fff}
html body.share-flow.sf-v5 .sf-part.is-done:not(.is-open) .sf-part-toggle .sf-dot{border-color:#1f7a4a;background:#1f7a4a;color:#fff}
html body.share-flow.sf-v5 .sf-part-toggle .sf-part-text{gap:2px;min-width:0;text-align:left}
html body.share-flow.sf-v5 .sf-part-toggle .sf-part-title{font-size:14px}
html body.share-flow.sf-v5 .sf-part-toggle .sf-part-title small{display:none}
html body.share-flow.sf-v5 .sf-part-toggle .sf-part-summary{overflow:hidden;font-size:12px;line-height:1.3;white-space:nowrap;text-overflow:ellipsis;-webkit-line-clamp:unset;display:block}
/* The open step sits on the page: no card around it, and the cards row already names it. */
html body.share-flow.sf-v5 .sf-part.is-open>.sf-part-body{gap:16px;margin-top:12px;padding:0;border:0;border-radius:0;background:none}
html body.share-flow.sf-v5 .sf-panel-head{display:none}
html body.share-flow.sf-v5 .sj-step-head{display:flex;flex-direction:column;gap:2px}
html body.share-flow.sf-v5 .sj-step-head h2{margin:0;color:var(--sf-ink);font:700 22px/1.25 Arial,Helvetica,sans-serif}
html body.share-flow.sf-v5 .sj-step-head p{margin:0;color:var(--sf-ink2);font-size:13px}
@media (max-width:767px){
 html body.share-flow.sf-v5 .sf-parts{gap:8px;padding-top:16px}
 html body.share-flow.sf-v5 .sf-part-toggle{gap:8px;height:50px;padding:0 8px}
 html body.share-flow.sf-v5 .sf-part-toggle .sf-dot{width:28px;height:28px;font-size:12px}
 html body.share-flow.sf-v5 .sf-part-toggle .sf-part-title{font-size:12px;line-height:1.2}
 html body.share-flow.sf-v5 .sf-part-toggle .sf-part-summary{display:none}
}

/* ---- Cards ---------------------------------------------------------------------------------------------------- */
html body.share-flow.sf-v5 .sj-card{display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px;border:1px solid var(--sf-line);border-radius:18px;background:var(--sf-surface)}
html body.share-flow.sf-v5 .sj-card-head{display:flex;flex-direction:column;gap:1px}
html body.share-flow.sf-v5 .sj-card-head strong{color:var(--sf-ink);font:700 15px/1.3 Arial,Helvetica,sans-serif}
html body.share-flow.sf-v5 .sj-card-head small{color:var(--sf-ink2);font-size:12px}
html body.share-flow.sf-v5 .sj-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
/* A card names its field, so the field's own label and legend step aside (they stay for screen readers). */
html body.share-flow.sf-v5 .sj-card :is(fieldset>legend,label>span:first-child:not(.sf-icon)){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html body.share-flow.sf-v5 .sj-card fieldset{min-width:0;margin:0;padding:0;border:0}
html body.share-flow.sf-v5 .sj-card :is(label:has(>[name=consent]))>span{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal}
html body.share-flow.sf-v5 .sj-about textarea{min-height:88px}
html body.share-flow.sf-v5 .sj-about output{align-self:flex-end;margin:-6px 0 0;font-size:12px;color:var(--sf-ink2)}
html body.share-flow.sf-v5 .sj-text textarea{min-height:108px}
html body.share-flow.sf-v5 .sj-chips #cj-type-count{position:static;align-self:flex-end;margin:-6px 0 0;font-size:12px}
/* Step 1: stops beside a sticky map at 60:40. */
html body.share-flow.sf-v5 .sj-stops-cols{grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:22px}
/* Step 3: costs beside the tips and the publish card. */
html body.share-flow.sf-v5 .sj-costs-cols{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
html body.share-flow.sf-v5 .sj-costs .sf-total{margin:0;background:none;border-top:1px solid var(--sf-line);border-radius:0;padding:14px 2px 0}
html body.share-flow.sf-v5 .sj-publish{gap:12px}
html body.share-flow.sf-v5 .sj-publish label:has(>[name=consent]){padding:0;background:none}
html body.share-flow.sf-v5 .sj-publish-button{height:48px;min-height:48px;border:0;border-radius:999px;background:#0b7c8c;color:#fff;font:700 15px Arial,Helvetica,sans-serif;cursor:pointer}
html body.share-flow.sf-v5 .sj-publish-button[aria-disabled=true]{opacity:.45}
html body.share-flow.sf-v5 .sj-publish>.sf-help{margin:0;text-align:center;font-size:12px}
@media (max-width:1023px){
 html body.share-flow.sf-v5 :is(.sj-stops-cols,.sj-costs-cols){grid-template-columns:minmax(0,1fr)}
 html body.share-flow.sf-v5 .sf-part-body .sf-map,html body.share-flow.sf-v5 .sf-part-body .sf-map[hidden]{position:static;height:320px;min-height:0}
}
@media (max-width:767px){
 html body.share-flow.sf-v5 .sj-card-grid{grid-template-columns:minmax(0,1fr)}
 html body.share-flow.sf-v5 .sf-part-body .sf-map,html body.share-flow.sf-v5 .sf-part-body .sf-map[hidden]{height:220px}
 html body.share-flow.sf-v5 .sj-step-head h2{font-size:20px}
}

/* ---- The bottom bar ------------------------------------------------------------------------------------------- */
/* Web: Previous, Next, "N% ready to publish", Preview and Publish journey, as pills. */
html body.share-flow.sf-v5 .sf-footer{gap:10px;height:auto;padding:10px var(--sf-gutter);border-top:1px solid var(--sf-line);background:var(--sf-surface)}
html body.share-flow.sf-v5 .sf-footer>.sf-nav{height:44px;min-height:44px;padding:0 18px;border-radius:999px;font-size:14px}
html body.share-flow.sf-v5 .sf-footer>.sf-nav:disabled{display:none}
html body.share-flow.sf-v5 .sf-footer .sf-progress{gap:0}
html body.share-flow.sf-v5 .sf-footer .sf-progress-track{display:none}
html body.share-flow.sf-v5 .sf-footer .sf-progress b{font-weight:400;font-size:13px;color:var(--sf-ink2)}
html body.share-flow.sf-v5 .sf-footer>:is(.sf-preview,.sf-publish){flex:none;height:44px;min-height:44px;margin-left:0;padding:0 20px;border-radius:999px;font-size:14px}
html body.share-flow.sf-v5 .sf-footer>.sf-preview{margin-left:auto}
@media (max-width:767px){
 /* Phones: Back, Next, Preview as an eye, and Publish. */
 html body.share-flow.sf-v5 .sf-footer{gap:8px;padding:10px var(--sf-gutter) calc(14px + env(safe-area-inset-bottom))}
 html body.share-flow.sf-v5 .sf-footer .sf-progress{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 html body.share-flow.sf-v5 .sf-footer>:is(.sf-nav,.sf-preview,.sf-publish){min-width:0;padding:0 14px;font-size:0;white-space:nowrap}
 html body.share-flow.sf-v5 .sf-footer>:is(.sf-nav,.sf-preview,.sf-publish)::after{font:700 14px/1 Arial,Helvetica,sans-serif}
 html body.share-flow.sf-v5 .sf-footer>.sf-prev::after{content:"← Back"}
 html body.share-flow.sf-v5 .sf-footer>.sf-next::after{content:"Next →"}
 html body.share-flow.sf-v5 .sf-footer>.sf-publish::after{content:"Publish"}
 html body.share-flow.sf-v5 .sf-footer>.sf-preview{width:44px;padding:0}
 html body.share-flow.sf-v5 .sf-footer>.sf-preview::after{content:"";display:block;width:20px;height:20px;margin:0 auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat}
}
/* The map below the stops on phones and tablets: a fixed-height map, with its options under it. */
@media (max-width:1023px){
 html body.share-flow.sf-v5 .sf-part-body .sf-map,html body.share-flow.sf-v5 .sf-part-body .sf-map[hidden]{position:static;height:auto;min-height:0}
 html body.share-flow.sf-v5 .sf-map .cj-live-map{height:320px!important}
}
@media (max-width:767px){html body.share-flow.sf-v5 .sf-map .cj-live-map{height:220px!important}}
.sj-top .mm-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
html body.share-flow.sf-v5 .sf-part-body .sj-step-head h2{display:block}
/* Tips: the card names the field; the label's own words stay for screen readers. */
html body.share-flow.sf-v5 .sj-text label{font-size:0!important;gap:0}
html body.share-flow.sf-v5 .sj-text textarea{font-size:15px}
/* The travellers editor inside the popover: no box of its own. */
html body.sf-v5 .sj-top .mm3-people #cj-travelers{min-width:0;margin:0;padding:0;border:0}

/* ---- Step 1: stops in the Make It Mine v3 look (mine-desktop.css and mine-v3.css style the mm-* parts) --------- */
html body.sf-v5 .mm-flow.sj-mm{display:flex;flex-direction:column;gap:14px;min-width:0;font-family:Arial,Helvetica,sans-serif}
html body.share-flow.sf-v5 .sj-mm #cj-stop-list{display:flex;flex-direction:column;gap:14px;margin:0}
html body.share-flow.sf-v5 .sf-part-body .sj-day h3{display:block}
html body.share-flow.sf-v5 .sj-mm .sj-day{margin:4px 0 -4px}
/* The card: a light teal tint with a 2px border; open, the border turns teal. */
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop{display:flex;flex-direction:column;gap:0;min-width:0;margin:0;padding:0;border:2px solid #b9dbe4;border-radius:16px;background:rgba(11,124,140,.075);box-shadow:none;overflow:visible}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open{gap:14px;padding-bottom:14px;border-color:#0b7c8c;box-shadow:0 10px 26px rgba(18,59,97,.1)}
html[data-theme=dark] body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop{border-color:#2f5560;background:rgba(131,223,211,.06)}
html[data-theme=dark] body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open{border-color:#0b7c8c}
html body.share-flow.sf-v5 .cj-stop.mm-stop.is-dragging{opacity:.5}
html body.share-flow.sf-v5 .cj-stop.mm-stop.is-drop-before{box-shadow:0 -4px 0 #0b7c8c}
html body.share-flow.sf-v5 .cj-stop.mm-stop.is-drop-after{box-shadow:0 4px 0 #0b7c8c}
/* The header: grip, number, STOP n · DAY n, the name and its places, Remove and the chevron. */
html body.share-flow.sf-v5 .sf-part-body .sf-stop-row.mm-stop-head{display:flex;grid-template-columns:none;align-items:center;gap:12px;min-height:0;margin:0;padding:14px;border:0;border-radius:0;background:none;text-align:left;cursor:pointer}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.is-open>.mm-stop-head{border-bottom:1px solid var(--mm-l)}
html body.share-flow.sf-v5 .sj-mm .mm-stop-title h4{margin:0}
html body.share-flow.sf-v5 .sj-mm .mm-sub{overflow:hidden;font-size:12px;color:var(--mm-mu);white-space:nowrap;text-overflow:ellipsis}
html body.share-flow.sf-v5 .sj-mm .mm-ksr button.is-danger{color:var(--mm-rd,#c0392b)}
html[data-theme=dark] body.share-flow.sf-v5 .sj-mm .mm-ksr button.is-danger{color:#ff9a8c}
html body.share-flow.sf-v5 .sj-mm :is(.mm-grip,.mm-toggle,.mm-ksr button){min-width:0;min-height:0;margin:0}
/* Inside an open stop. */
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop>:not(.sf-stop-row,.sj-stay){display:none}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>:not(.sf-stop-row){display:revert;margin:0 14px}
/* Move up / Move down stay for the keyboard, as quiet buttons at the foot of the stop; the header has Remove. */
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.cj-stop-header{display:flex;order:9;gap:8px;padding:0;border:0;background:none}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop>.cj-stop-header>:is(strong,[data-stop-remove]){display:none}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop>.cj-stop-header>[data-stop-move]{height:32px;min-height:0;padding:0 12px;border:1px solid var(--mm-l);border-radius:16px;background:var(--mm-s);color:var(--mm-i);font:700 12px Arial,Helvetica,sans-serif}
/* Between stops: "Hvar → Split", the travel pill, then the time and distance. */
html body.share-flow.sf-v5 .sj-mm .sf-leg.mm-leg{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:-4px 0 -4px 28px;padding:6px 0 6px 14px;border:0;border-left:2px dashed var(--mm-c);background:none}
html body.share-flow.sf-v5 .sj-mm .sf-leg.mm-leg::before,html body.share-flow.sf-v5 .sj-mm .sf-leg.mm-leg::after{content:none}
html body.share-flow.sf-v5 .sj-mm .mm-leg-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
html body.share-flow.sf-v5 .sj-mm .sf-leg-pill.mm-pill{height:32px;min-height:32px;padding:0 12px;border:1px solid var(--mm-l);border-radius:16px;background:var(--mm-s);color:var(--mm-i);font:700 12px Arial,Helvetica,sans-serif}
html body.share-flow.sf-v5 .sj-mm .sf-leg-pill.mm-pill.is-set{border-color:#0b7c8c;background:var(--mm-t);color:var(--mm-a)}
html body.share-flow.sf-v5 .sj-mm .mm-leg-est strong{color:var(--mm-i)}
html body.share-flow.sf-v5 .sj-mm .mm-leg-warn{padding:4px 10px;border-radius:999px;background:var(--mm-y,#fdf6e3);color:var(--mm-yt,#8a5a00);font:700 12px/1.3 Arial,Helvetica,sans-serif}
/* Add a stop: a wide dashed button. */
html body.share-flow.sf-v5 .sf-part-body .sj-mm #cj-add-stop{height:52px;min-height:52px;margin:0;border:1.5px dashed #0b7c8c;border-radius:14px;background:transparent;color:var(--mm-a);font:700 15px Arial,Helvetica,sans-serif}
/* The map: 440px tall and sticky beside the stops. */
@media (min-width:1024px){html body.share-flow.sf-v5 .sf-part-body .sf-map,html body.share-flow.sf-v5 .sf-part-body .sf-map[hidden]{top:16px;height:auto;min-height:0}html body.share-flow.sf-v5 .sf-map .cj-live-map{height:440px!important}}
/* Add a place: the page's own label and field styles step aside for the prominent field (mine-v3.css). */
html body.share-flow.sf-v5 .sf-part-body .sj-mm .sp-add.is-plan{display:flex;flex-direction:column;gap:8px;padding:0;border:0;background:none}
html body.share-flow.sf-v5 .sf-part-body .sj-mm .sp-add-field{display:flex;flex-direction:row;align-items:center;gap:10px;height:52px;margin:0;padding:0 8px;border:2px solid #0b7c8c;border-radius:14px;background:var(--mm-t);box-sizing:border-box;font-size:15px!important;cursor:text}
html body.share-flow.sf-v5 .sf-part-body .sj-mm .sp-add-text{display:flex;flex:1;flex-direction:column;gap:0;min-width:0;text-align:left}
html body.share-flow.sf-v5 .sf-part-body .sj-mm .sp .sp-add-text input{width:100%;height:22px;min-height:0!important;margin:0;padding:0!important;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;color:var(--mm-i)!important;font:700 15px Arial,Helvetica,sans-serif!important;outline:none}
html body.share-flow.sf-v5 .sf-part-body .sj-mm .sp .sp-add-text input::placeholder{color:var(--mm-i)!important;opacity:1}
html body.share-flow.sf-v5 .sf-part-body .sj-mm .sp .sp-add-text input:focus::placeholder{color:var(--mm-mu)!important}
html body.share-flow.sf-v5 .sf-part-body .sj-mm .sp-add-text small{overflow:hidden;color:var(--mm-mu);font:400 12px/1.3 Arial,Helvetica,sans-serif;white-space:nowrap;text-overflow:ellipsis}
/* Inside an open stop: the place first, then its day as a compact stepper. */
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.cj-field-grid{display:flex;flex-direction:column;gap:12px}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop>.cj-field-grid>label:has([data-stop-field=name]){order:-1}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop>.cj-field-grid>label:has([data-stop-field=day]){display:grid;grid-template-columns:auto 36px 64px 36px;align-items:center;justify-content:start;gap:8px}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop>.cj-field-grid [data-stop-field=day]{width:64px;min-height:40px;padding:0;text-align:center}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop>.cj-field-grid .sf-step{width:36px;height:36px;min-width:36px;min-height:36px}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop>.cj-stop-location{margin-top:-8px;font-size:12px;color:var(--mm-mu)}
@media (max-width:767px){
 /* Phones: Remove moves to a second row under the name; the chevron stays beside the name. */
 html body.share-flow.sf-v5 .sf-part-body .sj-mm .sf-stop-row.mm-stop-head{flex-wrap:wrap;gap:8px 10px;padding:14px 12px}
 html body.share-flow.sf-v5 .sj-mm .mm-stop-title{flex:1 1 0;min-width:0}
 html body.share-flow.sf-v5 .sj-mm .mm-ksr{order:5;flex:0 0 100%;padding:0;border:0;background:none}
 html body.share-flow.sf-v5 .sj-mm .mm-ksr button.is-danger{height:34px;padding:0 14px;border:1px solid var(--mm-l);border-radius:999px;background:var(--mm-s)}
 html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>:not(.sf-stop-row){margin:0 12px}
}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop>.cj-field-grid>label:has([data-stop-field=name]) :is(input,.ts-search,.ts-combobox){width:100%;max-width:none;box-sizing:border-box}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop>.cj-field-grid>label:has([data-stop-field=day]){display:flex;flex-wrap:wrap;align-items:center;gap:8px}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop>.cj-field-grid>label:has([data-stop-field=day])>span:first-child{flex:0 0 100%}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop>.cj-field-grid [data-stop-field=day]{flex:none;width:64px!important;min-width:0}
html body.share-flow.sf-v5 .sf-part-body .sj-mm .sp-add-plus{color:#fff!important}
html body.share-flow.sf-v5 .sf-part-body .sj-mm .sp-add-plus svg{stroke:#fff}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop>.cj-field-grid>label{align-self:stretch;width:auto;max-width:none}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop>.cj-field-grid>label:has([data-stop-field=day]){flex-direction:row}
/* The step heading with an action beside it (Spread stops over days). */
html body.share-flow.sf-v5 .sj-step-head{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px}
html body.share-flow.sf-v5 .sj-step-head>div{display:flex;flex:1 1 240px;flex-direction:column;gap:2px;min-width:0}
html body.share-flow.sf-v5 .sj-spread{display:inline-flex;flex:none;align-items:center;gap:8px;height:38px;min-height:0;margin:0;padding:0 16px;border:1.5px solid var(--sf-ctl);border-radius:999px;background:var(--sf-surface);color:var(--sf-ink);font:700 13px Arial,Helvetica,sans-serif;cursor:pointer}
html body.share-flow.sf-v5 .sj-spread:hover:not(:disabled){border-color:#0b7c8c}
html body.share-flow.sf-v5 .sj-spread:disabled{opacity:.45;cursor:default}
/* Things scrolled or tabbed into view stay above the bottom bar. */
html:has(body.sf-v5){scroll-padding-bottom:96px}

/* ---- Step 1 extras (journey-share-extras.mjs): where you stayed, time here, pit stops, fuel -------------------- */
/* Shared small parts */
html body.share-flow.sf-v5 .sj-mm .sj-btn{display:inline-flex;flex:none;align-items:center;gap:6px;height:36px;min-height:0;margin:0;padding:0 16px;border:1.5px solid #0b7c8c;border-radius:999px;background:var(--mm-s);color:var(--mm-a);font:700 13px Arial,Helvetica,sans-serif;cursor:pointer}
html body.share-flow.sf-v5 .sj-mm .sj-btn.is-primary{background:#0b7c8c;color:#fff}
html body.share-flow.sf-v5 .sj-mm .sj-btn:disabled{opacity:.5;cursor:default}
html body.share-flow.sf-v5 .sj-mm .sj-x{display:flex;flex:none;align-items:center;justify-content:center;width:32px;height:32px;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:50%;background:none;color:var(--mm-mu);cursor:pointer}
html body.share-flow.sf-v5 .sj-mm .sj-x:hover{background:var(--mm-m);color:var(--mm-i)}
html body.share-flow.sf-v5 .sj-mm .sj-chip{height:34px;min-height:0;margin:0;padding:0 14px;border:1px solid var(--mm-c);border-radius:999px;background:var(--mm-s);color:var(--mm-i);font:700 13px Arial,Helvetica,sans-serif;cursor:pointer}
html body.share-flow.sf-v5 .sj-mm .sj-chip[aria-pressed=true]{border-color:#0b7c8c;background:var(--mm-t);color:var(--mm-a)}
html body.share-flow.sf-v5 .sj-mm .sj-stay-note{min-height:0;margin:0;font-size:12px;color:var(--mm-mu)}
html body.share-flow.sf-v5 .sj-mm .sj-stay-note:empty{display:none}
html body.share-flow.sf-v5 .sj-mm .sj-stay-note.is-error{color:#c0392b;font-weight:700}
html[data-theme=dark] body.share-flow.sf-v5 .sj-mm .sj-stay-note.is-error{color:#ff9a8c}
html body.share-flow.sf-v5 .sj-mm .sj-stay-actions{display:flex;flex-wrap:wrap;gap:8px}
/* Where you stayed: a row at the foot of every stop card, open or closed. */
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop>.sj-stay{display:flex;order:10;align-items:center;gap:12px;margin:0;padding:12px 14px;border-top:1px solid var(--mm-l)}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.sj-stay{margin:0;padding-bottom:0}
html body.share-flow.sf-v5 .sj-mm .sj-stay-icon{display:flex;flex:none;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:var(--mm-t);color:var(--mm-a);overflow:hidden}
html body.share-flow.sf-v5 .sj-mm .sj-stay-icon.has-photo{width:56px;height:44px}
html body.share-flow.sf-v5 .sj-mm .sj-stay-icon img{display:block;width:100%;height:100%;object-fit:cover}
html body.share-flow.sf-v5 .sj-mm .sj-stay-text{display:flex;flex:1;flex-direction:column;gap:1px;min-width:0;font-size:13px;color:var(--mm-mu)}
html body.share-flow.sf-v5 .sj-mm .sj-stay-text small,html body.share-flow.sf-v5 .sj-mm .sj-stay-kicker{margin:0;color:var(--mm-mu);font:700 11px/1.3 Arial,Helvetica,sans-serif;letter-spacing:.08em}
html body.share-flow.sf-v5 .sj-mm :is(.sj-stay-text small i,.sj-stay-kicker small){font-style:normal;font-weight:400;letter-spacing:0}
html body.share-flow.sf-v5 .sj-mm .sj-stay-text strong{overflow:hidden;color:var(--mm-i);font-size:15px;white-space:nowrap;text-overflow:ellipsis}
html body.share-flow.sf-v5 .sj-mm .sj-stay-text>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
html body.share-flow.sf-v5 .sj-mm .sj-stay-text a{display:inline-flex;align-items:center;gap:4px;color:var(--mm-mu);text-decoration:none}
html body.share-flow.sf-v5 .sj-mm .sj-stay-text a:hover{color:var(--mm-a);text-decoration:underline}
html body.share-flow.sf-v5 .sj-mm .sj-stay-form{display:flex;flex:1;flex-direction:column;gap:10px;min-width:0}
html body.share-flow.sf-v5 .sj-mm .sj-stay-grid{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr);align-items:end;gap:10px}
html body.share-flow.sf-v5 .sj-mm .sj-stay-grid>.sj-stay-icon{grid-row:span 2;align-self:start;width:72px;height:72px;border-radius:12px}
html body.share-flow.sf-v5 .sj-mm .sj-stay-grid>label.is-wide{grid-column:2/-1}
html body.share-flow.sf-v5 .sf-part-body .sj-mm :is(.sj-stay-grid,.sj-pit-grid)>label{display:flex;flex-direction:column;gap:5px;min-width:0;margin:0;color:var(--mm-i);font:700 12px Arial,Helvetica,sans-serif!important}
html body.share-flow.sf-v5 .sf-part-body .sj-mm :is(.sj-stay-grid,.sj-pit-grid)>label small{font-weight:400;color:var(--mm-mu)}
html body.share-flow.sf-v5 .sf-part-body .sj-mm :is(.sj-stay-grid,.sj-pit-grid) :is(input,select){width:100%;height:42px;min-height:0!important;margin:0;padding:0 12px!important;border:1px solid var(--mm-c)!important;border-radius:10px;background:var(--mm-s)!important;color:var(--mm-i)!important;font:400 14px Arial,Helvetica,sans-serif!important;box-sizing:border-box}
html body.share-flow.sf-v5 .sj-mm .sj-stay-types{display:flex;flex-wrap:wrap;gap:6px}
@media (max-width:767px){
 html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop>.sj-stay{flex-wrap:wrap;gap:10px;padding:12px}
 html body.share-flow.sf-v5 .sj-mm .sj-stay-text{flex:1 1 calc(100% - 60px)}
 html body.share-flow.sf-v5 .sj-mm .sj-stay-grid{grid-template-columns:minmax(0,1fr)}
 html body.share-flow.sf-v5 .sj-mm .sj-stay-grid>.sj-stay-icon{display:none}
 html body.share-flow.sf-v5 .sj-mm .sj-stay-grid>label.is-wide{grid-column:auto}
}
/* Time here: three choices. */
html body.share-flow.sf-v5 .sj-mm .sj-time{display:flex;flex-direction:column;gap:6px}
html body.share-flow.sf-v5 .sj-mm .sj-label{color:var(--mm-i);font:700 13px Arial,Helvetica,sans-serif}
html body.share-flow.sf-v5 .sj-mm .sj-label small{font-weight:400;color:var(--mm-mu)}
html body.share-flow.sf-v5 .sj-mm .sj-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--mm-c);border-radius:12px;background:var(--mm-f)}
html body.share-flow.sf-v5 .sj-mm .sj-seg button{height:36px;min-width:0;min-height:0;margin:0;padding:0 8px;border:0;border-radius:9px;background:none;color:var(--mm-i);font:700 13px Arial,Helvetica,sans-serif;cursor:pointer}
html body.share-flow.sf-v5 .sj-mm .sj-seg button[aria-pressed=true]{background:#0b7c8c;color:#fff}
/* Pit stops: an indented green card on the way to the next stop. */
html body.share-flow.sf-v5 .sj-mm .sj-pits{display:flex;flex-direction:column;gap:8px;margin-left:14px}
html body.share-flow.sf-v5 .sj-mm .sj-pit{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--mm-g2);border-radius:14px;background:var(--mm-g);color:var(--mm-i)}
html body.share-flow.sf-v5 .sj-mm .sj-pit-icon{display:flex;flex:none;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:var(--mm-g2);color:#1f7a4a}
html[data-theme=dark] body.share-flow.sf-v5 .sj-mm .sj-pit-icon{color:var(--mm-gi)}
html body.share-flow.sf-v5 .sj-mm .sj-pit-text{display:flex;flex:1;flex-direction:column;gap:1px;min-width:0;font-size:12px;color:var(--mm-mu)}
html body.share-flow.sf-v5 .sj-mm .sj-pit-text small{color:#1f7a4a;font:700 10px/1.3 Arial,Helvetica,sans-serif;letter-spacing:.1em}
html[data-theme=dark] body.share-flow.sf-v5 .sj-mm .sj-pit-text small{color:var(--mm-gi)}
html body.share-flow.sf-v5 .sj-mm .sj-pit-text strong{color:var(--mm-i);font-size:14px}
html body.share-flow.sf-v5 .sj-mm .sj-pit-form{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--mm-g2);border-radius:14px;background:var(--mm-s)}
html body.share-flow.sf-v5 .sj-mm .sj-pit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (max-width:767px){html body.share-flow.sf-v5 .sj-mm .sj-pit-grid{grid-template-columns:minmax(0,1fr)}html body.share-flow.sf-v5 .sj-mm .sj-pits{margin-left:0}}
/* Fuel for this trip, under the map. */
html body.sf-v5 .mm-flow.sj-fuel-wrap{display:block}
html body.share-flow.sf-v5 .sf-part-body .sj-fuel h3{display:block;margin:0;color:var(--mm-i);font:700 15px/1.3 Arial,Helvetica,sans-serif}
html body.share-flow.sf-v5 .sj-fuel .mm-fuel-head p{margin:1px 0 0;font-size:12px;color:var(--mm-mu)}
html body.share-flow.sf-v5 .sj-fuel .mm-fuel-head>div{flex:1;min-width:0}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop:not(.is-open)>.sj-stay{display:flex!important}
/* The right column (map, then fuel) sticks as one while the stops scroll. */
@media (min-width:1024px){
 html body.share-flow.sf-v5 .sj-stops-cols>.sf-map-column{position:sticky;top:16px;align-self:start;gap:16px}
 html body.share-flow.sf-v5 .sj-stops-cols>.sf-map-column .sf-map,html body.share-flow.sf-v5 .sj-stops-cols>.sf-map-column .sf-map[hidden]{position:static}
}
html body.share-flow.sf-v5 .sj-stops-cols>.sf-map-column{display:flex;flex-direction:column;gap:16px}

/* ---- Step 2: tick-style chips and the Vehicle card ---------------------------------------------------------------- */
/* A chip is the form's own label; the circle on its left fills and gets a tick when it is chosen. */
html body.share-flow.sf-v5 .sf-part-body .sj-chips :is(.cj-checks,.cj-choices){gap:8px}
html body.share-flow.sf-v5 .sf-part-body .sj-chips :is(.cj-checks,.cj-choices)>label{gap:8px;min-height:36px;padding:0 14px 0 8px;border:1px solid var(--sf-line);background:var(--sf-surface);color:var(--sf-ink)!important;font:700 14px/1.2 Arial,Helvetica,sans-serif!important;white-space:nowrap;cursor:pointer}
html body.share-flow.sf-v5 .sf-part-body .sj-chips :is(.cj-checks,.cj-choices)>label::before{content:'';flex:none;box-sizing:border-box;width:18px;height:18px;border:1.5px solid var(--sf-ctl);border-radius:50%;background:var(--sf-surface)}
html body.share-flow.sf-v5 .sf-part-body .sj-chips :is(.cj-checks,.cj-choices)>label:hover{border-color:var(--sf-ctl)}
html body.share-flow.sf-v5 .sf-part-body .sj-chips :is(.cj-checks,.cj-choices)>label:has(input:checked){border-color:#0b7c8c;background:var(--sf-tint);color:var(--sf-ink)!important}
html[data-theme=dark] body.share-flow.sf-v5 .sf-part-body .sj-chips :is(.cj-checks,.cj-choices)>label:has(input:checked){border-color:var(--sf-accent)}
html body.share-flow.sf-v5 .sf-part-body .sj-chips :is(.cj-checks,.cj-choices)>label:has(input:checked)::before{border-color:#0b7c8c;background:#0b7c8c}
html body.share-flow.sf-v5 .sf-part-body .sj-chips :is(.cj-checks,.cj-choices)>label:has(input:checked)::after{content:'';position:absolute;left:14px;top:50%;box-sizing:content-box;width:4px;height:8px;margin-top:-6px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);pointer-events:none}
html body.share-flow.sf-v5 .sf-part-body .sj-chips :is(.cj-checks,.cj-choices)>label:has(input:disabled){opacity:.5;cursor:default}
@media (max-width:767px){html body.share-flow.sf-v5 .sf-part-body .sj-chips :is(.cj-checks,.cj-choices)>label{min-height:38px;white-space:normal}}
/* Vehicle: the card names the picker, so the field's own words stay for screen readers only. */
html body.share-flow.sf-v5 .sf-part-body .sj-vehicle .cj-account-options{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0;padding:0;border:0;border-radius:0;background:none}
html body.share-flow.sf-v5 .sf-part-body .sj-vehicle .cj-account-options>label{display:block;margin:0;font-size:0!important;line-height:0!important}
html body.share-flow.sf-v5 .sf-part-body .sj-vehicle .cj-account-options>label>.ts-select{position:relative;display:flex;width:100%;height:auto;overflow:visible;clip-path:none;white-space:normal;font-size:14px;line-height:1.3}
html body.share-flow.sf-v5 .sf-part-body .sj-vehicle :is(select:not(.ts-select-source),.ts-select-trigger){width:100%;min-height:44px;font:700 14px/1.3 Arial,Helvetica,sans-serif!important}
/* The journey type count sits in the card's corner, beside its heading. */
html body.share-flow.sf-v5 .sj-chips #cj-type-count{position:absolute;top:-46px;right:0;margin:0;font-size:12px;line-height:1.3;color:var(--sf-muted)}
html body.share-flow.sf-v5 .sf-part-body .sj-vehicle .cj-intro{margin:0;font-size:12px;line-height:1.4;color:var(--sf-muted)}
html body.share-flow.sf-v5 .sf-part-body .sj-vehicle .cj-intro:empty{display:none}
html body.share-flow.sf-v5 .sf-part-body .sj-vehicle .cj-garage-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin:0}
html body.share-flow.sf-v5 .sf-part-body .sj-vehicle .cj-garage-actions :is(a,button){min-height:32px;margin:0;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}
html body.share-flow.sf-v5 .sf-part-body .sj-vehicle .cj-garage-actions :is(a,button):hover{text-decoration:underline}

/* ---- Step 3: cost rows, custom costs, the total and the publish card -------------------------------------------- */
html body.share-flow.sf-v5 .sj-cost-list{display:flex;flex-direction:column;gap:16px;min-width:0}
html body.share-flow.sf-v5 .sj-cost{display:flex;flex-direction:column;gap:8px;min-width:0}
html body.share-flow.sf-v5 .sj-cost[hidden]{display:none}
html body.share-flow.sf-v5 .sj-cost-top{display:flex;align-items:center;gap:10px;min-width:0}
html body.share-flow.sf-v5 .sj-cost-icon{display:flex;flex:none;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9px;background:var(--sf-tint);color:var(--sf-accent)}
html body.share-flow.sf-v5 .sj-cost-icon .sf-icon{width:18px;height:18px}
html body.share-flow.sf-v5 .sf-part-body .sj-cost-top>label{position:static;flex:1;width:auto;height:auto;min-width:0;margin:0;overflow:hidden;clip-path:none;color:var(--sf-ink)!important;font:700 14px/1.3 Arial,Helvetica,sans-serif!important;white-space:nowrap;text-overflow:ellipsis}
html body.share-flow.sf-v5 .sj-cost-box{display:flex;flex:none;align-items:center;gap:4px;box-sizing:border-box;width:98px;height:36px;padding:0 10px;border:1px solid var(--sf-ctl);border-radius:10px;background:var(--sf-field,var(--sf-bg))}
html body.share-flow.sf-v5 .sj-cost-box:focus-within{border-color:#0b7c8c;box-shadow:0 0 0 3px var(--sf-tint)}
html body.share-flow.sf-v5 .sf-part-body .sj-cost-box>span{position:static;flex:none;width:auto;height:auto;overflow:visible;clip-path:none;color:var(--sf-muted);font:700 14px/1 Arial,Helvetica,sans-serif}
html body.share-flow.sf-v5 .sf-part-body .sj-cost-box>input{flex:1;width:100%!important;min-width:0;height:100%;min-height:0!important;margin:0;padding:0!important;border:0!important;border-radius:0;background:none!important;color:var(--sf-ink)!important;font:700 15px/1 Arial,Helvetica,sans-serif!important;text-align:right;-moz-appearance:textfield;appearance:textfield}
html body.share-flow.sf-v5 .sf-part-body .sj-cost-box>input::-webkit-inner-spin-button,html body.share-flow.sf-v5 .sf-part-body .sj-cost-box>input::-webkit-outer-spin-button{display:none;margin:0;-webkit-appearance:none}
html body.share-flow.sf-v5 .sj-cost-slide{display:flex;align-items:center;gap:10px;min-width:0}
html body.share-flow.sf-v5 .sf-part-body .sj-cost-step{display:flex;flex:none;align-items:center;justify-content:center;width:32px;height:32px;min-width:0;min-height:0;margin:0;padding:0 0 2px;border:1px solid var(--sf-ctl);border-radius:50%;background:var(--sf-surface);color:var(--sf-ink);font:400 18px/1 Arial,Helvetica,sans-serif;cursor:pointer}
html body.share-flow.sf-v5 .sf-part-body .sj-cost-step[data-sj-cost-step="5"]{border-color:#0b7c8c;color:var(--sf-accent)}
html[data-theme=dark] body.share-flow.sf-v5 .sf-part-body .sj-cost-step[data-sj-cost-step="5"]{border-color:var(--sf-accent)}
html body.share-flow.sf-v5 .sf-part-body .sj-cost-step:hover{background:var(--sf-tint)}
html body.share-flow.sf-v5 .sj-cost-slide .sf-range{flex:1;width:auto;min-width:0;height:24px;margin:0;padding:0;border:0;background:none;accent-color:#0b7c8c;cursor:pointer;-webkit-appearance:none;appearance:none}
html body.share-flow.sf-v5 .sj-cost-slide .sf-range::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:linear-gradient(to right,#0b7c8c var(--sj-fill,0%),var(--sf-line) var(--sj-fill,0%))}
html body.share-flow.sf-v5 .sj-cost-slide .sf-range::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;margin-top:-5px;border:0;border-radius:50%;background:#0b7c8c}
html body.share-flow.sf-v5 .sj-cost-slide .sf-range::-moz-range-track{height:6px;border-radius:999px;background:var(--sf-line)}
html body.share-flow.sf-v5 .sj-cost-slide .sf-range::-moz-range-progress{height:6px;border-radius:999px;background:#0b7c8c}
html body.share-flow.sf-v5 .sj-cost-slide .sf-range::-moz-range-thumb{width:16px;height:16px;border:0;border-radius:50%;background:#0b7c8c}
html body.share-flow.sf-v5 .sf-part-body .sj-cost-name{flex:1;width:auto;min-width:0;height:36px;min-height:0!important;margin:0;padding:0 10px!important;border:1px dashed var(--sf-ctl)!important;border-radius:10px;background:var(--sf-field,var(--sf-bg))!important;color:var(--sf-ink)!important;font:700 14px/1.3 Arial,Helvetica,sans-serif!important;text-overflow:ellipsis}
html body.share-flow.sf-v5 .sf-part-body .sj-cost-name:focus{border-style:solid!important;border-color:#0b7c8c!important}
html body.share-flow.sf-v5 .sf-part-body .sj-cost-custom .sj-cost-box{width:92px}
html body.share-flow.sf-v5 .sf-part-body .sj-cost-remove{display:flex;flex:none;align-items:center;justify-content:center;width:30px;height:30px;min-width:0;min-height:0;margin:0 -4px 0 -2px;padding:0;border:0;border-radius:50%;background:none;color:var(--sf-muted);cursor:pointer}
html body.share-flow.sf-v5 .sf-part-body .sj-cost-remove:hover{background:var(--sf-tint);color:var(--sf-danger,#b3261e)}
html body.share-flow.sf-v5 .sf-part-body .sj-cost-add{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:48px;min-height:0;margin:0;padding:0 14px;border:1.5px dashed #0b7c8c;border-radius:12px;background:none;color:var(--sf-accent);font:700 14px/1 Arial,Helvetica,sans-serif;cursor:pointer}
html[data-theme=dark] body.share-flow.sf-v5 .sf-part-body .sj-cost-add{border-color:var(--sf-accent)}
html body.share-flow.sf-v5 .sf-part-body .sj-cost-add:hover{background:var(--sf-tint)}
html body.share-flow.sf-v5 .sf-part-body .sj-cost-add[hidden]{display:none}
html body.share-flow.sf-v5 .sf-part-body .sj-cost-add>span{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
html body.share-flow.sf-v5 .sj-costs .sj-total{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:2px 0 0;padding:14px 2px 0;border-top:1px solid var(--sf-line);border-radius:0;background:none;color:var(--sf-muted);font:400 12px/1.3 Arial,Helvetica,sans-serif}
html body.share-flow.sf-v5 .sj-costs .sj-total>span>strong{margin-right:8px;color:var(--sf-ink)!important;font:700 15px/1.3 Arial,Helvetica,sans-serif}
html body.share-flow.sf-v5 .sj-costs .sj-total>strong{color:var(--sf-ink)!important;font:700 22px/1.1 Arial,Helvetica,sans-serif}
@media (max-width:767px){
 html body.share-flow.sf-v5 .sf-part-body .sj-cost-step{width:36px;height:36px}
 html body.share-flow.sf-v5 .sf-part-body .sj-cost-remove{width:36px;height:36px}
 html body.share-flow.sf-v5 .sj-cost-box{width:92px}
 html body.share-flow.sf-v5 .sf-part-body .sj-cost-custom .sj-cost-box{width:84px}
}
/* Publish: the tick, the button (dimmed until ticked) and the privacy note. */
html body.share-flow.sf-v5 .sf-part-body .sj-publish label:has(>[name=consent]){grid-template-columns:22px minmax(0,1fr);gap:10px;padding:0;border:0;border-radius:0;background:none;color:var(--sf-ink)!important;font:400 14px/1.45 Arial,Helvetica,sans-serif!important;cursor:pointer}
html body.share-flow.sf-v5 .sf-part-body .sj-publish label:has(>[name=consent])>input{width:22px;height:22px;margin:0;accent-color:#0b7c8c;cursor:pointer}
html body.share-flow.sf-v5 .sf-part-body .sj-publish-button{width:100%;margin:0}
html body.share-flow.sf-v5 .sf-part-body .sj-publish-button[aria-disabled=true]{cursor:default}

/* ---- Narrow phones (320px): the distance button takes its own line instead of pushing the page wider. ------------- */
@media (max-width:420px){
 html body.share-flow.sf-v5 .sf-distance{flex-wrap:wrap;gap:10px}
 html body.share-flow.sf-v5 .sf-distance>:is(button,.button){flex:1 1 100%;min-width:0}
}
/* While the on-screen keyboard is open the bottom bar stops sticking, so it never covers the field being typed in. */
html body.share-flow.sf-v5.rb-keyboard-open .sf-footer{position:static}
/* The distance field keeps its visible label (cards hide a field's own label only where the card's heading names it). */
html body.share-flow.sf-v5 .sj-coverage .sf-distance>label>span:first-child{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:nowrap}
/* The cover photo keeps its chosen framing (position and zoom, set on the top area by journey-share.mjs). It is drawn
   inside the shade layer, which clips the zoom to the cover while the Edit cover menu can still hang below it. */
html body.sf-v5 .sj-top .mm3-cover:before{content:none}
html body.sf-v5 .sj-top .mm3-cover-shade{overflow:hidden;background:none}
html body.sf-v5 .sj-top .mm3-cover-shade:before{content:'';position:absolute;inset:0;background:var(--mm3-cover,none) var(--cover-x,50%) var(--cover-y,50%)/cover no-repeat;transform:scale(var(--cover-zoom,1));transform-origin:var(--cover-x,50%) var(--cover-y,50%)}
html body.sf-v5 .sj-top .mm3-cover-shade:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,30,40,.35) 0%,rgba(10,30,40,0) 40%,rgba(10,30,40,.25) 100%)}
/* The "add a country" picker stays visible in the Countries card (its wrapper is the label's first element). */
html body.share-flow.sf-v5 .sf-part-body .sj-coverage .cj-coverage>label>span.ts-select:first-child{position:relative;display:inline-flex;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal}
/* The opened stop, in the design's order: Place, Time here, Places to see here. The day, the stop's own photos,
   activities and notes fold under "More about this stop"; Move up / Move down sit there too. */
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.cj-field-grid{display:contents}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.cj-field-grid>label{margin:0 14px}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.cj-field-grid>label:has([data-stop-field=name]),html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.cj-stop-location{order:1}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.sj-time{order:2}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.sp{order:3}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.sj-more-toggle{display:flex;order:6;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:8px 12px;border:1px dashed var(--mm-c);border-radius:12px;background:transparent;color:var(--mm-i);font:inherit;text-align:left;cursor:pointer}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.sj-more-toggle span{display:flex;flex-direction:column;gap:2px;min-width:0}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.sj-more-toggle strong{font:700 13px/1.3 Arial,Helvetica,sans-serif;color:var(--mm-i)}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.sj-more-toggle small{overflow:hidden;font:400 12px/1.3 Arial,Helvetica,sans-serif;color:var(--mm-mu);white-space:nowrap;text-overflow:ellipsis}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.sj-more-toggle svg{flex:none;color:var(--mm-mu);transition:transform .15s}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.sj-more-toggle[aria-expanded=true]{border-style:solid;border-color:var(--mm-l)}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.sj-more-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.sj-more-toggle:focus-visible{outline:2px solid #0b7c8c;outline-offset:2px}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.cj-field-grid>label:has([data-stop-field=day]),html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>:is(.cj-stop-photos,.cj-stop-activities,.sj-stop-notes){order:7}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open:not(.is-more)>:is(.cj-stop-photos,.cj-stop-activities,.sj-stop-notes,.cj-stop-header),html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open:not(.is-more)>.cj-field-grid>label:has([data-stop-field=day]){display:none}
@media (max-width:767px){html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.cj-field-grid>label{margin:0 12px}}
@media (prefers-reduced-motion:reduce){html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.sj-more-toggle svg{transition:none}}
/* A place being dragged, and where it would land. */
html body.share-flow.sf-v5 .sj-mm .sp-place.is-dragging{opacity:.5}
html body.share-flow.sf-v5 .sj-mm .sp-place.is-plan .sp-row{cursor:grab}
html body.share-flow.sf-v5 .sj-mm .pp-shared{grid-column:1/-1;align-self:start;font-size:12px}
/* The journey editor gives every button a 44px minimum; the panel's small controls keep their own sizes. */
html body.share-flow.sf-v5 .sj-mm .pp-panel :is(.pp-box,.pp-x,.pp-chip,.pp-link),html body.share-flow.sf-v5 .sj-mm .sp-place.is-plan :is(.sp-notes,.sp-stack){min-width:0;min-height:0}
html body.share-flow.sf-v5 .sj-mm .pp-panel .pp-box{width:20px;height:20px}
html body.share-flow.sf-v5 .sj-mm .pp-panel .pp-x{width:24px;height:24px}
/* Where you stayed is one row inside an opened stop too. */
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.sj-stay{display:flex;padding-bottom:0}
/* Phones: the place's name gets the width; Edit, Move earlier and Remove go on a second line. */
@media (max-width:767px){
 html body.share-flow.sf-v5 .sj-mm .sp-place.is-plan .sp-row{flex-wrap:wrap;gap:4px 10px}
 html body.share-flow.sf-v5 .sj-mm .sp-place.is-plan .sp-main{flex:1 1 calc(100% - 116px)}
 html body.share-flow.sf-v5 .sj-mm .sp-place.is-plan .sp-edit{margin-left:auto}
}
/* Where you stayed, the form: the photo's place is a button that adds or changes the traveller's own photo. */
html body.share-flow.sf-v5 .sj-mm .sj-stay-grid>.sj-stay-photo{position:relative;flex-direction:column;gap:3px;min-width:0;min-height:0;margin:0;padding:0;border:1.5px dashed var(--mm-a);background:var(--mm-s);color:var(--mm-a);font:700 10px/1.1 Arial,Helvetica,sans-serif;cursor:pointer}
html body.share-flow.sf-v5 .sj-mm .sj-stay-grid>.sj-stay-photo.has-photo{border:0;width:72px;height:72px}
html body.share-flow.sf-v5 .sj-mm .sj-stay-grid>.sj-stay-photo:hover{background:var(--mm-t)}
html body.share-flow.sf-v5 .sj-mm .sj-stay-grid>.sj-stay-photo:disabled{opacity:.6;cursor:progress}
html body.share-flow.sf-v5 .sj-mm .sj-stay-grid>.sj-stay-photo:focus-visible{outline:2px solid #0b7c8c;outline-offset:2px}
html body.share-flow.sf-v5 .sj-mm .sj-stay-photo-edit{position:absolute;right:4px;bottom:4px;display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:rgba(18,59,97,.85);color:#fff}
@media (max-width:767px){html body.share-flow.sf-v5 .sj-mm .sj-stay-grid>.sj-stay-photo{display:flex;width:72px;height:72px}}
/* The stay form's status line keeps its line even when empty: Save must not move when a lookup starts under a click. */
html body.share-flow.sf-v5 .sj-mm .sj-stay-form>.sj-stay-note,html body.share-flow.sf-v5 .sj-mm .sj-stay-form>.sj-stay-note:empty{display:block;min-height:17px;line-height:17px}
/* ==== The v5 design, exactly =================================================================================== */
/* The opened stop is Place, Time here and Places to see here. The day, the stop's own photos, activities, notes and
   Move up / Move down are not part of the design: they are not shown (a day that needs fixing still is). */
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.sj-more-toggle,html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>:is(.cj-stop-photos,.cj-stop-activities,.sj-stop-notes,.cj-stop-header),html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open.is-more>:is(.cj-stop-photos,.cj-stop-activities,.sj-stop-notes,.cj-stop-header){display:none}
html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.cj-field-grid>label:has([data-stop-field=name]) em,html body.share-flow.sf-v5 .sf-part-body .cj-stop.mm-stop.is-open>.cj-stop-location.is-set{display:none}
/* "Places to see here · drag to reorder or move to another stop" on one line. */
html body.share-flow.sf-v5 .sj-mm .sp .sp-head.is-inline{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px}
html body.share-flow.sf-v5 .sj-mm .sp .sp-head.is-inline strong{font:700 12px/1.4 Arial,Helvetica,sans-serif!important;color:var(--mm-i)!important}
html body.share-flow.sf-v5 .sj-mm .sp .sp-head.is-inline small{font:400 12px/1.4 Arial,Helvetica,sans-serif!important;color:var(--mm-mu)!important}
/* A place: one white row with the grip, the label (2a), the photos, the name, a round pencil and ✕. No rail. */
html body.share-flow.sf-v5 .sj-mm .sp-place.is-share{display:block}
html body.share-flow.sf-v5 .sj-mm .sp-place.is-share::before{display:none}
html body.share-flow.sf-v5 .sj-mm .sp-place.is-share .sp-row{gap:10px;padding:10px 12px}
html body.share-flow.sf-v5 .sj-mm .sp-place.is-share .sp-tag{flex:none}
html body.share-flow.sf-v5 .sj-mm .sp-place.is-share .sp-edit{width:36px;height:36px;border:1px solid var(--mm-l);border-radius:50%;background:var(--mm-s);color:var(--mm-i)}
html body.share-flow.sf-v5 .sj-mm .sp-place.is-share .sp-notes{display:inline-flex;align-items:center;gap:6px;color:var(--mm-i)}
html body.share-flow.sf-v5 .sj-mm .sp-place.is-share .sp-notes svg{flex:none;color:var(--mm-i2)}
html body.share-flow.sf-v5 .sj-mm .sp-place.is-share .sp-notes.is-set{color:var(--mm-gi)}
html body.share-flow.sf-v5 .sj-mm .sp-place.is-share .pp-panel{margin:8px 0 4px}
/* "Move earlier" is for the keyboard: it appears when it has focus (the design reorders by dragging). */
html body.share-flow.sf-v5 .sj-mm .sp .sp-quiet{position:absolute;width:1px;height:1px;min-width:0;min-height:0;overflow:hidden;clip-path:inset(50%)}
html body.share-flow.sf-v5 .sj-mm .sp .sp-quiet:focus-visible{position:static;width:32px;height:32px;min-height:32px;clip-path:none}
/* "⌄ Recommended places": the arrow first, without a bubble. */
html body.share-flow.sf-v5 .sj-mm .sp-recs-toggle{flex-direction:row-reverse}
html body.share-flow.sf-v5 .sj-mm .sp-recs-toggle>span{width:14px;background:none}
/* A stretch with pit stops: each part's own time and distance. */
html body.share-flow.sf-v5 .sj-mm .sj-part{display:flex;align-items:center;gap:6px;font:400 12px/1.4 Arial,Helvetica,sans-serif;color:var(--mm-mu)}
html body.share-flow.sf-v5 .sj-mm .sj-part b{color:var(--mm-i)}
html body.share-flow.sf-v5 .sj-mm .sj-part svg{flex:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:var(--mm-a)}
/* The map card: the map, one line, a link. */
html body.share-flow.sf-v5 .sf-map .cj-map-preview>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html body.share-flow.sf-v5 .sf-map .sj-map-note{margin:0;padding:12px 14px 0;font:400 13px/1.4 Arial,Helvetica,sans-serif;color:var(--sf-muted)}
html body.share-flow.sf-v5 .sf-map #cj-open-route{display:inline-block;width:auto;min-height:0;margin:6px 14px 12px;padding:0!important;border:0!important;border-radius:0;background:none!important;box-shadow:none!important;color:var(--sf-accent)!important;font:700 13px/1.4 Arial,Helvetica,sans-serif;text-decoration:none}
html body.share-flow.sf-v5 .sf-map #cj-open-route:hover{text-decoration:underline}
/* The bar: Previous stays in place on the first step, faded. */
html body.share-flow.sf-v5 .sf-footer>.sf-nav:disabled{display:inline-flex;opacity:.45;cursor:default}
/* The map card (no panel above the map): the map sits in the flow, then the note and the link, on the card's surface. */
html body.share-flow.sf-v5 .sf-part-body .sf-map{height:auto;min-height:0;overflow:hidden;background:var(--sf-surface)}
html body.share-flow.sf-v5 .sf-map .cj-map-preview{position:relative;inset:auto}
html body.share-flow.sf-v5 .sf-map #cj-open-route{position:static;top:auto;right:auto;bottom:auto}
html body.share-flow.sf-v5 .sf-map #cj-open-route::after{content:none}
html body.share-flow.sf-v5 .sf-footer>.sf-nav:disabled{align-items:center;justify-content:center}
@media (max-width:767px){
 /* Phones: a place stays one row (grip, label, photos, name, pencil, ✕); the photos are smaller and the notes
    button wraps its words, as in the design. */
 html body.share-flow.sf-v5 .sj-mm .sp-place.is-share .sp-row{flex-wrap:nowrap;gap:8px;padding:10px}
 html body.share-flow.sf-v5 .sj-mm .sp-place.is-share .sp-main{flex:1 1 0;min-width:0}
 html body.share-flow.sf-v5 .sj-mm .sp-place.is-share .sp-stack{width:66px;height:62px}
 html body.share-flow.sf-v5 .sj-mm .sp-place.is-share .sp-stack img{top:6px;left:calc(var(--n) * 12px);width:42px;height:42px}
 html body.share-flow.sf-v5 .sj-mm .sp-place.is-share .sp-stack img:only-of-type{left:10px}
 html body.share-flow.sf-v5 .sj-mm .sp-place.is-share .sp-stack-count{font-size:9px}
 html body.share-flow.sf-v5 .sj-mm .sp-place.is-share .sp-notes{height:auto;min-height:28px;padding:4px 10px;line-height:1.2;text-align:left;white-space:normal}
 html body.share-flow.sf-v5 .sj-mm .sp-place.is-share .sp-edit{margin-left:0}
 html body.share-flow.sf-v5 .sj-mm .sp-place.is-share .sp-thumb-add{width:52px;height:52px}
}
