/* Design card: the single Paper frame "Shared trip map", shown as one complete portrait handset.
   The card itself is the device (titanium rail, black bezel, display); there is no outer white card.
   The display is laid out on a 375pt native artboard (status bar, floating glass top toolbar, full-bleed map,
   floating glass locate button, compact bottom place sheet with grabber, home indicator) and scaled as a whole,
   so proportions stay those of a real screen. Structure follows the iPhone sheet and top/bottom toolbar patterns of
   Apple's iOS UI kit; the screen itself, its map and its one teal accent are original (no map provider, tiles or
   live requests). */
.card.targets.tm-device{
  --tm-accent:#0A8A84;        /* the one accent: the pin, the sight line, the action */
  --tm-accent-soft:#D9F0EE;
  --tm-label:#111114;         /* iOS label */
  --tm-label-2:rgba(60,60,67,.62);
  --tm-fill:rgba(118,118,128,.12);
  --tm-sep:rgba(60,60,67,.16);
  width:160px;height:304px;padding:0;border-radius:34px;overflow:visible;
  background:linear-gradient(150deg,#55585E 0%,#2A2C30 22%,#17181B 55%,#3A3C41 100%);
  box-shadow:inset 0 0 0 .75px rgba(255,255,255,.22),0 2px 3px rgba(6,20,40,.25),0 22px 38px -6px rgba(6,34,70,.42)}
.card.targets.tm-device.drag{box-shadow:inset 0 0 0 .75px rgba(255,255,255,.22),0 30px 60px rgba(4,20,50,.5)}
/* side keys: action + volume on the left, side button on the right */
.card.targets.tm-device::before,.card.targets.tm-device::after{content:'';position:absolute;width:2px;border-radius:1px;background:#2C2E32;pointer-events:none}
.card.targets.tm-device::before{left:-1.6px;top:58px;height:13px;box-shadow:0 22px 0 #2C2E32,0 44px 0 #2C2E32}
.card.targets.tm-device::after{right:-1.6px;top:84px;height:30px}
/* the Paper badge is tethered to the phone's side rail, just under the top-right corner */
.card.targets.tm-device .pbadge{right:-47px;top:-7px}

.tm-phone{position:absolute;inset:1.75px;border-radius:32.25px;padding:3px;background:#040405}
.tm-display{position:relative;width:100%;height:100%;border-radius:29.25px;overflow:hidden;background:#F2EFE9;isolation:isolate}
.tm-screen{position:absolute;left:0;top:0;width:375px;height:734px;transform:scale(.40133);transform-origin:0 0;
  color:var(--tm-label);text-align:left;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Inter",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased}
.tm-screen *{box-sizing:border-box}
.tm-screen svg{display:block}

/* the map: an original cartographic drawing of central Lisbon on the Tagus, full bleed under every bar */
.tm-art{position:absolute;inset:0;width:375px;height:734px}
.tm-lab{font-family:-apple-system,"SF Pro Text",Inter,sans-serif;paint-order:stroke;stroke:#F4F1EB;stroke-width:3.5px;stroke-linejoin:round}
.tm-lab--district{font-size:11px;font-weight:600;letter-spacing:.16em;fill:#9A948A}
.tm-lab--water{font-size:17px;font-style:italic;font-weight:500;letter-spacing:.04em;fill:#4F8FB8;stroke:#AFD5EC}
.tm-lab--pin{font-size:17px;font-weight:700;letter-spacing:-.01em;fill:var(--tm-label);stroke:none}
.tm-drop,.tm-ring,.tm-shadow,.tm-tag{transform-box:fill-box}
.tm-drop{transform-origin:50% 100%}
.tm-ring,.tm-shadow{transform-origin:50% 50%}
.tm-tag{transform-origin:0 50%}

/* system chrome */
.tm-scrim{position:absolute;left:0;right:0;top:0;height:130px;background:linear-gradient(180deg,rgba(244,241,235,.85),rgba(244,241,235,0));pointer-events:none}
.tm-status{position:absolute;left:0;right:0;top:0;height:54px;display:flex;align-items:center;justify-content:space-between;padding:6px 26px 0 40px}
.tm-status b{font:600 17px/22px -apple-system,"SF Pro Text",Inter,sans-serif;letter-spacing:-.01em}
.tm-status span{display:flex;align-items:center;gap:6px}
.tm-island{position:absolute;left:50%;top:11px;width:122px;height:36px;margin-left:-61px;border-radius:18px;background:#000}
.tm-home{position:absolute;left:50%;bottom:8px;width:136px;height:5px;margin-left:-68px;border-radius:3px;background:#111114}

/* Liquid-glass material for floating controls */
.tm-glass{background:rgba(255,255,255,.58);-webkit-backdrop-filter:blur(14px) saturate(1.8);backdrop-filter:blur(14px) saturate(1.8);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.75),inset 0 1px 1px rgba(255,255,255,.9),0 1px 2px rgba(0,0,0,.06),0 8px 22px -6px rgba(0,0,0,.22)}

/* floating top toolbar: back, trip title, essential trip actions */
.tm-toolbar{position:absolute;left:16px;right:16px;top:58px;height:48px;display:flex;align-items:center;justify-content:space-between}
.tm-btn{width:48px;height:48px;flex:none;border-radius:9999px;display:flex;align-items:center;justify-content:center;color:var(--tm-label)}
.tm-pill{height:48px;flex:none;border-radius:9999px;display:flex;align-items:center;padding:0 4px}
.tm-pill i{width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:var(--tm-label)}
.tm-title{position:absolute;left:50%;top:0;height:48px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;white-space:nowrap}
.tm-title b{font:700 19px/22px -apple-system,"SF Pro Display",Inter,sans-serif;letter-spacing:-.02em}
.tm-title small{font:500 13px/16px -apple-system,"SF Pro Text",Inter,sans-serif;color:var(--tm-label-2)}
.tm-locate{position:absolute;right:16px;bottom:312px;color:var(--tm-accent)}

/* compact bottom place sheet: grabber, place, who pinned it, who sees it, one action */
.tm-sheet{position:absolute;left:8px;right:8px;bottom:8px;height:292px;padding:0 20px 28px;border-radius:40px 40px 64px 64px;
  background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(20px) saturate(1.6);backdrop-filter:blur(20px) saturate(1.6);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.9),0 -1px 0 rgba(0,0,0,.03),0 12px 40px rgba(0,0,0,.16)}
.tm-grab{display:block;width:36px;height:5px;margin:6px auto 0;border-radius:3px;background:rgba(60,60,67,.3)}
.tm-head{display:flex;align-items:flex-start;gap:10px;margin-top:12px}
.tm-head>span:first-child{flex:1;min-width:0}
.tm-place-title{display:block;font:700 31px/36px -apple-system,"SF Pro Display",Inter,sans-serif;letter-spacing:-.025em;white-space:nowrap}
.tm-place-sub{display:block;margin-top:1px;font:400 16px/20px -apple-system,"SF Pro Text",Inter,sans-serif;color:var(--tm-label-2);white-space:nowrap}
.tm-close{width:32px;height:32px;flex:none;margin-top:3px;border-radius:9999px;background:var(--tm-fill);display:flex;align-items:center;justify-content:center;color:rgba(60,60,67,.7)}
.tm-people{margin-top:14px;border-radius:20px;background:rgba(118,118,128,.08)}
.tm-row{display:flex;align-items:center;gap:11px;height:46px;padding:0 14px 0 10px;font:400 17px/20px -apple-system,"SF Pro Text",Inter,sans-serif;white-space:nowrap}
.tm-row{position:relative}
.tm-row+.tm-row::before{content:'';position:absolute;left:51px;right:0;top:0;border-top:1px solid var(--tm-sep)}
.tm-row b{font-weight:650}
.tm-row>span{flex:1;min-width:0}
.tm-row>em{font-style:normal;font-size:15px;color:var(--tm-label-2)}
.tm-row>svg{color:var(--tm-accent)}
.tm-av{width:30px;height:30px;flex:none;border-radius:9999px;display:flex;align-items:center;justify-content:center;
  font:normal 700 13px/1 -apple-system,"SF Pro Text",Inter,sans-serif;background:var(--tm-accent-soft);color:#05605B}
.tm-av.leo{background:#E8E6EC;color:#46434D}
.tm-cta{display:flex;align-items:center;justify-content:center;gap:8px;height:52px;margin-top:14px;border-radius:9999px;
  background:var(--tm-accent);color:#fff;font:600 19px/1 -apple-system,"SF Pro Text",Inter,sans-serif;letter-spacing:-.01em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22)}

.tm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
