/* Builder frame — Figma phone 129:1392 / 129:2579, desktop 131:910 / 132:900 */
body.mm-builder{background:var(--paper);min-height:100vh}
.mb-top{position:relative;background:var(--sand);height:68px;padding:0 16px}
.mb-brand{display:none}
.mb-close{position:absolute;left:20px;top:16px;font:500 14px/18px var(--sans);color:var(--ink);text-decoration:none}
.mb-progress{position:absolute;left:20px;right:20px;top:10px;text-align:center}
.mb-step{margin:0;font:600 12px/15px var(--sans);letter-spacing:.06em;color:var(--soft)}
.mb-step-name{display:none}
.mb-title{margin:2px 0 0;font:600 16px/20px var(--sans);color:var(--ink)}
.mb-bars{list-style:none;margin:8px 0 0;padding:0;display:flex;gap:4px}
.mb-bars li{flex:1;height:4px;border-radius:999px;background:rgba(27,42,65,.16)}
.mb-bars li.is-done{background:var(--forest)}
.mb-saved{right:20px;top:18px;font:400 12px/16px var(--sans);color:var(--soft)}
.mb-art{background:var(--sand);padding:0 16px 12px}
.mb-art-card{position:relative;background:var(--card);border-radius:16px;padding:2px;overflow:hidden;height:248px}
body[data-kind="geo"] .mb-art-card{height:215px}
.mb-art-render{width:100%;height:100%;display:grid;place-items:center;background:#fff;border-radius:16px;overflow:hidden}
.mb-art-render svg,.mb-art-render img{width:100%;height:100%;object-fit:contain}
.mb-live{position:absolute;align-items:center;gap:4px;height:22px;padding:0 8px;border-radius:999px;background:var(--green-soft);font:600 12px/14px var(--sans);color:var(--green)}
.mb-live i{width:6px;height:6px;border-radius:50%;background:var(--green)}
.mb-caption{display:flex;align-items:center;gap:8px;margin:8px 2px 0;font:500 14px/17px var(--sans);color:var(--ink)}
.mb-caption i{flex:none;width:8px;height:8px;border-radius:50%;background:var(--terra)}
.mb-panel{padding:16px 16px 120px}
.mb-q{margin:0 0 12px;font:400 24px/30px var(--serif);color:var(--ink)}
.mb-kinds{display:flex;gap:8px}
.mb-kind{flex:1;display:flex;flex-direction:column;gap:4px;min-height:70px;padding:16px 16px 12px;text-align:left;background:#fff;border:1.2px solid var(--line);border-radius:16px;cursor:pointer}
.mb-kind[aria-checked="true"]{background:var(--green-soft);border:2px solid var(--forest);min-height:88px;padding:12px 12px 12px}
.mb-kind-h{display:flex;align-items:center;gap:8px;font:600 16px/21px var(--sans);color:var(--ink)}
.mb-kind-p{font:400 12px/16px var(--sans);color:var(--soft);padding-right:4px}
.mb-radio{flex:none;width:16px;height:16px;border-radius:50%;background:#fff;border:1.5px solid #8C8270}
.mb-kind[aria-checked="true"] .mb-radio{border:5px solid var(--forest)}
.mb-who{margin-top:12px}
body[data-kind="geo"] .mb-who{display:none}
.mb-label{margin:0 0 12px;font:600 12px/16px var(--sans);letter-spacing:.06em;color:var(--soft)}
.mb-chips{display:flex;flex-wrap:wrap;gap:8px}
.mb-chip{height:38px;border-radius:999px;background:#fff;border:1.2px solid var(--line);font:600 14px/18px var(--sans);color:var(--ink);cursor:pointer}
.mb-chip[aria-checked="true"]{background:var(--forest);border-color:var(--forest);color:#fff}
.mb-bottom{position:fixed;left:0;right:0;bottom:0;z-index:5;height:88px;padding:14px 20px calc(22px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line)}
.mb-next{width:100%;height:52px;border-radius:999px}
@media (min-width:1024px){
  .mb-top{height:72px;background:#fff;border-bottom:1px solid var(--line);padding:0 32px}
  .mb-brand{position:absolute;left:40px;top:24px;font:700 20px/26px var(--sans);color:var(--ink);text-decoration:none}
  .mb-close{left:220px;top:26px;font-size:16px;line-height:20px;color:var(--soft)}
  .mb-progress{left:50%;right:auto;top:16px;width:420px;transform:translateX(-50%)}
  .mb-step{font-size:12px;line-height:16px}
  .mb-step-name{display:inline}
  .mb-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .mb-bars{margin-top:12px;gap:4px}.mb-bars li{height:5px;border-radius:999px;background:rgba(27,42,65,.16)}
  .mb-saved{right:43px;top:28px;font-size:14px;line-height:17px}
  .mb-main{display:grid;grid-template-columns:minmax(0,1fr) 560px;height:calc(100vh - 72px);min-height:640px}
  .mb-art{display:flex;flex-direction:column;justify-content:center;padding:0 64px 24px}
  .mb-art-card,body[data-kind="geo"] .mb-art-card{height:auto;aspect-ratio:760/540;border-radius:16px;padding:4px}
  .mb-live{left:14px;top:14px;height:26px;padding:0 8px;border-radius:999px;font-size:12px;gap:4px}.mb-live i{width:7px;height:7px}
  .mb-caption{margin:24px 2px 0;font-size:16px;line-height:21px;gap:8px}.mb-caption i{width:9px;height:9px}
  .mb-panel{position:relative;padding:48px 48px 120px;overflow:auto}
  .mb-q{font-size:32px;line-height:42px}
  .mb-kinds{gap:8px}
  .mb-kind{min-height:83px;padding:16px 16px 16px}
  .mb-kind[aria-checked="true"]{min-height:103px;padding:16px 16px 16px}
  .mb-kind-h{font-size:16px;line-height:23px}.mb-kind-p{font-size:14px;line-height:18px}
  .mb-who{margin-top:16px}.mb-label{margin-bottom:16px}
  .mb-chips{gap:8px}.mb-chip{height:42px;border-radius:999px;font-size:16px;line-height:20px}
  .mb-bottom{position:absolute;left:0;right:0;bottom:0;height:96px;padding:24px 48px}
  .mb-next{height:54px;border-radius:999px;font-size:16px}
}
body[data-kind="geo"] .mb-art-render{padding-top:24px;background:var(--page)}
@media (min-width:1024px){body[data-kind="geo"] .mb-art-render{padding-top:32px}}
/* tablet (600–1023): keep the phone layout but centre it at a readable width */
@media (min-width:600px) and (max-width:1023px){
  
  .mb-art,.mb-panel{padding-left:calc((100% - 560px)/2);padding-right:calc((100% - 560px)/2)}
  .mb-art-card,body[data-kind="geo"] .mb-art-card{height:auto;aspect-ratio:760/540}
  .mb-bottom{padding-left:calc((100% - 560px)/2);padding-right:calc((100% - 560px)/2)}
}
/* ---------- builder steps 2–6 (Figma FULL DESIGN — phone, 129:1468 … 129:2431) ---------- */
.mb-back{position:absolute;left:20px;top:16px;padding:0;border:0;background:none;font:500 14px/18px var(--sans);color:var(--ink);cursor:pointer}
.mb-options .mb-label{margin-top:12px}
.mb-q+.mb-label{margin-top:0}
.mb-people{display:flex;flex-direction:column;gap:12px}
.mb-person{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:50px;padding:0 12px;background:#fff;border:1.2px solid var(--line);border-radius:16px}
.mb-person:focus-within{border:2px solid var(--forest);padding:0 12px}
.mb-avatar{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:999px;font:700 14px/1 var(--sans)}
.mb-avatar-sm{width:28px;height:28px;font-size:12px}
.mb-person-name{flex:1;min-width:0;height:48px;padding:0;border:0;background:none;font:500 16px/20px var(--sans);color:var(--ink);outline:none}
.mb-x{flex:none;width:32px;height:32px;border:0;border-radius:999px;background:none;color:var(--soft);font:400 20px/1 var(--sans);cursor:pointer}
.mb-x:hover{background:var(--cream)}
.mb-confirm{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font:400 14px/18px var(--sans);color:var(--ink)}
.mb-add-person{justify-content:flex-start;font:400 16px/20px var(--sans);color:var(--soft);cursor:pointer;text-align:left}
.mb-link{padding:4px 0;border:0;background:none;font:600 14px/18px var(--sans);color:var(--green);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.mb-danger{color:#9c3b23}
.mb-begin{margin-top:12px;display:flex;flex-direction:column;gap:12px}
.mb-begin .mb-label{margin:0 0 -0}
.mb-field{width:100%;min-width:0;height:50px;padding:0 16px;background:#fff;border:1.2px solid var(--line);border-radius:16px;font:500 16px/20px var(--sans);color:var(--ink);outline:none}
.mb-field::placeholder{font-weight:400;color:var(--soft)}
.mb-field:focus{border:2px solid var(--forest);padding:0 12px}
.mb-pair{display:grid;grid-template-columns:120px 1fr;gap:8px}
.mb-each{display:grid;grid-template-columns:28px 1fr 84px;align-items:center;gap:8px}
/* step 4 */
body[data-kind="metro"][data-step="4"] .mb-caption{display:none}
body[data-kind="metro"][data-step="4"] .mb-art{padding-bottom:16px}
body[data-kind="metro"][data-step="4"] .mb-art-card{border-radius:16px}
body[data-step="4"] .mb-panel{padding-top:16px}
.mb-switch-row{display:flex;align-items:center;gap:0 12px;margin-bottom:4px}
.mb-switch{display:inline-flex;gap:4px;height:35px;padding:4px;border-radius:999px;background:var(--line)}
.mb-switch button{height:29px;padding:0 16px;border:0;border-radius:999px;background:none;font:600 14px/17px var(--sans);color:var(--soft);cursor:pointer}
.mb-switch button[aria-selected="true"]{background:#fff;color:var(--ink)}
.mb-typing-hint{font:400 12px/16px var(--sans);color:var(--soft)}
.mb-canvas{position:relative;background:var(--page);border-radius:16px;overflow:hidden;--mm-ink:var(--ink);--mm-muted:var(--soft);--mm-page:#fff;--mm-surface:var(--card);--mm-focus:var(--action-text);--mm-accent:var(--green);--mm-selected:var(--green-tint);--mm-font-body:var(--sans)}
.mb-canvas-scroll{overflow-x:auto;overflow-y:hidden;background:#fff;border-radius:4px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.mb-canvas-art{position:relative;width:max-content;min-width:100%}
.mb-canvas-art>svg{display:block}
.mb-canvas text{font-family:var(--sans)}
.mb-canvas-people{position:absolute;left:2px;top:8px;z-index:3;pointer-events:none;background:linear-gradient(90deg,#fff 90%,rgba(255,255,255,0))}
.mb-canvas-people svg{display:block}
.mb-canvas-people .mm-tick{pointer-events:auto}
.mb-canvas-hint{position:absolute;left:0;right:0;margin:0;text-align:center;font:400 12px/16px var(--sans);color:var(--soft)}
.mb-canvas .mm-person-initial{font-size:12px;font-weight:700}.mb-canvas .mm-person-name{font-size:12px}
.mb-canvas .mm-st-title{font-size:12px;fill:var(--ink);paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.mb-canvas .mm-st-detail{font-size:12px;fill:var(--soft);paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.mb-canvas .mm-end-plus{font-size:14px}.mb-canvas .mm-end-plus-sm{font-size:12px}.mb-canvas .mm-end-plus-lg{font-size:16px}
.mb-canvas .mm-end-only{font:500 12px var(--sans)}.mb-canvas .mm-end-first{font:500 12px var(--sans);fill:var(--ink)}
.mb-canvas .mm-station,.mb-canvas .mm-end,.mb-canvas .mm-insert,.mb-canvas .mm-tick,.mb-canvas .mm-together{cursor:pointer;outline:none}
.mb-canvas .mm-sel-halo{fill:var(--action-text);fill-opacity:.16}.mb-canvas .mm-sel-ring{fill:none;stroke:var(--action-text);stroke-width:2}
.mb-canvas .mm-focus-halo{fill:none;stroke:var(--action-text);stroke-width:3;opacity:0}.mb-canvas .mm-station:focus-visible .mm-focus-halo{opacity:1}
.mb-canvas .mm-insert-dot{fill:var(--card);stroke-width:1;stroke-dasharray:2 2}
.mb-canvas .mm-insert-plus{font-size:12px;fill:var(--soft);pointer-events:none}
.mb-canvas .mm-insert:focus-visible .mm-insert-dot,.mb-canvas .mm-insert:hover .mm-insert-dot{stroke:var(--action-text)!important}
.mb-canvas .mm-tick-box{fill:var(--card);stroke:var(--soft);stroke-width:1.2}.mb-canvas .mm-tick.is-on .mm-tick-box{fill:var(--green);stroke:var(--green)}
.mb-canvas .mm-tick-mark{fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.mb-canvas .mm-tick-label{font:400 12px var(--sans);fill:var(--soft)}
.mb-canvas .mm-together-links path{fill:none;stroke-width:2;stroke-dasharray:4 3}
.mb-canvas .mm-join{fill:var(--green-tint);stroke:var(--ink);stroke-width:2}.mb-canvas .mm-join-plus{font:500 16px var(--sans);fill:var(--ink)}
.mb-canvas .mm-join-title{font:500 12px var(--sans);fill:var(--ink)}.mb-canvas .mm-together-sub{font:400 12px var(--sans);fill:var(--soft)}
.mb-canvas .mm-station:hover .mm-st-title{text-decoration:underline}
.mb-card{position:absolute;z-index:4;width:236px;padding:8px;background:var(--card);border-radius:8px;box-shadow:0 10px 28px rgba(27,42,65,.14)}
.mb-card-title{width:100%;height:41px;padding:0 12px;background:var(--page);border:2.4px solid var(--action-text);border-radius:8px;font:400 16px/22px var(--sans);color:var(--ink);outline:none}
.mb-card-row{display:flex;gap:8px;margin-top:8px}
.mb-card-year{width:77px;height:36px;padding:0 8px;background:var(--page);border:1.2px solid var(--line);border-radius:8px;font:400 16px/20px var(--sans);color:var(--ink);text-align:center;outline:none}
.mb-card-year:focus{border-color:var(--action-text)}
.mb-card-save{flex:1;height:36px;border:0;border-radius:8px;background:var(--green-tint);font:500 14px/19px var(--sans);color:var(--ink);cursor:pointer}
.mb-card-more{width:36px;height:36px;border:0;border-radius:8px;background:none;font:500 16px/1 var(--sans);color:var(--ink);cursor:pointer}
.mb-card-more[aria-expanded="true"]{background:var(--page)}
.mb-card-extra{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.mb-card-place{width:100%;text-align:left}
.mb-card-place-main{display:block;margin-top:8px}
.mb-card-kinds{display:flex;flex-wrap:wrap;gap:4px}
.mb-mini{height:26px;padding:0 8px;border:1px solid var(--line);border-radius:999px;background:#fff;font:600 12px/16px var(--sans);color:var(--ink);cursor:pointer}
.mb-mini[aria-pressed="true"]{background:var(--terra-soft);border-color:var(--terra);color:var(--terra)}
.mb-add-end{display:block;width:100%;border:1.2px solid var(--line);border-radius:16px;background:#fff;font:600 16px/20px var(--sans);cursor:pointer}
.mb-help{margin:8px 0 0;font:400 12px/16px var(--sans);color:var(--soft)}
.mb-help a{color:var(--green)}
.mb-list{display:flex;flex-direction:column}
.mb-row-example{opacity:.6;border:1px dashed var(--line);background:transparent}
.mb-example-note{margin:0 0 8px;font:400 14px/20px var(--sans);color:var(--soft)}
.mb-row{display:flex;align-items:center;gap:12px;min-height:57px;padding:0 12px;background:#fff;border-radius:16px}
.mb-row.is-dragging{opacity:.6;box-shadow:var(--shadow)}
.mb-handle{flex:none;padding:0;border:0;background:none;font:400 14px/1 var(--sans);cursor:grab;touch-action:none;letter-spacing:-2px}
.mb-row-year{flex:none;min-width:30px;font:600 14px/17px var(--sans);color:var(--soft)}
.mb-row-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;padding:8px 0;border:0;background:none;text-align:left;cursor:pointer}
.mb-row-main strong{font:600 16px/20px var(--sans);color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mb-row-main small{font:400 12px/16px var(--sans);color:var(--soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mb-row-edit{flex-direction:column;align-items:stretch;gap:8px;padding:12px 16px 12px;border:2px solid var(--forest)}
.mb-row-title{height:24px;padding:0;border:0;background:none;font:600 16px/20px var(--sans);color:var(--ink);outline:none;caret-color:var(--terra)}
.mb-row-chips{display:flex;flex-wrap:wrap;gap:4px}
.mb-mini-in{width:auto;min-width:48px;text-align:center;outline:none}
.mb-mini-in::placeholder{color:var(--soft);font-weight:500}
.mb-mini-in:focus{border-color:var(--forest)}
.mb-mini-place{text-align:left}
.mb-row-actions{display:flex;gap:16px}
.mb-gap{position:relative;height:18px;margin:4px 0}
.mb-gap::before{content:"";position:absolute;left:0;right:0;top:9px;border-top:1px solid var(--line)}
.mb-gap-plus{position:absolute;left:50%;top:0;width:18px;height:18px;margin-left:-8px;padding:0;border:1px solid var(--line);border-radius:999px;background:#fff;font:500 14px/1 var(--sans);color:var(--soft);cursor:pointer}
.mb-gap-plus::after{content:"";position:absolute;inset:-12px}
.mb-empty{margin:8px 0;font:400 14px/20px var(--sans);color:var(--soft)}
/* step 5 */
.mb-palettes{display:flex;gap:8px}
.mb-palette{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;height:65px;padding:12px 0 0;background:#fff;border:1.2px solid var(--line);border-radius:16px;font:500 14px/17px var(--sans);color:var(--ink);cursor:pointer}
.mb-palette[aria-checked="true"]{background:var(--green-soft);border:2px solid var(--forest);font-weight:600;height:67px}
.mb-cities{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 8px;margin:0 -2px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.mb-city{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:5px;width:84px;padding:8px 4px 7px;background:#fff;border:1.2px solid var(--line);border-radius:14px;font:500 12px/15px var(--sans);color:var(--ink);cursor:pointer;scroll-snap-align:start}
.mb-city svg{display:block;border-radius:6px;box-shadow:0 0 0 1px rgba(0,0,0,.06)}
.mb-city span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:76px}
.mb-city[aria-checked="true"]{background:var(--green-soft);border:2px solid var(--forest);font-weight:600;padding:7px 3px 6px}
.mb-swatches{display:flex}.mb-swatches i{width:20px;height:20px;margin-left:-4px;border-radius:50%;border:1.5px solid #fff}.mb-swatches i:first-child{margin-left:0}
body[data-step="5"] .mb-label,body[data-step="6"] .mb-label{margin:12px 0 12px}
body[data-step="5"] .mb-options>.mb-label:first-child{margin-top:0}
/* step 6 */
.mb-get{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:124px;padding:12px 12px;background:#fff;border:0;border-radius:16px;text-align:left;cursor:pointer;font:inherit;color:inherit}
.mb-get-main{cursor:default}
.mb-get-icon{flex:none;color:var(--ink)}
.mb-get-text{flex:1;display:flex;flex-direction:column;gap:2px}
.mb-get-text strong{font:600 16px/20px var(--sans);color:var(--ink)}
.mb-get-text small{font:400 12px/16px var(--sans);color:var(--soft)}
.mb-thumb{flex:none;width:150px;height:100px;border-radius:8px;overflow:hidden;background:#fff;box-shadow:0 2px 8px rgba(27,42,65,.08)}
.mb-thumb svg{width:100%;height:100%}
button.mb-get .mb-thumb{width:140px;margin-right:12px}
.mb-chev{position:absolute;right:14px;top:50%;margin-top:-16px;font:400 20px/29px var(--sans);color:var(--soft)}
.mb-custom{display:flex;align-items:center;gap:4px;margin-top:8px}
.mb-custom input{width:120px;height:42px;padding:0 12px;border:1.2px solid var(--line);border-radius:16px;font:500 16px/20px var(--sans)}
.mb-check{display:flex;gap:8px;align-items:flex-start;margin:12px 0 12px;font:400 14px/18px var(--sans);color:var(--soft)}
.mb-check input{margin:2px 0 0;accent-color:var(--forest)}
.mb-next.is-busy{opacity:.6;pointer-events:none}
.mb-toast{position:fixed;left:50%;bottom:104px;z-index:20;max-width:340px;margin:0;padding:8px 16px;transform:translateX(-50%);border-radius:16px;background:var(--forest);color:#fff;font:500 14px/19px var(--sans);box-shadow:var(--shadow)}
@media (min-width:1024px){
  .mb-back{top:26px;font-size:16px;line-height:20px;color:var(--soft)}
  .mb-close[hidden]{display:none}
  body:not([data-step="1"]) .mb-close{display:none}
  .mb-q{margin-bottom:16px}
  .mb-panel{padding-bottom:140px}
  .mb-card-title{font-size:16px}
  .mb-toast{bottom:120px;left:auto;right:56px;transform:none}
  body[data-step="4"] .mb-art{padding-bottom:24px}
}
.mb-progress{pointer-events:none}.mb-close,.mb-back,.mb-brand{z-index:2}
.mb-custom[hidden]{display:none}
/* ---------- Geo steps (Figma 129:2625 … 129:2853) ---------- */
.mb-geo-svg{width:100%;height:100%}
body[data-kind="geo"][data-step="3"] .mb-art-render [data-id]{cursor:pointer}
body[data-kind="geo"][data-step="3"] .mb-art-render [data-id]:hover{opacity:.85}
.mb-art-loading,.mb-art-error{margin:0;padding:16px;font:500 14px/18px var(--sans);color:var(--soft);text-align:center}
.mb-search{display:flex;align-items:center;gap:8px;height:50px;padding:0 16px;background:#fff;border:1.2px solid var(--line);border-radius:16px;color:var(--soft)}
.mb-search:focus-within{border:2px solid var(--forest);padding:0 12px}
.mb-search input{flex:1;min-width:0;height:46px;border:0;background:none;font:400 16px/20px var(--sans);color:var(--ink);outline:none}
.mb-search input::placeholder{color:var(--soft)}
.mb-suggest{margin-top:8px}
.mb-tap{margin:12px 0 0;font:400 14px/17px var(--sans);color:var(--soft)}
body[data-kind="geo"] .mb-options .mb-label{margin:12px 0 12px}
body[data-kind="geo"][data-step="4"] .mb-options>.mb-label:first-child{margin-top:0}
.mb-rename{margin-top:8px}
.mb-swatch-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mb-swatch{width:34px;height:34px;padding:0;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px var(--line);cursor:pointer}
.mb-swatch[aria-checked="true"]{border:3px solid var(--forest);box-shadow:none}
.mb-more-pal{margin-left:2px;font-weight:500;font-size:14px;color:var(--soft)}
.mb-titlefield{display:flex;align-items:center;gap:8px;height:50px;margin-top:12px;padding:0 16px;background:#fff;border:1.2px solid var(--line);border-radius:16px}
.mb-titlefield:focus-within{border:2px solid var(--forest);padding:0 12px}
.mb-titlefield span{font:600 12px/16px var(--sans);color:var(--soft)}
.mb-titlefield input{flex:1;min-width:0;height:46px;border:0;background:none;font:500 16px/20px var(--sans);color:var(--ink);outline:none}
.mb-thumb-geo{width:189px}

.mb-thumb svg{display:block}
.mb-art-render [data-edit-cue]{display:none}
/* step 6 thumbnails as designed (129:2431, 129:2853) */
.mb-get-main .mb-thumb{width:155px}
button.mb-get .mb-thumb.mb-thumb-poster{width:153px;margin-right:16px}
button.mb-get .mb-thumb.mb-thumb-video{width:101px;margin-right:16px}
.mb-get-main .mb-thumb-geo{width:189px}
button.mb-get .mb-thumb-geo{width:152px;margin-right:16px}
.mb-get-main .mb-get-icon{width:22px;height:22px}
.mb-get-main .mb-get-icon svg{width:22px;height:22px}
/* pixel pass — step 4 canvas box 350×300 (129:1605), step 6 card gaps */
.mb-canvas{min-height:300px;padding:8px 2px 8px}
.mb-canvas-scroll{min-height:283px}
.mb-canvas-art{min-height:0}
.mb-canvas-hint{bottom:23px}
.mb-get{margin:12px 0 0}
.mb-get-main{margin-top:0}
body[data-kind="metro"][data-step="4"] .mb-close,body[data-kind="metro"][data-step="4"] .mb-back{top:14px}
body[data-kind="metro"][data-step="4"] .mb-progress{top:8px}
body[data-kind="metro"][data-step="4"] .mb-saved{top:16px}
@media (min-width:1024px){body[data-kind="metro"][data-step="4"] .mb-close,body[data-kind="metro"][data-step="4"] .mb-back{top:26px}body[data-kind="metro"][data-step="4"] .mb-progress{top:16px}body[data-kind="metro"][data-step="4"] .mb-saved{top:28px}}
.mb-chip{padding:0 16px} /* matches Figma chip widths with browser text metrics */
@media (min-width:1024px){.mb-chip{padding:0 16px}}
body[data-kind="geo"][data-step="4"] .mb-options{padding-top:2px}

/* ===== COMPACT phone pass, 2 Nov 2026 — Figma "COMPACT — phone" frames (390×670): every step fits one screen ===== */
@media (max-width:1023px){
  body.mm-builder{height:100vh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
  .mb-top{flex:none}
  .mb-close,.mb-back,body[data-kind="metro"][data-step="4"] .mb-close,body[data-kind="metro"][data-step="4"] .mb-back{font-size:14px;line-height:18px}
  
  .mb-title{margin-top:0;font-size:14px;line-height:20px}
  .mb-bars{margin-top:4px}
  
  .mb-main{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain}
  .mb-art{flex:0 1 auto;display:flex;flex-direction:column;padding:0 16px 12px}
  .mb-art-card,body[data-kind="geo"] .mb-art-card{flex:0 1 248px;height:auto;min-height:140px;max-height:248px}
  body[data-kind="metro"][data-step="4"] .mb-art{padding-bottom:12px}
  body[data-kind="metro"][data-step="4"] .mb-art-card{flex-basis:248px;min-height:140px}
  .mb-caption{flex:none}
  .mb-panel{padding:12px 16px 96px}
  .mb-options{display:flex;flex-direction:column;gap:8px}
  .mb-options .mb-label,body[data-kind="geo"] .mb-options .mb-label,body[data-step="5"] .mb-label,body[data-step="6"] .mb-label{margin:0}
  .mb-q{margin:0;font-size:20px;line-height:26px}
  .mb-kinds{gap:8px}
  .mb-kind{min-height:62px;padding:12px 12px;gap:2px}
  .mb-kind[aria-checked="true"]{min-height:80px;padding:8px 12px}
  .mb-kind-h{font-size:16px;line-height:20px;gap:4px}
  .mb-who{margin:0;display:flex;flex-direction:column;gap:8px}
  .mb-chips{gap:8px 4px}
  .mb-chip{height:33px;padding:0 12px;font-size:14px;line-height:17px}
  .mb-people,.mb-begin{gap:8px;margin:0}
  .mb-person{min-height:43px;padding:0 12px;gap:8px}
  .mb-person:focus-within{padding:0 12px}
  .mb-avatar{width:26px;height:26px;border-radius:999px;font-size:14px}
  .mb-person-name{height:41px;font-size:14px;line-height:18px}
  .mb-add-person{font-size:14px}
  .mb-field{height:43px;font-size:14px;line-height:18px}
  .mb-pair{gap:8px}
  .mb-palettes{gap:8px}
  .mb-palette{height:60px;padding-top:8px;gap:4px}
  .mb-palette[aria-checked="true"]{height:62px}
  .mb-search{height:43px}
  .mb-search input{height:39px;font-size:14px}
  .mb-tap{margin:0}
  .mb-suggest{margin:0}
  .mb-titlefield{height:43px;margin:0}
  .mb-swatch{width:30px;height:30px}
  /* step 4: canvas / list box 225 high, scrolls inside */
  .mb-switch-row{margin-bottom:0}
  .mb-canvas{height:225px;min-height:0;padding:4px 2px 4px}
  .mb-canvas-scroll{height:213px;min-height:0;overflow:auto}
  .mb-canvas-hint{display:none}
  .mb-list{overflow-y:auto;overscroll-behavior:contain;border-radius:16px}
  .mb-add-end{height:40px;margin-top:1px;font-size:14px}
  .mb-help{margin:0;font-size:12px;line-height:16px}
  /* step 6: compact cards, no duplicate thumbnails */
  .mb-get{min-height:64px;margin:0;padding:12px;gap:8px}
  .mb-get .mb-thumb{display:none}
  .mb-get-text strong{font-size:14px;line-height:18px}
  .mb-get-text small{font-size:12px;line-height:16px}
  .mb-chev{font-size:16px}
  .mb-check{margin:0}
  /* bottom bar 72 */
  .mb-bottom{height:72px;padding:12px 20px calc(14px + env(safe-area-inset-bottom))}
  .mb-next{height:46px;border-radius:999px;font-size:16px}
  .mb-toast{bottom:84px}
}
@media (max-width:1023px){
  .mb-art{min-height:177px} /* never squeeze the artwork below 140px + caption */
  body[data-kind="metro"][data-step="4"] .mb-art{min-height:152px}
  /* long option rows (10 map styles, 8 map types) swipe sideways in one row */
  .mb-row-scroll{flex-wrap:nowrap;overflow-x:auto;margin:0 -16px;padding:0 16px;scrollbar-width:none;scroll-padding-inline:20px}
  .mb-row-scroll::-webkit-scrollbar{display:none}
  .mb-row-scroll .mb-chip{flex:none}
}
@media (max-width:1023px){.mb-check{font-size:12px;line-height:16px}}
@media (max-width:1023px){body[data-step="6"] .mb-art{min-height:171px}body[data-step="6"] .mb-art-card{min-height:134px}}
/* Choice cards are always the same size, selected or not (no jump when switching) */
.mb-kinds{align-items:stretch}
.mb-kind,.mb-kind[aria-checked="true"]{min-height:0;border:1.2px solid var(--line);padding:12px 12px;box-shadow:none}
.mb-kind[aria-checked="true"]{border-color:var(--forest);box-shadow:inset 0 0 0 .8px var(--forest)}
@media (min-width:1024px){.mb-kind,.mb-kind[aria-checked="true"]{padding:16px 16px 16px}}

/* ===== Geo · Your places: bigger map, proper place selector, full-screen button (2 Nov) ===== */
.mb-fullbtn{display:none;position:absolute;z-index:2;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);place-items:center;cursor:pointer;box-shadow:0 2px 8px rgba(27,42,65,.08)}
body[data-kind="geo"][data-step="3"] .mb-fullbtn{display:grid}
body[data-kind="geo"][data-step="3"] .mb-art-render{padding:0}
.mb-tap-svg{display:block;width:100%;height:100%}
.mb-tap-svg [data-id],.mb-full [data-id]{cursor:pointer}
.mb-places-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mb-places-head .mb-icon-btn{display:grid;place-items:center;width:36px;height:36px;margin:-8px -6px -8px 0;border:0;background:none;color:var(--ink);cursor:pointer;border-radius:10px}
.mb-places-head .mb-icon-btn[aria-expanded="true"]{background:var(--card)}
.mb-places-head .mb-link{font-size:14px;line-height:20px;padding:8px 0;margin:-8px 0}
.mb-count{flex:none;padding:4px 12px;border-radius:8px;background:var(--green-soft);font:600 14px/18px var(--sans);color:var(--green)}
.mb-places-tools{display:flex;gap:16px;align-items:center}
.mb-quiet{color:var(--soft);text-decoration:none;font-weight:500}
.mb-place-list{display:flex;flex-direction:column;margin-top:2px}
.mb-pgroup{border-top:1px solid var(--line)}
.mb-pgroup:last-child{border-bottom:1px solid var(--line)}
.mb-pgroup-h{display:flex;align-items:center;gap:4px;width:100%;border:0;background:none;text-align:left;cursor:pointer}
.mb-pgroup-h b{font-weight:600;color:var(--soft)}
.mb-pgroup-h i{margin-left:auto;font-style:normal;color:var(--soft)}
.mb-prow-list{padding-bottom:4px}
.mb-prow{display:flex;align-items:center;gap:12px;width:100%;min-height:40px;padding:0 2px;border:0;background:none;font:400 16px/20px var(--sans);color:var(--ink);text-align:left;cursor:pointer}
.mb-box{flex:none;display:grid;place-items:center;width:20px;height:20px;border:1.5px solid #8C8270;border-radius:4px;background:#fff;font:700 12px/1 var(--sans);font-style:normal;color:#fff}
/* full screen */
.mb-full{position:fixed;inset:0;z-index:60;background:var(--page)}
body.mb-full-open{overflow:hidden}
.mb-full-scroll{position:absolute;inset:0;overflow:auto;-webkit-overflow-scrolling:touch;display:flex}
.mb-full-inner{flex:none;margin:auto;min-width:100%}
.mb-full-inner svg{width:100%;height:auto;max-height:none}
.mb-full-top{position:absolute;left:16px;right:16px;top:calc(16px + env(safe-area-inset-top));display:flex;gap:8px;align-items:center}
.mb-full-done{height:40px;padding:0 16px;border:0;border-radius:999px;background:var(--forest);color:#fff;font:600 16px/1 var(--sans);box-shadow:0 2px 8px rgba(27,42,65,.08);cursor:pointer}
.mb-full-pill{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:999px;background:#fff;font:500 14px/1 var(--sans);color:var(--soft);box-shadow:0 2px 8px rgba(27,42,65,.08)}
.mb-full-pill i{width:10px;height:10px;border-radius:50%;background:var(--green)}
.mb-full-pill b{color:var(--ink)}
.mb-full-zoom{position:absolute;right:16px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;border-radius:16px;background:#fff;box-shadow:0 2px 8px rgba(27,42,65,.08);overflow:hidden}
.mb-full-zoom button{width:44px;height:44px;border:0;background:none;font:500 20px/1 var(--sans);color:var(--ink);cursor:pointer}
.mb-full-zoom button+button{border-top:1px solid var(--line)}
.mb-full-tip{position:absolute;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translateX(-50%);margin:0;padding:8px 16px;border-radius:16px;background:var(--forest);color:#fff;font:600 14px/1 var(--sans);white-space:nowrap}
@media (max-width:1023px){
  /* map fixed and bigger on top, the place list scrolls underneath */
  body[data-kind="geo"][data-step="3"] .mb-main{overflow:hidden}
  body[data-kind="geo"][data-step="3"] .mb-art{flex:none;min-height:0}
  body[data-kind="geo"][data-step="3"] .mb-art-card{flex:none;max-height:none}
  body[data-kind="geo"][data-step="3"] .mb-panel{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:96px}
}

/* ===== Fixed top, scrolling options — every step on phones (2 Nov) ===== */
@media (max-width:1023px){
  .mb-main{overflow:hidden}
  .mb-art,body[data-kind="metro"][data-step="4"] .mb-art,body[data-step="6"] .mb-art{flex:none;min-height:0}
  .mb-art-card,body[data-kind="geo"] .mb-art-card,body[data-kind="metro"][data-step="4"] .mb-art-card,body[data-step="6"] .mb-art-card{flex:none;height:248px;min-height:0;max-height:none}
  
  .mb-panel{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:96px}
  .mb-bottom::before{content:"";position:absolute;left:0;right:0;top:-25px;height:24px;background:linear-gradient(rgba(251,247,241,0),var(--paper));pointer-events:none}
  .mb-geo-area{display:flex;flex-direction:column;gap:8px}
  /* keyboard open: the artwork shrinks to a strip so the field stays in view */
  body.mb-kbd .mb-art-card,body.mb-kbd[data-kind="geo"][data-step="3"] .mb-art-card{height:120px}
  body.mb-kbd .mb-caption{display:none}
}

/* ===== Slim header + caption as a pill on the map (phones, 2 Nov) ===== */
@media (max-width:1023px){
  .mb-top{height:36px}
  .mb-close,.mb-back,body[data-kind="metro"][data-step="4"] .mb-close,body[data-kind="metro"][data-step="4"] .mb-back{top:9px}
  .mb-saved,body[data-kind="metro"][data-step="4"] .mb-saved{top:10px}
  .mb-progress,body[data-kind="metro"][data-step="4"] .mb-progress{left:96px;right:66px;top:16px;transform:none;width:auto}
  .mb-step,.mb-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}
  .mb-bars{margin:0}
  
  .mb-caption{position:absolute;z-index:3;justify-content:flex-start;margin:0;pointer-events:none;opacity:0;transform:translateY(6px);transition:opacity .25s,transform .25s}
  .mb-caption.is-shown{opacity:1;transform:none}
  .mb-caption span{padding:4px 12px;border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 2px 8px rgba(27,42,65,.08);font:500 12px/16px var(--sans);color:var(--ink)}
  .mb-caption i{display:none}
  body[data-kind="metro"][data-step="4"] .mb-caption{display:flex}
}
@media (min-width:600px) and (max-width:1023px){.mb-progress{left:50%;right:auto;width:420px;transform:translateX(-50%)}}

/* ===== Your places: previous artwork (tap to select), clear border, chip selector (2 Nov) ===== */
.mb-art-card{border:1px solid var(--line)}
@media (max-width:1023px){body[data-kind="geo"][data-step="3"] .mb-art-card{height:248px}}
body[data-kind="geo"][data-step="3"] .mb-art-render{padding-top:24px;background:var(--page)}
@media (min-width:1024px){body[data-kind="geo"][data-step="3"] .mb-art-card{height:auto;aspect-ratio:760/540}}
.mb-pgroup,.mb-pgroup:last-child{border:0}
.mb-pgroup-h{min-height:34px;padding:0;font:600 12px/16px var(--sans);letter-spacing:.06em;color:var(--soft)}
.mb-pgroup-h b{font-size:12px;letter-spacing:0}
.mb-pchips{padding:2px 0 8px}
.mb-pchip{flex:none}
/* Geo artwork: no empty band above tall maps; only wide maps keep room for the Live badge */
body[data-kind="geo"] .mb-art-render,body[data-kind="geo"][data-step="3"] .mb-art-render{padding-top:0}
body[data-kind="geo"] .mb-art-render.is-wide{padding-top:24px}

/* ===== Artwork is the panel: no outer card/shell; frame follows the artwork's shape (2 Nov) ===== */
.mb-art-card,body[data-kind="geo"] .mb-art-card,body[data-kind="geo"][data-step="3"] .mb-art-card,body[data-kind="metro"][data-step="4"] .mb-art-card,body[data-step="6"] .mb-art-card{flex:none;align-self:center;margin:0 auto;padding:0;background:none;border:1px solid var(--line);border-radius:4px;box-shadow:none;overflow:hidden;min-height:0;max-height:none;aspect-ratio:auto}
.mb-art-render,body[data-kind="geo"] .mb-art-render,body[data-kind="geo"] .mb-art-render.is-wide,body[data-kind="geo"][data-step="3"] .mb-art-render{padding:0;background:none;border-radius:0}
.mb-art-render svg{width:100%;height:100%;display:block}
.mb-live{left:8px;top:8px}
.mb-fullbtn{right:8px;bottom:8px;width:34px;height:34px} /* bottom-right corner; MarkableMap.com moved to bottom centre (owner, 11 Nov 2026 23:43) */
@media (max-width:1023px){.mb-art{align-items:center}}
@media (min-width:1024px){.mb-art{align-items:center}}
.mb-live{display:none!important}
/* QA pass: no iOS focus zoom (inputs >=16px) and larger tap targets */
@media (max-width:1023px){
  body.mm-builder input:not([type=checkbox]):not([type=radio]),body.mm-builder textarea,body.mm-builder select,
  input.mb-person-name,input.mb-field,input.mb-card-year,input.mb-card-title,input.mb-row-title,input.mb-mini-in,#mb-custom,input.mb-rename,[data-geo-search],.mb-titlefield input{font-size:16px!important}
  .mb-close,.mb-back{padding:12px 12px!important;margin:-12px -12px!important}
  .mb-list>*,.mb-row-edit>*{flex-shrink:0}
  .mb-mini-in{height:30px;font-weight:600;line-height:20px}
  .mb-mini-in[data-list=start]{width:64px}
  .mb-mini-place{flex:1 1 120px;min-width:0}
  .mb-canvas:has(.mb-card){height:auto}
  .mb-canvas:has(.mb-card) .mb-canvas-scroll{height:auto;overflow-y:hidden}
  .mb-help a{display:inline-block;padding:12px 0;margin:-12px 0}
  .mb-gap-plus{position:relative}
  .mb-gap-plus::after{content:"";position:absolute;inset:-11px}
}
/* Colour presets + custom (same behaviour as the live Travel editor) */
.mb-presets{display:flex}
.mb-preset{flex:none;display:flex;flex-direction:column;align-items:center;gap:4px;padding:0;border:0;background:none;cursor:pointer;color:var(--ink)}
.mb-preset-tile{position:relative;display:flex;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(27,42,65,.12)}
.mb-preset-tile i{flex:1}
.mb-preset[aria-checked="true"] .mb-preset-tile{box-shadow:0 0 0 2px var(--page),0 0 0 4px var(--ink)}
.mb-wheel{background:conic-gradient(#d9534f,#e8a33d,#e6d84a,#5cb85c,#3d8fd1,#7b5ea7,#d9534f)}
.mb-preset-custom[aria-expanded="true"] .mb-preset-tile{box-shadow:0 0 0 2px var(--page),0 0 0 4px var(--ink)}
.mb-custom-colours{display:flex;flex-direction:column;gap:8px;margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.mb-custom-colours label{display:flex;align-items:center;gap:12px;font:500 14px/20px var(--sans);color:var(--ink);cursor:pointer}
.mb-custom-colours input[type=color]{flex:none;width:44px;height:32px;padding:0;border:1px solid var(--line);border-radius:8px;background:none;cursor:pointer}
.mb-custom-colours input[type=color]::-webkit-color-swatch-wrapper{padding:2px}
.mb-custom-colours input[type=color]::-webkit-color-swatch{border:0;border-radius:8px}
/* Look step tidy: shorter swatches, grouped sections, no focus box on the map */
.mb-preset-tile{width:48px;height:28px;border-radius:8px}
.mb-preset[aria-checked="true"] .mb-preset-tile,.mb-preset-custom[aria-expanded="true"] .mb-preset-tile{box-shadow:0 0 0 2px var(--page),0 0 0 3.5px var(--ink)}
.mb-presets{gap:8px;padding:4px 16px!important}
@media (max-width:1023px){
  body[data-kind="geo"][data-step="4"] .mb-options>.mb-label:not(:first-child){margin-top:8px}
  body[data-kind="geo"][data-step="4"] .mb-titlefield{margin-top:8px}
}
#mb-render svg :focus,#mb-render svg:focus,.mb-full svg :focus{outline:none}
/* Header: Back on the left (from step 2), Close (✕) on the right, no "Saved" text (still announced to screen readers) */
.mb-saved{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mb-close,body:not([data-step="1"]) .mb-close,body[data-kind="metro"][data-step="4"] .mb-close{display:grid!important;place-items:center;left:auto!important;right:8px;top:0!important;width:44px;height:44px;padding:0!important;margin:0!important;color:var(--ink);z-index:3}
@media (max-width:1023px){.mb-close,body:not([data-step="1"]) .mb-close,body[data-kind="metro"][data-step="4"] .mb-close{right:8px;top:-4px!important}}
@media (min-width:1024px){.mb-close,body:not([data-step="1"]) .mb-close,body[data-kind="metro"][data-step="4"] .mb-close{right:24px;top:14px!important}}
.mb-close:hover{color:var(--action-text)}
/* Compact place tools: search, then "Mark as" with Select all / Clear on one line, categories in one row */
.mb-mark-row{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:4px}
.mb-mark-row .mb-inline-label{margin:0!important}
.mb-mark-row .mb-places-tools{display:flex;gap:16px;margin:0}
.mb-mark-row .mb-link{font-size:14px;line-height:20px;padding:8px 0;margin:-8px 0}
.mb-cat-row{flex-wrap:nowrap}
.mb-chip-ghost{border-style:dashed}
@media (max-width:1023px){
  body[data-kind="geo"] .mb-search{height:44px}
  body[data-kind="geo"] .mb-search input{height:42px}
  .mb-subfield{margin-top:0!important}
}
/* Artwork floats above the page: soft lift shadow (design system: large shadow) */
.mb-art-card{border-color:transparent!important;box-shadow:0 10px 28px rgba(27,42,65,.14)!important}
.mb-art{padding-bottom:24px!important;overflow:visible}
.mb-pgroup-h{scroll-margin-top:8px}
/* Options slide softly under the map when scrolled, instead of a hard cut */
@media (max-width:1023px){
  .mb-panel{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 0);mask-image:linear-gradient(to bottom,transparent 0,#000 0)}
  
}

/* Progress lives in the Next button; header keeps just ← and ✕ on phones */
@media (max-width:1023px){
  .mb-back-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .mb-back,body[data-kind="metro"][data-step="4"] .mb-back{display:grid;place-items:center;left:8px!important;top:-4px!important;width:44px;height:44px;padding:0!important;margin:0!important}
  .mb-back[hidden]{display:none!important}
}
.mb-rename-row{display:flex;gap:8px;align-items:center}
.mb-rename-row .mb-rename{flex:1;min-width:0;margin:0}
.mb-chip-danger{color:#9c3b23;border-color:#e7c3b8}
@media (max-width:1023px){.mb-art{padding-left:12px!important;padding-right:12px!important}}

/* One "Edit categories" panel: name, colour and delete for every category */
.mb-cat-dot{display:inline-block;width:10px;height:10px;margin-right:8px;border-radius:50%;box-shadow:0 0 0 1.5px rgba(255,255,255,.7)}
.mb-cat-editor{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.mb-cat-edit-row{display:flex;align-items:center;gap:8px}
.mb-cat-edit-row input[type=color]{flex:none;width:44px;height:40px;padding:0;border:1px solid var(--line);border-radius:8px;background:none;cursor:pointer}
.mb-cat-edit-row input[type=color]::-webkit-color-swatch-wrapper{padding:4px}
.mb-cat-edit-row input[type=color]::-webkit-color-swatch{border:0;border-radius:4px}
.mb-cat-name-in{flex:1;min-width:0;height:40px!important;margin:0!important}
.mb-cat-del{flex:none;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:8px;background:none;color:#9c3b23;cursor:pointer}
.mb-cat-del:hover{background:var(--action-tint)}
.mb-cat-edit-foot{display:flex;align-items:center;justify-content:space-between;margin-top:2px}
/* Panel tucks closer under the floating map; eased fade */
@media (max-width:1023px){
  .mb-art{position:relative;z-index:2;padding-bottom:8px!important;background:var(--sand)!important}
  .mb-art::after{content:"";position:absolute;left:0;right:0;pointer-events:none}
  .mb-panel.is-scrolled{-webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.15) 0,rgba(0,0,0,.6) 10px,rgba(0,0,0,.9) 18px,#000 26px);mask-image:linear-gradient(to bottom,rgba(0,0,0,.15) 0,rgba(0,0,0,.6) 10px,rgba(0,0,0,.9) 18px,#000 26px)}
}
/* Smooth hand-off: map area and panel share one background, content fades under an eased overlay */
@media (max-width:1023px){
  .mb-top,.mb-art{background:var(--page)!important}
  .mb-art::after{bottom:-40px!important;height:40px!important;background:linear-gradient(to bottom,rgba(247,243,234,1) 0%,rgba(247,243,234,.92) 18%,rgba(247,243,234,.72) 38%,rgba(247,243,234,.44) 60%,rgba(247,243,234,.18) 82%,rgba(247,243,234,0) 100%)!important;opacity:0;transition:opacity .2s}
  body.mb-scrolled .mb-art::after{opacity:1}
  .mb-panel,.mb-panel.is-scrolled{-webkit-mask-image:none!important;mask-image:none!important}
}
@media (max-width:1023px){.mb-art::after{z-index:1}.mb-art-card{position:relative;z-index:3}}
/* Clear edge all round the floating map (it no longer relies on a darker backdrop) */
@media (max-width:1023px){.mb-art-card{border:1px solid rgba(27,42,65,.14)!important;box-shadow:0 0 0 1px rgba(255,255,255,.6) inset,0 1px 2px rgba(27,42,65,.10),0 4px 10px rgba(27,42,65,.10),0 16px 32px -8px rgba(27,42,65,.30)!important}}
.mb-confirm{margin-top:4px;padding:12px 12px;border:1.5px solid var(--action);border-radius:16px;background:var(--action-tint)}.mb-confirm .mb-label{margin:0 0 8px!important;color:var(--action-text)}.mb-confirm .mb-help{margin:8px 0 0;color:var(--action-text)}
.mb-cat-dot-lg{flex:none;width:14px;height:14px;margin:0 4px 0 4px;box-shadow:none}

/* Review fixes: readable drag handle, larger tap areas, desktop Back on one line, confirm box in view */

.mb-switch button,.mb-mini,.mb-preset,.mb-link,.mb-cat-del,.mb-help a{position:relative}
.mb-switch button::after,.mb-mini::after,.mb-preset::after,.mb-cat-edit-foot .mb-link::after,.mb-row-actions .mb-link::after{content:"";position:absolute;inset:-7px -3px}
.mb-back{display:inline-flex;align-items:center;white-space:nowrap}
.mb-back svg{flex:none}
.mb-confirm{scroll-margin-bottom:100px}
/* Search boxes: full list opens on focus, filters as you type */
.mb-pick{position:relative;display:flex;flex-direction:column;gap:8px}
.mb-pick-list{display:none;flex-direction:column;max-height:240px;overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:16px;background:var(--card);box-shadow:0 10px 28px rgba(27,42,65,.14)}
.mb-pick.is-open .mb-pick-list,.mb-pick-list.is-q{display:flex}
.mb-pick-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 16px;border:0;border-bottom:1px solid var(--line);background:none;font:500 16px/20px var(--sans);color:var(--ink);text-align:left;cursor:pointer}
.mb-pick-row:last-child{border-bottom:0}
.mb-pick-row:hover,.mb-pick-row[aria-selected="true"]{background:var(--page)}
.mb-pick-row i{flex:none;width:20px;height:20px;border:1.5px solid #8C8270;border-radius:8px}
.mb-pick-row[aria-checked="true"] i::after{content:"";display:block;width:6px;height:10px;margin:2px 0 0 4px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
/* Message bubble sits lower and smaller so it covers less of the artwork */
@media (max-width:1023px){.mb-caption{bottom:8px!important;left:16px!important;right:16px!important}.mb-caption #mb-caption{font-size:12px!important;line-height:16px!important;padding:4px 8px!important}}
/* List: one scroll (the panel), so "Add a moment at the end" is always reachable; clear drag handle */
@media (max-width:1023px){.mb-list{max-height:none!important;overflow:visible!important}}
.mb-add-end{border-style:dashed!important;border-color:#B9AE9C!important;color:var(--action-text)!important;margin-top:12px!important;height:44px!important}
.mb-handle{display:grid;place-items:center;width:32px!important;height:44px!important;margin:0 -4px 0 -8px!important;font-size:0!important;color:var(--soft)!important;opacity:1!important}
.mb-handle::before{content:"";width:12px;height:18px;background:radial-gradient(circle,currentColor 1.6px,transparent 1.8px) 0 0/6px 6px;opacity:.85}
/* Welcome back + My maps link */
body.mb-welcoming .mb-bottom{display:none}
body.mb-welcoming .mb-panel{padding-bottom:24px!important}
.mb-welcome{display:flex;flex-direction:column;gap:16px}
.mb-welcome .mb-label{margin:0!important}
.mb-wb-card{display:flex;align-items:center;gap:16px;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.mb-wb-thumb{flex:none;display:grid;place-items:center;width:88px;height:60px;overflow:hidden;border-radius:8px;background:var(--page);color:var(--green)}
.mb-wb-thumb svg{width:100%;height:100%}
.mb-wb-geo svg{width:28px;height:28px}
.mb-wb-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.mb-wb-text b{font:600 16px/22px var(--sans);color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mb-wb-text small{font:400 14px/20px var(--sans);color:var(--soft)}
.mb-wb-actions{display:flex;flex-direction:column;gap:8px}
.mb-wb-go{width:100%;height:48px}
.mb-wb-new{height:48px;border:1.2px solid var(--line);border-radius:999px;background:var(--card);font:600 16px/20px var(--sans);color:var(--ink);cursor:pointer}
.mb-wb-all,.mb-mymaps{align-self:flex-start;font:500 14px/20px var(--sans);color:var(--green);text-decoration:underline;text-underline-offset:3px;padding:8px 0;margin:-8px 0}
.mb-mymaps{display:inline-block;float:right;margin:-4px 0 0}
/* History (My maps) button sits where Back is, on step 1 only */
.mb-history{position:absolute;z-index:2;display:grid;place-items:center;width:44px;height:44px;left:8px;top:-4px;color:var(--ink);text-decoration:none}
.mb-history[hidden]{display:none}
@media (min-width:1024px){.mb-history{top:14px}}
.mb-back[hidden]{display:none!important}
@media (min-width:1024px){.mb-history{width:auto;gap:8px;grid-auto-flow:column;font:500 16px/20px var(--sans);color:var(--soft)}.mb-history::after{content:"My maps"}}
@media (min-width:1024px){.mb-brand{display:inline-flex!important;align-items:center;gap:8px;white-space:nowrap}}
@media (min-width:1024px){.mb-back{left:256px!important}.mb-history{left:248px!important}}

/* Phones, 3 Nov 2026 (owner: scrolling problems on the download step):
   – iPhone Safari: 100vh includes the toolbar, so the bottom of the screen was hidden; use the visible height.
   – The bottom bar grows with the home-indicator space instead of squashing the button.
   – The panel scrolls far enough that its last line clears the bottom bar.
   – The soft fade under the map only appears once the options are scrolled. */
@media (max-width:1023px){
  body.mm-builder{height:100vh;height:100dvh}
  .mb-bottom{height:auto!important;min-height:72px}
  .mb-panel{padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}
  .mb-art::after{opacity:0;transition:opacity .15s ease}
  body.mb-scrolled .mb-art::after{opacity:1}
}
/* The cookie-settings link has no footer to sit in here; it took space below the
   bottom bar and cut off the Next button. Keep it out of the layout (the consent
   panel itself is fixed and still appears when needed). */
body.mm-builder > #mm-analytics-consent{position:fixed;left:0;bottom:0;width:1px;height:1px;overflow:hidden}

/* Zoom the map only (owner, 5 Nov): pinch on the map, drag to look around, double-tap or "Reset zoom" to go back. */
html,body.mm-builder{touch-action:pan-x pan-y}
.mb-art-card{touch-action:pan-y}
.mb-art-card.is-zoomed{touch-action:none}
.mb-art-render{will-change:transform}
.mb-zoom-reset{position:absolute;left:10px;bottom:10px;z-index:4;min-height:36px;padding:0 12px;border:0;border-radius:999px;background:rgba(27,42,65,.85);color:#fff;font:600 14px/1 var(--sans);cursor:pointer}
.mb-zoom-reset[hidden]{display:none}
/* Step 1 after a home-page map button: small link to change map type (owner, 7 Nov 2026) */
.mb-switch-kind{display:block;margin:16px 0 0;padding:4px 0;border:0;background:none;font:500 14px/20px var(--sans);color:var(--soft);cursor:pointer;text-align:left}
.mb-switch-kind u{color:var(--terra);text-underline-offset:3px}
/* ===== Country picker (owner, 7 Nov 2026; Figma "FINAL — Country picker") ===== */
.mb-cp-search{margin:2px 0 4px}
.mb-cp-field{position:relative;display:flex;align-items:center;gap:8px;height:50px;padding:0 12px 0 16px;border:1.2px solid var(--line);border-radius:16px;background:var(--card);color:var(--soft);cursor:text}
.mb-cp-field:focus-within,.mb-cp-field.is-active{border:2px solid var(--ink);color:var(--ink);padding-left:16px}
.mb-cp-field input.mb-field{flex:1;min-width:0;height:100%;padding:0;border:0!important;background:none;outline:none;box-shadow:none!important;font:400 16px/20px var(--sans);color:var(--ink)}
.mb-cp-field input::placeholder{color:var(--soft)}
.mb-cp-row{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;width:100%;min-height:56px;padding:8px 16px;border:0;border-bottom:1px solid #F0EBE1;background:none;text-align:left;cursor:pointer;font:inherit;color:var(--ink)}
.mb-cp-row span{display:flex;flex-direction:column;gap:2px}
.mb-cp-row b{font:500 16px/21px var(--sans)}
.mb-cp-row small{font:400 12px/16px var(--sans);color:var(--soft)}
.mb-cp-row mark{background:#F6E1D9;color:inherit;border-radius:4px;padding:0 1px}
.mb-cp-row.is-plain{min-height:46px}
.mb-cp-row.is-plain b{font-weight:400}
.mb-cp-row:last-child{border-bottom:0}
.mb-cp-row:hover{background:var(--page)}
.mb-cp-all{margin-top:12px}
.mb-cp-grid{display:grid;grid-template-columns:1fr 1fr;margin-top:12px;padding:4px 16px;border:1px solid var(--line);border-radius:16px;background:var(--card);column-gap:16px}
.mb-cp-cell{min-height:40px;padding:0;border:0;border-bottom:1px solid #F0EBE1;background:none;text-align:left;font:400 16px/19px var(--sans);color:var(--ink);cursor:pointer}
.mb-cp-cell[aria-selected="true"]{font-weight:600}
.mb-cp-chosen{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:0 16px;border:2px solid var(--ink);border-radius:16px;background:var(--green-tint)}
.mb-cp-chosen b{font:600 16px/20px var(--sans);color:var(--ink)}
.mb-cp-change{padding:8px 0 8px 12px;border:0;background:none;font:500 14px/18px var(--sans);color:var(--terra);cursor:pointer}
.mb-next.is-wait{opacity:.45}
/* phones: search screen above the keyboard */
.mb-csheet{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;height:100dvh;padding:0 16px;background:var(--page)}
.mb-csheet-top{display:flex;align-items:center;justify-content:space-between;flex:none;height:60px}
.mb-csheet-top b{font:600 16px/22px var(--sans);color:var(--ink)}
.mb-csheet-cancel{padding:8px 0 8px 12px;border:0;background:none;font:500 16px/20px var(--sans);color:var(--terra);cursor:pointer}
.mb-csheet .mb-cp-field{flex:none}
.mb-csheet-clear{flex:none;width:24px;height:24px;border:0;border-radius:999px;background:var(--line);font:700 16px/1 var(--sans);color:var(--soft);cursor:pointer}
.mb-csheet-clear[hidden]{display:none}
.mb-csheet-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:16px 0 24px}
.mb-csheet-body .mb-label{margin:4px 0 8px}
.mb-csheet-body .mb-chips{margin-bottom:16px}
.mb-csheet-list{border:1px solid var(--line);border-radius:16px;background:var(--card);overflow:hidden}
.mb-csheet-empty{padding:16px 16px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.mb-csheet-empty b{display:block;font:600 16px/21px var(--sans);color:var(--ink)}
.mb-csheet-empty p{margin:4px 0 12px;font:400 14px/18px var(--sans);color:var(--soft)}
.mb-csheet-browse{padding:0;border:0;background:none;font:600 14px/18px var(--sans);color:var(--terra);cursor:pointer}
body.mb-csheet-open{overflow:hidden}
body.mb-csheet-open .mh-bubble,body.mb-csheet-open .mh-nudge{display:none!important}
@media (min-width:1024px){.mb-cp-search .mb-pick-list{max-height:320px}}
/* Options chip on Select places (owner, 7 Nov 2026, design 07) */
.mb-chip-opts{display:inline-flex;align-items:center;gap:4px}
.mb-chip-opts[aria-expanded="true"]{background:var(--forest);border-color:var(--forest);color:#fff}
.mb-geo-opts{margin:4px 0 4px;padding:12px 12px 12px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.mb-geo-opts .mb-label{margin:0 0 8px}
.mb-geo-opts .mb-help{margin:8px 0 0}
/* First-visit loading: faint map + greyed choices instead of a blank page (owner, 7 Nov 14:51) */
.mb-art-skel{position:relative;display:grid;place-items:center;width:100%;height:100%;background:#F9F2EA}
.mb-art-skel img{width:86%;height:auto;max-height:86%;object-fit:contain;filter:grayscale(1);opacity:.35;animation:mbSkel 1.4s ease-in-out infinite}
.mb-art-skel span{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);padding:4px 12px;border-radius:16px;background:#fff;font:500 14px/18px var(--sans);color:var(--soft);box-shadow:0 2px 8px rgba(27,42,65,.08);white-space:nowrap}
.mb-skel .mb-chip{opacity:.55;pointer-events:none;animation:mbSkel 1.4s ease-in-out infinite;display:inline-flex;align-items:center}
@keyframes mbSkel{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.mb-art-skel img,.mb-skel .mb-chip{animation:none}}
/* Select places: flat A–Z chips, or open groups with a plain heading for short lists (owner, 7 Nov 14:52) */
.mb-pflat{margin-top:4px}
.mb-pgroup.is-static{margin-top:12px}
.mb-pgroup-t{display:flex;align-items:center;gap:4px;margin:0 0 8px;font:600 12px/16px var(--sans);letter-spacing:.06em;color:var(--soft)}
.mb-pgroup-t b{font-weight:600;color:var(--soft)}
/* Instant feedback on tap (owner, 7 Nov 15:22) */
.mb-chip{transition:background-color .12s ease,color .12s ease,border-color .12s ease,transform .08s ease}
.mb-chip:active{transform:scale(.96)}
.mb-chip.is-pressing{background:var(--forest);border-color:var(--forest);color:#fff}
/* Before the builder code has sized the preview, give it a sensible size so it is never a thin line (owner, 7 Nov 15:38) */
.mb-art-card:not([style*="width"]){width:min(100%,560px);height:248px}
@media (min-width:1024px){.mb-art-card:not([style*="width"]){height:auto;aspect-ratio:760/540}}

/* Owner, 7 Nov 16:00: map caption pills removed ("useless"). Text stays for screen readers only. */
.mb-caption{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;opacity:0!important;pointer-events:none!important}

/* Metro Lines editor, 7 Nov 2026 19:20 (owner): no box around the editor, and names that shrink to
   their initial as the lines scroll left (each initial sits on its line, its tick below). */
.mb-canvas{background:transparent;border-radius:0}
.mb-canvas-scroll{background:transparent;border-radius:0}
.mb-canvas-people{background:linear-gradient(90deg,var(--page) 88%,rgba(247,243,234,0))}
.mb-canvas .mm-st-title,.mb-canvas .mm-st-detail{stroke:var(--page)}
.mb-mini-people{display:none;position:absolute;left:0;top:0;width:48px;background:linear-gradient(90deg,var(--page) 78%,rgba(247,243,234,0));pointer-events:none}
.mb-canvas-people.is-compact{background:none}
.mb-canvas-people.is-compact>svg{visibility:hidden}
.mb-canvas-people.is-compact .mb-mini-people{display:block}
.mb-mini-person{position:absolute;left:8px;top:0;display:flex;flex-direction:column;align-items:center;gap:4px;transition:transform .12s ease-out}
.mb-mini-av{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--t);color:var(--c);font:700 12px/1 var(--sans);box-shadow:0 0 0 2px var(--page)}
.mb-mini-tick{pointer-events:auto;width:16px;height:16px;padding:0;border-radius:4px;border:1.4px solid var(--soft);background:var(--card);cursor:pointer;position:relative}
.mb-mini-tick::before{content:"";position:absolute;inset:-12px}
.mb-mini-tick.is-on{background:var(--green);border-color:var(--green)}
.mb-mini-tick.is-on::after{content:"";position:absolute;left:4px;top:1px;width:4px;height:8px;border:solid #fff;border-width:0 1.8px 1.8px 0;transform:rotate(45deg)}

/* One panel under the preview (owner, 7 Nov 20:07): on phones the Lines editor is no longer a 225px box
   with its own up/down scroll inside the page; it shows every line at full height and only scrolls
   sideways, so the whole step scrolls as one. */
@media (max-width:1023px){
  .mb-canvas{height:auto!important;min-height:0;padding:4px 0}
  .mb-canvas-scroll{height:auto!important;min-height:0;overflow-x:auto;overflow-y:hidden}
}
/* Full-screen button on the Lines editor (owner, 7 Nov 20:08) */
.mb-canvas-full{position:absolute;top:6px;right:6px;z-index:6;width:36px;height:36px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--ink);display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 8px rgba(27,42,65,.08)}
.mb-canvas-full .mb-full-close{display:none}
body.mb-editor-full .mb-canvas-full .mb-full-open{display:none}
body.mb-editor-full .mb-canvas-full .mb-full-close{display:inline}
/* Full screen must cover the map preview, header, Next bar and helper too: the editor sits inside a
   lower layer, so those are hidden while it is open (seen on iPhone, 7 Nov 20:22). */
/* Full screen: add a person under the names, add a moment at the bottom (owner, 7 Nov 20:29) */
.mb-add-person-full,.mb-full-bar{display:none}
body.mb-editor-full .mb-add-person-full{display:block;position:absolute;left:8px;pointer-events:auto;height:36px;padding:0 12px;border:1px dashed var(--soft);border-radius:999px;background:var(--card);font:600 14px/1 var(--sans);color:var(--ink);cursor:pointer}
body.mb-editor-full .mb-canvas-people.is-compact .mb-add-person-full{display:none}
.mb-name-edit{position:absolute;left:4px;z-index:5;pointer-events:auto}
.mb-name-edit input{width:150px;height:38px;padding:0 12px;border:2px solid var(--action-text);border-radius:8px;background:var(--card);font:500 16px/1 var(--sans);color:var(--ink);outline:none}
.mb-add-person-full{white-space:nowrap}

/* Full screen (owner, 7 Nov 21:00): the map preview steps away and the whole panel under it
   (Lines/List, names and ticks, the editor, Add a moment) fills the screen. */
body.mb-editor-full .mb-art,body.mb-editor-full .mb-top{display:none!important}
body.mb-editor-full .mb-panel{padding-top:16px}
/* Full-screen button sits on the Lines | List row, at the right (owner, 7 Nov 21:01) */
.mb-switch-row .mb-canvas-full{position:static;order:3;margin-left:auto;flex:none}
.mb-switch-row .mb-typing-hint{order:2}
body.mb-editor-full .mb-canvas{padding-bottom:48px}
.mb-mini-pair{position:absolute;left:13px;top:0;pointer-events:auto;transition:transform .12s ease-out}

/* More lines off to the right: a soft fade at the edge says "scroll" (owner, 7 Nov 22:56: titles looked cut off). */
.mb-canvas-scroll.is-more{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}
.mb-canvas:has(.mb-card) .mb-canvas-scroll.is-more{-webkit-mask-image:none;mask-image:none}

/* "Who was there?" quick choices in the moment card (owner picked A08, 7 Nov 23:18) */
.mb-who{margin-top:8px}
.mb-who-q{margin:0 0 4px;font:600 12px/16px var(--sans);color:var(--ink)}
.mb-who-chips{display:flex;flex-wrap:wrap;gap:4px}
.mb-who-chip{--c:#295443;--t:#e5ecdf;min-height:32px;padding:0 12px;border:1.2px solid var(--line);border-radius:999px;background:#fff;font:500 14px/1 var(--sans);color:var(--soft);cursor:pointer;-webkit-tap-highlight-color:transparent}
.mb-who-chip.is-in{border-color:var(--c);color:var(--c)}
.mb-who-chip[aria-pressed="true"]{border:1.6px solid var(--c);background:var(--t);color:var(--c);font-weight:600}
.mb-who-chip[data-who-mixed]{cursor:default}
/* One toolbar: undo | redo | full screen (owner picked B06, 7 Nov 23:19) */
.mb-tools{order:3;margin-left:auto;flex:none;display:flex;align-items:center;height:44px;padding:0 4px;border:1.2px solid var(--line);border-radius:999px;background:var(--card,#fff)}
.mb-tool,.mb-tools .mb-canvas-full{width:42px;height:38px;border:0;border-radius:999px;background:none;box-shadow:none;color:var(--ink);display:grid;place-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
.mb-tool:disabled{opacity:.3;cursor:default}
.mb-tool:not(:disabled):active,.mb-tools .mb-canvas-full:active{background:var(--page)}
.mb-tool-sep{width:1px;height:20px;background:var(--line)}
.mb-switch-row .mb-tools .mb-canvas-full{position:static;margin:0;order:0}
/* List editing card = the Lines card (owner, 8 Nov 00:01) */
.mb-row-edit.mb-list-card{gap:0;padding:8px;border:0;border-radius:16px;background:#fff;box-shadow:0 10px 28px rgba(27,42,65,.14)}
.mb-list-card .mb-card-title{display:block}
.mb-list-card .mb-card-row{align-items:center}
.mb-list-card .mb-list-del{flex:none;margin:0 4px 0 4px;font-size:14px}
/* Sheet view (owner, 9 Nov 2026 13:15): a table of moments + Excel download/upload */
.mb-switch button{padding:0 14px}
.mb-sheet{display:flex;flex-direction:column;gap:8px}
.mb-sheet-tools{display:flex;gap:8px}
.mb-sheet-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:1.2px solid var(--line);border-radius:999px;background:#fff;font:600 14px/18px var(--sans);color:var(--ink);cursor:pointer}
.mb-sheet-btn:hover{background:var(--page)}
.mb-sheet-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;border:1px solid var(--line);border-radius:12px;background:#fff}
.mb-sheet-table{border-collapse:collapse;min-width:640px;width:100%;font:400 14px/18px var(--sans)}
.mb-sheet-table th{position:sticky;top:0;z-index:1;padding:8px;border-bottom:1px solid var(--line);background:var(--sand);font:600 12px/16px var(--sans);letter-spacing:.04em;text-transform:uppercase;color:var(--soft);text-align:left;white-space:nowrap}
.mb-sheet-table td{padding:0;border-bottom:1px solid var(--line);border-right:1px solid var(--line);vertical-align:middle}
.mb-sheet-table td:last-child{border-right:0;width:40px;text-align:center}
.mb-sheet-table tr:last-child td{border-bottom:0}
.mb-scell{display:block;width:100%;min-width:0;height:44px;padding:0 8px;border:0;border-radius:0;background:transparent;font:inherit;color:var(--ink);-webkit-appearance:none;appearance:none}
.mb-scell:focus{outline:2px solid var(--green);outline-offset:-2px;background:var(--green-tint)}
.mb-scell[aria-invalid=true]{outline:2px solid var(--action);outline-offset:-2px;background:var(--action-tint)}
.mb-scell::placeholder{color:#9AA2AD}
.mb-scell-who{width:116px}.mb-scell-title{min-width:180px}.mb-scell-date{width:92px}.mb-scell-place{width:112px}.mb-scell-icon{width:104px}
select.mb-scell{padding-right:20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234E5A6B' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 8px center;cursor:pointer}
.mb-sheet-table tr.is-new .mb-scell-title::placeholder{color:var(--action-text);font-weight:600}
.mb-sdel{width:32px;height:32px;border:0;border-radius:999px;background:none;font:400 20px/1 var(--sans);color:var(--soft);cursor:pointer}
.mb-sdel:hover{background:var(--action-tint);color:var(--action-text)}
.mb-sheet-confirm{padding:12px;border-radius:12px;background:#fff;box-shadow:0 10px 28px rgba(27,42,65,.14)}
.mb-sheet-confirm b{display:block;font:600 15px/20px var(--sans)}
.mb-sheet-confirm p{margin:4px 0 8px;font:400 14px/19px var(--sans);color:var(--soft)}
.mb-sheet-problems{margin:0 0 8px;font:400 13px/18px var(--sans);color:var(--action-text)}
.mb-sheet-problems summary{cursor:pointer;font-weight:600}
.mb-sheet-problems ul{margin:6px 0 0;padding-left:18px}
.mb-sheet-confirm-actions{display:flex;align-items:center;gap:16px}
.mb-sheet-confirm-actions .mb-card-save{flex:none;padding:0 20px;background:var(--action);color:#fff;font-weight:600}
/* Type several at once (owner, 9 Nov 2026) */
.mb-tmany-open{display:block;margin:10px auto 0;font-size:14px}
.mb-tmany .mb-csheet-body{display:flex;flex-direction:column;gap:10px}
.mb-tmany-label{font:400 14px/19px var(--sans);color:var(--soft)}
.mb-tmany-text{width:100%;min-height:132px;height:auto;padding:12px;border:1.2px solid var(--line);border-radius:12px;background:#fff;font:400 16px/22px var(--sans);color:var(--ink);resize:vertical}
.mb-tmany-tip{margin:0;font:400 13px/18px var(--sans);color:var(--soft)}
.mb-tmany-list{margin:0;padding:0;list-style:none;border:1px solid var(--line);border-radius:12px;background:#fff}
.mb-tmany-list li{display:flex;flex-direction:column;padding:8px 12px;border-bottom:1px solid var(--line)}
.mb-tmany-list li:last-child{border-bottom:0}
.mb-tmany-list small{color:var(--soft);font-size:13px}
.mb-tmany-miss{margin:0;font:400 13px/18px var(--sans);color:var(--action-text)}
.mb-tmany-foot{flex:none;padding:12px 0 calc(12px + env(safe-area-inset-bottom))}
.mb-tmany-foot .mm-btn[disabled]{opacity:.45;cursor:default}
@media (min-width:1024px){.mb-tmany{inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:520px;height:auto;max-height:80vh;border-radius:16px;box-shadow:0 24px 60px rgba(27,42,65,.25)}}
/* Bar behind Next is see-through; only the button itself is solid (owner, 12 Nov 2026 00:41) */
.mb-bottom{background:transparent!important;border-top:0!important;pointer-events:none}
.mb-bottom>*{pointer-events:auto}
.mb-bottom::before{display:none!important}
/* Phones: smaller Next — a centred pill, not a full-width bar (owner, 12 Nov 2026 10:02, Figma "smaller Next button" design 2).
   Help bubble sits on the same line, bottom-right; the list keeps its 160px end space so the last rows scroll clear of both. */
@media (max-width:1023px){
  .mb-bottom{display:flex;justify-content:center;align-items:flex-end;height:auto!important;min-height:0!important;padding:0 16px calc(16px + env(safe-area-inset-bottom))!important}
  .mm-shell .mb-next{width:auto;min-width:160px;height:48px;padding:0 32px;box-shadow:0 10px 28px rgba(27,42,65,.14)}
}

/* While the A–Z country list is open, the continent list waits underneath instead of showing twice (owner review, 12 Nov 2026). */
/* Only while the A–Z list itself is showing (empty search). Typed results live in .mb-place-list and must stay visible (hotfix 12 Nov 2026). */
.mb-pick.is-open:has(.mb-pick-places)+.mb-place-list{display:none}

/* Select places | Style switch and ☰ places menu (owner, 13 Nov 2026 19:24, Figma design 01 "Pill toggle under map") */
.mb-stoggle{display:flex;gap:4px;padding:4px;margin:0 0 12px;background:#EAE3D6;border-radius:999px}
.mb-stoggle-b{flex:1;height:40px;border:0;border-radius:999px;background:none;font:600 15px/20px var(--sans);color:var(--ink);cursor:pointer}
.mb-stoggle-b.is-on{background:#1B2A41;color:#fff;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.mb-stoggle-b:focus-visible{outline:2px solid var(--terra);outline-offset:2px}
.mb-pick{position:relative}
.mb-search-row{display:flex;align-items:center;gap:10px}
.mb-search-row .mb-search{flex:1;min-width:0}
.mb-pmenu-btn{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#fff;border:1.2px solid var(--line);color:var(--ink);cursor:pointer}
.mb-pmenu-btn[aria-expanded="true"]{background:#1B2A41;border-color:#1B2A41;color:#fff}
.mb-pmenu{position:absolute;right:0;top:54px;z-index:20;display:flex;flex-direction:column;min-width:210px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.mb-pmenu-i{display:flex;align-items:center;gap:12px;padding:12px 14px;border:0;border-radius:10px;background:none;font:500 16px/20px var(--sans);color:var(--ink);text-align:left;cursor:pointer}
.mb-pmenu-i:hover{background:var(--card)}
.mb-pmenu-i.is-danger{color:#A9492F}
.mb-pmenu-sep{height:1px;margin:4px 6px;background:var(--line)}
@media (max-width:700px){.mb-pmenu-btn{width:44px;height:44px}.mb-stoggle-b{height:38px}}

/* Travel one-page builder: no back, progress or close (owner, 13 Nov) */
body.mb-onepage .mb-back,body.mb-onepage .mb-close,body.mb-onepage .mb-history,body.mb-onepage .mb-progress{display:none!important}
@media (max-width:1023px){body.mb-onepage .mb-top{display:none}}
/* Small breathing space above the map on phones, so it doesn't touch the browser bar (owner, 13 Nov) */
@media (max-width:1023px){body.mb-onepage .mb-art{padding-top:10px!important}}
/* Browser bars take the page cream, not dark (owner, 13 Nov) */
html:has(body.mm-builder){background:var(--page)}
/* Less empty space under the last place chip — just enough to clear "Get my map" (owner, 13 Nov) */
@media (max-width:1023px){body.mb-onepage .mb-panel,body[data-kind].mb-onepage.mh-on .mb-panel{padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}}

/* Headline above the Travel map (owner, 16 Nov 2026 20:53). Phones: folds away once the places list is scrolled
   gradually, following the scroll (smooth, owner 16 Nov 21:01), and comes back at the top. */
.mb-hero{display:none}
body.mb-onepage .mb-hero{display:block;flex:none;overflow:hidden;padding:4px 8px 10px;box-sizing:border-box;will-change:height}
body.mb-onepage .mb-hero[hidden]{display:none}
.mb-hero-h{margin:0;font:700 24px/30px var(--sans);color:var(--ink);letter-spacing:-.01em}
.mb-hero-s{margin:4px 0 0;font:400 15px/21px var(--sans);color:var(--soft)}
@media (min-width:1024px){body.mb-onepage .mb-hero{width:100%;max-width:760px;margin:0 auto;padding:0 0 16px}.mb-hero-h{font-size:30px;line-height:36px}}

/* "Get your map" sheet (owner, 16 Nov 2026 21:42; Figma "Download pop-up" 01 + "Download payment" 02) */
.gs{position:fixed;inset:0;z-index:70}
.gs-dim{position:absolute;inset:0;background:rgba(27,42,65,.42);opacity:0;transition:opacity .2s ease}
.gs-sheet{position:absolute;left:0;right:0;bottom:0;max-height:92vh;max-height:92dvh;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;background:#fff;border-radius:24px 24px 0 0;padding:10px 16px calc(20px + env(safe-area-inset-bottom));box-shadow:0 10px 28px rgba(27,42,65,.14);transform:translateY(100%);transition:transform .22s ease;display:flex;flex-direction:column;gap:12px}
.gs.is-open .gs-dim{opacity:1}.gs.is-open .gs-sheet{transform:none}
@media (prefers-reduced-motion:reduce){.gs-dim,.gs-sheet{transition:none}}
@media (min-width:600px){.gs-sheet{left:50%;right:auto;width:440px;margin-left:-220px}}
body.gs-open{overflow:hidden}
.gs-handle{align-self:center;width:40px;height:4px;border-radius:2px;background:#E2DACB}
.gs-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.gs-h{margin:0;font:600 20px/28px var(--serif);color:var(--ink)}
.gs-x{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:var(--page);color:var(--ink);cursor:pointer}
.gs-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.gs-card{display:flex;align-items:center;gap:10px;min-height:68px;padding:8px;border:1px solid #E2DACB;border-radius:16px;background:#fff;color:var(--ink);text-align:left;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.gs-card:active{background:#FBF8F2}
.gs-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.gs-txt b{font:700 14px/18px var(--sans)}
.gs-txt small{font:400 12px/16px var(--sans);color:var(--soft)}
.gs-th{position:relative;flex:none;display:grid;place-items:center;width:52px;height:52px;border-radius:8px;background:#F7F3EA}
.gs-th img{display:block;max-width:40px;max-height:30px;object-fit:contain}
.gs-th--framed img{padding:2px;background:#fff;outline:3px solid #1B2A41;box-shadow:0 2px 4px rgba(27,42,65,.25)}
.gs-th--canvas img{box-shadow:2px 3px 3px rgba(27,42,65,.3)}
.gs-th--poster img{outline:1px solid #E2DACB}
.gs-th--digital img{opacity:.85}
.gs-th--digital i{position:absolute;right:2px;bottom:2px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#B4472F}
.gs-dl{display:contents}
.gs-card--dl{border-color:#B4472F}
.gs-card--dl .gs-dl-sub{color:#9A3B26}
.gs-long,.gs-chev{display:none}
.gs-pay{display:none}
.gs-note{margin:0;text-align:center;font:600 12px/16px var(--sans);color:#2E5E8C}
/* Payment open: prints shrink to one row, Download takes the full width and shows the real download panel. */
.gs.is-pay .gs-grid{grid-template-columns:repeat(3,1fr)}
.gs.is-pay .gs-card{flex-direction:column;gap:2px;min-height:0;padding:6px 4px;border-radius:12px;text-align:center}
.gs.is-pay .gs-card .gs-th{width:40px;height:36px;background:none}
.gs.is-pay .gs-card .gs-th img{max-width:34px;max-height:24px}
.gs.is-pay .gs-card small{display:none}
.gs.is-pay .gs-txt b{font-size:12px;line-height:16px}
.gs.is-pay .gs-dl{display:block;grid-column:1/-1;border:2px solid #B4472F;border-radius:16px;padding:10px 12px 12px}
.gs.is-pay .gs-card--dl{flex-direction:row;width:100%;padding:0;border:0;text-align:left;gap:10px}
.gs.is-pay .gs-card--dl .gs-th{width:40px;height:40px;background:#F7F3EA}
.gs.is-pay .gs-card--dl small{display:block}
.gs.is-pay .gs-card--dl .gs-txt b{font-size:15px;line-height:20px}
.gs.is-pay .gs-short{display:none}.gs.is-pay .gs-long{display:inline}
.gs.is-pay .gs-chev{display:grid;margin-left:auto;color:var(--soft);transform:rotate(180deg)}
.gs.is-pay .gs-pay{display:block;margin-top:10px}
.gs-wait{margin:8px 0;text-align:center;font:400 14px/20px var(--sans);color:var(--soft)}
.gs-frame{display:block;width:100%;height:0;border:0;background:transparent}
.gs:not(.is-pay) .gs-frame{position:absolute;width:1px;height:1px!important;opacity:0;pointer-events:none}
.gs.is-pay .gs-note{display:none}
